Skip to content

Commit

Permalink
Improve shading mode bool statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Niko Wissmann committed Dec 16, 2021
1 parent 64b291f commit 5e727ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/Material/ShaderGraphMaterialGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ protected MetallicShaderFeatures GetMetallicShaderFeatures(Schema.Material gltfM
if (gltfMaterial.doubleSided) feature |= MetallicShaderFeatures.DoubleSided;

if (!sm.HasValue) {
sm = gltfMaterial.alphaModeEnum != AlphaMode.OPAQUE ? gltfMaterial.alphaModeEnum == AlphaMode.BLEND ? ShaderMode.Blend : ShaderMode.Opaque : ShaderMode.Opaque;
sm = gltfMaterial.alphaModeEnum == AlphaMode.BLEND ? ShaderMode.Blend : ShaderMode.Opaque;
}

feature |= (MetallicShaderFeatures)sm;
Expand Down

0 comments on commit 5e727ca

Please sign in to comment.