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
Ray
4fba09794f
Example considering HighDPI on RenderTexture draw #1086
2021-03-20 13:34:06 +01:00
Ray
be8d5a7ae2
RENAMED: camera.type -> camera.projection
2021-03-19 20:14:14 +01:00
Ray
bae423be41
Create reload.fs
2021-03-17 19:18:31 +01:00
Ray
ff6d5c8ddb
REVIEWED: shaders_multi_sample2d
2021-03-17 19:03:51 +01:00
Ray
01e28263be
WARNING: VERY BREAKING CHANGE: Renamed some enum values for consistency
...
Some enums values have been renamed to be more consistent and also provide a more detailed description:
- ShaderLocationIndex: LOC_VERTEX_POSITION -> SHADER_SHADER_LOC_VERTEX_POSITION
- ShaderUniformDataType: UNIFORM_VEC2 -> SHADER_UNIFORM_VEC2
- MaterialMapType: MAP_ALBEDO -> MATERIAL_MAP_ALBEDO
- PixelFormat: UNCOMPRESSED_GRAYSCALE -> PIXELFORMAT_UNCOMPRESSED_GRAYSCALE
2021-03-14 11:05:51 +01:00
Ray
fe3256be9f
Renamed some functions to use latest raylib version
2021-03-12 18:00:36 +01:00
Jeffery Myers
2884b88101
out is a keyword in shaders and can't be used as a variable name. ( #1558 )
...
Co-authored-by: Jeffery Myers <JefMyers@blizzard.com>
2021-01-31 21:37:27 +01:00
raysan5
65b299c6cf
Replace tabs by 4 spaces
2021-01-25 17:53:04 +01:00
raysan5
22b179e66c
Review rlights helper module #1489
2020-12-29 22:01:48 +01:00
raysan5
b68e522ffc
Updated several files while porting examples to web
2020-12-24 13:51:24 +01:00
raysan5
d9a9bacb48
Review formatting
2020-12-23 20:30:00 +01:00
Ray
7e9028ae08
Update user name
2020-12-03 20:17:50 +01:00
Ray
8e15dae5ed
Review contributed examples
2020-11-01 13:39:48 +01:00
Ray
8327857488
Update shaders_multi_sample2d.c
2020-10-31 11:49:19 +01:00
Ray
fbc51e822b
REDESIGNED: Multiple sampler2D usage on batch system
...
New implementation allow enabling additional textures per batch only.
2020-10-31 11:48:44 +01:00
Ray
8a16348131
Support multiple sample2D on batch drawing #1333
2020-10-29 20:22:52 +01:00
Ray
37e2d993e7
Updated assets
...
Reduce size and better license CC0
2020-10-29 18:41:05 +01:00
seanpringle
4bcddc3b15
[wip] rlDrawMeshInstanced ( #1318 )
...
* rlDrawMeshInstanced first attempt
* rlDrawMeshInstanced OpenGL 3.3 and VAO checks
* rlDrawMeshInstanced GetShaderAttribLocation; comments
* example instanced shader
* RLGL_STANDALONE RAYMATH_STANDALONE Vector4
* apply suggested naming changes; add instanced mesh example
* remove orphan variables
2020-09-27 10:29:05 +02:00
raysan5
405d3fac0c
Corrected issue with floor() #1377
2020-09-15 11:40:51 +02:00
chriscamacho
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
...
Co-authored-by: codifies <nospam@antispam.com>
2020-08-23 21:01:26 +02:00
raysan5
c32ae480af
RENAMED: FormatText() -> TextFormat()
...
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
2020-08-16 11:28:15 +02:00
raysan5
26f6a64a39
NEW EXAMPLE: shaders_hot_reloading #1198
2020-08-16 11:18:25 +02:00
raysan5
ebdeab7e25
Code reorganization on example
2020-08-16 11:17:33 +02:00
Adrie
3c095f9d34
Fix color of ambient light ( #1330 )
2020-07-30 12:51:58 +02:00
raysan5
0fda4b1183
Update raysan.png
2020-06-07 11:49:10 +02:00