浏览代码

Transparent mode now working.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
d43f1597
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 2
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightPipelineCore.cginc
  2. 3
      ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShader.shader

2
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightPipelineCore.cginc


half4 OutputColor(half3 color, half alpha)
{
#ifdef _ALPHABLEND_ON
#if defined(_ALPHABLEND_ON) || defined(_ALPHAPREMULTIPLY_ON)
return LIGHTWEIGHT_LINEAR_TO_GAMMA(half4(color, alpha));
#else
return half4(LIGHTWEIGHT_LINEAR_TO_GAMMA(color), 1);

3
ScriptableRenderPipeline/LightweightPipeline/Shaders/LightweightStandardShader.shader


#else
half3 diffColor = SpecularSetup(uv, albedo, alpha, specColor, smoothness, oneMinusReflectivity);
#endif
diffColor = PreMultiplyAlpha(diffColor, alpha, oneMinusReflectivity, /*out*/ alpha);
// Roughness is (1.0 - smoothness)²
half perceptualRoughness = 1.0h - smoothness;

正在加载...
取消
保存