optics

fun optics(refractionStrength: Float = 0.7f, refractionHeightFraction: Float = 0.25f, refractionDisplacement: Dp = 15.dp, depth: Float = 1.0f, blurRadius: Dp = 14.dp, progressive: HazeProgressive? = null)

Sets a complete fixed optical model used to refract and blur captured content.

This constructs GlassOptics.Fixed and enforces its same fail-fast domains.


fun optics(optics: GlassOptics)

Sets the optical model used to refract and blur captured content.

Complete optics values retain the contracts enforced by their concrete GlassOptics type.