# test.ray: Simple test image. Paints a triangle and a sphere in the world # author: Mark T. Tomczak Background { color 0 0 1 ambientLight 0.0 0.0 0.4 # this is also a valid comment, yes? # } Lights { Light { position 0.0 0.0 15.0 color 0.5 0.5 0.5 } } Camera { eye 1 2 3 center 0 0 -1 up 0 1 0 fovy 45 } Materials { Material { textureFilename NULL diffuseColor 1.0 0.2 1.0 specularColor 0.1 0.05 0.1 reflectiveColor 0 0 0 shininess 2 } Material { textureFilename NULL diffuseColor 1.0 0.0 0.0 specularColor 0.5 0.0 0.0 reflectiveColor 0.1 0.1 0.1 shininess 5 } Material { textureFilename NULL diffuseColor 1.0 1.0 1.0 specularColor 1.0 1.0 1.0 reflectiveColor 0.1 0.1 0.1 shininess 1 } } Group { Sphere { materialIndex 0 center 3 3 -5 radius 1 } Triangle { vertex0 -2 -2 -8 normal_vertex0 -1 0 1 materialIndex0 0 s_t_tex_0 0 0 vertex1 2 -2 -8 normal_vertex1 1 0 1 materialIndex1 0 s_t_tex_1 0 0 vertex2 0 2 -8 normal_vertex2 0 1 1 materialIndex2 0 s_t_tex_2 0 0 } TriMesh { objfile polyCubeTris.obj materialIndex 0 } }