1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-19 14:31:59 +00:00

Implement decals

Also implemented decal atlas, so projectors and other stuff can be added.
Sidenote: Had to make RID hashable, so some unrelated includes changed
in order to include it in hashfuncs.h
This commit is contained in:
Juan Linietsky
2020-04-14 00:05:21 -03:00
parent 451d5bd492
commit 5944eb6e7f
35 changed files with 1654 additions and 67 deletions

View File

@@ -340,6 +340,20 @@ public:
BIND2(reflection_probe_set_cull_mask, RID, uint32_t)
BIND2(reflection_probe_set_resolution, RID, int)
/* DECAL API */
BIND0R(RID, decal_create)
BIND2(decal_set_extents, RID, const Vector3 &)
BIND3(decal_set_texture, RID, DecalTexture, RID)
BIND2(decal_set_emission_energy, RID, float)
BIND2(decal_set_albedo_mix, RID, float)
BIND2(decal_set_modulate, RID, const Color &)
BIND2(decal_set_cull_mask, RID, uint32_t)
BIND4(decal_set_distance_fade, RID, bool, float, float)
BIND3(decal_set_fade, RID, float, float)
BIND2(decal_set_normal_fade, RID, float)
/* BAKED LIGHT API */
BIND0R(RID, gi_probe_create)