浏览代码

elaborate on confusion :)

elaborate on confusion :)
/main
mmikk 8 年前
当前提交
b5fcabc2
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1
      Assets/ScriptableRenderLoop/fptl/LightBoundsDebug.shader

1
Assets/ScriptableRenderLoop/fptl/LightBoundsDebug.shader


float3 viewPos = lightData.center + coord.x * lightData.boxAxisX.xyz + coord.y * lightData.boxAxisY.xyz + coord.z * -lightData.boxAxisZ.xyz;
#if USE_LEFTHAND_CAMERASPACE
// not completely sure why this is necessary since the old stuff pretends camera coordinate system is also left-hand.
// see: Camera::CalculateMatrixShaderProps()
viewPos.z = -viewPos.z;
#endif
return UnityViewToClipPos(viewPos);

正在加载...
取消
保存