picogl.backend.modern.core.uniform.mvp

Functions

set_mvp_uniform(→ None)

set_mvp_uniform

shader_uniform_set_mvp(shader_program, mvp_matrix)

shader_uniform_set_mvp

Module Contents

picogl.backend.modern.core.uniform.mvp.set_mvp_uniform(shader: picogl.backend.modern.core.shader.program.ShaderProgram = None, mvp: pyglm.glm.mat4 = None) None[source]

set_mvp_uniform

Parameters:
  • shader

  • mvp

Returns:

None

Set the model_matrix-view-projection matrix uniform in the shader program.

picogl.backend.modern.core.uniform.mvp.shader_uniform_set_mvp(shader_program: int, mvp_matrix: numpy.ndarray | pyglm.glm.mat4)[source]

shader_uniform_set_mvp

Parameters:
  • mvp_matrix – np.ndarray or glm.mat4 - model_matrix-view-projection matrix

  • shader_program – int

Returns:

None