LightEstimate

public class LightEstimate

Holds information about the estimated lighting of the real scene. Returned by getLightEstimate()

Nested Classes

enum LightEstimate.State Light Estimate States. 

Protected Constructors

LightEstimate()
(FOR TESTING) Constructs a new instance for use as a mock.

Public Methods

void
getColorCorrection(float[] outColorCorrection4, int offset)
Returns RGB scaling factors to be applied to the final color computed by the fragment shader.
float
getPixelIntensity()
Returns the pixel intensity of the current camera view.
LightEstimate.State
getState()
Returns the validity of this lighting estimate.

Inherited Methods

Protected Constructors

protected LightEstimate ()

(FOR TESTING) Constructs a new instance for use as a mock. Calling any base method implementation on this instance may return unexpected results, throw an exception, or even crash.

To obtain a LightEstimate normally, use getLightEstimate().

Public Methods

public void getColorCorrection (float[] outColorCorrection4, int offset)

Returns RGB scaling factors to be applied to the final color computed by the fragment shader. The last component contains the average pixel intensity.

Parameters
outColorCorrection4 The float array the 4 component color correction values are written to.
offset The offset into the array the 4 color correction components are written.

public float getPixelIntensity ()

Returns the pixel intensity of the current camera view. Values are in the range (0.0, 1.0), with zero being black and one being white.

public LightEstimate.State getState ()

Returns the validity of this lighting estimate. When the estimate is NOT_VALID it should not be used for rendering.

Send feedback about...