raylib/examples/shaders
devdad 6af664c04e
Update shaders_basic_pbr example to work on web (#4516)
* basic pbr example

pbr implementation  includes rpbr.h and few shader files header only file, which self contain everything needed for pbr rendering. Few textures and one model of the car which is under free licence which is included inside basic_pbr.c example file  currently supported shader versions are 120 and 330 , version 100 has small issue which I have to resolve

* Unloading PBRMAterial

I forgot unloading PBRMaterial

* fix small issue with texOffset assigment.

value was Vector4 at first but I found out it would be unclear for and users, so I change to have two Vector2 instead, but forgot to assign offset .

* Changed size of textures and file name changed

Changed size of textures from 2048x2048 to 1024x1024 and file name changed to shaders_basic_pbr.c ,
Added the function PBRModel PBRModelLoadFromMesh(Mesh mesh);
but GenMeshPlane(2, 2.0, 3, 3) culdn't be used because it crash once GenMeshTangents() is used with that plane mesh

* Update to 5.5 version  of eexample and fix to work in web

set GLSL_VERSION            100

set precision highp float;
removed in keyword
fix for loop has to use only constant

* Update shader_basic_pbr example to work on web

changed to GLSL_VERSION            100
update glsl100 shader
set float  precision  to highp
removed keyword  in
change for loop tu use constant value  gives an error

* Update shader_basic_pbr example to work on web

changed to GLSL_VERSION            100
update glsl100 shader
set float  precision  to highp
removed keyword  in
change for loop tu use constant value  gives an error

* removed rpbr.h

removed rpbr.h
2024-11-20 11:25:31 +01:00
..
resources Update shaders_basic_pbr example to work on web (#4516) 2024-11-20 11:25:31 +01:00
rlights.h Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_basic_lighting.c [rlgl] Implement vertex normals for RLGL immediate drawing mode (#3866) 2024-04-23 14:22:29 +02:00
shaders_basic_lighting.png REVIEWED: shaders_basic_lighting #1865 2021-07-16 17:18:32 +02:00
shaders_basic_pbr.c Update shaders_basic_pbr example to work on web (#4516) 2024-11-20 11:25:31 +01:00
shaders_basic_pbr.png REVIEWED: shaders_basic_pbr, added more comments 2023-12-21 21:32:53 +01:00
shaders_custom_uniform.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_custom_uniform.png Reviewed models and examples 2018-06-30 20:02:32 +02:00
shaders_deferred_render.c [Build] Fix warnings when building in VS 2022 (#4095) 2024-06-24 17:47:32 +02:00
shaders_deferred_render.png REVIEWED: Added new examples to VS2022 solution 2023-11-08 17:41:08 +01:00
shaders_eratosthenes.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_eratosthenes.png new example: shaders_eratosthenes 2019-05-16 17:23:31 +02:00
shaders_fog.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_fog.png Update examples screenshots 2021-10-17 21:39:52 +02:00
shaders_hot_reloading.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_hot_reloading.png NEW EXAMPLE: shaders_hot_reloading #1198 2020-08-16 11:18:25 +02:00
shaders_hybrid_render.c Update shaders_hybrid_render.c (#3908) 2024-04-10 10:36:03 +02:00
shaders_hybrid_render.png Added raymarch example and thumbnail for write depth (#2919) 2023-02-11 13:37:50 +01:00
shaders_julia_set.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_julia_set.png Update example! 2019-05-15 17:00:50 +02:00
shaders_lightmap.c update examples missing unloadtexture (#4234) 2024-08-09 09:03:27 +02:00
shaders_lightmap.png REVIEWED: Ligthmap example 2023-05-04 20:35:20 +02:00
shaders_mesh_instancing.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_mesh_instancing.png RENAMED: example: shaders_mesh_instancing 2021-03-31 18:40:04 +02:00
shaders_model_shader.c Use free camera in model shader example (#4428) 2024-10-24 17:49:47 +02:00
shaders_model_shader.png Reviewed models and examples 2018-06-30 20:02:32 +02:00
shaders_multi_sample2d.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_multi_sample2d.png Review contributed examples 2020-11-01 13:39:48 +01:00
shaders_palette_switch.c Update shaders_palette_switch.c 2024-05-15 16:19:53 +02:00
shaders_palette_switch.png examples review 2019-05-17 01:17:40 +02:00
shaders_postprocessing.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_postprocessing.png Reviewed models and examples 2018-06-30 20:02:32 +02:00
shaders_raymarching.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_raymarching.png new example: shaders_raymarching 2018-12-20 09:55:33 +01:00
shaders_shadowmap.c REVIEWED: rlLoadFramebuffer() 2024-02-04 12:13:56 +01:00
shaders_shadowmap.png Add shadowmapping example (#3653) 2023-12-19 10:37:41 +01:00
shaders_shapes_textures.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_shapes_textures.png Replaced some images and updated examples 2017-04-14 13:58:39 +02:00
shaders_simple_mask.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_simple_mask.png Review example and screenshots 2020-01-09 12:58:24 +01:00
shaders_spotlight.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_spotlight.png [example] Review shaders_spotlight to work on GLSL 100 2020-03-25 18:39:21 +01:00
shaders_texture_drawing.c update examples missing unloadtexture (#4234) 2024-08-09 09:03:27 +02:00
shaders_texture_drawing.png new example: shaders_texture_drawing 2019-04-11 16:53:20 +02:00
shaders_texture_outline.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_texture_outline.png Fix examples/shaders/shaders_texture_outline.c help instructions (#3278) 2023-08-30 22:42:01 +02:00
shaders_texture_tiling.c REVIEWED: Added new examples to VS2022 solution 2023-11-08 17:41:08 +01:00
shaders_texture_tiling.png REVIEWED: Added new examples to VS2022 solution 2023-11-08 17:41:08 +01:00
shaders_texture_waves.c Update copyright to 2024 2024-01-02 20:58:12 +01:00
shaders_texture_waves.png new examples: shaders_texture_waves 2019-05-14 00:07:34 +02:00
shaders_vertex_displacement.c update examples missing unloadtexture (#4234) 2024-08-09 09:03:27 +02:00
shaders_vertex_displacement.png [examples] Add new example: shaders_vertex_displacement (#4186) 2024-08-04 21:58:26 +02:00
shaders_write_depth.c REVIEWED: rlLoadFramebuffer() 2024-02-04 12:13:56 +01:00
shaders_write_depth.png Added raymarch example and thumbnail for write depth (#2919) 2023-02-11 13:37:50 +01:00