Whoops. Reverting some stuff I was toying around with.
This commit is contained in:
@@ -151,7 +151,7 @@ void main()
|
|||||||
// spec *= shadow;
|
// spec *= shadow;
|
||||||
// color.rgb += spec * specular;
|
// color.rgb += spec * specular;
|
||||||
|
|
||||||
color.rgb = atmosTransport(color.rgb);
|
// color.rgb = atmosTransport(color.rgb);
|
||||||
// color.rgb = scaleSoftClip(color.rgb);
|
// color.rgb = scaleSoftClip(color.rgb);
|
||||||
// color.a = spec * sunAngle2;
|
// color.a = spec * sunAngle2;
|
||||||
|
|
||||||
|
|||||||
@@ -404,11 +404,11 @@ void LLDrawPoolWater::shade()
|
|||||||
|
|
||||||
F32 eyedepth = LLViewerCamera::getInstance()->getOrigin().mV[2] - gAgent.getRegion()->getWaterHeight();
|
F32 eyedepth = LLViewerCamera::getInstance()->getOrigin().mV[2] - gAgent.getRegion()->getWaterHeight();
|
||||||
|
|
||||||
if (eyedepth > 0.f && deferred_render)
|
if (deferred_render)
|
||||||
{
|
{
|
||||||
shader = &gDeferredWaterProgram;
|
shader = &gDeferredWaterProgram;
|
||||||
}
|
}
|
||||||
else if (eyedepth < 0.f /*&& LLPipeline::sWaterReflections*/)
|
else if (eyedepth < 0.f && LLPipeline::sWaterReflections)
|
||||||
{
|
{
|
||||||
shader = &gUnderWaterProgram;
|
shader = &gUnderWaterProgram;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user