浏览代码

Fix for shader to work properly in HDRP/URP

/keypoint_self_occlusion
Steve Borkman 3 年前
当前提交
b1cae15e
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 11
      com.unity.perception/Editor/GroundTruth/ShaderPreprocessor.cs

11
com.unity.perception/Editor/GroundTruth/ShaderPreprocessor.cs


return;
#if HDRP_PRESENT || URP_PRESENT
ShaderKeyword keyword = new ShaderKeyword(shader, "HDRP_ENABLED");
var keyword = new ShaderKeyword(shader, "HDRP_ENABLED");
ShaderKeyword keyword = new ShaderKeyword(shader, "HDRP_DISABLED");
var keyword = new ShaderKeyword(shader, "HDRP_DISABLED");
for (int i = data.Count - 1; i >= 0; --i)
for (var i = data.Count - 1; i >= 0; --i)
data.RemoveAt(i);
data[i].shaderKeywordSet.Disable(keyword);
}
#endif
}
正在加载...
取消
保存