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

@@ -49,7 +49,7 @@ void main(void) {
pr_pos.xyz /= pr_pos.w;
pr_spos.xyz /= pr_spos.w;
float blur = step(0., coeff) * length(pr_pos.xyz - pr_spos.xyz) * (1. - specularity);
vec3 rvs = max(texture(ts, tsp).rgb, vec3(0));
vec3 rvs = texture(ts, tsp).rgb;
qgl_FragData[0] = vec4(rvs.rgb, coeff / 1.1 + clamp(round(blur * 10), 0, 1000));
}