getSourceValueStringComponent
external fun getSourceValueStringComponent(classProperty: MetadataClassProperty, metadataProperty: Any, componentName: String): String(source)
Creates a shader statement that returns the value of the specified component of the given property, normalized to the range 0, 1.
Return
The string
Parameters
classProperty
The class property
metadataProperty
The metadata property, either a PropertyTextureProperty
or a PropertyAttributeProperty
componentName
The name, in "x", "y", "z", "w"