clipka wrote:
> Warp <war### [at] tag povray org> wrote:
>> What happens if you *want* the texture to have an ambient value >0?
> Then you're screwed with radiosity...
include files could use a #define such as RADIOSITY_TEXTURES
to provide two versions of a texture depending on whether the
#define is set before #including. For textures which just use
a different ambient value that would be no extra effort to
write using a simple macro for ambient.
#macro AMBIENT(ambient_value)
#ifdef RADIOSITY_TEXTURES
ambient 0
#else
ambient ambient_value
#end
#end
#declare T_SOME_TEXTURE = texture
{
pigment {...}
normal {...}
finish {... AMBIENT(0.15)}
}
Post a reply to this message
|