beatmup.ImageShader

class beatmup.ImageShader

A GLSL program to process images

__init__(self: beatmup.ImageShader, context: beatmup.Context) None

Methods

__init__(self, context)

set_float(*args, **kwargs)

Overloaded function.

set_float_array(self, name, values)

Sets a float array variable value

set_float_matrix2(self, name, matrix)

Sets a float 2*2 matrix variable value

set_float_matrix3(self, name, matrix)

Sets a float 3*3 matrix variable value

set_float_matrix4(self, name, matrix)

Sets a float 4*4 matrix variable value

set_integer(*args, **kwargs)

Overloaded function.

set_source_code(self, glsl)

Passes new source code to the fragment shader.

Attributes

CODE_HEADER

INPUT_IMAGE_DECL_TYPE

INPUT_IMAGE_ID