Skip to content

Instantly share code, notes, and snippets.

@rn0
Created November 13, 2008 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rn0/24539 to your computer and use it in GitHub Desktop.
Save rn0/24539 to your computer and use it in GitHub Desktop.
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
camera {
location <5, 9, -15>
look_at <0, 0, 0>
}
light_source {
<0, 10, -10> White
}
light_source {
<3, 20, 5> White
}
cylinder {
<5, 0, 5>
<5, 0, -5>
2
texture {pigment {color Green}}
}
cylinder {
<-5, 0, 5>
<-5, 0, -5>
2
texture {pigment {color Green}}
}
cylinder {
<5, 0, 5.5>
<5, 0, -5.5>
1
texture {pigment {color Black}}
}
cylinder {
<-5, 0, 5.5>
<-5, 0, -5.5>
1
texture {pigment {color Black}}
}
intersection {
box {
<-8, 0, 4>
<8, 4, -4>
texture {pigment {color Blue}}
}
sphere {
<0, 0, 0>
9
texture {pigment {color Yellow}}
}
}
difference {
box {
<-5, 4, 4>
<5, 7, -4>
texture {pigment {color Red}}
}
box {
<-4.5, 3.5, 5>
<4.5, 6.5, -5>
texture {pigment {color White}}
}
}
#include "colors.inc"
#include "shapes.inc"
#include "textures.inc"
camera {
location <5, 9, -15>
look_at <0, 0, 0>
}
light_source {
<0, 10, -10> White
}
light_source {
<3, 20, 5> White
}
sphere {
<0, -5, 0>
3
texture {pigment {color Red}}
}
sphere {
<0, 0, 0>
2
texture {pigment {color Red}}
}
cylinder {
<0, 2, 0>
<0, 2.5, 0>
2.5
texture {pigment {color Brown}}
}
cylinder {
<0, 2.5, 0>
<0, 5, 0>
1
texture {pigment {color Brown}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment