Parent Directory | Revision Log | Patch
revision 1.10 by jvk, Fri Oct 25 12:53:38 2002 UTC | revision 1.11 by jvk, Sat Oct 26 14:09:53 2002 UTC | |
---|---|---|
# | Line 75 void GENERATE(TextureParam *params, int | Line 75 void GENERATE(TextureParam *params, int |
75 | if (f > 1) f = 1; | if (f > 1) f = 1; |
76 | if (f < 0) f = 0; | if (f < 0) f = 0; |
77 | ||
78 | // Scale down to make space for the border | if (components != 2) { |
79 | f *= (1 - radius / (width * ripple_scale)); | // Scale down to make space for the border |
80 | if (f < 0) f = 0; | f *= (1 - radius / (width * ripple_scale)); |
81 | if (f < 0) f = 0; | |
82 | } | |
83 | ||
84 | data[i] = f * scale + bias; | data[i] = f * scale + bias; |
85 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |