浏览代码

use the correct matrix for looking up textures

/classicDeferredMobile
Filip Iliescu 8 年前
当前提交
b3fd7688
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 2
      Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/LightingTemplate.hlsl

2
Assets/ScriptableRenderPipeline/MobileRenderPipeline/ClassicDeferred/LightingTemplate.hlsl


atten *= GetPunctualShadowAttenuation(shadowContext, wpos, 0.0.xxx, _LightIndexForShadowMatrixArray, lightDir);
#if defined (POINT_COOKIE)
colorCookie = texCUBElod(_LightTexture0, float4(mul(unity_WorldToLight, float4(wpos,1)).xyz, 0));
colorCookie = texCUBElod(_LightTexture0, float4(mul(_LightMatrix0, float4(wpos,1)).xyz, 0));
atten *= colorCookie.w;
#endif //POINT_COOKIE
#else

正在加载...
取消
保存