◆ UpdateMeshForCamera()

virtual void UpdateMeshForCamera ( Camera  cam,
ref Mesh  meshToFill,
Matrix4x4  view,
Matrix4x4  projection 
)
protectedvirtual
Parameters
camThis is the camera for which the mesh will be generated.
meshToFillThis mesh, when passed in, stored the existing, previously generated, mesh to be used for the camera. This mesh is then updated in this function, and the changes returned by reference.
viewThe camera's view Matrix is passed in, in case it's needed.
projectionThe camera's projection Matrix is passed in, in case it's needed.

Referenced by PerCameraMeshAndMaterials.CameraCallback(), PerCameraMeshAndMaterials.ForceMeshUpdateInAllCamerasNow(), and PerCameraMeshAndMaterials.Update().

+ Here is the caller graph for this function: