Changeset 1948
- Timestamp:
- Sep 24, 2012, 8:44:41 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/gradient.lolfx
r1941 r1948 38 38 15.0, 10.0, 9.0, 14.0); 39 39 40 float rand(vec2 p) 41 { 42 return fract(sin(dot(p, vec2(12.9898, 78.2333))) * 123.4567); 43 } 44 40 45 void main() 41 46 { … … 44 49 int dx = int(mod(gl_FragCoord.x, 4.0)); 45 50 int dy = int(mod(gl_FragCoord.y, 4.0)); 46 /* Cluster */47 51 float t; 48 52 if (dx == 0) … … 66 70 [int(mod(gl_FragCoord.y, 4.0))]; 67 71 #endif 72 t += rand(gl_FragCoord.xy) - 0.5; 68 73 t = (t + 0.5) / 17.0; 69 74 col.x += fract(t - col.x) - t;
Note: See TracChangeset
for help on using the changeset viewer.