POV-Ray : Newsgroups : povray.general : Question: Transparency : Re: Question: Transparency Server Time
1 Aug 2024 00:21:32 EDT (-0400)
  Re: Question: Transparency  
From: Mike Williams
Date: 27 May 2006 00:19:47
Message: <PKHAtUAXL9dEFwzG@econym.demon.co.uk>
Wasn't it Sven Littkowski who wrote:
>Greetings.
>
>Is there any way to define transparency of a gray-shade image_map as 
>follows: the blacker the more transparent, and the whiter the more visible?
>
>I want to add lights to a planet surface. The lights are a gray-shade PNG 
>file.

texture { 
  pigment_pattern {image_map {png "transmap.png" interpolate 2}}
  texture_map {
     [0 texture {pigment {rgbt <0,0,0,1>}}]
     [1 texture {lightsTexture}]
  }      
}

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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