本文整理汇总了C#中Camera.getViewMatrix方法的典型用法代码示例。如果您正苦于以下问题:C# Camera.getViewMatrix方法的具体用法?C# Camera.getViewMatrix怎么用?C# Camera.getViewMatrix使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Camera
的用法示例。
在下文中一共展示了Camera.getViewMatrix方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: render
/// <summary>
/// Renders the sparse voxel octree stored in <paramref name="obj"/>.
///
/// - Viewing frustum culling
/// - Level of detail
/// </summary>
/// <param name="object3D">The object to be rendered.</param>
/// <param name="fromPerspective">The camera this model shall be rendered from.</param>
/// <param name="threadIndex">The index of the calling thread, starting by 0.</param>
public void render(Object3D object3D, Camera fromPerspective, int threadIndex)
{
_depthBuffer.zeroOut(threadIndex);
float dimension = -0.5f * object3D.getData().dimension;
Vector3 octreeMin = new Vector3(dimension, dimension, dimension);
traverse(object3D,
0,
0, 0, 0,
fromPerspective.getProjectionMatrix(),
object3D.getTransformation() *
fromPerspective.getViewMatrix(),
object3D.getTransformation() *
fromPerspective.getViewProjectionMatrix(),
0,
0.0f,
threadIndex,
octreeMin);
}