浏览代码

Make sure the sky fully overwrites unoccluded parts of the frame

/main
Evgenii Golubev 8 年前
当前提交
3f3f4548
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 4
      Assets/ScriptableRenderLoop/HDRenderLoop/Sky/ProceduralSky/Resources/SkyProcedural.shader

4
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/ProceduralSky/Resources/SkyProcedural.shader


float3 atmosphereColor = skyColor * (skyTexWeight * extinction) + scatter;
// Apply the atmosphere on top of the scene using premultiplied alpha blending.
return float4(ClampToFloat16Max(atmosphereColor), extinction);
float opacity = (skyTexWeight == 1.0) ? 1.0 : extinction;
return float4(ClampToFloat16Max(atmosphereColor), opacity);
}
ENDHLSL

正在加载...
取消
保存