b
b
gets/sets
the blue color channel of the vertex
Type: float
Range: 0.00 to 1.00
Sample
Code
###### Get the vertex blue color channel
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# get the blue color channel (RGBA)
bColor = vert.b
###### set the vertex blue color channel
# get controller
controller = GameLogic.getCurrentController()
# get object the controller is attached to
obj = controller.owner
# get the 1st mesh
mesh = obj.meshes[0]
# get the first vertex of the first material
vert = mesh.getVertex( 0, 0)
# set the blue color channel (RGBA)
vert.b = 1.0
|