Exemple #1
0
 def arc_color(self, rays, hue):
     shad = ShaderData(self.dancer)
     shad.active_rays = rays
     shad.active_indices = range(self.ray_length)
     shad.pixel_component = 'h'
     shad.mix_function = 'replace'
     shad.generate_function = 'arc'
     shad.length = self.ray_length
     shad.generate_parameters = {'value': hue, 'start_time': time.time()}
     self.shaders['arc_color'] = shad
     return shad
Exemple #2
0
 def full_brightness(self, brightness):
     shad = ShaderData(self.dancer)
     shad.pixel_component = 'l'
     shad.active_rays = range(self.dancer.num_rays)
     shad.active_indices = range(self.ray_length)
     shad.mix_function = 'multiply'
     shad.generate_function = 'parameter_by_ray'
     shad.length = self.ray_length
     shad.generate_parameters = {'value': [brightness] * self.dancer.num_rays}
     self.shaders['full_brightness'] = shad
     return shad