浏览代码

Update the comment

/Branch_Batching2
Evgenii Golubev 7 年前
当前提交
2de9e6dd
共有 2 个文件被更改,包括 2 次插入1 次删除
  1. 1
      Assets/ScriptableRenderPipeline/HDRenderPipeline/Lighting/Resources/Deferred.shader
  2. 2
      Assets/ScriptableRenderPipeline/ShaderLibrary/Common.hlsl

1
Assets/ScriptableRenderPipeline/HDRenderPipeline/Lighting/Resources/Deferred.shader


HLSLPROGRAM
#pragma target 4.5
#pragma only_renderers d3d11 ps4 metal // TEMP: until we go further in dev
// #pragma enable_d3d11_debug_symbols
#pragma vertex Vert
#pragma fragment Frag

2
Assets/ScriptableRenderPipeline/ShaderLibrary/Common.hlsl


return positionVS.xyz / positionVS.w;
}
// 'depthOffsetVS' is in the direction opposite to the view vector 'V', e.i. away from the camera.
// 'depthOffsetVS' is in the opposite direction of the view vector 'V', e.i. away from the camera.
void ApplyDepthOffsetPositionInput(float3 V, float depthOffsetVS, float4x4 viewProjMatrix, inout PositionInputs posInput)
{
posInput.depthVS += depthOffsetVS;

正在加载...
取消
保存