浏览代码

HDRenderPipeline: Remove multiplicative mode 2

/main
Sebastien Lagarde 7 年前
当前提交
54642339
共有 1 个文件被更改,包括 0 次插入7 次删除
  1. 7
      ScriptableRenderPipeline/HDRenderPipeline/Material/Unlit/Editor/BaseUnlitUI.cs

7
ScriptableRenderPipeline/HDRenderPipeline/Material/Unlit/Editor/BaseUnlitUI.cs


material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.One);
break;
// Multiplicative
// color: src * dst
case BlendMode.Multiplicative:
material.SetInt("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.DstColor);
material.SetInt("_DstBlend", (int)UnityEngine.Rendering.BlendMode.Zero);
break;
// PremultipliedAlpha
// color: src * src_a + dst * (1 - src_a)
// src is supposed to have been multiplied by alpha in the texture on artists side.

正在加载...
取消
保存