POV-Ray : Newsgroups : povray.binaries.images : POV 3.7 metals.inc; post your textures here : Re: POV 3.7 metals.inc; post your textures here Server Time
31 Jul 2024 06:15:19 EDT (-0400)
  Re: POV 3.7 metals.inc; post your textures here  
From: Christian Froeschlin
Date: 1 Apr 2009 15:47:20
Message: <49d3c4c8$1@news.povray.org>
clipka wrote:

> Warp <war### [at] tagpovrayorg> 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

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