Model.Draw

void Draw(Matrix transform, Color colorLinear, RenderLayer layer)

Adds this Model to the render queue for this frame! If the Hierarchy has a transform on it, that transform is combined with the Matrix provided here.

   
Matrix transform A Matrix that will transform the Model from Model Space into the current Hierarchy Space.
Color colorLinear A per-instance linear space color value to pass into the shader! Normally this gets used like a material tint. If you’re adventurous and don’t need per-instance colors, this is a great spot to pack in extra per-instance data for the shader!
RenderLayer layer All visuals are rendered using a layer bit-flag. By default, all layers are rendered, but this can be useful for filtering out objects for different rendering purposes! For example: rendering a mesh over the user’s head from a 3rd person perspective, but filtering it out from the 1st person perspective.
void Draw(Material materialOverride, Matrix transform, Color colorLinear, RenderLayer layer)

Adds this Model to the render queue for this frame! If the Hierarchy has a transform on it, that transform is combined with the Matrix provided here.

   
Matrix transform A Matrix that will transform the Model from Model Space into the current Hierarchy Space.
Color colorLinear A per-instance linear space color value to pass into the shader! Normally this gets used like a material tint. If you’re adventurous and don’t need per-instance colors, this is a great spot to pack in extra per-instance data for the shader!
RenderLayer layer All visuals are rendered using a layer bit-flag. By default, all layers are rendered, but this can be useful for filtering out objects for different rendering purposes! For example: rendering a mesh over the user’s head from a 3rd person perspective, but filtering it out from the 1st person perspective.
Material materialOverride Allows you to override the Material of all nodes on this Model with your own Material.
void Draw(Matrix transform)

Adds this Model to the render queue for this frame! If the Hierarchy has a transform on it, that transform is combined with the Matrix provided here.

   
Matrix transform A Matrix that will transform the Model from Model Space into the current Hierarchy Space.




Found an issue with these docs, or have some additional questions? Create an Issue on Github!