NORSPEC-151 make disabling bumpyshiny disable adv lighting model as well
parent
419a06036b
commit
9187a06d0b
|
|
@ -1331,6 +1331,7 @@ BOOL LLFace::getGeometryVolume(const LLVolume& volume,
|
|||
getPoolType() != LLDrawPool::POOL_ALPHA &&
|
||||
(LLPipeline::sRenderDeferred || (LLPipeline::sRenderBump && tep->getShiny())))
|
||||
{
|
||||
llassert(tep->getShiny() <= 3);
|
||||
color.mV[3] = U8 (alpha[tep->getShiny()] * 255);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1089,8 +1089,9 @@ void LLFloaterPreference::refreshEnabledState()
|
|||
ctrl_reflections->setEnabled(reflections);
|
||||
|
||||
// Bump & Shiny
|
||||
LLCheckBoxCtrl* bumpshiny_ctrl = getChild<LLCheckBoxCtrl>("BumpShiny");
|
||||
bool bumpshiny = gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump");
|
||||
getChild<LLCheckBoxCtrl>("BumpShiny")->setEnabled(bumpshiny ? TRUE : FALSE);
|
||||
bumpshiny_ctrl->setEnabled(bumpshiny ? TRUE : FALSE);
|
||||
|
||||
radio_reflection_detail->setEnabled(reflections);
|
||||
|
||||
|
|
@ -1149,6 +1150,7 @@ void LLFloaterPreference::refreshEnabledState()
|
|||
LLCheckBoxCtrl* ctrl_deferred = getChild<LLCheckBoxCtrl>("UseLightShaders");
|
||||
|
||||
BOOL enabled = LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
((bumpshiny_ctrl && bumpshiny_ctrl->get()) ? TRUE : FALSE) &&
|
||||
shaders &&
|
||||
gGLManager.mHasFramebufferObject &&
|
||||
gSavedSettings.getBOOL("RenderAvatarVP") &&
|
||||
|
|
@ -2319,3 +2321,4 @@ void LLFloaterPreferenceProxy::onChangeSocksSettings()
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -4152,7 +4152,7 @@ void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep,
|
|||
draw_vec.push_back(draw_info);
|
||||
draw_info->mTextureMatrix = tex_mat;
|
||||
draw_info->mModelMatrix = model_mat;
|
||||
if (mat)
|
||||
if (mat && LLPipeline::sRenderBump && LLPipeline::sRenderDeferred)
|
||||
{
|
||||
// We have a material. Update our draw info accordingly.
|
||||
draw_info->mMaterial = mat;
|
||||
|
|
@ -4178,6 +4178,7 @@ void LLVolumeGeometryManager::registerFace(LLSpatialGroup* group, LLFace* facep,
|
|||
0.5f,
|
||||
0.75f
|
||||
};
|
||||
llassert(shiny <= 3);
|
||||
float spec = alpha[shiny];
|
||||
LLVector4 specColor(spec, spec, spec, spec);
|
||||
draw_info->mSpecColor = specColor;
|
||||
|
|
|
|||
|
|
@ -1018,7 +1018,8 @@ void LLPipeline::updateRenderDeferred()
|
|||
{
|
||||
BOOL deferred = ((RenderDeferred &&
|
||||
LLRenderTarget::sUseFBO &&
|
||||
LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump") &&
|
||||
VertexShaderEnable &&
|
||||
RenderAvatarVP &&
|
||||
WindLightUseAtmosShaders) ? TRUE : FALSE) &&
|
||||
|
|
|
|||
|
|
@ -211,16 +211,19 @@
|
|||
name="TransparentWater"
|
||||
top_pad="7"
|
||||
width="256" />
|
||||
<check_box
|
||||
control_name="RenderObjectBump"
|
||||
height="16"
|
||||
initial_value="true"
|
||||
label="Bump mapping and shiny"
|
||||
layout="topleft"
|
||||
left_delta="0"
|
||||
name="BumpShiny"
|
||||
top_pad="1"
|
||||
width="256" />
|
||||
<check_box
|
||||
control_name="RenderObjectBump"
|
||||
height="16"
|
||||
initial_value="true"
|
||||
label="Bump mapping and shiny"
|
||||
layout="topleft"
|
||||
left_delta="0"
|
||||
name="BumpShiny"
|
||||
top_pad="1"
|
||||
width="256">
|
||||
<check_box.commit_callback
|
||||
function="Pref.VertexShaderEnable" />
|
||||
</check_box>
|
||||
<check_box
|
||||
control_name="RenderLocalLights"
|
||||
height="16"
|
||||
|
|
|
|||
Loading…
Reference in New Issue