|
|
|
|
|
|
using System; |
|
|
|
using System; |
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.Rendering; |
|
|
|
using UnityEngine.Experimental.Rendering; |
|
|
|
|
|
|
{ |
|
|
|
m_MaterialEditor.ShaderProperty(ior, Styles.refractionIORText); |
|
|
|
|
|
|
|
if (thicknessMap.textureValue == null) |
|
|
|
m_MaterialEditor.ShaderProperty(thickness, Styles.refractionThicknessText); |
|
|
|
m_MaterialEditor.TexturePropertySingleLine(Styles.refractionThicknessMapText, thicknessMap); |
|
|
|
if (mode != Lit.RefractionMode.ThinPlane) |
|
|
|
{ |
|
|
|
if (thicknessMap.textureValue == null) |
|
|
|
m_MaterialEditor.ShaderProperty(thickness, Styles.refractionThicknessText); |
|
|
|
m_MaterialEditor.TexturePropertySingleLine(Styles.refractionThicknessMapText, thicknessMap); |
|
|
|
++EditorGUI.indentLevel; |
|
|
|
m_MaterialEditor.ShaderProperty(thicknessMultiplier, Styles.refractionThicknessMultiplierText); |
|
|
|
--EditorGUI.indentLevel; |
|
|
|
++EditorGUI.indentLevel; |
|
|
|
m_MaterialEditor.ShaderProperty(thicknessMultiplier, Styles.refractionThicknessMultiplierText); |
|
|
|
--EditorGUI.indentLevel; |
|
|
|
} |
|
|
|
|
|
|
|
m_MaterialEditor.ShaderProperty(transmittanceColor, Styles.transmittanceColorText); |
|
|
|
++EditorGUI.indentLevel; |
|
|
|