/* * noisetest.sl : render a simple noise image, * to validate Aqsis noise across platforms. * * (stegu@tn.liu.se) 2005-11-09 * * Lighting has absolutely no influence on this shader. * The colors are always fully bright. * */ surface noisetest() { color white = color(1.0, 1.0, 1.0); color black = color(0.0, 0.0, 0.0); float noiseval = noise(xcomp(P)*16.0-8.0, ycomp(P)*16.0-8.0); Ci = mix(black, white, noiseval); Oi = Os; }