浏览代码

Small change to allow override SHADOWS_SCREEN define.

/main
Felipe Lira 7 年前
当前提交
a22a1673
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/Shadows.hlsl

6
ScriptableRenderPipeline/LightweightPipeline/LWRP/ShaderLibrary/Shadows.hlsl


#define MAX_SHADOW_CASCADES 4
#ifndef SHADOWS_SCREEN
#endif
#endif
SCREENSPACE_TEXTURE(_ScreenSpaceShadowMapTexture);

{
#if !defined(_SHADOWS_ENABLED)
return 1.0h;
#elif SHADOWS_SCREEN
#endif
#if SHADOWS_SCREEN
return SampleScreenSpaceShadowMap(shadowCoord);
#else
ShadowSamplingData shadowSamplingData = GetMainLightShadowSamplingData();

正在加载...
取消
保存