Class XRBuiltinShaderConstants
Helper static class used by render pipelines to setup stereo constants accessed by builtin shaders.
Inherited Members
Namespace: UnityEngine .Experimental.Rendering
Assembly: Unity.RenderPipelines.Core.Runtime.dll
Syntax
public static class XRBuiltinShaderConstants
Fields
Name | Description |
---|---|
unity_Stereo |
Cached unique id for unity_StereoCameraInvProjection |
unity_Stereo |
Cached unique id for unity_StereoCameraProjection |
unity_Stereo |
Cached unique id for unity_StereoMatrixInvP |
unity_Stereo |
Cached unique id for unity_StereoMatrixInvV |
unity_Stereo |
Cached unique id for unity_StereoMatrixInvVP |
unity_Stereo |
Cached unique id for unity_StereoMatrixP |
unity_Stereo |
Cached unique id for unity_StereoMatrixV |
unity_Stereo |
Cached unique id for unity_StereoMatrixVP |
unity_Stereo |
Cached unique id for unity_StereoWorldSpaceCameraPos |
Methods
Name | Description |
---|---|
Set |
Bind the shader constants used by the C++ builtin renderer via a raster command buffer. |
Set |
Bind the shader constants used by the C++ builtin renderer via a command buffer. |
Update(XRPass, Command |
Update and bind shader constants used by the C++ builtin renderer given the XRPass. For better control of setting up builtin shader constants, see |
Update |
Update the shader constant data used by the C++ builtin renderer. |