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

@@ -16,7 +16,7 @@ void main(void) {
for (int i = 0; i < steps; ++i) {
ct += speed.xy * cdt;
float mul = 1. - abs(i - hsteps) * 2. / steps;
scol += max(texture(t0, ct).rgb, vec3(0)) * mul;
scol += texture(t0, ct).rgb * mul;
sum += mul;
}
scol /= sum;