Enum three_d::renderer::ToneMapping
source · pub enum ToneMapping {
None = 0,
Reinhard = 1,
Aces = 2,
Filmic = 3,
}
Expand description
Tone mapping is the process of mapping HDR color values computed with physical based rendering in the range [0,∞)
into LDR values that can be displayed on the screen in the range [0,1]
.
Variants§
None = 0
No tone mapping. Use this if you are rendering into an intermediate render target, ie. this is not the final render pass that renders into the screen.
Reinhard = 1
Photographic Tone Reproduction for Digital Images. <http://www.cmap.polytechnique.fr/~peyre/cours/x2005signal/hdr_photographic.pdf>
Aces = 2
ACES Filmic Tone Mapping Curve. <https://knarkowicz.wordpress.com/2016/01/06/aces-filmic-tone-mapping-curve/>
Filmic = 3
John Hables presentation “Uncharted 2 HDR Lighting”, Page 142 to 143. <http://www.gdcvault.com/play/1012459/Uncharted_2__HDR_Lighting>
Implementations§
source§impl ToneMapping
impl ToneMapping
sourcepub fn fragment_shader_source() -> &'static str
pub fn fragment_shader_source() -> &'static str
Returns the fragment shader source for applying the specified tone mapping in a shader.
sourcepub fn use_uniforms(&self, program: &Program)
pub fn use_uniforms(&self, program: &Program)
Sends the uniform data needed to apply this tone mapping to the fragment shader.
Trait Implementations§
source§impl Clone for ToneMapping
impl Clone for ToneMapping
source§fn clone(&self) -> ToneMapping
fn clone(&self) -> ToneMapping
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ToneMapping
impl Debug for ToneMapping
source§impl Default for ToneMapping
impl Default for ToneMapping
source§fn default() -> ToneMapping
fn default() -> ToneMapping
source§impl Ord for ToneMapping
impl Ord for ToneMapping
source§fn cmp(&self, other: &ToneMapping) -> Ordering
fn cmp(&self, other: &ToneMapping) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ToneMapping
impl PartialEq for ToneMapping
source§fn eq(&self, other: &ToneMapping) -> bool
fn eq(&self, other: &ToneMapping) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ToneMapping
impl PartialOrd for ToneMapping
source§fn partial_cmp(&self, other: &ToneMapping) -> Option<Ordering>
fn partial_cmp(&self, other: &ToneMapping) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more