GoogleARCore.LightEstimate

An estimate of lighting conditions in the environment corresponding to an AR frame.

Summary

Constructors and Destructors

LightEstimate(LightEstimateState state, float pixelIntensity, Color colorCorrection)
Constructor for a LightEstimate.

Properties

ColorCorrection
Color
Gets the color correction RGB scaling factors to be applied to the final color computed by the fragment shader to match the ambient color.
PixelIntensity
float
Gets an average pixel intensity.
State
Gets the state of the current estimate.

Properties

ColorCorrection

Color GoogleARCore::LightEstimate::ColorCorrection

Gets the color correction RGB scaling factors to be applied to the final color computed by the fragment shader to match the ambient color.

PixelIntensity

float GoogleARCore::LightEstimate::PixelIntensity

Gets an average pixel intensity.

Values range from 0.0 to 1.0, where 0.0 represents black and 1.0 represents white.

State

LightEstimateState GoogleARCore::LightEstimate::State

Gets the state of the current estimate.

Public functions

LightEstimate

 GoogleARCore::LightEstimate::LightEstimate(
  LightEstimateState state,
  float pixelIntensity,
  Color colorCorrection
)

Constructor for a LightEstimate.

Details
Parameters
state
State of the estimate.
pixelIntensity
Average pixel intensity. Values range from 0.0 to 1.0, where 0.0 represents black and 1.0 represents white.
colorCorrection
Color correction RGB scaling factors to be applied to the final color computed by the fragment shader to match the ambient color.

Send feedback about...