Skip to content

Commit

Permalink
Disable forced keywords change
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail-dcl committed Nov 3, 2023
1 parent e404493 commit 135b2a6
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,8 @@ public override Material GenerateMaterial(int materialIndex, GLTFast.Schema.Mate

if (useSceneShader)
{
foreach (var keywordName in mat.shaderKeywords)
{
mat.DisableKeyword(keywordName);
}

// Enable Forward+ and soft shadows
mat.EnableKeyword("_FORWARD_PLUS");
mat.EnableKeyword("_NORMALMAP");
mat.EnableKeyword("_EMISSION");
mat.EnableKeyword("_ADDITIONAL_LIGHT_SHADOWS");
mat.EnableKeyword("_MAIN_LIGHT_SHADOWS_CASCADE");
mat.EnableKeyword("_SHADOWS_SOFT");
Expand Down

0 comments on commit 135b2a6

Please sign in to comment.