summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders/shaders_texture_waves.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-04-22 18:55:24 +0200
committerRay <[email protected]>2021-04-22 18:55:24 +0200
commitdcf52c132fb0ca28f37dae9d957155e2541df812 (patch)
treeb6c263e59daba00fc33badd0a45fa6756d5df14c /examples/shaders/shaders_texture_waves.c
parentf92ee46d86b5a0cfb05c10b0c31fb966a4784b44 (diff)
downloadraylib-dcf52c132fb0ca28f37dae9d957155e2541df812.tar.gz
raylib-dcf52c132fb0ca28f37dae9d957155e2541df812.zip
Remove trail spaces
Diffstat (limited to 'examples/shaders/shaders_texture_waves.c')
-rw-r--r--examples/shaders/shaders_texture_waves.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/shaders/shaders_texture_waves.c b/examples/shaders/shaders_texture_waves.c
index 23c50281..7d396fd1 100644
--- a/examples/shaders/shaders_texture_waves.c
+++ b/examples/shaders/shaders_texture_waves.c
@@ -34,10 +34,10 @@ int main(void)
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "raylib [shaders] example - texture waves");
-
+
// Load texture texture to apply shaders
Texture2D texture = LoadTexture("resources/space.png");
-
+
// Load shader and setup location points and values
Shader shader = LoadShader(0, TextFormat("resources/shaders/glsl%i/wave.fs", GLSL_VERSION));
@@ -77,7 +77,7 @@ int main(void)
// Update
//----------------------------------------------------------------------------------
seconds += GetFrameTime();
-
+
SetShaderValue(shader, secondsLoc, &seconds, SHADER_UNIFORM_FLOAT);
//----------------------------------------------------------------------------------
@@ -88,10 +88,10 @@ int main(void)
ClearBackground(RAYWHITE);
BeginShaderMode(shader);
-
+
DrawTexture(texture, 0, 0, WHITE);
DrawTexture(texture, texture.width, 0, WHITE);
-
+
EndShaderMode();
EndDrawing();
@@ -102,7 +102,7 @@ int main(void)
//--------------------------------------------------------------------------------------
UnloadShader(shader); // Unload shader
UnloadTexture(texture); // Unload texture
-
+
CloseWindow(); // Close window and OpenGL context
//--------------------------------------------------------------------------------------