Commit Graph

61 Commits

Author SHA1 Message Date
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