hasAttribute

fun hasAttribute(attributeName: String): Boolean

Checks if a shader has a specific attribute variable.

Return

true if the attribute variable exists, false otherwise.

Parameters

attributeName

The name of the attribute variable. You can find the attribute names in the shader code.