-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MCShader: sort attributes according to VertexFormat
* MCShader: sort attributes according to VertexFormat This is necessary in order for shaders to work correctly on 1.17+. Previously, only simple shaders were tested which happened to match the order of replaceAttribute calls, so this issue went unnoticed. * MCShader: use uc_Position instead of uc_Vertex This is consistent with Minecraft's naming and allows us to derive the Minecraft name by removing the uc_ prefix. * MCShader: sort attributes in json based on VertexFormat While MC currently ignores the attributes json field, it's possible it will be used in the future, so we should make sure the order is correct. GitHub: #54
- Loading branch information
1 parent
f20ea7d
commit 7d0c9f4
Showing
4 changed files
with
53 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters