RefractionProfile

sealed interface RefractionProfile

Controls how refraction displaces content independently of the material's lighting.

Future minor releases may add subtypes. Keep an else branch when you match exhaustively with when.

Inheritors

Types

Link copied to clipboard
data class Edge(val width: Dp) : RefractionProfile

Refraction is strongest at the boundary and decays to zero over width.

Link copied to clipboard