#
# Each model can be controlled with the following paramters
#
#-----------------------------------------------------------------------------
# for sphere
#
# "tx"    : translate in x axis 
# "ty"    : translate in y axis
# "tz"    : translate in z axis
#
# "cr"    : red component of diffuss color (default is 1)
# "cg"    : green component of diffuss color (default is 1)
# "cb"    : blue component of diffuss color (default is 1)
# 
# "sr"    : red component of specular color (default is 1)
# "sg"    : green component of specular color (default is 1)
# "sb"    : blue component of specular color (default is 1)
# "shininess" : controls how shiny this model is (default is 128)
#
# "er"    : red component of emission color (default is 0)
# "eg"    : green component of emission color (default is 0)
# "eb"    : blue component of emission color (default is 0)
#
# "Tr"    : red component of Transparency color (default is 0)
# "Tg"    : green component of Transparency color (default is 0)
# "Tb"    : blue component of Transparency color (default is 0)
# "RI"    : refractive_index (default is 1)
#
# "Rr"    : red component of reflectiveness color (default is 0)
# "Rg"    : green component of reflectiveness color (default is 0)
# "Rb"    : blue component of reflectiveness color (default is 0)
#
# -----------------------------------------------------------------------------
# 
#
# -----------------------------------------------------------------------------
# for model
#
# "tx"    : translate in x axis 
# "ty"    : translate in y axis
# "tz"    : translate in z axis
# "rx"    : rotate around x axis
# "ry"    : rotate around y axis
# "rz"    : rotate around z axis
# "scale" : uniform scaling
#
# "cr"    : red component of diffuss color (default is 1)
# "cg"    : green component of diffuss color (default is 1)
# "cb"    : blue component of diffuss color (default is 1)
# 
# "sr"    : red component of specular color (default is 1)
# "sg"    : green component of specular color (default is 1)
# "sb"    : blue component of specular color (default is 1)
# "shininess" : controls how shiny this model is (default is 128)
#
# "er"    : red component of emission color (default is 0)
# "eg"    : green component of emission color (default is 0)
# "eb"    : blue component of emission color (default is 0)
#
# -----------------------------------------------------------------------------
#
# 
# -----------------------------------------------------------------------------
# for image
#
# two positive integer numbers follow: width and height
# by default they are both 100
# "width"         : width of the image (default is 100)
# "height"        : height of the image (default is 100)
# "n"             : number of rays per pixel (default is 10)
# "max_ray_depth" : max depth of rays in the rendering tree
# -----------------------------------------------------------------------------
#
#
# -----------------------------------------------------------------------------
# for light
#
# global ligth parameters. note that individual lights are defined as models or spheres 
# that have non-zero emission color.
# 
# "ar"          : red component of ambient color (default is 0)
# "ag"          : green component of ambient color (default is 0)
# "ab"          : blue component of ambient color (default is 0)
# "sample_size" : sample size per area light
#
# -----------------------------------------------------------------------------

image
n=1 width=500 height=500 max_ray_depth=5

light
ar=0.5 ag=0.5 ab=0.95 sample_size=500

camera
type=perspective tx=0 ty=0 tz=100 viewx=-50 viewy=-50 vieww=100 viewh=100 near=50

sphere 7
r=20   cr=1.0 cg=0; cb=0.0 tx=-25 shininess=1000
r=20   cr=0.0 cg=1.0; cb=0.0 tx=25  shininess=100
r=20   cr=0.0 cg=0.0; cb=1.0 tx=-25 ty=40 shininess=10000 tz=20
r=20   cr=1.0 cg=1.0; cb=0.0 tx=25 ty=40 shininess=10 tz=10
r=20   cr=0.0 cg=1.0; cb=1.0 tx=-25 ty=-40 tz=-20 sr=0 sg=0 sb=0
r=20   cr=1.0 cg=0.0; cb=1.0 tx=25 ty=-40  tz=-50 sr=0 sg=1 sb=0
r=0.01 tx=1000 ty=1000 tz=100 er=1.0 eg=1.0 eb=1.0 #this is your light
