CJ <hou### [at] yahoocom> schrieb in im Newsbeitrag:
3c1f8085$1@news.povray.org...
> Great metal texture...
> --
Thanks.
>
> BTW - how did you do the metal texture?
> -------
My English is not very good, so I better send you the source then describing
how I did it.
#local R=seed(123);
#local Z=0;
#declare rumpf_tex=
texture{average
texture_map{
#while(Z<5)
#local T=<rand(R),rand(R),rand(R)>-0.5;
#local S=rand(R)+0.5;
[
finish{ambient 0 diffuse 0.3 phong 1.2 phong_size 2 specular 1 roughness
0.01 metallic }
pigment{cells
color_map{
[0 rgb 1]
[1 rgb 0.1]}
translate T
scale 1.5
scale S}
normal{cells bump_size 1 translate T scale 1.5 scale S}
]
#local Z=Z+1;
#end}}
Post a reply to this message
|