mirror of
https://github.com/raysan5/raylib.git
synced 2026-04-06 07:38:25 +00:00
explicitly state TEXTURE_WRAP_REPEAT for web build (#5711)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user