KX_BlenderMaterial(PyObjectPlus)
base class — PyObjectPlus
-
class bge.types.KX_BlenderMaterial(PyObjectPlus)
KX_BlenderMaterial
-
shader
The materials shader.
-
blending
Ints used for pixel blending, (src, dst), matching the setBlending method.
-
material_index
The material’s index.
-
getShader()
Returns the material’s shader.
Returns: | the material’s shader |
Return type: | BL_Shader |
-
setBlending(src, dest)
Set the pixel color arithmetic functions.
Parameters: |
- src – Specifies how the red, green, blue, and alpha source blending factors are computed.
- dest – Specifies how the red, green, blue, and alpha destination blending factors are computed.
|
-
getMaterialIndex()
Returns the material’s index.
Returns: | the material’s index |
Return type: | integer |