From b657001e0d7119532d01de27ad69d962ad736119 Mon Sep 17 00:00:00 2001 From: Ray Date: Sun, 4 Aug 2024 22:06:20 +0200 Subject: [PATCH] REVIEWED: shaders_vertex_displacement --- examples/Makefile | 2 +- examples/shaders/shaders_vertex_displacement.c | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/examples/Makefile b/examples/Makefile index ee540606..93b05a0c 100644 --- a/examples/Makefile +++ b/examples/Makefile @@ -613,7 +613,7 @@ SHADERS = \ shaders/shaders_texture_tiling \ shaders/shaders_texture_waves \ shaders/shaders_write_depth \ - shaders/shaders_vertex_displacement + shaders/shaders_vertex_displacement AUDIO = \ audio/audio_mixed_processor \ diff --git a/examples/shaders/shaders_vertex_displacement.c b/examples/shaders/shaders_vertex_displacement.c index edce07ce..c211d349 100644 --- a/examples/shaders/shaders_vertex_displacement.c +++ b/examples/shaders/shaders_vertex_displacement.c @@ -14,10 +14,8 @@ ********************************************************************************************/ #include "raylib.h" -#include "raymath.h" -#include "rlgl.h" -#include +#include "rlgl.h" #define RLIGHTS_IMPLEMENTATION #include "rlights.h" @@ -51,8 +49,7 @@ int main(void) // Load vertex and fragment shaders Shader shader = LoadShader( TextFormat("resources/shaders/glsl%i/vertex_displacement.vs", GLSL_VERSION), - TextFormat("resources/shaders/glsl%i/vertex_displacement.fs", GLSL_VERSION) - ); + TextFormat("resources/shaders/glsl%i/vertex_displacement.fs", GLSL_VERSION)); // Load perlin noise texture Image perlinNoiseImage = GenImagePerlinNoise(512, 512, 0, 0, 1.0f); @@ -111,7 +108,6 @@ int main(void) // De-Initialization //-------------------------------------------------------------------------------------- - UnloadShader(shader); UnloadModel(planeModel);