diff options
author | Graham Linden <graham@lindenlab.com> | 2018-09-10 21:18:37 +0100 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2018-09-10 21:18:37 +0100 |
commit | ef2c61275eafa7d1fd3afa3f0eb76397632f12c9 (patch) | |
tree | 728192427c67351ac113953a0e1a5fe5ec331b8b /indra | |
parent | 8a162bc59cefc246da80d66f223a5cd545ff1dd3 (diff) |
Move fname back inside class loop. grumble stringstream grumble.
Fix sky depth-testing with advanced atmospherics.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/llrender/llshadermgr.cpp | 5 | ||||
-rw-r--r-- | indra/newview/app_settings/shaders/class3/deferred/skyV.glsl | 2 | ||||
-rw-r--r-- | indra/newview/llvowlsky.cpp | 2 |
3 files changed, 3 insertions, 6 deletions
diff --git a/indra/llrender/llshadermgr.cpp b/indra/llrender/llshadermgr.cpp index 20d32612f8..78aed5eef6 100644 --- a/indra/llrender/llshadermgr.cpp +++ b/indra/llrender/llshadermgr.cpp @@ -588,11 +588,10 @@ GLhandleARB LLShaderMgr::loadShaderFile(const std::string& filename, S32 & shade S32 try_gpu_class = shader_level; S32 gpu_class; - std::stringstream fname; - //find the most relevant file for (gpu_class = try_gpu_class; gpu_class > 0; gpu_class--) - { //search from the current gpu class down to class 1 to find the most relevant shader + { //search from the current gpu class down to class 1 to find the most relevant shader + std::stringstream fname; fname << getShaderDirPrefix(); fname << gpu_class << "/" << filename; diff --git a/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl b/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl index 89873e83ca..a5cc49ca30 100644 --- a/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl +++ b/indra/newview/app_settings/shaders/class3/deferred/skyV.glsl @@ -37,7 +37,7 @@ VARYING vec2 vary_frag; void main() { // pass through untransformed fullscreen pos at back of frustum for proper sky depth testing - gl_Position = vec4(position.xy, 0.99f, 1.0); + gl_Position = vec4(position.xy, 1.0f, 1.0); vary_frag = texcoord0; } diff --git a/indra/newview/llvowlsky.cpp b/indra/newview/llvowlsky.cpp index 741d0e3992..b5f019a7f8 100644 --- a/indra/newview/llvowlsky.cpp +++ b/indra/newview/llvowlsky.cpp @@ -324,8 +324,6 @@ void LLVOWLSky::drawFsSky(void) updateGeometry(mDrawable); } - //LLGLDepthTest gls_depth(GL_TRUE, GL_FALSE, GL_LEQUAL); - LLGLDepthTest gls_depth(GL_FALSE, GL_FALSE, GL_ALWAYS); LLGLDisable disable_blend(GL_BLEND); mFsSkyVerts->setBuffer(LLDrawPoolWLSky::ADV_ATMO_SKY_VERTEX_DATA_MASK); |