File: cattex.inc

package info (click to toggle)
povray 1%3A3.6.1-12
  • links: PTS
  • area: non-free
  • in suites: lenny, squeeze
  • size: 31,084 kB
  • ctags: 20,310
  • sloc: ansic: 110,032; cpp: 86,573; sh: 13,595; pascal: 5,942; asm: 2,994; makefile: 1,753; ada: 1,637
file content (142 lines) | stat: -rw-r--r-- 2,633 bytes parent folder | download | duplicates (3)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Persistence Of Vision Ray Tracer Scene Description File
// File: CatTex.inc
// Vers: 3.5
// Desc: Texures for PovCat Ray
// Date: 1999/12/04
// Updated: 2001/07/27
// Auth: ingo
//

#version 3.5;

#ifndef (CatTex)
   #declare CatTex= texture {
      pigment {
         wood rotate <91,0,0> translate <0,20,0>
         turbulence 0.05
         scale 0.3
         colour_map {
            [0.1, rgb 0.75]
            [1, rgb 0.3]
         }
      }
   }
#end

#ifndef (HairTex)
   #declare HairTex= texture {
      pigment {
         wood rotate <91,0,0> translate <0,20,0>
         turbulence 0.05
         scale 0.3
         colour_map {
            [0.1, rgb 0.05]
            [1, rgb 0.02]
         }
      }
      finish {phong 1 phong_size 60}
   }
#end

#declare R_EarBaseTex= texture {
   CatTex
   InvRot(R_EarPos)
}
#declare R_EarTipTex= texture {
   CatTex
   translate <0,-1,0>
   InvRot(R_EarTip)
   InvRot(R_EarPos)
}
#declare R_EarInTex= texture {
   CatTex
   translate <0,-1,0.2>
   InvRot(R_EarTip)
   InvRot(R_EarPos)
}

#declare L_EarBaseTex= texture {
   CatTex
   InvRot(L_EarPos)
}
#declare L_EarTipTex= texture {
   CatTex
   translate <0,-1,0>
   InvRot(L_EarTip)
   InvRot(L_EarPos)
}
#declare L_EarInTex= texture {
   CatTex
   translate <0,-1,0.2>
   InvRot(L_EarTip)
   InvRot(L_EarPos)
}

#declare EyeTex= texture {
   pigment {
      cylindrical
      colour_map {
         [1-PupilDiam, rgb <1,1,0.95>]
         [1-PupilDiam, rgb 0]
      }
   }
   finish {phong 1 phong_size 60}
}

#declare R_EyeLidTex= texture {
   cylindrical
   texture_map {
      [0.73, CatTex InvRot(R_EyePos)]
      [0.78, pigment {rgb 0} finish {phong 1 phong_size 30}]
   }
}

#declare L_EyeLidTex= texture {
   cylindrical
   texture_map {
      [0.73, CatTex InvRot(L_EyePos)]
      [0.78, pigment {rgb 0}]
   }
}

#declare NoseTex= texture {
   pigment_pattern {
      cylindrical
      scale <1.5,1,1>
      rotate <-4,0,0>
   }
   texture_map {
      [0.8, CatTex InvRot(NosePos)]
      [0.98, pigment {rgb 1}]
      [0.90, pigment {rgb 0.05} finish {phong 1}]
   }
}

#declare R_CheekTex= texture {
   pigment_pattern {
      cylindrical
      scale <1.5,1,1>
      rotate <-10,20,0>
   }
   texture_map {
      [0.65, CatTex InvRot(R_CheekPos)]
      [1, CatTex InvRot(R_CheekPos) normal {bumps 0.25 scale 0.02}]
   }
}

#declare L_CheekTex= texture {
   cylindrical
   texture_map {
      [0.65, CatTex InvRot(L_CheekPos)]
      [1, CatTex InvRot(L_CheekPos) normal {bumps 0.25 scale 0.02}]
   }
}

#declare MouthTex= texture {
   CatTex
   translate -1*MouthPos
   normal {
      bumps 0.2
      scale 0.02
   }
}