#include <llglslshader.h>
Definition at line 78 of file llglslshader.h.
Definition at line 180 of file llglslshader.h.
Definition at line 110 of file llglslshader.h.
Definition at line 121 of file llglslshader.h.
SHADER_LIGHTING | |
SHADER_OBJECT | |
SHADER_AVATAR | |
SHADER_ENVIRONMENT | |
SHADER_INTERFACE | |
SHADER_COUNT |
Definition at line 100 of file llglslshader.h.
Definition at line 160 of file llglslshader.h.
WATER_SCREENTEX | |
WATER_EYEVEC | |
WATER_TIME | |
WATER_WAVE_DIR1 | |
WATER_WAVE_DIR2 | |
WATER_LIGHT_DIR | |
WATER_SPECULAR | |
WATER_SPECULAR_EXP | |
WATER_FBSCALE | |
WATER_REFSCALE |
Definition at line 142 of file llglslshader.h.
Definition at line 193 of file llglslshader.cpp.
References get_object_log(), llendl, llinfos, and llwarns.
Referenced by linkProgramObject(), loadShader(), and validateProgramObject().
Definition at line 167 of file llglslshader.cpp.
References sMaxVertexShaderLevel.
Referenced by LLPanelDisplay3::refreshEnabledState().
Definition at line 162 of file llglslshader.cpp.
References sVertexShaderLevel.
Referenced by LLDrawPoolBump::beginShiny(), LLDrawPoolBump::endShiny(), LLVOAvatar::idleUpdate(), LLDrawPoolWater::prerender(), LLDrawPoolStars::prerender(), LLDrawPoolSky::prerender(), LLDrawPoolSimple::prerender(), LLDrawPoolGround::prerender(), LLDrawPoolBump::prerender(), LLDrawPoolAvatar::prerender(), LLDrawPoolAlpha::prerender(), and LLViewerJointMesh::updateGeometry().
Definition at line 360 of file llglslshader.cpp.
References dumpObjectLog(), FALSE, get_object_log(), llendl, llwarns, and LLStringBase< char >::toLower().
Referenced by LLGLSLShader::link().
Definition at line 206 of file llglslshader.cpp.
References count, dumpObjectLog(), f, gDirUtilp, LLDir::getExpandedFilename(), glGetError, i, LL_PATH_APP_SETTINGS, llendl, llinfos, llwarns, NULL, S32, sMaxVertexShaderLevel, stop_glerror, and sVertexShaderLevel.
Referenced by loadShadersAvatar(), loadShadersEnvironment(), loadShadersInterface(), loadShadersLighting(), and loadShadersObject().
BOOL LLShaderMgr::loadShadersAvatar | ( | ) | [static] |
Definition at line 834 of file llglslshader.cpp.
References LLGLSLShader::attachObject(), LLGLSLShader::attachObjects(), FALSE, gAvatarEyeballProgram, gAvatarPickProgram, gAvatarProgram, gAvatarSkinVertex, gLightFragment, gLightVertex, gScatterFragment, gScatterVertex, llendl, llwarns, loadShader(), LLGLSLShader::mapAttributes(), LLGLSLShader::mapUniforms(), LLGLSLShader::mProgramObject, S32, sAvatarAttribCount, sAvatarAttribs, sAvatarUniformCount, sAvatarUniforms, SHADER_AVATAR, sMaxVertexShaderLevel, sVertexShaderLevel, TRUE, and LLGLSLShader::unload().
Referenced by setShaders().
BOOL LLShaderMgr::loadShadersEnvironment | ( | ) | [static] |
Definition at line 600 of file llglslshader.cpp.
References LLGLSLShader::attachObject(), LLGLSLShader::attachObjects(), FALSE, gGlowProgram, gGroundProgram, gLightFragment, gLightVertex, gScatterFragment, gScatterVertex, gTerrainProgram, gWaterProgram, gWorldPointer, llendl, llwarns, loadShader(), LLGLSLShader::mapAttributes(), LLGLSLShader::mapUniforms(), LLGLSLShader::mProgramObject, S32, sGlowUniformCount, sGlowUniforms, SHADER_ENVIRONMENT, sMaxVertexShaderLevel, sTerrainUniformCount, sTerrainUniforms, sVertexShaderLevel, sWaterUniformCount, sWaterUniforms, TRUE, and LLGLSLShader::unload().
Referenced by setShaders().
BOOL LLShaderMgr::loadShadersInterface | ( | ) | [static] |
Definition at line 930 of file llglslshader.cpp.
References LLGLSLShader::attachObject(), FALSE, gHighlightProgram, llendl, llwarns, loadShader(), LLGLSLShader::mapAttributes(), LLGLSLShader::mapUniforms(), LLGLSLShader::mProgramObject, SHADER_INTERFACE, sMaxVertexShaderLevel, sVertexShaderLevel, TRUE, and LLGLSLShader::unload().
BOOL LLShaderMgr::loadShadersLighting | ( | ) | [static] |
Definition at line 557 of file llglslshader.cpp.
References FALSE, gLightFragment, gLightVertex, gScatterFragment, gScatterVertex, llendl, llwarns, loadShader(), SHADER_ENVIRONMENT, SHADER_LIGHTING, and TRUE.
Referenced by setShaders().
BOOL LLShaderMgr::loadShadersObject | ( | ) | [static] |
Definition at line 718 of file llglslshader.cpp.
References LLGLSLShader::attachObject(), LLGLSLShader::attachObjects(), FALSE, gLightFragment, gLightVertex, gObjectAlphaProgram, gObjectBumpProgram, gObjectShinyProgram, gObjectSimpleProgram, gScatterFragment, gScatterVertex, llendl, llwarns, loadShader(), LLGLSLShader::mapAttributes(), LLGLSLShader::mapUniforms(), LLGLSLShader::mProgramObject, S32, SHADER_OBJECT, sMaxVertexShaderLevel, sShinyUniformCount, sShinyUniforms, sVertexShaderLevel, TRUE, and LLGLSLShader::unload().
Referenced by setShaders().
void LLShaderMgr::setShaders | ( | ) | [static] |
Definition at line 410 of file llglslshader.cpp.
References LLPipeline::canUseVertexShaders(), FALSE, LLControlGroup::getBOOL(), LLPipeline::getLightingDetail(), LLControlGroup::getS32(), gFeatureManagerp, gGLManager, gPipeline, gSavedSettings, gViewerWindow, i, LLFeatureList::isFeatureAvailable(), llmax(), loadShadersAvatar(), loadShadersEnvironment(), loadShadersLighting(), loadShadersObject(), LLGLManager::mHasCubeMap, LLGLManager::mHasFramebufferObject, LLPipeline::mInitialized, LLPipeline::mVertexShadersEnabled, LLPipeline::mVertexShadersLoaded, LLPipeline::resetVertexBuffers(), S32, LLPipeline::sDynamicReflections, LLControlGroup::setBOOL(), LLViewerWindow::setCursor(), LLPipeline::setLightingDetail(), LLControlGroup::setS32(), SHADER_AVATAR, SHADER_COUNT, SHADER_ENVIRONMENT, SHADER_LIGHTING, SHADER_OBJECT, sMaxVertexShaderLevel, LLPipeline::sRenderGlow, sVertexShaderLevel, TRUE, UI_CURSOR_ARROW, and UI_CURSOR_WAIT.
Referenced by LLReleaseGLBufferListener::handleEvent(), LLSetShaderListener::handleEvent(), LLPipeline::init(), LLPipeline::restoreGL(), and LLPipeline::setLightingDetail().
void LLShaderMgr::unloadShaders | ( | ) | [static] |
Definition at line 532 of file llglslshader.cpp.
References gAvatarEyeballProgram, gAvatarPickProgram, gAvatarProgram, gGlowProgram, gGroundProgram, gHighlightProgram, gLightFragment, gLightVertex, gObjectAlphaProgram, gObjectBumpProgram, gObjectShinyProgram, gObjectSimpleProgram, gPipeline, gScatterFragment, gScatterVertex, gTerrainProgram, gWaterProgram, LLPipeline::mVertexShadersLoaded, SHADER_AVATAR, SHADER_ENVIRONMENT, SHADER_INTERFACE, SHADER_LIGHTING, SHADER_OBJECT, sVertexShaderLevel, and LLGLSLShader::unload().
Referenced by LLPipeline::unloadShaders().
BOOL LLShaderMgr::validateProgramObject | ( | GLhandleARB | obj | ) | [static] |
Definition at line 388 of file llglslshader.cpp.
References dumpObjectLog(), FALSE, llendl, and llwarns.
U32 LLShaderMgr::sAvatarAttribCount = sizeof(LLShaderMgr::sAvatarAttribs)/sizeof(char*) [static] |
const char * LLShaderMgr::sAvatarAttribs [static] |
Initial value:
{ "weight", "clothing", "gWindDir", "gSinWaveParams", "gGravity" }
Definition at line 177 of file llglslshader.h.
Referenced by loadShadersAvatar().
U32 LLShaderMgr::sAvatarUniformCount = 1 [static] |
const char * LLShaderMgr::sAvatarUniforms [static] |
Initial value:
{
"matrixPalette"
}
Definition at line 189 of file llglslshader.h.
Referenced by loadShadersAvatar().
U32 LLShaderMgr::sGlowUniformCount = sizeof(LLShaderMgr::sGlowUniforms)/sizeof(char*) [static] |
const char * LLShaderMgr::sGlowUniforms [static] |
Initial value:
{
"delta"
}
Definition at line 168 of file llglslshader.h.
Referenced by loadShadersEnvironment().
S32 LLShaderMgr::sMaxVertexShaderLevel = { 0 } [static] |
Definition at line 95 of file llglslshader.h.
Referenced by getMaxVertexShaderLevel(), loadShader(), loadShadersAvatar(), loadShadersEnvironment(), loadShadersInterface(), loadShadersObject(), and setShaders().
U32 LLShaderMgr::sReservedAttribCount = LLShaderMgr::END_RESERVED_ATTRIBS [static] |
const char * LLShaderMgr::sReservedAttribs [static] |
Initial value:
{ "materialColor", "specularColor", "binormal" }
Definition at line 97 of file llglslshader.h.
Referenced by LLGLSLShader::mapAttributes().
U32 LLShaderMgr::sReservedUniformCount = LLShaderMgr::END_RESERVED_UNIFORMS [static] |
Definition at line 119 of file llglslshader.h.
const char * LLShaderMgr::sReservedUniforms [static] |
Initial value:
{ "diffuseMap", "specularMap", "bumpMap", "environmentMap", "scatterMap" }
Definition at line 118 of file llglslshader.h.
U32 LLShaderMgr::sShinyUniformCount = sizeof(LLShaderMgr::sShinyUniforms)/sizeof(char*) [static] |
const char * LLShaderMgr::sShinyUniforms [static] |
Initial value:
{
"origin"
}
Definition at line 130 of file llglslshader.h.
Referenced by loadShadersObject().
U32 LLShaderMgr::sTerrainUniformCount = sizeof(LLShaderMgr::sTerrainUniforms)/sizeof(char*) [static] |
const char * LLShaderMgr::sTerrainUniforms [static] |
Initial value:
{ "detail0", "detail1", "alphaRamp" }
Definition at line 157 of file llglslshader.h.
Referenced by loadShadersEnvironment().
S32 LLShaderMgr::sVertexShaderLevel = { 0 } [static] |
Definition at line 94 of file llglslshader.h.
Referenced by getVertexShaderLevel(), loadShader(), loadShadersAvatar(), loadShadersEnvironment(), loadShadersInterface(), loadShadersObject(), LLPipeline::renderHighlights(), setShaders(), and unloadShaders().
U32 LLShaderMgr::sWaterUniformCount = sizeof(LLShaderMgr::sWaterUniforms)/sizeof(char*) [static] |
const char * LLShaderMgr::sWaterUniforms [static] |
Initial value:
{ "screenTex", "eyeVec", "time", "d1", "d2", "lightDir", "specular", "lightExp", "fbScale", "refScale" }
Definition at line 139 of file llglslshader.h.
Referenced by loadShadersEnvironment().