Skip to content

Format

typescript
Graphics.DrawMeshNow(world, mesh, mtl)

class: Graphics

Description

Immediately draws a mesh.

This function immediately draws the given mesh. The currently set shader and material will be used.

The mesh will be drawn only once, it will not be lit per pixel, and it will not cast or receive real-time shadows. If you want full integration with lighting and shadows, use Graphics.DrawMesh instead.

Parameters

param_nametypedescription
worldMatrix4x4World coordinate matrix
meshMeshThe mesh to be drawn
mtlMaterialThe texture to be used when drawing the mesh

Return

typedescription
void

Code Example