|
|
Random Pete wrote:
> I have a texture with square areas of transparency which looks like a mesh
> speaker casing. I want specular highlights to show only on the visible areas
> of texture, and not the transparent areas in between. Unfortunately it seems
> the default behaviour is for transparent textures to display highlights
> (which makes sense for glass-like textures but not in this case). Is there
> a way to change this?
>
> Pete
Is your texture a bitmap (or, png, gif, etc.)? If so, you may have to
use a texture_map like this:
#declare mytex = pigment{image_map{....regular stuff}}
object{
myobj
texture{
pigment_pattern{ mytex }
texture_map{
[0 pigment{mytex} finish{specular 1}]
[1 pigment{mytex} finish{specular 0}]
}
}
}
I hope this makes sense to you. Good luck!
~Sam
Post a reply to this message
|
|