androidx.compose.ui.lighting

Classes

DirectionalLight

A light that is infinitely far away, such as the sun.

Cmn
IlluminationScope

The receiver of the block passed to illuminate, used to configure the lighting drawn over the content.

Cmn
Light

Represents a source of light.

Cmn
LightAnchorState

Connects a composable marked with Modifier.lightAnchor to the lights positioned relative to it with LightPosition.Anchored.

Cmn
LightPosition

Where a Light sits, and the coordinate space that position is measured in.

Cmn
LightPosition.Anchored

A position measured from the composable that state is attached to with lightAnchor.

Cmn
LightPosition.Global

A position measured from the top-left corner of the root of the composition that hosts the lit composable, the same space as positionInRoot.

Cmn
LightPosition.Local

A position measured from the top-left corner of the composable being lit.

Cmn
PointLight

A light that radiates equally in every direction from a single point in front of the surface, like a bare bulb.

Cmn
SpotLight

A light that sits in front of the surface like a PointLight, but emits only within a cone, so it lights a bounded pool of the surface rather than all of it.

Cmn
SurfaceGeometrySpec

Describes the virtual three-dimensional shape that a lit surface is treated as having.

Cmn
SurfaceMaterial

Describes how a surface reflects the light that reaches it.

Cmn

Modifiers

illuminate

Draws a lighting pass over the content, shading it as though it were a physical surface, with the lighting configured in block.

Cmn
lightAnchor

Reports this composable's position to state, so that lights positioned with LightPosition.Anchored against the same state follow this composable.

Cmn