Turn on transparency.

Turn off lighting.
This commit is contained in:
aignacio_sf 2006-04-19 21:38:27 +00:00
parent 8af16b0dcc
commit 7088e50a28
1 changed files with 4 additions and 0 deletions

View File

@ -58,9 +58,13 @@ class MotionTrail(NodePath):
# set render states
node_path.node ( ).setAttrib (ColorBlendAttrib.make (ColorBlendAttrib.MAdd))
node_path.setTransparency (True)
node_path.setDepthWrite (False)
node_path.setTwoSided (True)
# do not light
node_path.setLightOff ( )
# do not display in reflections
OTPRender.renderReflection (False, self, 'motion_trail', None)