浏览代码

Fixed wrong name replace

/main
Felipe Lira 7 年前
当前提交
b9fd7d1c
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      ScriptableRenderPipeline/LightweightPipeline/LWRP/Shaders/LightweightScreenSpaceShadows.shader

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


#include "LWRP/ShaderLibrary/Shadows.hlsl"
#if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED)
TEXTURE2D_ARRAY_FLOAT(_CameraDepth);
TEXTURE2D_ARRAY_FLOAT(_CameraDepthTexture);
TEXTURE2D_FLOAT(_CameraDepth);
TEXTURE2D_FLOAT(_CameraDepthTexture);
SAMPLER(sampler_CameraDepth);
SAMPLER(sampler_CameraDepthTexture);
struct VertexInput
{

UNITY_SETUP_STEREO_EYE_INDEX_POST_VERTEX(i);
#if defined(UNITY_STEREO_INSTANCING_ENABLED) || defined(UNITY_STEREO_MULTIVIEW_ENABLED)
float deviceDepth = SAMPLE_TEXTURE2D_ARRAY(_CameraDepth, sampler_CameraDepth, i.texcoord.xy, unity_StereoEyeIndex).r;
float deviceDepth = SAMPLE_TEXTURE2D_ARRAY(_CameraDepthTexture, sampler_CameraDepthTexture, i.texcoord.xy, unity_StereoEyeIndex).r;
float deviceDepth = SAMPLE_DEPTH_TEXTURE(_CameraDepth, sampler_CameraDepth, i.texcoord.xy);
float deviceDepth = SAMPLE_DEPTH_TEXTURE(_CameraDepthTexture, sampler_CameraDepthTexture, i.texcoord.xy);
#endif
#if UNITY_REVERSED_Z

正在加载...
取消
保存