Effect
Description:
A class for managing multiple render pass objects. Effect objects allow you to combine multiple passes to create more complex shader effects.
Class Object: Effect Class.
Inherits from: Object.
add
Type: Function.
Description:
A function that adds a Pass object to this Effect.
Signature:
add: function(self: Effect, pass: Pass)
Parameters:
Parameter | Type | Description |
---|---|---|
pass | Pass | The Pass object to add. |
get
Type: Function.
Description:
A function that retrieves a Pass object from this Effect by index.
Signature:
get: function(self: Effect, index: integer): Pass
Parameters:
Parameter | Type | Description |
---|---|---|
index | integer | The index of the Pass object to retrieve. |
Returns:
Return Type | Description |
---|---|
Pass | The Pass object at the given index. |
clear
Type: Function.
Description:
A function that removes all Pass objects from this Effect.
Signature:
clear: function(self: Effect)