浏览代码

One more attempt at fixing the keypoint shader

/keypoint_self_occlusion
Jon Hogins 3 年前
当前提交
59d7699f
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 8
      com.unity.perception/Editor/GroundTruth/ShaderPreprocessor.cs

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


if (!shadersToPreprocess.Contains(shader.name))
return;
var hdrpKeyword = new ShaderKeyword(shader, "HDRP_ENABLED");
var keyword = new ShaderKeyword(shader, "HDRP_ENABLED");
bool isHdrp = true;
var keyword = new ShaderKeyword(shader, "HDRP_DISABLED");
bool isHdrp = false;
if (data[i].shaderKeywordSet.IsEnabled(keyword))
if (data[i].shaderKeywordSet.IsEnabled(hdrpKeyword) == isHdrp)
continue;
data.RemoveAt(i);

正在加载...
取消
保存