Add material debanding for use in Mobile rendering method.

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Allen Pestaluky
2022-03-07 18:29:40 +01:00
parent 9a5d6d1049
commit bd9d1bf070
20 changed files with 85 additions and 14 deletions

View File

@ -2360,6 +2360,15 @@
Sets a shader material's shader.
</description>
</method>
<method name="material_set_use_debanding">
<return type="void" />
<param index="0" name="enable" type="bool" />
<description>
When using the Mobile renderer, [method material_set_use_debanding] can be used to enable or disable the debanding feature of 3D materials ([BaseMaterial3D] and [ShaderMaterial]).
[method material_set_use_debanding] has no effect when using the Compatibility or Forward+ renderer. In Forward+, [Viewport] debanding can be used instead.
See also [member ProjectSettings.rendering/anti_aliasing/quality/use_debanding] and [method RenderingServer.viewport_set_use_debanding].
</description>
</method>
<method name="mesh_add_surface">
<return type="void" />
<param index="0" name="mesh" type="RID" />