Fix changes after review

This commit is contained in:
Anstro Pleuton 2025-01-23 01:30:21 -08:00
parent bbd6f8cf24
commit ebfb66bf19
7 changed files with 9 additions and 24 deletions

View File

@ -637,6 +637,7 @@ SHADERS = \
shaders/shaders_palette_switch \ shaders/shaders_palette_switch \
shaders/shaders_postprocessing \ shaders/shaders_postprocessing \
shaders/shaders_raymarching \ shaders/shaders_raymarching \
shaders/shaders_rounded_rectangle \
shaders/shaders_shadowmap \ shaders/shaders_shadowmap \
shaders/shaders_shapes_textures \ shaders/shaders_shapes_textures \
shaders/shaders_simple_mask \ shaders/shaders_simple_mask \
@ -646,8 +647,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
shaders/shaders_rounded_rectangle.c
AUDIO = \ AUDIO = \
audio/audio_mixed_processor \ audio/audio_mixed_processor \

View File

@ -517,6 +517,7 @@ SHADERS = \
shaders/shaders_palette_switch \ shaders/shaders_palette_switch \
shaders/shaders_postprocessing \ shaders/shaders_postprocessing \
shaders/shaders_raymarching \ shaders/shaders_raymarching \
shaders/shaders_rounded_rectangle \
shaders/shaders_shadowmap \ shaders/shaders_shadowmap \
shaders/shaders_shapes_textures \ shaders/shaders_shapes_textures \
shaders/shaders_simple_mask \ shaders/shaders_simple_mask \
@ -526,8 +527,7 @@ SHADERS = \
shaders/shaders_texture_tiling \ shaders/shaders_texture_tiling \
shaders/shaders_texture_waves \ shaders/shaders_texture_waves \
shaders/shaders_vertex_displacement \ shaders/shaders_vertex_displacement \
shaders/shaders_write_depth \ shaders/shaders_write_depth
shaders/shaders_rounded_rectangle
AUDIO = \ AUDIO = \
audio/audio_mixed_processor \ audio/audio_mixed_processor \

View File

@ -199,7 +199,7 @@ Examples using raylib shaders functionality, including shaders loading, paramete
| 138 | [shaders_write_depth](shaders/shaders_write_depth.c) | <img src="shaders/shaders_write_depth.png" alt="shaders_write_depth" width="80"> | ⭐️⭐️☆☆ | 4.2 | 4.2 | [Buğra Alptekin Sarı](https://github.com/BugraAlptekinSari) | | 138 | [shaders_write_depth](shaders/shaders_write_depth.c) | <img src="shaders/shaders_write_depth.png" alt="shaders_write_depth" width="80"> | ⭐️⭐️☆☆ | 4.2 | 4.2 | [Buğra Alptekin Sarı](https://github.com/BugraAlptekinSari) |
| 139 | [shaders_basic_pbr](shaders/shaders_basic_pbr.c) | <img src="shaders/shaders_basic_pbr.png" alt="shaders_basic_pbr" width="80"> | ⭐️⭐️⭐️⭐️ | 5.0 | 5.1-dev | [Afan OLOVCIC](https://github.com/_DevDad) | | 139 | [shaders_basic_pbr](shaders/shaders_basic_pbr.c) | <img src="shaders/shaders_basic_pbr.png" alt="shaders_basic_pbr" width="80"> | ⭐️⭐️⭐️⭐️ | 5.0 | 5.1-dev | [Afan OLOVCIC](https://github.com/_DevDad) |
| 140 | [shaders_lightmap](shaders/shaders_lightmap.c) | <img src="shaders/shaders_lightmap.png" alt="shaders_lightmap" width="80"> | ⭐️⭐️⭐️☆ | 4.5 | 4.5 | [Jussi Viitala](https://github.com/nullstare) | | 140 | [shaders_lightmap](shaders/shaders_lightmap.c) | <img src="shaders/shaders_lightmap.png" alt="shaders_lightmap" width="80"> | ⭐️⭐️⭐️☆ | 4.5 | 4.5 | [Jussi Viitala](https://github.com/nullstare) |
| 141 | [shaders_rounded_rectangle](shaders/shaders_rounded_rectangle.c) | <img src="shaders/shaders_rounded_rectangle.png" alt="shaders_rounded_rectangle" width=80> | ⭐️⭐️☆ | 5.5 | 5.5 | [Anstro Pleuton](https://github.com/anstropleuton) | | 141 | [shaders_rounded_rectangle](shaders/shaders_rounded_rectangle.c) | <img src="shaders/shaders_rounded_rectangle.png" alt="shaders_rounded_rectangle" width=80> | ⭐️⭐️⭐️☆ | 5.5 | 5.5 | [Anstro Pleuton](https://github.com/anstropleuton) |
### category: audio ### category: audio

View File

@ -30,12 +30,7 @@ uniform vec4 borderColor;
// Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm) // Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm)
// And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader // And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader
// MIT License // MIT License
float RoundedRectangleSDF( float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
{ {
vec2 fragFromCenter = fragCoord - center; vec2 fragFromCenter = fragCoord - center;

View File

@ -28,12 +28,7 @@ uniform vec4 borderColor;
// Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm) // Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm)
// And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader // And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader
// MIT License // MIT License
float RoundedRectangleSDF( float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
{ {
vec2 fragFromCenter = fragCoord - center; vec2 fragFromCenter = fragCoord - center;

View File

@ -31,12 +31,7 @@ uniform vec4 borderColor;
// Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm) // Thanks to Iñigo Quilez (https://www.iquilezles.org/www/articles/distfunctions/distfunctions.htm)
// And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader // And thanks to inobelar (https://www.shadertoy.com/view/fsdyzB) for shader
// MIT License // MIT License
float RoundedRectangleSDF( float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
{ {
vec2 fragFromCenter = fragCoord - center; vec2 fragFromCenter = fragCoord - center;

View File

@ -2,7 +2,7 @@
* *
* raylib [shaders] example - Rounded Rectangle * raylib [shaders] example - Rounded Rectangle
* *
* Example complexity rating: [] 2/4 * Example complexity rating: [] 3/4
* *
* Example originally created with raylib 5.5, last time updated with raylib 5.5 * Example originally created with raylib 5.5, last time updated with raylib 5.5
* *