dungeon_crawler

diff prototype/sdr/mrt.p.glsl @ 34:85734f319626

passing shininess and specular in mrt
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 28 Aug 2012 03:34:56 +0300
parents 0357994effe2
children d0e93b4d9ec9
line diff
     1.1 --- a/prototype/sdr/mrt.p.glsl	Tue Aug 28 03:18:47 2012 +0300
     1.2 +++ b/prototype/sdr/mrt.p.glsl	Tue Aug 28 03:34:56 2012 +0300
     1.3 @@ -18,7 +18,7 @@
     1.4  	vec3 spec = gl_FrontMaterial.specular.xyz;
     1.5  	float sstr = (spec.x + spec.y + spec.z) / 3.0;
     1.6  
     1.7 -	gl_FragData[0] = vec4(pos, 0.0);
     1.8 +	gl_FragData[0] = vec4(pos, gl_FrontMaterial.shininess);
     1.9  	gl_FragData[1] = vec4(norm, 0.0);
    1.10  	gl_FragData[2] = vec4(diffuse, sstr);
    1.11  	//gl_FragData[3] = vec4(0.0, 0.0, 0.0, 0.0);