[rlgl][rmodels] Add instranceTransform shader location index #4538 (#4579)

This commit is contained in:
Michael
2024-12-08 12:48:54 +01:00
committed by GitHub
parent 93a67417b3
commit d2cd2a0152
7 changed files with 18 additions and 8 deletions

View File

@@ -25,7 +25,7 @@ void main()
// Send vertex attributes to fragment shader
fragPosition = vec3(instanceTransform*vec4(vertexPosition, 1.0));
fragTexCoord = vertexTexCoord;
//fragColor = vertexColor;
fragColor = vec4(1.0);
fragNormal = normalize(vec3(matNormal*vec4(vertexNormal, 1.0)));
// Calculate final vertex position, note that we multiply mvp by instanceTransform