explicitly state TEXTURE_WRAP_REPEAT for web build (#5711)

This commit is contained in:
Green3492
2026-04-01 21:48:49 +09:00
committed by GitHub
parent 3f7f040c7e
commit 12140cd444

View File

@@ -56,6 +56,7 @@ int main(void)
// Set the texture tiling using a shader
float tiling[2] = { 3.0f, 3.0f };
Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/tiling.fs", GLSL_VERSION));
SetTextureWrap(texture, TEXTURE_WRAP_REPEAT);
SetShaderValue(shader, GetShaderLocation(shader, "tiling"), tiling, SHADER_UNIFORM_VEC2);
model.materials[0].shader = shader;