summaryrefslogtreecommitdiffstats
path: root/kate/tests/highlight.pov
blob: 0bb307744b3106c5a67810fe3c6189788e22f1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//BEGIN TEST
// test scene for POV-Ray syntax highlighting

/* test comment */

/* nested /* comments */ do not work */

#version 3.5;
//END
global_settings { assumed_gamma 1.0 }

// ----------------------------------------

camera {
  location  <5.0, -12.0, 2.0>
  up z sky z
  look_at   <0.0, 0.0, 0.5> 
  angle 40
}

sky_sphere {
  pigment {
    gradient z
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.2 rgb <0.2,0.3,0.9>]
    }
  }
}

light_source {
  <3, 1, 2>*1000
  color rgb <2.2, 1.8, 1.5>
}   

// ----------------------------------------

#declare TEST=0;

#ifdef (TEST)
  plane {
    z, 0
    texture {
      pigment {
        checker
        color rgb 1, color rgb 0
      }
    }
  }
#end

#macro Sphere(Pos, Radius)
  sphere {
    <Pos.x, Pos.y, Radius*1.3>, Radius
    texture {
      pigment { color rgb 1 }
      finish{
        diffuse 0.3
        ambient 0.0
        specular 0.6
        reflection 0.8
      }
    }
  }
#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