vrdChunkMaterial¶
-
class
vrdChunkMaterial
¶
(Inherits vrdMaterial
)
This class is used to handle all chunk material properties.
Summary¶
Functions¶
-
vrdChunkMaterial.
getSortKey
()¶ Returns: Current sort key value of the material for OpenGL Return type: integer
-
vrdChunkMaterial.
getTransparencyMode
()¶ Returns the transparency mode.
Returns: Current used transparency mode Return type: vrdChunkMaterial.TransparencyMode
-
vrdChunkMaterial.
setSortKey
(value)¶ Changes the order in which transparent materials are rendered in OpenGL when the Transparency Mode is set to Object Sorting. Transparent surfaces with the same sort key are sorted back to front.
Parameters: value (integer) – New sort key value.
-
vrdChunkMaterial.
setTransparencyMode
(mode)¶ Sets the mode used for the transparency of the Chunk material.
Parameters: mode (vrdChunkMaterial.TransparencyMode) – New used transparency mode
Instance Variables¶
-
chunks
: vrdMaterialChunkList¶ Access the list of chunks.