mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 11:01:17 +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
|
|
@ -1248,6 +1248,11 @@ void RendererSceneRenderRD::lightmaps_set_bicubic_filter(bool p_enable) {
|
|||
_update_shader_quality_settings();
|
||||
}
|
||||
|
||||
void RendererSceneRenderRD::material_set_use_debanding(bool p_enable) {
|
||||
material_use_debanding = p_enable;
|
||||
_update_shader_quality_settings();
|
||||
}
|
||||
|
||||
int RendererSceneRenderRD::get_roughness_layers() const {
|
||||
return sky.roughness_layers;
|
||||
}
|
||||
|
|
@ -1702,6 +1707,7 @@ void RendererSceneRenderRD::init() {
|
|||
decals_set_filter(RS::DecalFilter(int(GLOBAL_GET("rendering/textures/decals/filter"))));
|
||||
light_projectors_set_filter(RS::LightProjectorFilter(int(GLOBAL_GET("rendering/textures/light_projectors/filter"))));
|
||||
lightmaps_set_bicubic_filter(GLOBAL_GET("rendering/lightmapping/lightmap_gi/use_bicubic_filter"));
|
||||
material_set_use_debanding(GLOBAL_GET("rendering/anti_aliasing/quality/use_debanding"));
|
||||
|
||||
cull_argument.set_page_pool(&cull_argument_pool);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue