浏览代码

Disable camera-relative rendering by default

/RenderPassXR_Sandbox
Evgenii Golubev 7 年前
当前提交
c5b0bde5
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 2
      Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs
  2. 2
      Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs.hlsl

2
Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs


VelocityInGBuffer = 0, // Change to 1 to enable the feature, then regenerate hlsl headers.
// TODO: not working yet, waiting for UINT16 RT format support
PackGBufferInU16 = 0,
CameraRelativeRendering = 1 // Rendering sets the origin of the world to the position of the primary (scene view) camera
CameraRelativeRendering = 0 // Rendering sets the origin of the world to the position of the primary (scene view) camera
};
// Note: #define can't be use in include file in C# so we chose this way to configure both C# and hlsl

2
Assets/ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs.hlsl


//
#define SHADEROPTIONS_VELOCITY_IN_GBUFFER (0)
#define SHADEROPTIONS_PACK_GBUFFER_IN_U16 (0)
#define SHADEROPTIONS_CAMERA_RELATIVE_RENDERING (1)
#define SHADEROPTIONS_CAMERA_RELATIVE_RENDERING (0)
#endif
正在加载...
取消
保存