What's New in the Rendering and Lighting API

Shading

Query for camera near and far clipping planes from shaders

You can now access and query for camera near and far planes from shaders using uniform or semantic parameters. For effects generated from a file or buffer, new parameters with semantics have been added to the MUniformParameter class DataSemantic enumerators. These uniform parameters provide access to near and far clipping planes in full effects created by the MPxShaderOverride class.

  • kSemanticNearClipPlane
  • kSemanticFarClipPlane

For shader fragments, a parameter with semantics nearClipPlane and farClipPlane are automatically updated by Viewport 2.0.

Drawing

General