(self, is_static=False)
Add static or dynamic position transformation.
Add static or dynamic position transformation.
Add static or dynamic position transformation .
def initialize_navigation(self, is_static=False):
        """Add static or dynamic position transformation."""
        
        # dynamic navigation
        if not is_static:
            self.add_uniform("transform", vartype="float", ndim=(4,4),
                size=None, data=np.eye(4))
            
            self.add_vertex_main("""
                gl_Position = projection * camera * transform * gl_Position;""",
                    position='last')
        # static
        else:
            self.add_vertex_main("""
                gl_Position = projection * camera * gl_Position;""")
def initialize_navigation ( self , is_static = False ) : # dynamic navigation if not is_static : self . add_uniform ( "transform" , vartype = "float" , ndim = ( 4 , 4 ) , size = None , data = np . eye ( 4 ) ) self . add_vertex_main ( """
                gl_Position = projection * camera * transform * gl_Position;""" , position = 'last' ) # static else : self . add_vertex_main ( """
                gl_Position = projection * camera * gl_Position;""" )