selene.attributes

Provides functions for creating common attribute filters.
Function
ClampFilter(min: Attribute | number, max: Attribute | number): AttributeFilter
Creates a clamp filter that restricts attribute values between min and max bounds. Both min and max can be constant numbers or other attributes.
MathOpFilter(value: number, operator: string): AttributeFilter
MathOpFilter(value: Attribute, operator: string): AttributeFilter
Creates a math operation filter that applies a simple mathematical operation to attribute values. The value can be a constant number or another attribute.Supported operators: +, -, *, /