Skip to content

Commit

Permalink
Don't generate unnecessary uniforms and texture reads in BaseMaterial3D
Browse files Browse the repository at this point in the history
This improves performance by reducing the number of texture reads
performed per material, especially when triplanar is enabled.

This also makes the generated shader code significantly shorter
depending on the features used.
  • Loading branch information
Calinou committed Dec 11, 2024
1 parent a40fc23 commit 1fae170
Showing 1 changed file with 321 additions and 199 deletions.
Loading

0 comments on commit 1fae170

Please sign in to comment.