Class ToneMapper

  • Direct Known Subclasses:
    ToneMapper.ACES, ToneMapper.ACESLegacy, ToneMapper.Filmic, ToneMapper.Generic, ToneMapper.Linear

    public class ToneMapper
    extends java.lang.Object
    Interface for tone mapping operators. A tone mapping operator, or tone mapper, is responsible for compressing the dynamic range of the rendered scene to a dynamic range suitable for display. In Filament, tone mapping is a color grading step. ToneMapper instances are created and passed to the ColorGrading::Builder to produce a 3D LUT that will be used during post-processing to prepare the final color buffer for display. Filament provides several default tone mapping operators that fall into three categories:
    • Configurable tone mapping operators
      • GenericToneMapper
    • Fixed-aesthetic tone mapping operators
      • ACESToneMapper
      • ACESLegacyToneMapper
      • FilmicToneMapper
    • Debug/validation tone mapping operators
      • LinearToneMapper
      • DisplayRangeToneMapper
    You can create custom tone mapping operators by subclassing ToneMapper.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  ToneMapper.ACES
      ACES tone mapping operator.
      static class  ToneMapper.ACESLegacy
      ACES tone mapping operator, modified to match the perceived brightness of FilmicToneMapper.
      static class  ToneMapper.Filmic
      "Filmic" tone mapping operator.
      static class  ToneMapper.Generic
      Generic tone mapping operator that gives control over the tone mapping curve.
      static class  ToneMapper.Linear
      Linear tone mapping operator that returns the input color but clamped to the 0..1 range.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void finalize()  
      long getNativeObject()  
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getNativeObject

        public long getNativeObject()
      • finalize

        protected void finalize()
                         throws java.lang.Throwable
        Overrides:
        finalize in class java.lang.Object
        Throws:
        java.lang.Throwable