Browse Source

Merge pull request #7875 from lemilonkh/patch-1

Add documentation for render mode fog_disabled
Max Hilbrunner 1 year ago
parent
commit
4cff84e2a8

+ 5 - 0
tutorials/3d/standard_material_3d.rst

@@ -202,6 +202,11 @@ Disable Ambient Light
 Makes the object not receive any kind of ambient lighting that would
 otherwise light it.
 
+Disable Fog
+~~~~~~~~~~~
+
+Makes the object unaffected by depth-based or volumetric fog. This is useful for particles or other additively blended materials that would otherwise show the shape of the mesh (even in places where it would be invisible without the fog).
+
 Vertex Color
 ------------
 

+ 2 - 0
tutorials/shaders/shader_reference/spatial_shader.rst

@@ -84,6 +84,8 @@ Render modes
 +-------------------------------+------------------------------------------------------------------------------------------------------+
 | **alpha_to_coverage_and_one** | Alpha antialiasing mode, see `here <https://github.com/godotengine/godot/pull/40364>`_ for more.     |
 +-------------------------------+------------------------------------------------------------------------------------------------------+
+| **fog_disabled**              | Disable receiving depth-based or volumetric fog. Useful for blend_add materials like particles.      |
++-------------------------------+------------------------------------------------------------------------------------------------------+
 
 Built-ins
 ^^^^^^^^^