Skip to content

Commit

Permalink
Corrected BIG mistake in the colorProgram_Instanced shader program
Browse files Browse the repository at this point in the history
  • Loading branch information
Naviary2 committed Dec 25, 2024
1 parent 8f2d645 commit 04f3e8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/client/scripts/esm/game/rendering/shaders.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ function createColorProgram_Instanced() {
void main() {
// Add the instance offset to the vertex position
vec4 transformedVertexPosition = aVertexPosition + aInstanceOffset;
vec4 transformedVertexPosition = vec4(aVertexPosition.xyz + aInstanceOffset.xyz, 1.0);
gl_Position = uProjMatrix * uViewMatrix * uWorldMatrix * transformedVertexPosition;
vColor = aVertexColor;
Expand Down Expand Up @@ -224,7 +224,7 @@ function createTextureProgram() {
out vec4 fragColor;
void main(void) {
fragColor = texture(uSampler, vTextureCoord, -0.5); // Apply a mipmap level bias so as to make the textures sharper. (For devices only compatible with WebGL1, their textures will be a little more blurred)
fragColor = texture(uSampler, vTextureCoord, -0.5); // Apply a mipmap level bias so as to make the textures sharper.
}
`;

Expand Down

0 comments on commit 04f3e8b

Please sign in to comment.