浏览代码

try to compile

/main
sebastienlagarde 7 年前
当前提交
8d855c64
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 4
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl
  2. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassForward.hlsl
  3. 2
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassGBuffer.hlsl

4
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Material/Lit/Lit.hlsl


reflectivity = preFGD.y;
}
void ApplyDebugToSurfaceData(FragInputs input, inout SurfaceData surfaceData)
void ApplyDebugToSurfaceData(float3x3 worldToTangent, inout SurfaceData surfaceData)
{
#ifdef DEBUG_DISPLAY
// Override value if requested by user

if (overrideNormal)
{
float overrideNormalValue = _DebugLightingNormal.yzw;
surfaceData.normalWS = input.worldToTangent[2];
surfaceData.normalWS = worldToTangent[2];
}
#endif
}

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassForward.hlsl


GetSurfaceAndBuiltinData(input, V, posInput, surfaceData, builtinData);
#ifdef DEBUG_DISPLAY
ApplyDebugToSurfaceData(input, surfaceData);
ApplyDebugToSurfaceData(input.worldToTangent, surfaceData);
#endif
BSDFData bsdfData = ConvertSurfaceDataToBSDFData(surfaceData);

2
ScriptableRenderPipeline/HDRenderPipeline/HDRP/ShaderPass/ShaderPassGBuffer.hlsl


GetSurfaceAndBuiltinData(input, V, posInput, surfaceData, builtinData);
#ifdef DEBUG_DISPLAY
ApplyDebugToSurfaceData(input, surfaceData);
ApplyDebugToSurfaceData(input.worldToTangent, surfaceData);
#endif
BSDFData bsdfData = ConvertSurfaceDataToBSDFData(surfaceData);

正在加载...
取消
保存