|
|
Tor Olav Kristensen wrote:
...
> This code takes the procedural texture "residing"
> in the region from <0, 0, 0> to <1, 1, 0> and
> maps it onto a torus. It can of course be mapped
> onto any primitive that has support for UV-mapping
> in POV-Ray.
Here's another exapmple
#declare MyTexture =
texture {
pigment {
marble
color_map {
[ 0.2 color rgb <1.0, 0.8, 0.0> ]
[ 0.7 color rgb <1.0, 1.0, 1.0> ]
}
turbulence 0.7
scale <1, 3, 1>/6
}
normal {
marble 0.3
turbulence 0.7
scale <1, 3, 1>/6
}
finish {
ambient 0.2
specular 0.8
}
}
sphere {
-y, 4
texture { uv_mapping MyTexture }
}
--
Tor Olav
http://subcube.net
http://subcube.com
Post a reply to this message
|
|