tracer
Class ToneMapper

java.lang.Object
  extended bytracer.ToneMapper

public class ToneMapper
extends java.lang.Object

Used for mapping floating point representations of colors into packed-int colors as used by Java. This implementation also supports gamma correction.


Field Summary
 float invGamma
           
 
Constructor Summary
ToneMapper(float gamma)
           
 
Method Summary
 int map(float r, float g, float b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

invGamma

public float invGamma
Constructor Detail

ToneMapper

public ToneMapper(float gamma)
Method Detail

map

public int map(float r,
               float g,
               float b)