SL-14275: Cleanup: Add indentation for some push/pop RenderTypeMask()
parent
a862322ba9
commit
5c7e4c8dce
|
|
@ -9329,63 +9329,63 @@ void LLPipeline::generateWaterReflection(LLCamera& camera_in)
|
|||
//initial sky pass (no user clip plane)
|
||||
{ //mask out everything but the sky
|
||||
gPipeline.pushRenderTypeMask();
|
||||
|
||||
if (reflection_detail >= WATER_REFLECT_MINIMAL)
|
||||
{
|
||||
gPipeline.andRenderTypeMask(
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_WL_SKY,
|
||||
LLPipeline::RENDER_TYPE_CLOUDS,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
}
|
||||
else
|
||||
{
|
||||
gPipeline.andRenderTypeMask(
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_WL_SKY,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
}
|
||||
if (reflection_detail >= WATER_REFLECT_MINIMAL)
|
||||
{
|
||||
gPipeline.andRenderTypeMask(
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_WL_SKY,
|
||||
LLPipeline::RENDER_TYPE_CLOUDS,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
}
|
||||
else
|
||||
{
|
||||
gPipeline.andRenderTypeMask(
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_WL_SKY,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
}
|
||||
|
||||
updateCull(camera, mSky);
|
||||
stateSort(camera, mSky);
|
||||
renderGeom(camera, TRUE);
|
||||
|
||||
gPipeline.popRenderTypeMask();
|
||||
updateCull(camera, mSky);
|
||||
stateSort(camera, mSky);
|
||||
renderGeom(camera, TRUE);
|
||||
}
|
||||
gPipeline.popRenderTypeMask();
|
||||
}
|
||||
|
||||
if (reflection_detail >= WATER_REFLECT_NONE_WATER_TRANSPARENT)
|
||||
{
|
||||
gPipeline.pushRenderTypeMask();
|
||||
{
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_WATER,
|
||||
LLPipeline::RENDER_TYPE_VOIDWATER,
|
||||
LLPipeline::RENDER_TYPE_GROUND,
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_CLOUDS,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_WATER,
|
||||
LLPipeline::RENDER_TYPE_VOIDWATER,
|
||||
LLPipeline::RENDER_TYPE_GROUND,
|
||||
LLPipeline::RENDER_TYPE_SKY,
|
||||
LLPipeline::RENDER_TYPE_CLOUDS,
|
||||
LLPipeline::END_RENDER_TYPES);
|
||||
|
||||
if (reflection_detail > WATER_REFLECT_MINIMAL)
|
||||
{ //mask out selected geometry based on reflection detail
|
||||
if (reflection_detail < WATER_REFLECT_EVERYTHING)
|
||||
{
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_PARTICLES, END_RENDER_TYPES);
|
||||
if (reflection_detail < WATER_REFLECT_AVATARS)
|
||||
if (reflection_detail > WATER_REFLECT_MINIMAL)
|
||||
{ //mask out selected geometry based on reflection detail
|
||||
if (reflection_detail < WATER_REFLECT_EVERYTHING)
|
||||
{
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_AVATAR, LLPipeline::RENDER_TYPE_CONTROL_AV, END_RENDER_TYPES);
|
||||
if (reflection_detail < WATER_REFLECT_STATIC_OBJECTS)
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_PARTICLES, END_RENDER_TYPES);
|
||||
if (reflection_detail < WATER_REFLECT_AVATARS)
|
||||
{
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_VOLUME, END_RENDER_TYPES);
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_AVATAR, LLPipeline::RENDER_TYPE_CONTROL_AV, END_RENDER_TYPES);
|
||||
if (reflection_detail < WATER_REFLECT_STATIC_OBJECTS)
|
||||
{
|
||||
clearRenderTypeMask(LLPipeline::RENDER_TYPE_VOLUME, END_RENDER_TYPES);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LLGLUserClipPlane clip_plane(plane, mReflectionModelView, saved_projection);
|
||||
LLGLDisable cull(GL_CULL_FACE);
|
||||
updateCull(camera, mReflectedObjects, -water_clip, &plane);
|
||||
stateSort(camera, mReflectedObjects);
|
||||
renderGeom(camera);
|
||||
}
|
||||
|
||||
LLGLUserClipPlane clip_plane(plane, mReflectionModelView, saved_projection);
|
||||
LLGLDisable cull(GL_CULL_FACE);
|
||||
updateCull(camera, mReflectedObjects, -water_clip, &plane);
|
||||
stateSort(camera, mReflectedObjects);
|
||||
renderGeom(camera);
|
||||
}
|
||||
|
||||
gPipeline.popRenderTypeMask();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue