From 7088e50a284543cc5c01151c91d3c9738ceb15b1 Mon Sep 17 00:00:00 2001 From: aignacio_sf <> Date: Wed, 19 Apr 2006 21:38:27 +0000 Subject: [PATCH] Turn on transparency. Turn off lighting. --- direct/src/motiontrail/MotionTrail.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/direct/src/motiontrail/MotionTrail.py b/direct/src/motiontrail/MotionTrail.py index 849f11410b..e889ee8ac0 100644 --- a/direct/src/motiontrail/MotionTrail.py +++ b/direct/src/motiontrail/MotionTrail.py @@ -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)