pub trait Object: Geometry {
fn render(&self, camera: &Camera, lights: &[&dyn Light]) -> ThreeDResult<()>;
fn is_transparent(&self) -> bool;
}Expand description
Represents a 3D object which can be rendered directly or used in a render call, for example render_pass.
Required methods
Render the object.
Must be called in a render target render function,
for example in the callback function of Screen::write.
You can use an empty array for the lights argument, if you know the object does not require lights to be rendered.
fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Returns whether or not this object should be considered transparent.