PYME.LMVis.shader_programs.PointSpriteShaderProgram module

class PYME.LMVis.shader_programs.PointSpriteShaderProgram.BigPointSpriteShaderProgram(**kwargs)

Bases: PointSpriteShaderProgram

class PYME.LMVis.shader_programs.PointSpriteShaderProgram.GaussTexture

Bases: object

bind_texture(uniform_location)

This methods binds exactly one texture. Parameters ———- uniform_location: int, defines the uniform location, use shader_program.get_uniform_location

Returns
create_texture(size=31, sigma=5, normalize_sum=False)

This method create a gauss kernel texture and stores it on the graphics card. The max amplitude of the kernel is 1. Parameters ———- size size of the kernel sigma of the kernel

Returns
size correction factor is a factor that should be multiplied on the texture size.
That way sprites don’t appear smaller than opaque dots
delete_texture()
static disable_texture_2d()
static enable_texture_2d()
load_texture()
class PYME.LMVis.shader_programs.PointSpriteShaderProgram.PointSpriteShaderProgram(**kwargs)

Bases: GLProgram

get_size_factor()