Changeset 1854


Ignore:
Timestamp:
Sep 1, 2012, 12:45:21 PM (7 years ago)
Author:
sam
Message:

tutorial: replace white noise with ordered dithering.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tutorial/03_noise.lolfx

    r1853 r1854  
    9292
    9393    /* Add some garbage noise */
    94     test += fract(sin(test * 938.437) * 137.0) / 2.0;
     94    vec2 d = vec2(16.0, 9.0) * pass_Position;
     95    test += 0.5 * (length(fract(d) - 0.5) - length(fract(d + 0.5) - 0.5));
    9596
    9697    vec3 points[4] = (test > 0.0) ? fire : water;
Note: See TracChangeset for help on using the changeset viewer.