Advertisement
LockdateforGHS

3dbox.cnf

Jun 11th, 2023
1,617
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. (conf)
  2. initialize canvas (0, 0, 0)
  3. set camera position (0, 0, -10)
  4. set light source position (5, 10, -5)
  5.  
  6. create sphere at position parse_coordinates(src;get("sphere_position")) with radius src;get("sphere_radius")
  7. create plane at position parse_coordinates(src;get("plane_position")) with normal parse_coordinates(src;get("plane_normal"))
  8. create box at position parse_coordinates(src;get("box_position")) with dimensions parse_coordinates(src;get("box_dimensions"))
  9. create cylinder at position parse_coordinates(src;get("cylinder_position")) with radius src;get("cylinder_radius") and height src;get("cylinder_height")
  10.  
  11. render image ,true
  12.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement