mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
ca79373d13
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 GeometryInstance3D (and therefore MeshInstance3D), 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. |
||
---|---|---|
.. | ||
audio | ||
camera | ||
physics_2d | ||
physics_3d | ||
rendering | ||
text | ||
xr | ||
audio_server.cpp | ||
audio_server.h | ||
camera_server.cpp | ||
camera_server.h | ||
display_server_headless.h | ||
display_server.cpp | ||
display_server.h | ||
navigation_server_2d.cpp | ||
navigation_server_2d.h | ||
navigation_server_3d.cpp | ||
navigation_server_3d.h | ||
physics_server_2d_wrap_mt.cpp | ||
physics_server_2d_wrap_mt.h | ||
physics_server_2d.cpp | ||
physics_server_2d.h | ||
physics_server_3d_wrap_mt.cpp | ||
physics_server_3d_wrap_mt.h | ||
physics_server_3d.cpp | ||
physics_server_3d.h | ||
register_server_types.cpp | ||
register_server_types.h | ||
rendering_server.cpp | ||
rendering_server.h | ||
SCsub | ||
server_wrap_mt_common.h | ||
text_server.cpp | ||
text_server.h | ||
xr_server.cpp | ||
xr_server.h |