OpticalSizeValue

sealed interface OpticalSizeValue<T>

An optical parameter value that is either fixed or responsive to a material's shortest dimension.

This type does not define interpolation for arbitrary T. GlassOptics accepts OpticalSizeValue only for its Float depth and Dp blur-radius properties and owns the corresponding interpolation and value validation.

Inheritors

Types

Link copied to clipboard
value class Fixed<T>(val value: T) : OpticalSizeValue<T>

A value which does not change with the material size.

Link copied to clipboard

A value resolved from two or more shortest-dimension points.