From 0e26d514b87e641277293964291fb98dfa0f4ace Mon Sep 17 00:00:00 2001 From: peppemas Date: Sat, 20 Jun 2020 17:55:56 +0200 Subject: Fix bug #1270 (#1282) * Fix bug #1270 Added an argument to the shader in order to flip the texture * Fix Bug #1270 * Fix bug #1270 --- examples/models/models_skybox.c | 1 + 1 file changed, 1 insertion(+) (limited to 'examples/models/models_skybox.c') diff --git a/examples/models/models_skybox.c b/examples/models/models_skybox.c index c2849032..8d271cc0 100644 --- a/examples/models/models_skybox.c +++ b/examples/models/models_skybox.c @@ -35,6 +35,7 @@ int main(void) skybox.materials[0].shader = LoadShader("resources/shaders/glsl100/skybox.vs", "resources/shaders/glsl100/skybox.fs"); #endif SetShaderValue(skybox.materials[0].shader, GetShaderLocation(skybox.materials[0].shader, "environmentMap"), (int[1]){ MAP_CUBEMAP }, UNIFORM_INT); + SetShaderValue(skybox.materials[0].shader, GetShaderLocation(skybox.materials[0].shader, "vflipped"), (int[1]){ 1 }, UNIFORM_INT); // Load cubemap shader and setup required shader locations #if defined(PLATFORM_DESKTOP) -- cgit v1.2.3