virtualx-engine/servers/visual
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
..
portals Merge pull request #53012 from lawnjelly/portals_unload_reason 2021-10-05 12:00:43 +02:00
rasterizer.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
rasterizer.h Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
SCsub Portal occlusion culling 2021-07-14 11:43:23 +01:00
shader_language.cpp Removed incorrect autocompletion of matrixes in shader 2021-11-15 16:30:00 +01:00
shader_language.h Implement async shader compilation plus caching for GL ES 3 2021-11-09 12:19:12 +01:00
shader_types.cpp Merge pull request #53411 from RandomShaper/ubershaders_3.x 2021-11-09 13:12:44 +01:00
shader_types.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2021-05-04 14:45:16 +02:00
visual_server_canvas.cpp Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
visual_server_canvas.h Style: Enforce braces around if blocks and loops 2021-05-05 15:02:01 +02:00
visual_server_globals.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
visual_server_globals.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
visual_server_raster.cpp Remove duplicate ERR_PRINTS macro 2021-06-16 11:56:25 +01:00
visual_server_raster.h Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
visual_server_scene.cpp Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
visual_server_scene.h Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
visual_server_viewport.cpp Only update render target directly if ARVR mode is off 2021-10-26 21:40:25 +11:00
visual_server_viewport.h Add support for contrast-adaptive sharpening in 3D (GLES3 only) 2021-06-21 15:37:31 +02:00
visual_server_wrap_mt.cpp Sphere occluders (portals and general use) 2021-08-17 09:02:06 +01:00
visual_server_wrap_mt.h Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00