mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Add agx_white, agx_contrast and HDR support to the AgX tonemapper.
Also optimize all tonemappers to perform less calculations per-pixel. Note: unlike `white`, `agx_white` is limited to a minimum of `2.0` and defaults to `16.29`. When using a RGB10A2 render buffer, `agx_white` will be ignored and a value of `2.0` will be used instead to ensure good behavior on the Mobile renderer.
This commit is contained in:
parent
7a228b4b91
commit
628df323e2
24 changed files with 546 additions and 241 deletions
|
|
@ -137,7 +137,10 @@ public:
|
|||
void environment_set_tonemap(RID p_env, RS::EnvironmentToneMapper p_tone_mapper, float p_exposure, float p_white);
|
||||
RS::EnvironmentToneMapper environment_get_tone_mapper(RID p_env) const;
|
||||
float environment_get_exposure(RID p_env) const;
|
||||
float environment_get_white(RID p_env) const;
|
||||
float environment_get_white(RID p_env, bool p_limit_agx_white) const;
|
||||
void environment_set_tonemap_agx_contrast(RID p_env, float p_agx_contrast);
|
||||
float environment_get_tonemap_agx_contrast(RID p_env) const;
|
||||
RendererEnvironmentStorage::TonemapParameters environment_get_tonemap_parameters(RID p_env, bool p_limit_agx_white) const;
|
||||
|
||||
// Fog
|
||||
void environment_set_fog(RID p_env, bool p_enable, const Color &p_light_color, float p_light_energy, float p_sun_scatter, float p_density, float p_height, float p_height_density, float p_aerial_perspective, float p_sky_affect, RS::EnvironmentFogMode p_mode);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue