REVIEWED: shaders_vertex_displacement
This commit is contained in:
parent
b2d48ff172
commit
b657001e0d
2 changed files with 3 additions and 7 deletions
|
@ -613,7 +613,7 @@ SHADERS = \
|
||||||
shaders/shaders_texture_tiling \
|
shaders/shaders_texture_tiling \
|
||||||
shaders/shaders_texture_waves \
|
shaders/shaders_texture_waves \
|
||||||
shaders/shaders_write_depth \
|
shaders/shaders_write_depth \
|
||||||
shaders/shaders_vertex_displacement
|
shaders/shaders_vertex_displacement
|
||||||
|
|
||||||
AUDIO = \
|
AUDIO = \
|
||||||
audio/audio_mixed_processor \
|
audio/audio_mixed_processor \
|
||||||
|
|
|
@ -14,10 +14,8 @@
|
||||||
********************************************************************************************/
|
********************************************************************************************/
|
||||||
|
|
||||||
#include "raylib.h"
|
#include "raylib.h"
|
||||||
#include "raymath.h"
|
|
||||||
#include "rlgl.h"
|
|
||||||
|
|
||||||
#include <printf.h>
|
#include "rlgl.h"
|
||||||
|
|
||||||
#define RLIGHTS_IMPLEMENTATION
|
#define RLIGHTS_IMPLEMENTATION
|
||||||
#include "rlights.h"
|
#include "rlights.h"
|
||||||
|
@ -51,8 +49,7 @@ int main(void)
|
||||||
// Load vertex and fragment shaders
|
// Load vertex and fragment shaders
|
||||||
Shader shader = LoadShader(
|
Shader shader = LoadShader(
|
||||||
TextFormat("resources/shaders/glsl%i/vertex_displacement.vs", GLSL_VERSION),
|
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
|
// Load perlin noise texture
|
||||||
Image perlinNoiseImage = GenImagePerlinNoise(512, 512, 0, 0, 1.0f);
|
Image perlinNoiseImage = GenImagePerlinNoise(512, 512, 0, 0, 1.0f);
|
||||||
|
@ -111,7 +108,6 @@ int main(void)
|
||||||
|
|
||||||
// De-Initialization
|
// De-Initialization
|
||||||
//--------------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------------
|
||||||
|
|
||||||
UnloadShader(shader);
|
UnloadShader(shader);
|
||||||
UnloadModel(planeModel);
|
UnloadModel(planeModel);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue