浏览代码

Fix decal flags calculation in UI

/main
Paul Melamed 6 年前
当前提交
d366f76e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Decal/DecalUI.cs

4
com.unity.render-pipelines.high-definition/HDRP/Editor/Material/Decal/DecalUI.cs


EditorGUIUtility.labelWidth = 0f;
float normalBlendSrcValue = normalBlendSrc.floatValue;
float maskBlendSrcValue = maskBlendSrc.floatValue;
//float maskBlendModeValue = maskBlendMode.floatValue;
Decal.MaskBlendFlags maskBlendFlags = 0; //(Decal.MaskBlendFlags) maskBlendModeValue;
Decal.MaskBlendFlags maskBlendFlags = (Decal.MaskBlendFlags)maskBlendMode.floatValue;
HDRenderPipelineAsset hdrp = GraphicsSettings.renderPipelineAsset as HDRenderPipelineAsset;
bool perChannelMask = hdrp.renderPipelineSettings.decalSettings.perChannelMask;

正在加载...
取消
保存