#include <ShaderPrograms.h>
|
| | FullLightingProgram () |
| |
| | FullLightingProgram (std::initializer_list< ShaderSource > sources) |
| |
| | ~FullLightingProgram () |
| |
| void | setDefaultFramebufferObject (GLuint id) |
| |
| GLuint | defaultFramebufferObject () const |
| |
| void | setViewportSize (int width, int height) |
| |
| virtual void | initialize () override |
| |
| virtual void | release () override |
| |
| virtual void | activate () override |
| |
| virtual bool | setLight (int index, const SgLight *light, const Isometry3 &T, const Isometry3 &view, bool shadowCasting) override |
| |
| virtual void | setTransform (const Matrix4 &PV, const Isometry3 &V, const Affine3 &M, const Matrix4 *L) override |
| |
| void | enableWireframe (const Vector4f &color, float width) |
| |
| void | disableWireframe () |
| |
| bool | isWireframeEnabled () const |
| |
| void | activateShadowMapGenerationPass (int shadowIndex) |
| |
| void | activateMainRenderingPass () |
| |
| void | setShadowMapTextureTopIndex (int textureIndex) |
| |
| int | maxNumShadows () const |
| |
| void | setNumShadows (int n) |
| |
| ShadowMapProgram * | shadowMapProgram () |
| |
| void | getShadowMapSize (int &width, int &height) const |
| |
| SgCamera * | getShadowMapCamera (SgLight *light, Isometry3 &io_T) |
| |
| void | setShadowMapViewProjection (const Matrix4 &PV) |
| |
| void | setShadowAntiAliasingEnabled (bool on) |
| |
| bool | isShadowAntiAliasingEnabled () const |
| |
| virtual void | setMaterial (const SgMaterial *material) override |
| |
| virtual void | setVertexColorEnabled (bool on) override |
| |
| void | setColorTextureIndex (int textureIndex) |
| |
| int | colorTextureIndex () const |
| |
| void | setTextureEnabled (bool on) |
| |
| void | setMinimumTransparency (float t) |
| |
| virtual int | maxNumLights () const override |
| |
| virtual void | setNumLights (int n) override |
| |
| virtual void | setFog (const SgFog *fog) override |
| |
| virtual | ~ShaderProgram () |
| |
| GLSLProgram & | glslProgram () |
| |
| virtual void | deactivate () |
| |
| bool | isActive () const |
| |
| int | capabilities () const |
| |
| bool | hasCapability (int capability) const |
| |
◆ FullLightingProgram() [1/2]
| FullLightingProgram::FullLightingProgram |
( |
| ) |
|
◆ FullLightingProgram() [2/2]
| FullLightingProgram::FullLightingProgram |
( |
std::initializer_list< ShaderSource > |
sources | ) |
|
◆ ~FullLightingProgram()
| FullLightingProgram::~FullLightingProgram |
( |
| ) |
|
◆ activate()
| void FullLightingProgram::activate |
( |
| ) |
|
|
overridevirtual |
◆ activateMainRenderingPass()
| void FullLightingProgram::activateMainRenderingPass |
( |
| ) |
|
◆ activateShadowMapGenerationPass()
| void FullLightingProgram::activateShadowMapGenerationPass |
( |
int |
shadowIndex | ) |
|
◆ defaultFramebufferObject()
| GLuint FullLightingProgram::defaultFramebufferObject |
( |
| ) |
const |
◆ disableWireframe()
| void FullLightingProgram::disableWireframe |
( |
| ) |
|
◆ enableWireframe()
| void FullLightingProgram::enableWireframe |
( |
const Vector4f & |
color, |
|
|
float |
width |
|
) |
| |
◆ getShadowMapCamera()
◆ getShadowMapSize()
| void FullLightingProgram::getShadowMapSize |
( |
int & |
width, |
|
|
int & |
height |
|
) |
| const |
◆ initialize()
| void FullLightingProgram::initialize |
( |
| ) |
|
|
overridevirtual |
◆ isShadowAntiAliasingEnabled()
| bool FullLightingProgram::isShadowAntiAliasingEnabled |
( |
| ) |
const |
◆ isWireframeEnabled()
| bool FullLightingProgram::isWireframeEnabled |
( |
| ) |
const |
◆ maxNumShadows()
| int FullLightingProgram::maxNumShadows |
( |
| ) |
const |
◆ release()
| void FullLightingProgram::release |
( |
| ) |
|
|
overridevirtual |
◆ setDefaultFramebufferObject()
| void FullLightingProgram::setDefaultFramebufferObject |
( |
GLuint |
id | ) |
|
◆ setLight()
| bool FullLightingProgram::setLight |
( |
int |
index, |
|
|
const SgLight * |
light, |
|
|
const Isometry3 & |
T, |
|
|
const Isometry3 & |
view, |
|
|
bool |
shadowCasting |
|
) |
| |
|
overridevirtual |
◆ setNumShadows()
| void FullLightingProgram::setNumShadows |
( |
int |
n | ) |
|
◆ setShadowAntiAliasingEnabled()
| void FullLightingProgram::setShadowAntiAliasingEnabled |
( |
bool |
on | ) |
|
◆ setShadowMapTextureTopIndex()
| void FullLightingProgram::setShadowMapTextureTopIndex |
( |
int |
textureIndex | ) |
|
◆ setShadowMapViewProjection()
| void FullLightingProgram::setShadowMapViewProjection |
( |
const Matrix4 & |
PV | ) |
|
◆ setTransform()
- Parameters
-
| PV | Product of the project matrix and view matrix |
| V | The transform corresponding to the view matrix |
| M | The transform corresponding to the model matrix |
| L | The transform corresponding to the local vertex transform matrix |
- Note
- L is used when the vertex positions are expressed as normalized ([-1.0, 1.0]) integer value
Reimplemented from cnoid::ShaderProgram.
◆ setViewportSize()
| void FullLightingProgram::setViewportSize |
( |
int |
width, |
|
|
int |
height |
|
) |
| |
◆ shadowMapProgram()
◆ ShadowMapProgram
The documentation for this class was generated from the following files: