|
|
|
|
|
|
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); |
|
|
|