Vp::ObjectShader
#include "Viewport/shader/ObjectShader.h"
Inherits from Vp::WorldShader, Vp::Shader
Inherited by Vp::ColorShader, Vp::GridShader, Vp::PhongShader
Public Functions
Name | |
---|---|
ObjectShader(GLuint id) | |
virtual void | init(bool initSuperclass) override |
virtual void | setUniforms() override<br>Set uniforms before rendering. |
Public Attributes
Name | |
---|---|
float | m_opacity |
Protected Attributes
Name | |
---|---|
GLint | opacityId |
Additional inherited members
Public Functions inherited from Vp::WorldShader
Name | |
---|---|
WorldShader(GLuint id) | |
void | setWorldTransform(const glm::mat4 & model, const glm::mat4 & view, const glm::mat4 & projection)<br>Updates MVP matrices. |
Public Attributes inherited from Vp::WorldShader
Name | |
---|---|
glm::mat4 | m_model |
glm::mat4 | m_projection |
glm::mat4 | m_view |
GLint | m_wboitFarId |
GLint | m_wboitNearId |
GLint | modelMatrixId |
GLint | normalMatrixId |
GLint | projectionMatrixId |
GLint | pvmMatrixId |
GLint | viewMatrixId |
Public Functions inherited from Vp::Shader
Name | |
---|---|
Shader(GLuint id) | |
virtual | ~Shader() =default |
void | bindTexture2D(GLuint textureUnit, GLuint textureID, GLint samplerLocation) |
void | bindTexture2DMS(GLuint textureUnit, GLuint textureID, GLint samplerLocation) |
bool | hasUniform(GLint location) |
virtual void | setUniformsPerMeshPart(Core::Mesh::MeshPart & meshPart)<br>Set uniforms before rendering individual mesh parts. |
bool | supportsWboit() |
virtual void | use() const |
Public Attributes inherited from Vp::Shader
Name | |
---|---|
GLuint | m_id |
bool | m_wboit <br>Whether to use weighted blended transparency for output if supported. |
int | m_wboitFunc |
Protected Attributes inherited from Vp::Shader
Name | |
---|---|
GLint | m_wboitFlagId <br>Uniform id of the wboit enable/disable flag. |
GLint | m_wboitFuncId |
Public Functions Documentation
function ObjectShader
cpp
explicit ObjectShader(
GLuint id
)
explicit ObjectShader(
GLuint id
)
function init
cpp
virtual void init(
bool initSuperclass
) override
virtual void init(
bool initSuperclass
) override
Reimplements: Vp::Shader::init
Reimplemented by: Vp::PhongShader::init
function setUniforms
cpp
virtual void setUniforms() override
virtual void setUniforms() override
Set uniforms before rendering.
Reimplements: Vp::Shader::setUniforms
Reimplemented by: Vp::PhongShader::setUniforms
Public Attributes Documentation
variable m_opacity
cpp
float m_opacity {1.0f};
float m_opacity {1.0f};
Protected Attributes Documentation
variable opacityId
cpp
GLint opacityId;
GLint opacityId;
Updated on 2024-11-06 at 20:16:53 +0000