Przeglądaj źródła

Turn on transparency.
Turn off lighting.

aignacio_sf 19 lat temu
rodzic
commit
7088e50a28
1 zmienionych plików z 4 dodań i 0 usunięć
  1. 4 0
      direct/src/motiontrail/MotionTrail.py

+ 4 - 0
direct/src/motiontrail/MotionTrail.py

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