POV-Ray : Newsgroups : povray.general : Glowing texture ? : Re: Glowing texture ? Server Time
30 Jul 2024 02:15:39 EDT (-0400)
  Re: Glowing texture ?  
From: Sherry Shaw
Date: 1 Dec 2009 15:59:19
Message: <4b1583a7@news.povray.org>
BitViper wrote:
> where do i put the ambient ??
> 
> #declare my_texture = texture {
>     pigment {
>         image_map {
>             png "my_image.png"
>             map_type 1    // spherical
>             interpolate 2 // bilinear
>         }
>     }
> }

Ambient goes in the "finish" block:

#declare my_texture =
texture {
   pigment {
     image_map {
       png "my_image.png"
       map_type 1
       interpolate 2
     }
   }
   finish {
     ambient 1
   }
}

Hope this helps!

--Sherry Shaw


-- 
#macro T(E,N)sphere{x,.4rotate z*E*60translate y*N pigment{wrinkles scale
.3}finish{ambient 1}}#end#local I=0;#while(I<5)T(I,1)T(1-I,-1)#local I=I+
1;#end camera{location-5*z}plane{z,37 pigment{granite color_map{[.7rgb 0]
[1rgb 1]}}finish{ambient 2}}//                                   TenMoons


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.