Skip to content

Commit e71633a

Browse files
Set textureWrapRepeat to avoid issue on web version (#5684)
1 parent ca1baca commit e71633a

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

examples/models/models_yaw_pitch_roll.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ int main(void)
4141

4242
Model model = LoadModel("resources/models/obj/plane.obj"); // Load model
4343
Texture2D texture = LoadTexture("resources/models/obj/plane_diffuse.png"); // Load model texture
44+
45+
SetTextureWrap(texture, TEXTURE_WRAP_REPEAT); // Force Repeat to avoid issue on Web version
46+
4447
model.materials[0].maps[MATERIAL_MAP_DIFFUSE].texture = texture; // Set map diffuse texture
4548

4649
float pitch = 0.0f;

0 commit comments

Comments
 (0)