浏览代码

Temporary fix to SS Shadows stereo bug.

/projects-TheLastStand
John Parsaie 7 年前
当前提交
e69d1f18
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/LightweightScreenSpaceShadows.shader

6
ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/LightweightScreenSpaceShadows.shader


#include "LWRP/ShaderLibrary/Core.hlsl"
#include "LWRP/ShaderLibrary/Shadows.hlsl"
SCREENSPACE_TEXTURE(_CameraDepthTexture);
//NOTE: For now we defer to the TEXTURE2D macro until stereo macro is fixed on 2018.1
// Currently botches depth precision + breaks shadows otherwise.
TEXTURE2D(_CameraDepthTexture);
//SCREENSPACE_TEXTURE(_CameraDepthTexture);
SAMPLER(sampler_CameraDepthTexture);
struct VertexInput

正在加载...
取消
保存