mirror of
https://github.com/raysan5/raylib.git
synced 2026-06-13 21:01:53 +08:00
* Removed Unused Uniforms
uniform vec3 viewUp;
uniform float deltaTime;
* Removed Unused uniforms
uniform vec3 viewUp;
uniform float deltaTime;
* Updated Source
Added - #define PLATFORM_DESKTOP line for desktop users.
This now will correctly find the proper glsl version for the raymarching.fs file.
Removed - Uniforms --> deltaTime and viewUp. Including the code that was setting them.
They were never used and they were triggering a log warning.
Removed - The const from both screenWidth and screenHeight.
Now they can be used to update the shader resolution when screen is resized.
NOTE : This is a quick fix and probably not the best idea.
Added - IsWindowResized() to check if screen is resized.
If window is resized then width, height and shader resolution are updated.
Changed - MIT tag at bottom right color value to BLACK. Now it's easier to see.
* Closer Match to original code
* Removed the PLATFORM_DESKTOP Define
|
||
|---|---|---|
| .. | ||
| resources | ||
| rlights.h | ||
| shaders_basic_lighting.c | ||
| shaders_basic_lighting.png | ||
| shaders_custom_uniform.c | ||
| shaders_custom_uniform.png | ||
| shaders_eratosthenes.c | ||
| shaders_eratosthenes.png | ||
| shaders_fog.c | ||
| shaders_fog.png | ||
| shaders_julia_set.c | ||
| shaders_julia_set.png | ||
| shaders_model_shader.c | ||
| shaders_model_shader.png | ||
| shaders_palette_switch.c | ||
| shaders_palette_switch.png | ||
| shaders_postprocessing.c | ||
| shaders_postprocessing.png | ||
| shaders_raymarching.c | ||
| shaders_raymarching.png | ||
| shaders_shapes_textures.c | ||
| shaders_shapes_textures.png | ||
| shaders_simple_mask.c | ||
| shaders_texture_drawing.c | ||
| shaders_texture_drawing.png | ||
| shaders_texture_waves.c | ||
| shaders_texture_waves.png | ||