Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #declare brickWidth = 10;
- #declare brickHeight = 3.5;
- #declare brickLength = 4;
- #declare random = seed(1000);
- camera
- {
- location <50, 50, -10 * 3>
- look_at <0, 0, 0>
- }
- light_source
- {
- <50, 50, -10 * 3>
- color rgb <1, 1, 1>
- }
- #macro fun(varWidth, varHeight)
- #declare vx = 0;
- #declare vy = 0;
- #while (vx < varWidth)
- #while (vy < varHeight)
- #declare colorOff = 1 - rand(random) / 5;
- box
- {
- <vx * brickWidth, vy * brickHeight, 0>
- <vx * brickWidth + brickWidth, vy * brickHeight + brickHeight, brickLength>
- pigment
- {
- color rgb <colorOff, colorOff, colorOff>
- }
- }
- #declare vy = vy + 1;
- #end
- #declare vx = vx + 1;
- #declare vy = 0;
- #end
- #end
- fun(10, 10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement