summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2022-05-20 16:16:28 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2022-05-20 16:16:51 +0200
commit39a598e02079ce7f62a4f4828aecfdf0e2b70488 (patch)
tree5946e07cd20208d233e04bb82675b5098b0f44bb /doc
parenta43625394ce85931c3f1a01d417d737519a9b251 (diff)
Document Decal interactions with transparent materials
Diffstat (limited to 'doc')
-rw-r--r--doc/classes/Decal.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/Decal.xml b/doc/classes/Decal.xml
index 342bc762af..c0ad61b77e 100644
--- a/doc/classes/Decal.xml
+++ b/doc/classes/Decal.xml
@@ -7,6 +7,7 @@
[Decal]s are used to project a texture onto a [Mesh] in the scene. Use Decals to add detail to a scene without affecting the underlying [Mesh]. They are often used to add weathering to building, add dirt or mud to the ground, or add variety to props. Decals can be moved at any time, making them suitable for things like blob shadows or laser sight dots.
They are made of an [AABB] and a group of [Texture2D]s specifying [Color], normal, ORM (ambient occlusion, roughness, metallic), and emission. Decals are projected within their [AABB] so altering the orientation of the Decal affects the direction in which they are projected. By default, Decals are projected down (i.e. from positive Y to negative Y).
The [Texture2D]s associated with the Decal are automatically stored in a texture atlas which is used for drawing the decals so all decals can be drawn at once. Godot uses clustered decals, meaning they are stored in cluster data and drawn when the mesh is drawn, they are not drawn as a post-processing effect after.
+ [b]Note:[/b] Decals cannot affect an underlying material's transparency, regardless of its transparency mode (alpha blend, alpha scissor, alpha hash, opaque pre-pass). This means translucent or transparent areas of a material will remain translucent or transparent even if an opaque decal is applied on them.
</description>
<tutorials>
</tutorials>