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
raysan5
8a501ef06d
Review some png images
2020-06-02 12:58:46 +02:00
raysan5
fed4716c3b
resources PNG chunks cleaning
2020-05-28 21:18:58 +02:00
raysan5
15e1e9ba24
Added resources license
2020-05-28 21:17:40 +02:00
raysan5
00b3199859
Added raymath to examples
2020-04-16 13:49:19 +02:00
G3bE
32387317bf
Make raymath more consistent ( #1197 )
...
* Make raymath naming and functions more consistent
* Minor fixes
* Fix examples
* Fix Physac
* New naming rules
* Apply naming to Quaternion functions
* Apply to models.c
* Remove *MulitplyValue / *DivideValue
2020-04-13 16:32:45 +02:00
raysan5
68cad30646
Remove useless files
2020-03-30 17:27:03 +02:00
raysan5
3e76d3a3d3
Added example: shaders_spotlight
2020-03-29 14:25:09 +02:00
raysan5
74339b9fdc
[example] Review shaders_spotlight to work on GLSL 100
2020-03-25 18:39:21 +01:00
chriscamacho
2dbcef218c
spotlight example, each spot has own radius, mouse countrol ( #1148 )
...
NB glsl100 shader needs testing on "bare metal"
Co-authored-by: codifies <nospam@antispam.com>
2020-03-25 10:28:16 +01:00
raysan5
5e670be239
REVIEWED: shaders_spotlight example
...
It seems something is not working properly...
2020-03-24 19:49:09 +01:00
chriscamacho
efe359d613
as per request spotlight example ( #1146 )
...
Co-authored-by: codifies <nospam@antispam.com>
2020-03-24 14:27:14 +01:00
raysan5
6bab884d1d
Added note on examples not supporting GLSL100
2020-03-24 12:39:05 +01:00
chriscamacho
6bbaca118f
ended up using the 100 version shaders as off the top of my ( #1142 )
...
head can't think of any improvement I could use on the shaders for
version 120
This has been tested on Linux (Desktop) requires testing on a Rpi
Co-authored-by: codifies <nospam@antispam.com>
2020-03-23 23:07:42 +01:00
Ray
a6297a2be1
Some code tweaks
2020-03-03 01:21:06 +01:00
Ray
485787059a
Review shader exaples to work on web (GLSL 100)
2020-03-02 13:27:54 +01:00
Ray
cacd4a9d90
Some examples tweaks
2020-01-30 12:27:04 +01:00
Ray
8f05322263
Review example and screenshots
2020-01-09 12:58:24 +01:00
raysan5
3aad221b1e
Review some shaders to work on GLSL 100
...
Tested on Raspberry Pi... Just note that platform is very limited by GPU...
2019-12-04 19:52:53 +01:00
Industrious Nomad
a6db31c01e
updated RayMarching Demo ( #997 )
...
* Removed Unused Uniforms
uniform vec3 viewUp;
uniform float deltaTime;
* Removed Unused uniforms
uniform vec3 viewUp;
uniform float deltaTime;
* Updated Source
Added - #define PLATFORM_DESKTOP line for desktop users.
This now will correctly find the proper glsl version for the raymarching.fs file.
Removed - Uniforms --> deltaTime and viewUp. Including the code that was setting them.
They were never used and they were triggering a log warning.
Removed - The const from both screenWidth and screenHeight.
Now they can be used to update the shader resolution when screen is resized.
NOTE : This is a quick fix and probably not the best idea.
Added - IsWindowResized() to check if screen is resized.
If window is resized then width, height and shader resolution are updated.
Changed - MIT tag at bottom right color value to BLACK. Now it's easier to see.
* Closer Match to original code
* Removed the PLATFORM_DESKTOP Define
2019-10-26 09:45:15 +02:00
Ray
3fcf2ee19a
Example renamed
2019-09-22 22:13:22 +02:00
Ray
bdcb16e7bb
Review PR and comments
2019-09-22 21:47:19 +02:00
chriscamacho
a679b0ccc0
contributed simple shader example ( #973 )
...
Contributed simple shader example
2019-09-22 21:28:50 +02:00
Ray
4b79f63d07
new example: shaders_fog
2019-08-19 12:08:45 +02:00
Leandro Gabriel
89c16baf18
Replace tabs with spaces and update year of copyright notices ( #927 )
...
* Update year of copyright notices
* Fix mistake in comment
* Fix typo ("algorythms")
* Replace tabs with spaces
* Remove trailing whitespace and fix mistake in comment
* Fix ExportImageAsCode missing comment rectangle corner
* Replace tab with spaces
* Replace tabs with spaces
2019-08-03 11:07:41 +02:00
Ray
81d8302d53
ADDED: shaders_basic_lighting
2019-06-14 12:59:40 +02:00
Ray
87774a0a21
Review variables initialization
2019-05-27 00:18:15 +02:00
Ray
b525039e0a
Review ALL examples
2019-05-20 16:36:42 +02:00
Ray
c1594fa445
Tweaks
2019-05-18 01:31:48 +02:00
Ray
970f1e8ff1
examples review
2019-05-17 01:17:40 +02:00
Ray
ce87d2ced4
new example: shaders_eratosthenes
...
Contributed by ProfJski
2019-05-16 17:23:31 +02:00
Ray
9fd410b8a8
Review shader to use provided texture coordinates
...
Now shader uses `fragTexCoord` that are the full screen texture coordinates normalized, instead of `gl_fragCoord`, the unnormalized screen coordinates
2019-05-16 17:07:59 +02:00
Ray
f1ffb3f573
Review shaders for GLSL 100
2019-05-16 10:05:14 +02:00
eggmund
eb7beb59b6
Ammended comment.
...
Also changed path to shader back to what it was originally.
2019-05-15 17:59:03 +01:00
eggmund
a7c5e3cab7
Updating julia set example.
...
Now dividing by the zoom instead of multiplying (in the shader), so zoom works as expected. Also zoom increase/decrease is now scaled depending on the current zoom.
2019-05-15 17:55:19 +01:00
Ray
998b4180e1
Update example!
2019-05-15 17:00:50 +02:00
Ray
0b18133e46
Update shaders_julia_set.c
2019-05-15 13:10:00 +02:00
Ray
d878a0aecb
Update shaders_julia_set.c
2019-05-15 12:53:13 +02:00
Ray
424d3ca8d9
examples review
...
Redesigns, deletes and renames
Also noted authors propertly on contributed examples
2019-05-14 15:34:23 +02:00
Ray
2edec8ae28
Some example tweaks
2019-05-14 00:08:21 +02:00
Ray
6f7b721d81
Merge branch 'master' of https://github.com/raysan5/raylib
2019-05-14 00:07:44 +02:00
Ray
6804c2189e
new examples: shaders_texture_waves
2019-05-14 00:07:34 +02:00
hmmmmmmmm
aea3b2df65
Fixed another small comment error
2019-05-12 17:31:04 +01:00
eggmund
c25154064d
Fixed small error in comments
2019-05-12 17:14:52 +01:00
eggmund
49a49e492a
Added julia set shader example.
2019-05-12 16:50:56 +01:00
Ray
2ddc4bacba
Example review
2019-05-06 09:41:54 +02:00
Ray
129703fad1
new example: shaders_texture_drawing
2019-04-11 16:53:20 +02:00
Ray
be6d237b9e
Review models examples
2019-03-29 20:22:50 +01:00
raysan5
557456cace
Review window title
2019-01-19 14:15:55 +01:00
Ray
55f8dbc755
WARNING: Redesigned SetShaderValue()
2019-01-10 11:25:26 +01:00
Marco Lizza
0c5bee4c9a
Limiting FPS to 60 for uniformity with other examples.
2019-01-09 16:33:09 +01:00
Marco Lizza
0fe56b1674
Adding basic palette-switching example using uniform arrays.
2019-01-09 16:20:56 +01:00
Ray
788bb78989
Some tweaks
2018-12-20 10:40:28 +01:00
Ray
6ef1e1d938
new example: shaders_raymarching
2018-12-20 09:55:33 +01:00
Ray
8f95518858
Reviewed some examples to work on RPI
2018-12-18 17:22:13 +01:00
Ray
ed269b8d9a
Review RenderTexture drawing usage
...
Now `BeginTextureMode()` does not clean buffers automatically, that behaviour has been changed because there could be some case (i.e. painting software) where texture buffer does not ned to be cleared; user is responsible of clearing buffers using `ClearBackground()`
2018-11-19 09:40:01 +01:00
Jess Peter
f3d144bf0e
Convert window render sizes to floats
...
GLSL 1.10 is typesafe ([PDF specs](https://www.khronos.org/registry/OpenGL/specs/gl/GLSLangSpec.1.10.pdf ), page 22), so this shader will not load properly during build.
It's not a super important change, but I came across it while playing with the examples on my pi.
2018-07-21 18:56:16 +02:00
Ray
a1d9c33995
Reviewed models and examples
2018-06-30 20:02:32 +02:00
Ray
d573a5ad60
Removed dwarf 3d model
...
Replaced by medieval 3d assets
2018-06-21 00:35:50 +02:00
Ray San
6045062a05
Renamed some functions
...
- Renamed Begin3dMode() --> BeginMode3D()
- Renamed Begin2dMode() --> BeginMode2D()
- Renamed End3dMode() --> EndMode3D()
- Renamed End2dMode() --> EndMode2D()
2018-05-04 16:54:05 +02:00
Ray San
4cc12ef2b3
Review camera definition on examples
2018-04-11 10:13:00 +02:00
raysan5
09228752ce
Review default shaders usage on loading
2017-11-12 10:33:44 +01:00
Wilhem Barbier
7ef604fbf5
Store the default shaders
2017-11-09 20:47:22 +01:00
Ray San
4fe8e05a7f
Review GLSL 120 shaders
...
Not tested, could have errors
2017-11-06 13:49:33 +01:00
Ray
085779707f
Uploaded shaders for GLSL 120
2017-11-05 17:13:17 +01:00
Ray
1375a616b2
Some examples code tweaks
2017-10-20 00:18:21 +02:00
raysan5
9446746001
Corrected issues on examples
2017-10-14 00:11:37 +02:00
raysan5
0fc1323c80
Renamed modelviewprojection matrix
2017-08-25 01:43:55 +02:00
raysan5
9040526f17
Adapt to new materials system
2017-07-21 17:17:37 +02:00
Ray
6546474fa4
Manual integration of material-pbr into develop
2017-07-17 00:33:40 +02:00
Ray
a5bfd7db22
Some reviews for RPI
2017-05-16 15:23:01 +02:00
Ray
65e6a6db53
Improved shaders_postprocessing example
2017-05-16 00:14:14 +02:00
Ray
aba25e9ba3
Move shaders to examples
2017-05-15 22:48:04 +02:00
Ray
8d3750e36d
Turn transparent pixels to black
2017-04-20 23:26:16 +02:00
raysan5
4315b82ea7
Replaced some images and updated examples
2017-04-14 13:58:39 +02:00
Ray
20d205cae5
Working on examples...
2017-04-08 23:31:58 +02:00
Ray
dd4dd0e87d
Reorganize examples folder
2017-04-04 01:54:49 +02:00