CSG Scale
CSG Scale
csg_scale(object, scale = 1)
object |
CSG object. |
scale |
Default '1'. |
List describing the triangle in the scene.
#Scale a pyramid (translating it upwards because the object is scaled from the center): generate_ground(material=diffuse(checkercolor="grey20")) %>% add_object(csg_object(csg_pyramid(z=1,y=-0.99), material=glossy(color="red"))) %>% add_object(csg_object(csg_scale(csg_pyramid(z=-1,y=-0.5),2), material=glossy(color="green"))) %>% add_object(sphere(y=5,x=5,z=5,material=light(intensity=40))) %>% render_scene(lookfrom=c(-3,4,10), fov=20, lookat=c(0,-0.5,-0.5),clamp_value=10)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.