(self)
Set the fragment shader code.
Set the fragment shader code.
Set the fragment shader code .
def initialize_fragment(self):
        """Set the fragment shader code."""
        # if self.ndim == 1:
            # shader_pointcoord = ".x"
        # else:
            # shader_pointcoord = ""
        shader_pointcoord = ""
        fragment = """
        out_color = texture%dD(tex_sampler, varying_tex_coords%s);
        """ % (self.ndim, shader_pointcoord)
        # print fragment
        self.add_fragment_main(fragment)
def initialize_fragment ( self ) : # if self.ndim == 1: # shader_pointcoord = ".x" # else: # shader_pointcoord = "" shader_pointcoord = "" fragment = """
        out_color = texture%dD(tex_sampler, varying_tex_coords%s);
        """ % ( self . ndim , shader_pointcoord ) # print fragment self . add_fragment_main ( fragment )