virtualx-engine/servers
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
..
arvr Change ARVRPositionalTracker to a reference and better expose it to GDNative 2021-03-29 23:01:04 +11:00
audio clang-format: Various fixes to comments alignment from clang-format 13 2021-10-28 14:50:32 +02:00
camera SCons: Add explicit dependencies on thirdparty code in cloned env 2021-04-29 16:57:00 +02:00
physics Fix the volume calculation for cylinders 2021-11-15 16:09:59 +01:00
physics_2d Fix errors in KinematicBody when floor is destroyed or removed 2021-11-09 15:15:40 -07:00
visual Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
arvr_server.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
arvr_server.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
audio_server.cpp [HTML5] Use browser mix rate by default on the Web. 2021-09-15 20:36:19 +02:00
audio_server.h Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
camera_server.cpp Style: Replaces uses of 0/NULL by nullptr (C++11) 2021-05-04 16:30:23 +02:00
camera_server.h Style: Set clang-format Standard to c++14 2021-05-04 14:45:15 +02:00
physics_2d_server.cpp Improved logic for KinematicBody collision recovery depth 2021-10-05 17:00:55 -07:00
physics_2d_server.h Improved logic for KinematicBody collision recovery depth 2021-10-05 17:00:55 -07:00
physics_server.cpp Expose intersect_point in 3D physics server 2021-11-03 16:46:40 -07:00
physics_server.h Expose intersect_point in 3D physics server 2021-11-03 16:46:40 -07:00
register_server_types.cpp Remove unused PhysicsShapeQueryResult & Physics2DShapeQueryResult 2021-07-05 11:21:15 -07:00
register_server_types.h Update copyright statements to 2021 2021-01-13 16:17:06 +01:00
SCsub SCons: Format buildsystem files with psf/black 2020-06-10 15:30:52 +02:00
server_wrap_mt_common.h Modernize Mutex 2021-02-18 11:58:08 +01:00
visual_server.cpp Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
visual_server.h Added material_overlay property to MeshInstance 2021-11-15 23:50:34 +00:00
visual_server_callbacks.cpp Portal occlusion culling 2021-07-14 11:43:23 +01:00
visual_server_callbacks.h Portal occlusion culling 2021-07-14 11:43:23 +01:00