git-svn-id: svn://db.shs.com.ru/libs@71 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-12-13 22:56:10 +00:00
parent cf8bb76a80
commit 43354bca77
6 changed files with 46 additions and 40 deletions

View File

@@ -135,7 +135,7 @@ void main(void) {
calcLight(i, n, v, v2);
calcLight(0, n, v, v2);
qgl_FragData[0] = vec4(li * dc + si * v2.rgb + v3.rgb + texelFetch(t_pp, tc, 0).rgb, v0.w);
qgl_FragData[0] = vec4(max(vec3(0), li * dc + si * v2.rgb + v3.rgb + texelFetch(t_pp, tc, 0).rgb), v0.w);
//qgl_FragData[0].rgb = vec3(abs((v0.w)/50));
//qgl_FragData[0].rgb = li + vec3(texelFetch(t_pp, tc, 0).xyz);
//shd = shd - shp.w;