summaryrefslogtreecommitdiff
path: root/drivers/gles2/shaders
AgeCommit message (Collapse)Author
2019-09-22fix gles2 broken panorama sky on oculus questHolger Dammertz
This fixes an issue that was fixed for gles3 in #31419 but not applied to gles2. The fix consists of using a constant scale for cube_normal of -1.0 instead of -1000000. It results in broken panorama rendering on the oculus quest (see https://github.com/GodotVR/godot_oculus_mobile/issues/29)
2019-09-19Merge pull request #31202 from azagaya/light-dataRémi Verschelde
Create shadow_vec for altering shadow computation
2019-09-06Create shadow_vec for altering shadow computationazagaya
In 2.1 and 3.0, light_vec could be modified for altering shadow_computations. But it broke shadows when rotating light. shadow_vec would do the same, but without breaking shadows in rotated lights if not used. Add inverse light transformation to shadow vec, so it's not affected when rotating lights; Added usage define for shadow vec. For shadow vec working properly when rotating a light, it's needed to multiply it by light_matrix normalized. Added usage define in order to don't do that if shadow_vec not used.
2019-08-22Implemented inverse shader function to GLES2Yuri Roubinski
2019-08-03Fix GLES2 renderingYuri Roubinski
2019-07-31Expose several GLES3 built-ins to GLES2 Chaosus
2019-07-29Merge pull request #30895 from clayjohn/gles2-shader-funcsRémi Verschelde
Added round function to gles2
2019-07-29added round function to gles2clayjohn
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-06-15Adding a new Camera Server implementation to Godot.BastiaanOlij
This is a new singleton where camera sources such as webcams or cameras on a mobile phone can register themselves with the Server. Other parts of Godot can interact with this to obtain images from the camera as textures. This work includes additions to the Visual Server to use this functionality to present the camera image in the background. This is specifically targetted at AR applications.
2019-06-03added MultiMeshInstance2D node for using MultiMesh in 2Dclayjohn
2019-05-23do not compute fog when using unshaded in GLES2clayjohn
2019-05-21Implement shadow to opacityBastiaan Olij
2019-05-19Fix typos with codespellRémi Verschelde
Using codespell 1.15.0. Method: ``` $ cat > ../godot-word-whitelist.txt << EOF ang curvelinear doubleclick leapyear lod merchantibility nd numer ois ony que seeked synching te uint unselect webp EOF $ codespell -w -q 3 -I ../godot-word-whitelist.txt --skip="./thirdparty,*.po" $ git diff // undo unwanted changes ```
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-04-12fixed bug in mip map sigmaclayjohn
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-04Merge pull request #26567 from clayjohn/pixel_snap_artifactRémi Verschelde
Fixed pixel snap precision artifact
2019-03-04fixed pixel snap precision artifactclayjohn
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-24Many separate fixes to ensure non power of 2 textures work on GLES2, closes ↵Juan Linietsky
#25897 and many others
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-21Revert back to ignoring LIGHT_VEC for 2D shadowsJFonS
2019-02-17added shadow_color property to gles2clayjohn
2019-02-12Fix fog in GLES2 by using epic hack, closes #25410Juan Linietsky
2019-02-12Merge pull request #25682 from JFonS/fix_light_canvas_gles2Rémi Verschelde
Fix canvas light shaders on GLES2
2019-02-10Make LIGHT_VEC affect 2D shadows againJFonS
2019-02-07Fix canvas light shaders on GLES2JFonS