mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +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
|
|
@ -185,10 +185,11 @@ public:
|
|||
|
||||
// Tonemap
|
||||
virtual void environment_set_tonemap(RID p_env, RS::EnvironmentToneMapper p_tone_mapper, float p_exposure, float p_white) = 0;
|
||||
virtual void environment_set_tonemap_agx_contrast(RID p_env, float p_agx_contrast) = 0;
|
||||
|
||||
virtual RS::EnvironmentToneMapper environment_get_tone_mapper(RID p_env) const = 0;
|
||||
virtual float environment_get_exposure(RID p_env) const = 0;
|
||||
virtual float environment_get_white(RID p_env) const = 0;
|
||||
virtual float environment_get_white(RID p_env, bool p_limit_agx_white) const = 0;
|
||||
|
||||
// Fog
|
||||
virtual 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 = RS::EnvironmentFogMode::ENV_FOG_MODE_EXPONENTIAL) = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue