summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders/scene.glsl
AgeCommit message (Collapse)Author
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
2018-12-11Merge pull request #23483 from clayjohn/fragment_camera_viewRémi Verschelde
Make VIEW vector available in fragment shader
2018-12-11make VIEW vector available in fragmentclayjohn
2018-12-11gles2 implemented VIEWPORT_SIZE builtin for spatial shadermuiroc
2018-11-24Fixed black artifacts on SpatialMaterial [GLES2]David Sichma
2018-11-16Removed unnecesary normal multiplication (only culling was really needed), ↵Juan Linietsky
fixes #17776
2018-11-14Merge pull request #23248 from dlasalle/fogJuan Linietsky
Add parameters for fog end depth and use alpha as density.
2018-11-13Add parameter for fog max depth and use alpha as density.Dominique LaSalle
2018-11-12Merge pull request #22639 from tagcup/optRémi Verschelde
Avoid some unnecessary calculations in scene.glsl.
2018-10-25GLES2: Fix shadows shader error for SpotLightsRémi Verschelde
Fixes #23268.
2018-10-24GLES2: Fix typo in tangent calculationRémi Verschelde
Thanks @tagcup for the find. Fixes #23234.
2018-10-11Avoid some unnecessary calculations in scene.glsl.Ferenc Arn
2018-10-06Format GLES2 scene.glslLeon Krause
2018-10-06Fix GLES2 uniform precisionLeon Krause
2018-10-03Fix #22591: shader failed to compile when shadow enabled because of ↵Jean-François Michaud
incompatible assignment of vec3 to a vec4.
2018-10-02vertex lit optimization for fog.Juan Linietsky
2018-10-02Implemented FOG support in GLES2.Juan Linietsky
2018-10-02Bring accidentally commented out lines back.Ferenc Arn
Oversight by me in #22483. GLES2 doesn't seem to be supporting anisotropy at the moment anyway ---in case it gets revived.
2018-10-02Merge pull request #22483 from tagcup/fresnelRémi Verschelde
Restore the Fresnel term in the BRDF.
2018-10-02Style: Run clang-format on shaders againRémi Verschelde
2018-09-30-Many GLES2 optimizationsJuan Linietsky
-Android export fixes (use ETC if GLES2 backend in use) -revert to thekla atlas because xatlas is not working well
2018-09-30Optimized GGX G function for GLES2.tagcup
Also changed the mapping of anisotropy to match the common definition.
2018-09-30Restore the Fresnel term in the BRDF.Ferenc Arn
Was uncommented in 65fd37c, mostly likely by mistake since its important. Also made a few corrections of specular -> specular_blob_intensity (gles2).
2018-09-30Style: Run clang-format on recent shader changesRémi Verschelde
2018-09-29Some more GLES2 tuning..Juan Linietsky
2018-09-29Many more GLES2 fixesJuan Linietsky
2018-09-29This fixes a bug in refprobe blending, but I have no idea when I fixed it. ↵Juan Linietsky
It just started working all of sudden..
2018-09-29Many fixes to GLES2 renderer, fixed compilation issues in GLES3 shaders.Juan Linietsky
2018-09-28-Lightmap and lightmap capture support for GLES2Juan Linietsky
-Added hint to not show some properties when running on low end gfx
2018-09-28Reflection probe support in GLES2 back-end.Juan Linietsky
2018-09-23Fix build after 65fd37c1, using Math_PIRémi Verschelde
Also fix style in shaders.
2018-09-23-Rewrote GLES2 lighting and shadows and optimized state changes, did many ↵Juan Linietsky
optimizations, added vertex lighting. -Did some fixes to GLES3 too
2018-08-27Style: Enable clang-format on GLSL shadersRémi Verschelde
As of clang-format 6.0.1, putting the `/* clang-format off */` hint around our "invalid" `[vertex]` and `[shader]` statements isn't enough to prevent a bogus indent of the next comments and first valid statement, so we need to enclose that first valid statement in the unformatted chunk.
2018-08-24Style: Fix code formatting in GLES2 shadersRémi Verschelde