浏览代码

Disable volumetrics

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

2
ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs


public enum ShaderOptions
{
CameraRelativeRendering = 1, // Rendering sets the origin of the world to the position of the primary (scene view) camera
VolumetricLightingPreset = 1 // 0 = disabled, 1 = normal, 2 = ultra
VolumetricLightingPreset = 0 // 0 = disabled, 1 = normal, 2 = ultra
};
// Note: #define can't be use in include file in C# so we chose this way to configure both C# and hlsl

2
ScriptableRenderPipeline/HDRenderPipeline/ShaderConfig.cs.hlsl


// UnityEngine.Experimental.Rendering.HDPipeline.ShaderOptions: static fields
//
#define SHADEROPTIONS_CAMERA_RELATIVE_RENDERING (1)
#define SHADEROPTIONS_VOLUMETRIC_LIGHTING_PRESET (1)
#define SHADEROPTIONS_VOLUMETRIC_LIGHTING_PRESET (0)
#endif
正在加载...
取消
保存