Exemple #1
0
 def linear_shader(self):
     if not self._linear_shader:
         self._linear_shader = shader.make_program_from_src(
                                 "vs", "linear_ps",
                                 svg_shader_constants.vertex, svg_shader_constants.linear)
     return self._linear_shader
Exemple #2
0
 def radial_shader(self):
     if not self._radial_shader:
         self._radial_shader = shader.make_program_from_src(
                                 "vs", "radial_ps",
                                 svg_shader_constants.vertex, svg_shader_constants.radial)
     return self._radial_shader