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>
3 years ago
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*()
3 years ago
Ray
4fba09794f
Example considering HighDPI on RenderTexture draw #1086
3 years ago
Ray
be8d5a7ae2
RENAMED: camera.type -> camera.projection
3 years ago
Ray
bae423be41
Create reload.fs
3 years ago
Ray
ff6d5c8ddb
REVIEWED: shaders_multi_sample2d
3 years ago
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
3 years ago
Ray
fe3256be9f
Renamed some functions to use latest raylib version
3 years ago
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>
4 years ago
raysan5
65b299c6cf
Replace tabs by 4 spaces
4 years ago
raysan5
22b179e66c
Review rlights helper module #1489
4 years ago
raysan5
b68e522ffc
Updated several files while porting examples to web
4 years ago
raysan5
d9a9bacb48
Review formatting
4 years ago
Ray
7e9028ae08
Update user name
4 years ago
Ray
8e15dae5ed
Review contributed examples
4 years ago
Ray
8327857488
Update shaders_multi_sample2d.c
4 years ago
Ray
fbc51e822b
REDESIGNED: Multiple sampler2D usage on batch system
New implementation allow enabling additional textures per batch only.
4 years ago
Ray
8a16348131
Support multiple sample2D on batch drawing #1333
4 years ago
Ray
37e2d993e7
Updated assets
Reduce size and better license CC0
4 years ago
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
4 years ago
raysan5
405d3fac0c
Corrected issue with floor() #1377
4 years ago
chriscamacho
d140dc81c0
work on quat and matrix math - deleted multiple copies of raymath.h causing issues ( #1359 )
Co-authored-by: codifies <nospam@antispam.com>
4 years ago
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()
4 years ago
raysan5
26f6a64a39
NEW EXAMPLE: shaders_hot_reloading #1198
4 years ago
raysan5
ebdeab7e25
Code reorganization on example
4 years ago
Adrie
3c095f9d34
Fix color of ambient light ( #1330 )
4 years ago
raysan5
0fda4b1183
Update raysan.png
4 years ago
raysan5
8a501ef06d
Review some png images
4 years ago
raysan5
fed4716c3b
resources PNG chunks cleaning
4 years ago
raysan5
15e1e9ba24
Added resources license
4 years ago
raysan5
00b3199859
Added raymath to examples
4 years ago
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
4 years ago
raysan5
68cad30646
Remove useless files
4 years ago
raysan5
3e76d3a3d3
Added example: shaders_spotlight
4 years ago
raysan5
74339b9fdc
[example] Review shaders_spotlight to work on GLSL 100
4 years ago
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>
4 years ago
raysan5
5e670be239
REVIEWED: shaders_spotlight example
It seems something is not working properly...
4 years ago
chriscamacho
efe359d613
as per request spotlight example ( #1146 )
Co-authored-by: codifies <nospam@antispam.com>
4 years ago
raysan5
6bab884d1d
Added note on examples not supporting GLSL100
4 years ago
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>
4 years ago
Ray
a6297a2be1
Some code tweaks
4 years ago
Ray
485787059a
Review shader exaples to work on web (GLSL 100)
4 years ago
Ray
cacd4a9d90
Some examples tweaks
5 years ago
Ray
8f05322263
Review example and screenshots
5 years ago
raysan5
3aad221b1e
Review some shaders to work on GLSL 100
Tested on Raspberry Pi... Just note that platform is very limited by GPU...
5 years ago
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
5 years ago
Ray
3fcf2ee19a
Example renamed
5 years ago
Ray
bdcb16e7bb
Review PR and comments
5 years ago
chriscamacho
a679b0ccc0
contributed simple shader example ( #973 )
Contributed simple shader example
5 years ago
Ray
4b79f63d07
new example: shaders_fog
5 years ago