Represents a terrain.
Constructors and accessors
Other related reference items
material ( self, ID ) : stingray.MaterialReturns the specified material in the terrain.
|
self : | Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation. | |
ID : | any(integer, string) | The index or name of the material to be retrieved. The any(...) notation indicates that this item may be an instance of any of the types shown in the parentheses. |
The retrieved material. |
num_materials ( self ) : integerReturns the number of materials assigned to the terrain.
|
self : | Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation. |
integer |
The total number of materials in the terrain. |
set_shader_pass_flag ( self, flag, enabled )Determines whether or not the specified shader pass is enabled for the terrain.
|
self : | Specifies the object instance that this function will act on. You must always provide this self parameter when you call this function. You must use the dot . calling syntax, not the object-oriented colon : calling syntax.For more information, see this Stingray help topic, or this page in the Lua documentation. | |
flag : | string | The name of the shader pass flag to set. |
enabled : | boolean | Use true to enable the shader pass, or false to disable. |
This function does not return any values. |