summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders
AgeCommit message (Collapse)Author
2024-06-24[Build] Fix warnings when building in VS 2022 (#4095)Jeffery Myers
* Update raylib_api.* by CI * Fix warnings when building examples in MSVC 2022 * fix auto-format that sneaked in there. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-06-11Fix fragPosition using wrong matrix in lighting_instancing.vs (#4056)Karl Zylinski
fragPosition was multiplied by mvp*instanceTransform, but it should only be multiplied by instanceTransform. Compare to lighting.vs, there we only use mvp for gl_Position, but matModel for the fragPosition.
2024-05-15Update shaders_palette_switch.cRay
2024-05-05Minor formatting tweaksRay
2024-04-23[rlgl] Implement vertex normals for RLGL immediate drawing mode (#3866)bohonghuang
* Fix several non-functional `target_compile_definitions` * Avoid hardcoding the default vertex attribute locations * Implement functional `rlNormal3f` * Add normal definitions for `DrawCube` * Update the basic lighting example to use `DrawCube` and `DrawPlane`
2024-04-10Update shaders_hybrid_render.c (#3908)Yousif
Fix typo
2024-02-04REVIEWED: `rlLoadFramebuffer()`Ray
2024-01-02Update copyright to 2024Ray
2023-12-23Update shaders_basic_pbr.cRay
2023-12-23Review formatingRay
2023-12-23Update shaders_basic_pbr.cRay
2023-12-21REVIEWED: `shaders_basic_pbr`, added more commentsRay
2023-12-21Update shaders_deferred_render.cRay
2023-12-20REVIEWED PR deferred renderRay
2023-12-20fix for deferred rendering example. (#3655)Jett
* fix for deferred rendering example. * missed defines to build.
2023-12-19Add shadowmapping example (#3653)TheManTheMythTheGameDev
2023-12-19Remove dependencies from PBR example (#3649)TheManTheMythTheGameDev
* Remove dependencies from PBR example * Reviewed example PR --------- Co-authored-by: Ray <[email protected]>
2023-12-15basic PBR example (#3621)devdad
* 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
2023-11-18Added glsl 100 and 120 shaders to lightmap example. (#3543)Jussi Viitala
* Added glsl 100 and 120 shaders to lightmap example. * Fixed lightmap example resource loading on web.
2023-11-08Examples reviewsRay
2023-11-08Remove BOMRay
2023-11-08REVIEWED: `Makefile.Web`, reorganize and add examplesRay
2023-11-08REVIEWED: Added new examples to VS2022 solutionRay
2023-11-06Fix warnings in visual studio (#3512)Jeffery Myers
2023-11-01REVIEWED: Potential code issues reported by CodeQL #3476Ray
2023-11-01Remove unused structures from lighting fragment shaders (#3497)Jeffery Myers
2023-10-31Update shaders_deferred_render.cRay
2023-10-31Update shaders_deferred_render.cRay
2023-10-31examples/shaders: Add an example for deferred shading (#3496)Justin
* add example for deferred rendering/shading * adapt convention --------- Co-authored-by: 27justin <[email protected]>
2023-10-29Fix the Julia set shader example (#3467)Josh Colclough
* Simplify POI selection * Improve mouse logic * Add colour cycles to the shader to show finer details. Works well with high iteration numbers * Testing things... * Actually fix zoom. Also allow user to reset camera with 'R' * Reset max iterations * Tidying & comments * Revert to original if statement * Make mouse logic more readable * Style conventions * Coding conventions - f postifx on floating points * Missed a few f postfixes
2023-10-01Texture Tiling Example - luis605 (#3353)Luís Almeida
* Texture Tiling Example - luis605 * Removed SetTraceLogLevel(LOG_WARNING);
2023-09-07Remove PLATFORM_RPI (#3232)MichaelFiber
* Remove PLATFORM_RPI * remove build artifacts --------- Co-authored-by: MichaelFiber <[email protected]> Co-authored-by: Ray <[email protected]>
2023-08-30Fix examples/shaders/shaders_texture_outline.c help instructions (#3278)Asdqwe
2023-08-28Remove e from secondes (#3270)Ethan Conneely
2023-05-04REVIEWED: Ligthmap exampleRay
2023-05-04Lightmap example. (#3043)Jussi Viitala
2023-03-14Update write_depth.fsRay
2023-02-15Make the oribital camera work like it used to (it is not just a copy of ↵Jeffery Myers
third person) (#2926)
2023-02-14ADDED: Example project to VSRay
2023-02-14ADDED: Example project to VS2022 solutionRay
2023-02-14REVIEWED: Camera redesign PRRay
2023-02-14WIP rcamera redesign vector (#2563)Crydsch Cube
* core functionality CAMERA_FREE * fix example * add remaining camera modes * add view bobbing * view bobbing * catch curser in SetCameraMode * adjust examples * fix compilation on linux * fix example text_draw_3d * actually fix text_draw_3d * Updated camera API * Improve Vector3RotateByAxisAngle() function * remove camera.mode dependency from low-level functions * remove camera.mode from struct * fixes after rebase * adjust examples for new UpdateCamera function * adjust example models_loading_m3d --------- Co-authored-by: Ray <[email protected]>
2023-02-11Added raymarch example and thumbnail for write depth (#2919)BugraAlptekinSari
2023-01-27Fix warnings and bad project settings for 4.5 release (#2894)Jeffery Myers
2023-01-01REVIEWED: `shaders_write_depth` exampleRay
2023-01-01[example] Writing into the depth buffer (#2836)BugraAlptekinSari
* Add a depth buffer example. * Fixed a typo
2023-01-01Update year to 2023Ray
2022-11-22Rename lighting_instanced shader (glsl100) to lighting_instancing (#2805)gtrxAC
* JSON parser: Use array for function params (#2255) * Parser: follow C convention of type before name * Update file names in build scripts * Rename lighting_instanced shader to instancing
2022-09-19REVIEWED: Renamed some shaders, fix #2707Ray
2022-08-29ADDED: `lighting.fs` for GLSL120 Fix #2651Ray