浏览代码

Disabled Bump map scale. Lightweight pipeline doesn't support it.

/RenderPassXR_Sandbox
Felipe Lira 7 年前
当前提交
cad81442
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 9
      ScriptableRenderPipeline/LightweightPipeline/Editor/ShaderGUI/LightweightStandardShaderGUI.cs

9
ScriptableRenderPipeline/LightweightPipeline/Editor/ShaderGUI/LightweightStandardShaderGUI.cs


void DoNormalArea()
{
m_MaterialEditor.TexturePropertySingleLine(Styles.normalMapText, bumpMap, bumpMap.textureValue != null ? bumpScale : null);
if (bumpScale.floatValue != 1 && UnityEditorInternal.InternalEditorUtility.IsMobilePlatform(EditorUserBuildSettings.activeBuildTarget))
if (m_MaterialEditor.HelpBoxWithButton(
new GUIContent("Bump scale is not supported on mobile platforms"),
new GUIContent("Fix Now")))
{
bumpScale.floatValue = 1;
}
m_MaterialEditor.TexturePropertySingleLine(Styles.normalMapText, bumpMap);
}
void DoAlbedoArea(Material material)

正在加载...
取消
保存