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

@ -2341,6 +2341,8 @@ void RenderingServer::_bind_methods() {
ClassDB::bind_method(D_METHOD("material_set_next_pass", "material", "next_material"), &RenderingServer::material_set_next_pass);
ClassDB::bind_method(D_METHOD("material_set_use_debanding", "enable"), &RenderingServer::material_set_use_debanding);
BIND_CONSTANT(MATERIAL_RENDER_PRIORITY_MIN);
BIND_CONSTANT(MATERIAL_RENDER_PRIORITY_MAX);
@ -3698,6 +3700,8 @@ void RenderingServer::init() {
GLOBAL_DEF_RST(PropertyInfo(Variant::FLOAT, "rendering/anti_aliasing/quality/smaa_edge_detection_threshold", PROPERTY_HINT_RANGE, "0.01,0.2,0.01"), 0.05);
GLOBAL_DEF("rendering/anti_aliasing/quality/use_debanding", false);
{
String mode_hints;
String mode_hints_metal;