Skip to content

Vp::SelectionCompositeShader

#include "Viewport/shader/SelectionCompositeShader.h"

Inherits from Vp::Shader

Public Functions

Name
SelectionCompositeShader(GLuint id)
virtual voidinit(bool initSuperclass) override
virtual voidsetUniforms() override<br>Set uniforms before rendering.

Public Attributes

Name
floatm_cutoff
glm::vec2m_resolution
GLuintm_sourceTextureId

Protected Attributes

Name
GLintm_cutoffId
GLintm_resolutionId
GLintm_sourceSampler

Additional inherited members

Public Functions inherited from Vp::Shader

Name
Shader(GLuint id)
virtual~Shader() =default
voidbindTexture2D(GLuint textureUnit, GLuint textureID, GLint samplerLocation)
voidbindTexture2DMS(GLuint textureUnit, GLuint textureID, GLint samplerLocation)
boolhasUniform(GLint location)
virtual voidsetUniformsPerMeshPart(Core::Mesh::MeshPart & meshPart)<br>Set uniforms before rendering individual mesh parts.
boolsupportsWboit()
virtual voiduse() const

Public Attributes inherited from Vp::Shader

Name
GLuintm_id
boolm_wboit <br>Whether to use weighted blended transparency for output if supported.
intm_wboitFunc

Protected Attributes inherited from Vp::Shader

Name
GLintm_wboitFlagId <br>Uniform id of the wboit enable/disable flag.
GLintm_wboitFuncId

Public Functions Documentation

function SelectionCompositeShader

cpp
explicit SelectionCompositeShader(
    GLuint id
)
explicit SelectionCompositeShader(
    GLuint id
)

function init

cpp
virtual void init(
    bool initSuperclass
) override
virtual void init(
    bool initSuperclass
) override

Reimplements: Vp::Shader::init

function setUniforms

cpp
virtual void setUniforms() override
virtual void setUniforms() override

Set uniforms before rendering.

Reimplements: Vp::Shader::setUniforms

Public Attributes Documentation

variable m_cutoff

cpp
float m_cutoff {0.2f};
float m_cutoff {0.2f};

variable m_resolution

cpp
glm::vec2 m_resolution {glm::vec2(1.0f)};
glm::vec2 m_resolution {glm::vec2(1.0f)};

variable m_sourceTextureId

cpp
GLuint m_sourceTextureId {0};
GLuint m_sourceTextureId {0};

Protected Attributes Documentation

variable m_cutoffId

cpp
GLint m_cutoffId;
GLint m_cutoffId;

variable m_resolutionId

cpp
GLint m_resolutionId;
GLint m_resolutionId;

variable m_sourceSampler

cpp
GLint m_sourceSampler;
GLint m_sourceSampler;

Updated on 2024-11-06 at 20:16:53 +0000