Skip to content

Commit

Permalink
Add support for double-sided materials.
Browse files Browse the repository at this point in the history
It's working well in URP and the built-in pipeline, but HDRP is more
difficult.
  • Loading branch information
kring committed Aug 21, 2024
1 parent b0023d7 commit 26a983d
Show file tree
Hide file tree
Showing 5 changed files with 469 additions and 4 deletions.
1 change: 1 addition & 0 deletions Runtime/ConfigureReinterop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public void ExposeToCPP()
int crc = meshRenderer.material.ComputeCRC();
meshRenderer.material.SetTexture(id, texture2D);
meshRenderer.material.SetFloat(id, 1.0f);
meshRenderer.material.SetFloat(id, (float)CullMode.Off);
meshRenderer.material.SetVector(id, new Vector4());
meshRenderer.material.DisableKeyword("keywordName");
meshRenderer.material.EnableKeyword("keywordName");
Expand Down
Loading

0 comments on commit 26a983d

Please sign in to comment.