Browse Source

Fix changes after review

pull/4719/head
Anstro Pleuton 4 weeks ago
parent
commit
ebfb66bf19
7 changed files with 9 additions and 24 deletions
  1. +2
    -2
      examples/Makefile
  2. +2
    -2
      examples/Makefile.Web
  3. +1
    -1
      examples/README.md
  4. +1
    -6
      examples/shaders/resources/shaders/glsl100/rounded_rectangle.fs
  5. +1
    -6
      examples/shaders/resources/shaders/glsl120/rounded_rectangle.fs
  6. +1
    -6
      examples/shaders/resources/shaders/glsl330/rounded_rectangle.fs
  7. +1
    -1
      examples/shaders/shaders_rounded_rectangle.c

+ 2
- 2
examples/Makefile View File

@ -637,6 +637,7 @@ SHADERS = \
shaders/shaders_palette_switch \
shaders/shaders_postprocessing \
shaders/shaders_raymarching \
shaders/shaders_rounded_rectangle \
shaders/shaders_shadowmap \
shaders/shaders_shapes_textures \
shaders/shaders_simple_mask \
@ -646,8 +647,7 @@ SHADERS = \
shaders/shaders_texture_tiling \
shaders/shaders_texture_waves \
shaders/shaders_write_depth \
shaders/shaders_vertex_displacement \
shaders/shaders_rounded_rectangle.c
shaders/shaders_vertex_displacement
AUDIO = \
audio/audio_mixed_processor \

+ 2
- 2
examples/Makefile.Web View File

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

+ 1
- 1
examples/README.md 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) |
| 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) |
| 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

+ 1
- 6
examples/shaders/resources/shaders/glsl100/rounded_rectangle.fs View File

@ -30,12 +30,7 @@ uniform vec4 borderColor;
// 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
// MIT License
float RoundedRectangleSDF(
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
{
vec2 fragFromCenter = fragCoord - center;

+ 1
- 6
examples/shaders/resources/shaders/glsl120/rounded_rectangle.fs View File

@ -28,12 +28,7 @@ uniform vec4 borderColor;
// 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
// MIT License
float RoundedRectangleSDF(
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
{
vec2 fragFromCenter = fragCoord - center;

+ 1
- 6
examples/shaders/resources/shaders/glsl330/rounded_rectangle.fs View File

@ -31,12 +31,7 @@ uniform vec4 borderColor;
// 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
// MIT License
float RoundedRectangleSDF(
vec2 fragCoord,
vec2 center,
vec2 halfSize,
vec4 radius
)
float RoundedRectangleSDF(vec2 fragCoord, vec2 center, vec2 halfSize, vec4 radius)
{
vec2 fragFromCenter = fragCoord - center;

+ 1
- 1
examples/shaders/shaders_rounded_rectangle.c View File

@ -2,7 +2,7 @@
*
* 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
*

Loading…
Cancel
Save