浏览代码

Apply extinction to the scene color when performing alpha-blending

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

3
Assets/ScriptableRenderLoop/HDRenderLoop/Sky/Resources/SkyHDRI.shader


float3 skyColor = ClampToFloat16Max(SAMPLE_TEXTURECUBE_LOD(_Cubemap, sampler_Cubemap, dir, 0).rgb * exp2(_SkyParam.x) * _SkyParam.y);
return float4(skyColor * (skyTexWeight * extinction) + scatter, 0.0);
// Apply extinction to the scene color when performing alpha-blending.
return float4(skyColor * (skyTexWeight * extinction) + scatter, extinction);
}
ENDHLSL

正在加载...
取消
保存