POV-Ray : Newsgroups : povray.binaries.images : Adding an alpha gradient to an image_map? : Re: Adding an alpha gradient to an image_map? Server Time
30 Jul 2024 08:28:27 EDT (-0400)
  Re: Adding an alpha gradient to an image_map?  
From: clipka
Date: 14 May 2012 19:13:22
Message: <4fb19192$1@news.povray.org>


> texture
> {
> gradient z
> texture_map
> {
> [0 T_Earth_Day]
> [0.45 T_Earth_Day]
> [0.55 T_Earth_Night]
> [1 T_Earth_Night]
> }
> scale 2
> translate <0, 0, -1>
> }

Note that this also scales & translates the individual textures in the 
map; you'd need to do something like:

   texture
   {
     gradient z
     texture_map
     {
       [0.45 T_Earth_Day   translate z*1 scale 0.5]
       [0.55 T_Earth_Night translate z*1 scale 0.5]
     }
     scale 2
     translate z*-1
   }

(Also note that I removed the texture map entries for 0 and 1, as 
they're not needed if they're identical to their respective "neighbor" 
entries.)


Post a reply to this message

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