get Attribute Location
Gets the location of a shader attribute variable by name.
Return
The location of the attribute variable, or -1 if not found.
Parameters
attribute Name
The name of the attribute variable. You can find the attribute names in the shader code.