This commit is contained in:
2026-11-02 19:35:36 -05:00
parent a6103e453d
commit 7b32ad674e
52 changed files with 3285 additions and 1488 deletions
+4 -2
View File
@@ -11,12 +11,14 @@ out vec3 FragPos;
uniform mat4 view;
uniform mat4 proj;
uniform int uvMode = 0; // 0 = stretch, 1 = tile
uniform vec3 tileScale = vec3(1.0);
uniform vec2 uvOffset = vec2(0.0);
void main()
{
FragPos = vec3(modl * vec4(aPos, 1.0));
normal = aNormal;
texCoord = aTex;
texCoord = (uvMode == 1 ? aPos.xy * tileScale.xy : aTex) + uvOffset;
gl_Position = proj* view * modl * vec4(aPos,1.0f);
}