|
|
|
|
|
|
BSDFData bsdfData = ConvertSurfaceDataToBSDFData(surfaceData); |
|
|
|
|
|
|
|
// TODO: we must not access bsdfData here, it break the genericity of the code! |
|
|
|
float4 outColor = EvaluateAtmosphericScattering(posInput, float4(bsdfData.color + builtinData.emissiveColor, builtinData.opacity)); |
|
|
|
float4 outColor = float4(bsdfData.color + builtinData.emissiveColor, builtinData.opacity); |
|
|
|
outColor = EvaluateAtmosphericScattering(posInput, outColor); |
|
|
|
|
|
|
|
#ifdef DEBUG_DISPLAY |
|
|
|
// Same code in ShaderPassForward.shader |
|
|
|