summaryrefslogtreecommitdiffhomepage
path: root/examples/models/models_skybox.c
diff options
context:
space:
mode:
authorpeppemas <[email protected]>2020-06-20 17:55:56 +0200
committerGitHub <[email protected]>2020-06-20 17:55:56 +0200
commit0e26d514b87e641277293964291fb98dfa0f4ace (patch)
tree0f78a39f3a0b82608bf5e392314ad8196bbfde4e /examples/models/models_skybox.c
parentc833644a0e1d7031bad9c925994598d97970c0c4 (diff)
downloadraylib-0e26d514b87e641277293964291fb98dfa0f4ace.tar.gz
raylib-0e26d514b87e641277293964291fb98dfa0f4ace.zip
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
Diffstat (limited to 'examples/models/models_skybox.c')
-rw-r--r--examples/models/models_skybox.c1
1 files changed, 1 insertions, 0 deletions
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)