mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Add material debanding for use in Mobile rendering method.
Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
parent
9a5d6d1049
commit
bd9d1bf070
20 changed files with 85 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue