Fixed

data class Fixed(val refractionStrength: Float = 0.7f, val refractionHeightFraction: Float = 0.25f, val refractionDisplacement: Dp = 15.dp, val depth: Float = 1.0f, val blurRadius: Dp = 14.dp, val progressive: HazeProgressive? = null) : GlassOptics

A complete optical configuration with no geometry-dependent adjustment.

Accepted values are resolved without geometry-dependent adjustment. refractionDisplacement and blurRadius use density-independent Dp. refractionHeightFraction is a unitless fraction of the material's shortest side. After density conversion, the effective blurRadius is capped at 38.5 physical pixels; this renderer quality bound does not limit accepted input values.

Invalid numeric values throw IllegalArgumentException when this value is constructed. progressive is optional and retains the contract of its owning HazeProgressive type.

Parameters

refractionStrength

Finite strength of the refraction response, in the inclusive range 0f..1f.

refractionDisplacement

Specified, finite, non-negative maximum distance that refraction displaces content. There is no authored upper limit.

refractionHeightFraction

Fraction of the material's shortest side used by the refraction profile, as a finite value in the inclusive range 0f..1f.

depth

Finite depth perception factor in the inclusive range 0f..1f. Values greater than 0f require drawing an additional blurred sample for the glass content, which has a rendering cost.

blurRadius

Specified, finite, non-negative maximum blur radius before the renderer's adaptive scale is applied. There is no authored upper limit.

progressive

Optional progressive intensity applied to the blur.

Constructors

Link copied to clipboard
constructor(refractionStrength: Float = 0.7f, refractionHeightFraction: Float = 0.25f, refractionDisplacement: Dp = 15.dp, depth: Float = 1.0f, blurRadius: Dp = 14.dp, progressive: HazeProgressive? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard