(self, *args, **kwargs)
Add code in the main function of the fragment shader.
        At the end of the code, the vec4 variable `out_color` must have been
        defined. It contains the color of the current pixel.
        
        Arguments:
          * code: the GLSL code as a string.
          * index=None: the index of that code snippet in the final main
            function. By default (index=None), the code is appended at the end
            of the main function. With index=0, it is at the beginning of the
            main function. Other integer values may be used when using several
            calls to `add_fragment_main`.
Add code in the main function of the fragment shader.
        At the end of the code, the vec4 variable `out_color` must have been
        defined. It contains the color of the current pixel.
        
        Arguments:
          * code: the GLSL code as a string.
          * index=None: the index of that code snippet in the final main
            function. By default (index=None), the code is appended at the end
            of the main function. With index=0, it is at the beginning of the
            main function. Other integer values may be used when using several
            calls to `add_fragment_main`.
Add code in the main function of the fragment shader . At the end of the code the vec4 variable out_color must have been defined . It contains the color of the current pixel . Arguments : * code : the GLSL code as a string . * index = None : the index of that code snippet in the final main function . By default ( index = None ) the code is appended at the end of the main function . With index = 0 it is at the beginning of the main function . Other integer values may be used when using several calls to add_fragment_main .
def add_fragment_main(self, *args, **kwargs):
        """Add code in the main function of the fragment shader.
        At the end of the code, the vec4 variable `out_color` must have been
        defined. It contains the color of the current pixel.
        
        Arguments:
          * code: the GLSL code as a string.
          * index=None: the index of that code snippet in the final main
            function. By default (index=None), the code is appended at the end
            of the main function. With index=0, it is at the beginning of the
            main function. Other integer values may be used when using several
            calls to `add_fragment_main`.
        
        """
        kwargs['shader'] = 'fragment'
        self.add_main(*args, **kwargs)
def add_fragment_main ( self , * args , * * kwargs ) : kwargs [ 'shader' ] = 'fragment' self . add_main ( * args , * * kwargs )