diff options
| author | Graham Madarasz <graham@lindenlab.com> | 2013-04-26 13:13:55 -0700 | 
|---|---|---|
| committer | Graham Madarasz <graham@lindenlab.com> | 2013-04-26 13:13:55 -0700 | 
| commit | ced83c5248f2be664bd95adacfbede912f00697f (patch) | |
| tree | 71ec014cda15bc328f632c43c04f7518c3a180c3 /indra/newview/app_settings/shaders/class2 | |
| parent | 94b7597576fd4fcec6160ad88b2e832c9486b17f (diff) | |
| parent | 243c7bd06441af0c286d71d6ff0b7d488285bc1c (diff) | |
Merge vwr-dev-mat
Diffstat (limited to 'indra/newview/app_settings/shaders/class2')
| -rwxr-xr-x | indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl | 12 | 
1 files changed, 4 insertions, 8 deletions
| diff --git a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl index 3d39394c32..466714c108 100755 --- a/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/softenLightF.glsl @@ -300,7 +300,6 @@ void main()  	vec3 col;  	float bloom = 0.0; -	if (diffuse.a < 0.9)  	{  		vec4 spec = texture2DRect(specularRect, vary_fragcoord.xy); @@ -331,22 +330,19 @@ void main()  			col += spec_contrib;  		} +		col = mix(col, diffuse.rgb, diffuse.a); +  		if (envIntensity > 0.0)  		{ //add environmentmap  			vec3 env_vec = env_mat * refnormpersp;  			col = mix(col.rgb, pow(textureCube(environmentMap, env_vec).rgb, vec3(2.2)) * 2.2,  -				max(envIntensity-diffuse.a*2.0, 0.0));  +				envIntensity);   		}  		col = atmosLighting(col);  		col = scaleSoftClip(col); - -		col = mix(col, diffuse.rgb, diffuse.a); -	} -	else -	{ -		col = diffuse.rgb;  	} +	  	frag_color.rgb = col;  	frag_color.a = bloom; | 
