Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Render with these flags: +fn +kff40 +kc +w80 +h60
- // perspective (default) camera
- camera {
- location <0.0, 0.5, -3.0>*0.75
- look_at <0.0, 0.0, 0.0>
- right x*image_width/image_height
- }
- // set a color of the background (sky)
- background {
- color rgb 1
- }
- // create a regular point light source
- light_source {
- 0*x // light's position (translated below)
- color rgb <1,0.75,0.25>*1 // light's color
- translate <0, -10, 0>
- }
- light_source {
- 0*x // light's position (translated below)
- color rgb <0.25,0.75,1>*1 // light's color
- translate -<0, -10, 0>
- }
- #macro Hemisphere(Offset)
- difference {
- sphere {
- 0, 1
- }
- box {
- <-1,-1,-1>,
- <1,Offset,1>
- }
- translate -Offset*y
- }
- #end
- union {
- object {
- Hemisphere(0.6)
- scale 0.5*y
- }
- object {
- Hemisphere(0.6)
- scale 0.5*y
- rotate 180*z
- }
- object {
- Hemisphere(0.5)
- scale 0.425
- translate 0.16*y
- }
- pigment {
- color rgb 1
- }
- finish {
- ambient 0.5
- }
- rotate 15*x
- rotate 360*y*(clock+pow(sin(clock*pi/2),2))/2
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement