summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/scene.glsl
AgeCommit message (Collapse)Author
2019-12-10Add a default POINT_SIZEclayjohn
2019-11-22Fix Specular Blinn functionclayjohn
2019-11-20Fix bugs introduced by IBL fixesclayjohn
2019-11-19Fix issues with environment mappingclayjohn
2019-10-27Fixed using compressed textures and add work around for firefox webgl mesa ↵clayjohn
sampler limit
2019-09-24Fix copyright headers and style issuesRémi Verschelde
2019-09-18Added skin support and simplified APIs to override bone position.Juan Linietsky
2019-07-31Expose several GLES3 built-ins to GLES2 Chaosus
2019-07-28update algorithm about paking float to vec4 to fix shadow shift and change ↵RaphaelHunter
rgba_shdow options
2019-07-21fix gles2 shadow transparency bugclayjohn
2019-06-19scale vertex lit lights by envorionment scaleclayjohn
2019-05-23do not compute fog when using unshaded in GLES2clayjohn
2019-05-21Implement shadow to opacityBastiaan Olij
2019-05-14Merge pull request #27898 from clayjohn/metallic_radianceRémi Verschelde
Added radiance when using clear color
2019-05-13added radiance when using clear color and fixed brdfclayjohn
2019-05-13Merge pull request #27798 from clayjohn/gles2-proj-mat-bugRémi Verschelde
Fixes bug when setting projection matrix in shader GLES2
2019-05-07Fix SHADOWS_DISABLED flag in GLES2Guilherme Souza
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
2019-04-30fixes bug when setting projection matrixclayjohn
2019-04-29Merge pull request #28431 from SouzaGuilherme/masterRémi Verschelde
Adds flag AMBIENT_LIGHT_DISABLED to GLES2
2019-04-25Adds flag AMBIENT_LIGHT_DISABLED to GLES2Guilherme Souza
Signed-off-by: Guilherme Souza <gdsdsilva@inf.ufpel.edu.br>
2019-03-28keep DEPTH from causing compile error in GLES2clayjohn
2019-03-12GLES2: Fix comments in previous commit that broke rendering (!)Rémi Verschelde
Do NOT use "[vertex]" in a comment... Kids, don't try to learn OpenGL on a production branch right before a stable release.
2019-03-11GLES2: Add comments around EXT_shader_texture_lod checkRémi Verschelde
To avoid reintroducing bugs as I did in #26928 and #26932. texture2DLodEXT and textureCubeLodEXT are only for the fragment shader with https://www.khronos.org/registry/OpenGL/extensions/EXT/EXT_shader_texture_lod.txt In the vertex shader, texture2DLod and textureCubeLod are built-in.
2019-03-11Revert "GLES2: Ensure extension checks for texture2DLod"Rémi Verschelde
This reverts commit f5f565e3e49eecde9ed3b05913747a50d54b7357.
2019-03-11Revert "GLES2: Fix regression on texture2DLod extension checks"Rémi Verschelde
This reverts commit 8c2d38152fbf41ca9c8a8f9b381b8d271f7f54d3.
2019-03-11GLES2: Fix regression on texture2DLod extension checksRémi Verschelde
These can't be done after any non-preprocessor token.
2019-03-11GLES2: Ensure extension checks for texture2DLodRémi Verschelde
In canvas.glsl and scene.glsl, we were using texel2DFetch from stdlib.glsl, which uses texture2DLod. In both cases, the stdlib.glsl include came before the define of texture2DLod. Might fix issues for drivers that don't support GL_EXT_shader_texture_lod.
2019-03-04More style cleanup...Rémi Verschelde
2019-03-03Skeletons can now choose between using local or world coords for processing, ↵Juan Linietsky
fixes #26468
2019-02-27Fix GCC 5 build after #26331 and cleanup styleRémi Verschelde
Also cleanup after 01a3dd3.
2019-02-26Merge pull request #26286 from kaadmy/gles2_ortho_shadowRémi Verschelde
Fix orthographic shadow color when using GLES2
2019-02-25Several fixes to make GLES2 on HTML5 work much better.Juan Linietsky
Changed math class error reporting to be a bit less paranoid.
2019-02-25Fix orthographic shadow color when using GLES2KaadmY
2019-02-24Explicitly use floating point numbers in the our shadersHein-Pieter van Braam
We need to be explicit about using floating point numbers in our shaders for compatibility with mobile GLES drivers.
2019-02-23Fix vertex lighting in GLES2, closes #25365Juan Linietsky
2019-02-22-Support DEPTH_TEXTURE in GLES2, fixes #25106Juan Linietsky
-Fix use of transparent framebuffers in GLES2 -Fix use of ambient color clearing in GLES2 when no environment exists.
2019-02-22Fix code style issuesRémi Verschelde
2019-02-17added shadow_color property to gles2clayjohn
2019-02-12Fix fog in GLES2 by using epic hack, closes #25410Juan Linietsky
2019-01-27Properly discard fragments during depth prepass opaque pass, fixes #23321Juan Linietsky
2019-01-24Ensure WebGL uses highp by default, and fix some wrong mediump usages. Fixes ↵Juan Linietsky
#22962.
2019-01-23Fix problem with texture2Dlod, closes #25263Juan Linietsky
2019-01-22Implement unpacking for compressed vertex formats on GLES2 when not ↵Juan Linietsky
supported, fixes #22957
2019-01-04Merge pull request #24539 from BastiaanOlij/override_gl_positionRémi Verschelde
Override GL_position
2018-12-29fixes glsl syntax errorAvril
2018-12-29Override GL_positionBastiaan Olij
2018-12-21GLES2: Define 'lowp' for OpenGL 2.1Rémi Verschelde
Precision qualifiers are only used on OpenGL ES 2.0 and 3.0, and while OpenGL 3.3 defines them for compatibility (but without practical effect), they're missing from OpenGL 2.1, so we define them to prevent compilation errors. Fixes #24521.
2018-12-20Style: Fix formatting in GLES2 shadersRémi Verschelde
2018-12-20fix gles2 spotlight problemGitea
2018-12-19Properly support light shaders in GLES2, fixes #21651Juan Linietsky