new materialAttribute(type) → {vgl.materialAttribute}
- Description:
 Create a new instance of class materialAttribute.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
type | 
            
            number | 
Returns:
Methods
bindVertexData(renderState, key) → {boolean}
- Description:
 Bind and activate vertex specific data.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
renderState | 
            
            vgl.renderState | |
key | 
            
            string | 
Returns:
- Type
 - boolean
 
enabled() → {boolean}
- Description:
 Return if material attribute is enabled or not.
- Source:
 
Returns:
- Type
 - boolean
 
type() → {number}
- Description:
 Return type of the material attribute.
- Source:
 
Returns:
- Type
 - number
 
undoBindVertexData(renderState, key) → {boolean}
- Description:
 Undo bind and deactivate vertex specific data.
- Source:
 
Parameters:
| Name | Type | Description | 
|---|---|---|
renderState | 
            
            vgl.renderState | |
key | 
            
            string | 
Returns:
- Type
 - boolean