浏览代码

HDRenderPipeline: Update conversoin script that doesn work (yet)

/main
sebastienlagarde 7 年前
当前提交
ac0f369d
共有 1 个文件被更改,包括 17 次插入14 次删除
  1. 31
      ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/HDRenderPipelineMenuItems.cs

31
ScriptableRenderPipeline/HDRenderPipeline/HDRP/Editor/HDRenderPipelineMenuItems.cs


if (materialID != 0.0)
continue;
CheckOutFile(VSCEnabled, mat);
if (mat.HasProperty("_SSSAndTransmissionType"))
{
CheckOutFile(VSCEnabled, mat);
float materialSSSAndTransmissionID = mat.GetInt("_SSSAndTransmissionType");
int materialSSSAndTransmissionID = mat.GetInt("_SSSAndTransmissionType");
// Both;, SSS only, Transmission only
if (materialSSSAndTransmissionID == 2.0)
{
mat.SetInt("_MaterialID", 5);
}
else
{
if (materialSSSAndTransmissionID == 0.0)
mat.SetFloat("_TransmissionEnable", 1.0f);
// Both;, SSS only, Transmission only
if (materialSSSAndTransmissionID == 2.0)
{
mat.SetInt("_MaterialID", 5);
}
mat.SetFloat("_TransmissionEnable", 0.0f);
{
if (materialSSSAndTransmissionID == 0.0)
mat.SetFloat("_TransmissionEnable", 1.0f);
else
mat.SetFloat("_TransmissionEnable", 0.0f);
}
EditorUtility.SetDirty(mat);
EditorUtility.SetDirty(mat);
}
}
}

正在加载...
取消
保存