Jeffery Myers
728ccc96bc
Use the vertex color as part of the base shader in GLSL330 ( #4431 )
2024-10-24 23:49:30 +02:00
IcyLeave6109
15f6c47f07
Use free camera in model shader example ( #4428 )
2024-10-24 17:49:47 +02:00
Anthony Carbajal
06aeb21429
update shaders basic pbr ( #4225 )
2024-08-09 09:15:07 +02:00
Anthony Carbajal
070c1c9d63
update examples missing unloadtexture ( #4234 )
2024-08-09 09:03:27 +02:00
Ray
db8b199363
Reviewed shader
2024-08-06 18:32:14 +02:00
CDM15y
b44b759b8f
[examples][shaders_raymarching] Add raymarching.fs for GLSL120 ( #4183 )
...
* Create raymarching.fs
* Update raymarching.fs
* Update raymarching.fs
* Update raymarching.fs
Remove `fragColor` as it is unused
Move the license to the top of the code to improve readability.
2024-08-06 18:30:15 +02:00
Ray
b657001e0d
REVIEWED: shaders_vertex_displacement
2024-08-04 22:06:20 +02:00
Alex ZH
43b0c9410e
[examples] Add new example: shaders_vertex_displacement ( #4186 )
...
* shaders-vertex_displacement init
* implement simulation of wave in ocean
* update examples/README & add some comments
* update comments
* add gl100 shaders
2024-08-04 21:58:26 +02:00
CDM15y
2d94d8d06d
[examples] Fix PBR and Shadowmap example shaders for GLSL 1.20 ( #4167 )
...
* Update pbr.fs
remove presicion mediump float because it is for GLES, and not desktop GL
* Fix shadowmap.fs
also suffers the same problem as pbr.fs
2024-07-20 10:42:55 +02:00
Jeffery Myers
e96bab7ce6
[Build] Fix warnings when building in VS 2022 ( #4095 )
...
* 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-24 17:47:32 +02:00
Karl Zylinski
fffae1a975
Fix fragPosition using wrong matrix in lighting_instancing.vs ( #4056 )
...
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-06-11 20:55:13 +02:00
Ray
479bd84400
Update shaders_palette_switch.c
2024-05-15 16:19:53 +02:00
Ray
34d00d5217
Minor formatting tweaks
2024-05-05 19:46:31 +02:00
bohonghuang
d80febde7d
[rlgl] Implement vertex normals for RLGL immediate drawing mode ( #3866 )
...
* 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-23 14:22:29 +02:00
Yousif
a4819f99cb
Update shaders_hybrid_render.c ( #3908 )
...
Fix typo
2024-04-10 10:36:03 +02:00
Ray
615ee9d177
REVIEWED: rlLoadFramebuffer()
2024-02-04 12:13:56 +01:00
Ray
3f1e59a7cf
Update copyright to 2024
2024-01-02 20:58:12 +01:00
Ray
36df9c5bd6
Update shaders_basic_pbr.c
2023-12-23 18:16:06 +01:00
Ray
e039a221a3
Review formating
2023-12-23 14:07:45 +01:00
Ray
706f74bce0
Update shaders_basic_pbr.c
2023-12-23 13:32:47 +01:00
Ray
bb18018f29
REVIEWED: shaders_basic_pbr, added more comments
2023-12-21 21:32:53 +01:00
Ray
4805dddc18
Update shaders_deferred_render.c
2023-12-21 21:32:00 +01:00
Ray
2fe68a8a12
REVIEWED PR deferred render
2023-12-20 00:51:51 +01:00
Jett
e71153258b
fix for deferred rendering example. ( #3655 )
...
* fix for deferred rendering example.
* missed defines to build.
2023-12-20 00:27:59 +01:00
TheManTheMythTheGameDev
1fc3d9aeb2
Add shadowmapping example ( #3653 )
2023-12-19 10:37:41 +01:00
TheManTheMythTheGameDev
34a9163c52
Remove dependencies from PBR example ( #3649 )
...
* Remove dependencies from PBR example
* Reviewed example PR
---------
Co-authored-by: Ray <raysan5@gmail.com>
2023-12-19 10:36:03 +01:00
devdad
9bdc217987
basic PBR example ( #3621 )
...
* 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-12-15 17:13:44 +01:00
Jussi Viitala
25c6c12150
Added glsl 100 and 120 shaders to lightmap example. ( #3543 )
...
* Added glsl 100 and 120 shaders to lightmap example.
* Fixed lightmap example resource loading on web.
2023-11-18 20:02:33 +01:00
Ray
9c2308bdc3
Examples reviews
2023-11-08 23:28:31 +01:00
Ray
022b464b0b
Remove BOM
2023-11-08 20:37:35 +01:00
Ray
21354119cc
REVIEWED: Makefile.Web, reorganize and add examples
2023-11-08 18:10:29 +01:00
Ray
bbf0c3a46d
REVIEWED: Added new examples to VS2022 solution
2023-11-08 17:41:08 +01:00
Jeffery Myers
6cd37e57a6
Fix warnings in visual studio ( #3512 )
2023-11-06 20:31:07 +01:00
Ray
64d64cc181
REVIEWED: Potential code issues reported by CodeQL #3476
2023-11-01 15:28:18 +01:00
Jeffery Myers
38205d67da
Remove unused structures from lighting fragment shaders ( #3497 )
2023-11-01 12:16:14 +01:00
Ray
df0f7ba61e
Update shaders_deferred_render.c
2023-10-31 20:59:08 +01:00
Ray
aca854ccbf
Update shaders_deferred_render.c
2023-10-31 20:46:10 +01:00
Justin
3645244f9f
examples/shaders: Add an example for deferred shading ( #3496 )
...
* add example for deferred rendering/shading
* adapt convention
---------
Co-authored-by: 27justin <me@justin.cx>
2023-10-31 20:13:12 +01:00
Josh Colclough
975d4154e6
Fix the Julia set shader example ( #3467 )
...
* 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-29 16:41:02 +01:00
Luís Almeida
bc15c19518
Texture Tiling Example - luis605 ( #3353 )
...
* Texture Tiling Example - luis605
* Removed SetTraceLogLevel(LOG_WARNING);
2023-10-01 23:01:59 +02:00
MichaelFiber
18e9784c6d
Remove PLATFORM_RPI ( #3232 )
...
* Remove PLATFORM_RPI
* remove build artifacts
---------
Co-authored-by: MichaelFiber <michael@cubeofb.org>
Co-authored-by: Ray <raysan5@gmail.com>
2023-09-07 17:42:28 +02:00
Asdqwe
3d0d54e070
Fix examples/shaders/shaders_texture_outline.c help instructions ( #3278 )
2023-08-30 22:42:01 +02:00
Ethan Conneely
fc0d132566
Remove e from secondes ( #3270 )
2023-08-28 22:49:45 +02:00
Ray
5573f0f1c7
REVIEWED: Ligthmap example
2023-05-04 20:35:20 +02:00
Jussi Viitala
abcbd9817e
Lightmap example. ( #3043 )
2023-05-04 20:21:35 +02:00
Ray
54ccb18e87
Update write_depth.fs
2023-03-14 13:39:33 +01:00
Jeffery Myers
9eaed07b77
Make the oribital camera work like it used to (it is not just a copy of third person) ( #2926 )
2023-02-15 17:17:00 +01:00
Ray
1cfb484100
ADDED: Example project to VS
2023-02-14 20:31:42 +01:00
Ray
547819766f
ADDED: Example project to VS2022 solution
2023-02-14 20:12:53 +01:00
Ray
ea590c44a9
REVIEWED: Camera redesign PR
2023-02-14 20:00:51 +01:00
Crydsch Cube
73989a4981
WIP rcamera redesign vector ( #2563 )
...
* 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 <raysan5@gmail.com>
2023-02-14 17:47:21 +01:00
BugraAlptekinSari
4ae0a416f4
Added raymarch example and thumbnail for write depth ( #2919 )
2023-02-11 13:37:50 +01:00
Jeffery Myers
81ca2f0bf3
Fix warnings and bad project settings for 4.5 release ( #2894 )
2023-01-27 19:20:42 +01:00
Ray
5ba41e4f7f
REVIEWED: shaders_write_depth example
2023-01-01 18:31:03 +01:00
BugraAlptekinSari
3cfb9a6e83
[example] Writing into the depth buffer ( #2836 )
...
* Add a depth buffer example.
* Fixed a typo
2023-01-01 18:17:28 +01:00
Ray
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
gtrxAC
c48de2d1af
Rename lighting_instanced shader (glsl100) to lighting_instancing ( #2805 )
...
* 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-11-22 18:16:44 +01:00
Ray
0e5cd442be
REVIEWED: Renamed some shaders, fix #2707
2022-09-19 18:29:08 +02:00
Ray
4b76aa09dd
ADDED: lighting.fs for GLSL120 Fix #2651
2022-08-29 14:36:07 +02:00
Ray
5840cd6e50
Remove unneeded comment
2022-08-02 18:12:57 +02:00
Ray
4a9391ae83
REVIEWED: examples descriptions
2022-07-20 01:28:37 +02:00
Ray
c6c71fe73c
REVIEWED: DrawMesh() #2511
...
Disable color vertex attribute if not provided by mesh
2022-07-04 17:47:47 +02:00
Ray
d7a0b46006
Update rlights.h
2022-06-22 00:35:06 +02:00
Ray
77b9ca50e0
Update shaders_basic_lighting.c
2022-06-22 00:35:04 +02:00
Ray
3879decb9f
REVIEWED: example: shaders_mesh_instancing
...
Simplified example
2022-06-21 21:06:03 +02:00
Ray
c1b01c0d5d
Added new comment to examples
2022-06-21 19:53:18 +02:00
Anilforextra
9c66e2f97e
[Examples] Free Allocated Matrices. ( #2425 )
2022-04-04 10:32:46 +02:00
Ray
65f28460a1
Update shaders_raymarching.c
2022-03-22 23:53:32 +01:00
Ray
cb62cb675f
Minor tweaks const
2022-03-22 18:45:41 +01:00
Archie
7b7424802f
Fixes an error in the spelling of "appearance" ( #2276 )
2022-01-10 23:55:21 +01:00
Ray
1fac09d0f4
REVIEWED: example: Compute shader Game-of-life
2021-10-31 12:28:04 +01:00
Astie Teddy
f090f5444c
Add Conway's Game of Life compute shader example. ( #2088 )
...
* Add Conway's Game of Life compute shader example.
* Fix various shaders problems, and tune command buffer size.
* Various coding convention changes.
2021-10-31 11:46:38 +01:00
Jeffery Myers
daeccd03ac
Fix VC warnings for examples ( #2085 )
2021-10-25 10:21:16 +02:00
raysan5
2e151408bb
REVIEWED: models_yaw_pitch_roll
2021-10-19 14:58:04 +02:00
raysan5
fec0ce34c5
Remove trailing spaces
2021-10-19 14:57:12 +02:00
raysan5
628e6e52f3
Update examples screenshots
2021-10-17 21:39:52 +02:00
raysan5
f437f7b405
Reviewed makefile and examples building
2021-10-17 21:00:52 +02:00
raysan5
1b91ac0b0d
REVIEWED: EXAMPLE: shaders_shapes_outline
...
Removed unneeded resources to use raylib ones.
2021-10-12 13:36:31 +02:00
Ray
a04dbe7ffd
Update shaders_shapes_outline.c
2021-08-25 00:41:48 +02:00
Ray
51fbde178f
Update shaders_shapes_outline.c
2021-08-22 01:08:27 +02:00
raysan5
aeb1a0da84
REVERTED: Removed the need for rlMatrix
...
Now rlgl uses the `Matrix` type, just make sure it has been previously defined somewhere... I don't like this approach but it's probably the easier one for the users... still looking for a better solution... maybe using something like
`#define MATRIX_TYPE`, so it can be checked in other modules.
2021-07-30 12:54:54 +02:00
Ray
0fa295c72d
Review formating to follow raylib style conventions
2021-07-23 18:16:08 +02:00
GoldenThumbs
64e786fe28
Add example shaders_shapes_outline.c ( #1883 )
2021-07-18 23:45:13 +02:00
raysan5
56cab4b6a9
REVIEWED: shaders_basic_lighting #1865
...
Simplified the example
2021-07-16 17:18:32 +02:00
raysan5
7d2845a661
Improve assets license information
2021-07-16 14:29:20 +02:00
raysan5
30a3dae8a6
Update texel_checker.png
2021-07-16 14:27:56 +02:00
Ray
716e26aa37
Review BeginTextureMode() usage
...
Moved outside BeginDrawing()/EndDrawing() to illustrate drawing is happening to an external texture (not screen)
2021-06-23 01:25:09 +02:00
Lambert Wang
2545f62565
Added support for additional mouse buttons ( #1753 )
...
* Added support for additional mouse buttons
* Renamed mouse button enum
Co-authored-by: Lambert Wang <lambert.ww@gmail.com>
2021-05-08 18:26:24 +02:00
Jeffery Myers
6c518008a5
Fixes for 64 bit typecast warnings ( #1733 )
2021-04-25 18:50:26 +02:00
Ray
8a55c60e47
Update shaders_mesh_instancing.c
2021-04-23 09:09:34 +02:00
Ray
dcf52c132f
Remove trail spaces
2021-04-22 18:55:24 +02:00
Ray
bdc5686e4c
Update shaders_julia_set.c
2021-04-07 12:25:04 +02:00
raysan5
cdc3754449
ADDED: Support model normal matrix location #1691
2021-03-31 20:44:16 +02:00
raysan5
c772de702b
REVIEWED: DrawMeshInstanced() matrix computations
...
Simplified some parts and reviewed for a correct computation of matrices, considering stereo render view/projection per eye transformations
2021-03-31 19:59:23 +02:00
raysan5
fd3e2fda00
RENAMED: example: shaders_mesh_instancing
...
shaders_rlgl_mesh_instanced -> shaders_mesh_instancing
2021-03-31 18:40:04 +02:00
Ray
f9bab14fdb
REVIEWED: DrawMeshInstanced()
2021-03-26 00:12:29 +01:00
Ray
dd59350485
REVIEW: instancing example formating
2021-03-25 13:41:32 +01:00
Max
7e58838895
added animation and keyboard controls to rlgl mesh Instancing example ( #1678 )
2021-03-25 11:12:59 +01:00
Jeffery Myers
e48b9a6da1
[Examples] Warning fixes (pt 1) ( #1668 )
...
* Fix some warnings in examples.
* cleanups from review
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-03-23 07:51:52 +01:00
Ray
ed4ca6a7f3
WARNING: BREAKING: rlgl module redesign -WIP-
...
- Some rlgl functions have been moved to core
- Some functions have been made internal to rlgl
- rlgl functions prefixed with rl*()
2021-03-21 01:29:31 +01:00