virtualx-engine/drivers/gles2
Fernando Cosentino cc8846bef6 Added material_overlay property to MeshInstance
Applying overlay materials into multi-surface meshes currently
requires adding a next pass material to all the surfaces, which
might be cumbersome when the material is to be applied to a range
of different geometries. This also makes it not trivial to use
AnimationPlayer to control the material in case of visual effects.
The material_override property is not an option as it works
replacing the active material for the surfaces, not adding a new pass.

This commit adds the material_overlay property to GeometryInstance
(and therefore MeshInstance), having the same reach as
material_override (that is, all surfaces) but adding a new material
pass on top of the active materials, instead of replacing them.

Implemented in rasterizer of both GLES2 and GLES3.
2021-11-15 23:50:34 +00:00
..
shaders clang-format: Disable alignment of operands, too unreliable 2021-10-28 13:23:38 +02:00
rasterizer_canvas_base_gles2.cpp clang-format: Enable BreakBeforeTernaryOperators 2021-10-28 14:50:33 +02:00
rasterizer_canvas_base_gles2.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
rasterizer_canvas_gles2.cpp Add DEV_ASSERT and DEV_CHECK macros 2021-10-04 14:57:54 +01:00
rasterizer_canvas_gles2.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
rasterizer_gles2.cpp Fix -Wextra warnings from GCC 11 2021-09-29 15:23:12 +02:00
rasterizer_gles2.h Clear glErrors instead of crashing when initializing GLES3 2021-06-21 17:53:24 +01:00
rasterizer_scene_gles2.cpp Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
rasterizer_scene_gles2.h Add high quality glow mode 2021-08-11 17:00:41 +02:00
rasterizer_storage_gles2.cpp Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
rasterizer_storage_gles2.h Implement async shader compilation plus caching for GL ES 3 2021-11-09 12:19:12 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
shader_compiler_gles2.cpp Merge pull request #53411 from RandomShaper/ubershaders_3.x 2021-11-09 13:12:44 +01:00
shader_compiler_gles2.h Backport dd0874e "Allow passing varying from fragment to light shader function" to 3.4 2021-05-14 11:28:48 -07:00
shader_gles2.cpp Octahedral Normal/Tangent Compression 2021-07-30 10:29:09 -04:00
shader_gles2.h Fix -Wextra warnings from GCC 11 2021-09-29 15:23:12 +02:00