|
|
#version 3.8;
global_settings {assumed_gamma 1}
camera {
location <13/2, 0.5, -13>
right x*image_width/image_height
up y
look_at <13/2, 0, 0>
}
light_source {<1, 10, -20> rgb 1}
sky_sphere {pigment {rgb 1}}
#declare BrickWidth = 0.9;
#declare f_Bricks = function {mod (x, 1)}
#declare Bricks = function {select (f_Bricks (x, y, z)-BrickWidth, 0, 1)}
#declare Brick = texture {pigment {rgb x}}
#declare Clear = texture {pigment {rgbt 1}}
#declare TextureMap = texture_map {[0.0 Brick] [1.0 Clear]}
#declare BrickTexture = texture {function {Bricks (x, y, z)} texture_map
{TextureMap}}
box {<0, 0, 0> <13, 0.5, 1> texture {BrickTexture}}
Post a reply to this message
|
|