77 lines
2.2 KiB
Plaintext
77 lines
2.2 KiB
Plaintext
<beginfold id='1'>//BEGIN TEST</beginfold id='1'>
|
|
// test scene for POV-Ray syntax highlighting
|
|
|
|
<beginfold id='2'>/*</beginfold id='2'> test comment <endfold id='2'>*/</endfold id='2'>
|
|
|
|
<beginfold id='2'>/*</beginfold id='2'> nested /* comments <endfold id='2'>*/</endfold id='2'> do not work */
|
|
|
|
#version 3.5;
|
|
<endfold id='1'>//END</endfold id='1'>
|
|
global_settings <beginfold id='3'>{</beginfold id='3'> assumed_gamma 1.0 <endfold id='3'>}</endfold id='3'>
|
|
|
|
// ----------------------------------------
|
|
|
|
camera <beginfold id='3'>{</beginfold id='3'>
|
|
location <5.0, -12.0, 2.0>
|
|
up z sky z
|
|
look_at <0.0, 0.0, 0.5>
|
|
angle 40
|
|
<endfold id='3'>}</endfold id='3'>
|
|
|
|
sky_sphere <beginfold id='3'>{</beginfold id='3'>
|
|
pigment <beginfold id='3'>{</beginfold id='3'>
|
|
gradient z
|
|
color_map <beginfold id='3'>{</beginfold id='3'>
|
|
[0.0 rgb <0.6,0.7,1.0>]
|
|
[0.2 rgb <0.2,0.3,0.9>]
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
|
|
light_source <beginfold id='3'>{</beginfold id='3'>
|
|
<3, 1, 2>*1000
|
|
color rgb <2.2, 1.8, 1.5>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
|
|
// ----------------------------------------
|
|
|
|
#declare TEST=0;
|
|
|
|
#ifdef (TEST)
|
|
plane <beginfold id='3'>{</beginfold id='3'>
|
|
z, 0
|
|
texture <beginfold id='3'>{</beginfold id='3'>
|
|
pigment <beginfold id='3'>{</beginfold id='3'>
|
|
checker
|
|
color rgb 1, color rgb 0
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
#end
|
|
|
|
#macro Sphere(Pos, Radius)
|
|
sphere <beginfold id='3'>{</beginfold id='3'>
|
|
<Pos.x, Pos.y, Radius*1.3>, Radius
|
|
texture <beginfold id='3'>{</beginfold id='3'>
|
|
pigment <beginfold id='3'>{</beginfold id='3'> color rgb 1 <endfold id='3'>}</endfold id='3'>
|
|
finish<beginfold id='3'>{</beginfold id='3'>
|
|
diffuse 0.3
|
|
ambient 0.0
|
|
specular 0.6
|
|
reflection 0.8
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
<endfold id='3'>}</endfold id='3'>
|
|
#end
|
|
|
|
#local Cnt=0;
|
|
#local Seed=seed(0);
|
|
|
|
#while (Cnt<10000)
|
|
Sphere(
|
|
-100+<rand(Seed), rand(Seed)>*200,
|
|
0.3+pow(rand(Seed),2)*0.7
|
|
)
|
|
#local Cnt=Cnt+1;
|
|
#end
|