3d/pr/posbi/test-mesh.pov

47 lines
765 B
POVRay

global_settings {
assumed_gamma 1.0
ambient_light rgb<0.5, 0.5, 0.5>
}
background { color rgb<0.2, 0.4, 0.8> }
light_source {
<20000, 20000, 20000>
color 1
}
#local CP = <+2, +0, +5>;
light_source {
CP
color 0.5
}
camera {
location CP
look_at <-0, 0, -0>
}
mesh2 {
vertex_vectors {
5,
<-1, -1, 0>,
<-1, +1, 0>,
<+1, -1, 0>,
<+1, +1, 0>,
< 0, 0, 0>,
}
texture_list {
4
texture { pigment { color rgb <0.5, 0.5, 0.5> } }
texture { pigment { color rgb <0.9, 0.5, 0.5> } }
texture { pigment { color rgb <0.5, 0.9, 0.5> } }
texture { pigment { color rgb <0.5, 0.5, 0.9> } }
}
face_indices {
4
<0, 1, 4>, 0, 0, 0,
<1, 2, 4>, 1, 1, 1,
<2, 3, 4>, 2, 2, 2,
<3, 0, 4>, 3, 3, 3,
}
}