浏览代码

Fix comments

/main
Evgenii Golubev 8 年前
当前提交
e8459fe4
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl

4
Assets/ScriptableRenderLoop/HDRenderLoop/Material/Lit/Lit.hlsl


[branch] if (lightData.lightType == GPULIGHTTYPE_SPOT)
{
// Perform a perspective projection of the hemisphere onto the disk.
// Perform the perspective projection of the hemisphere onto the disk.
// Rescale the projective coordinates into the [0, 1]^2 range.
// Rescale the projective coordinates to fit into the [-1, 1]^2 range.
float cotOuterHalfAngle = lightData.size.x;
coord.xy *= cotOuterHalfAngle;

正在加载...
取消
保存