KX_BlenderMaterial(PyObjectPlus)

base class — PyObjectPlus

class bge.types.KX_BlenderMaterial(PyObjectPlus)

KX_BlenderMaterial

shader

The materials shader.

Type :BL_Shader
blending

Ints used for pixel blending, (src, dst), matching the setBlending method.

Type :(integer, integer)
material_index

The material’s index.

Type :integer
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

Previous topic

KX_ArmatureSensor(SCA_ISensor)

Next topic

KX_Camera(KX_GameObject)