normalized

Sets whether a given attribute should be normalized.

A normalized attribute is mapped between 0 and 1 in the shader. This applies only to integer types. By default attributes are not normalized.

Return

This Builder, for chaining calls

Parameters

attribute

The attribute to set the normalization flag for

enabled

If true, automatically normalize the attribute (default: true)

expect fun normalized(attribute: VertexBuffer.VertexAttribute, enabled: Boolean = true): VertexBuffer.Builder

Sets whether a given attribute should be normalized.

A normalized attribute is mapped between 0 and 1 in the shader. This applies only to integer types. By default attributes are not normalized.

Return

This Builder, for chaining calls

Parameters

attribute

The attribute to set the normalization flag for

enabled

If true, automatically normalize the attribute (default: true)

Sets whether a given attribute should be normalized.

A normalized attribute is mapped between 0 and 1 in the shader. This applies only to integer types. By default attributes are not normalized.

Return

This Builder, for chaining calls

Parameters

attribute

The attribute to set the normalization flag for

enabled

If true, automatically normalize the attribute (default: true)

Sets whether a given attribute should be normalized.

A normalized attribute is mapped between 0 and 1 in the shader. This applies only to integer types. By default attributes are not normalized.

Return

This Builder, for chaining calls

Parameters

attribute

The attribute to set the normalization flag for

enabled

If true, automatically normalize the attribute (default: true)

Sets whether a given attribute should be normalized.

A normalized attribute is mapped between 0 and 1 in the shader. This applies only to integer types. By default attributes are not normalized.

Return

This Builder, for chaining calls

Parameters

attribute

The attribute to set the normalization flag for

enabled

If true, automatically normalize the attribute (default: true)