-
Notifications
You must be signed in to change notification settings - Fork 811
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Combine the vertex position attributes (#2753)
This improves terrain rendering performance significantly on Intel Xe-LP graphics under Linux.
- Loading branch information
1 parent
152f499
commit 0939130
Showing
5 changed files
with
13 additions
and
18 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
9 changes: 4 additions & 5 deletions
9
.../java/net/caffeinemc/mods/sodium/client/render/chunk/shader/ChunkShaderBindingPoints.java
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
package net.caffeinemc.mods.sodium.client.render.chunk.shader; | ||
|
||
public class ChunkShaderBindingPoints { | ||
public static final int ATTRIBUTE_POSITION_HI = 0; | ||
public static final int ATTRIBUTE_POSITION_LO = 1; | ||
public static final int ATTRIBUTE_COLOR = 2; | ||
public static final int ATTRIBUTE_TEXTURE = 3; | ||
public static final int ATTRIBUTE_LIGHT_MATERIAL_INDEX = 4; | ||
public static final int ATTRIBUTE_POSITION = 0; | ||
public static final int ATTRIBUTE_COLOR = 1; | ||
public static final int ATTRIBUTE_TEXTURE = 2; | ||
public static final int ATTRIBUTE_LIGHT_MATERIAL_INDEX = 3; | ||
|
||
public static final int FRAG_COLOR = 0; | ||
} |
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