Merged lindenlab/viewer-development-materials into default
commit
33d2225666
|
|
@ -321,8 +321,6 @@ void main()
|
|||
col += spec_contrib;
|
||||
}
|
||||
|
||||
col = mix(col.rgb, diffuse.rgb, diffuse.a);
|
||||
|
||||
if (envIntensity > 0.0)
|
||||
{ //add environmentmap
|
||||
vec3 env_vec = env_mat * refnormpersp;
|
||||
|
|
@ -332,6 +330,8 @@ void main()
|
|||
|
||||
col = atmosLighting(col);
|
||||
col = scaleSoftClip(col);
|
||||
|
||||
col = mix(col.rgb, diffuse.rgb, diffuse.a);
|
||||
}
|
||||
|
||||
frag_color.rgb = col;
|
||||
|
|
|
|||
|
|
@ -48,6 +48,8 @@ void main()
|
|||
mat = modelview_matrix * mat;
|
||||
vec3 pos = (mat*vec4(position.xyz, 1.0)).xyz;
|
||||
|
||||
vertex_color = emissive;
|
||||
|
||||
calcAtmospherics(pos.xyz);
|
||||
|
||||
gl_Position = projection_matrix*vec4(pos, 1.0);
|
||||
|
|
|
|||
|
|
@ -330,8 +330,6 @@ void main()
|
|||
col += spec_contrib;
|
||||
}
|
||||
|
||||
col = mix(col, diffuse.rgb, diffuse.a);
|
||||
|
||||
if (envIntensity > 0.0)
|
||||
{ //add environmentmap
|
||||
vec3 env_vec = env_mat * refnormpersp;
|
||||
|
|
@ -341,6 +339,8 @@ void main()
|
|||
|
||||
col = atmosLighting(col);
|
||||
col = scaleSoftClip(col);
|
||||
|
||||
col = mix(col.rgb, diffuse.rgb, diffuse.a);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -252,10 +252,11 @@ void LLDrawPoolAvatar::beginPostDeferredPass(S32 pass)
|
|||
case 4:
|
||||
beginRiggedFullbrightAlpha();
|
||||
break;
|
||||
case 5:
|
||||
case 9:
|
||||
beginRiggedGlow();
|
||||
break;
|
||||
default:
|
||||
beginDeferredRiggedMaterialAlpha(pass-6);
|
||||
beginDeferredRiggedMaterialAlpha(pass-5);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
@ -368,14 +369,14 @@ void LLDrawPoolAvatar::renderPostDeferred(S32 pass)
|
|||
13, //rigged glow
|
||||
};
|
||||
|
||||
pass = actual_pass[pass];
|
||||
S32 p = actual_pass[pass];
|
||||
|
||||
if (LLPipeline::sImpostorRender)
|
||||
{ //HACK for impostors so actual pass ends up being proper pass
|
||||
pass -= 2;
|
||||
p -= 2;
|
||||
}
|
||||
|
||||
render(pass);
|
||||
render(p);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1299,20 +1300,28 @@ void LLDrawPoolAvatar::renderAvatars(LLVOAvatar* single_avatar, S32 pass)
|
|||
return;
|
||||
}
|
||||
|
||||
S32 p = 0;
|
||||
switch (pass)
|
||||
if (LLPipeline::sRenderDeferred)
|
||||
{
|
||||
case 9: p = 1; break;
|
||||
case 10: p = 5; break;
|
||||
case 11: p = 9; break;
|
||||
case 12: p = 13; break;
|
||||
}
|
||||
S32 p = 0;
|
||||
switch (pass)
|
||||
{
|
||||
case 9: p = 1; break;
|
||||
case 10: p = 5; break;
|
||||
case 11: p = 9; break;
|
||||
case 12: p = 13; break;
|
||||
}
|
||||
|
||||
{
|
||||
LLGLEnable blend(GL_BLEND);
|
||||
renderDeferredRiggedMaterial(avatarp, p);
|
||||
{
|
||||
LLGLEnable blend(GL_BLEND);
|
||||
renderDeferredRiggedMaterial(avatarp, p);
|
||||
}
|
||||
return;
|
||||
}
|
||||
else if (pass == 9)
|
||||
{
|
||||
renderRiggedGlow(avatarp);
|
||||
return;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (pass == 13)
|
||||
|
|
|
|||
Loading…
Reference in New Issue