Energy Based Objects  2.01
Public Attributes | Properties
ContrastStretchEffect Class Reference

List of all members.

Public Attributes

float adaptationSpeed = 0.02f
float limitMinimum = 0.2f
 The limit on the minimum luminance (0...1) - we won't go above this.
float limitMaximum = 0.6f
 The limit on the maximum luminance (0...1) - we won't go below this.
Shader shaderLum
Shader shaderReduce
Shader shaderAdapt
Shader shaderApply

Properties

Material materialLum [get]
Material materialReduce [get]
Material materialAdapt [get]
Material materialApply [get]

Member Data Documentation

float adaptationSpeed = 0.02f

Adaptation speed - percents per frame, if playing at 30FPS. Default is 0.02 (2% each 1/30s).

float limitMinimum = 0.2f

The limit on the minimum luminance (0...1) - we won't go above this.

If our scene is really dark (or really bright), we might not want to stretch its contrast to the full range. limitMinimum=0, limitMaximum=1 is the same as not applying the effect at all. limitMinimum=1, limitMaximum=0 is always stretching colors to full range.

 All Classes Namespaces Functions Variables Properties Events