POV-Ray : Newsgroups : povray.general : Why doesn't this work (some #declare stuff) : SV: Why doesn't this work (some #declare stuff) Server Time
10 Aug 2024 20:58:00 EDT (-0400)
  SV: Why doesn't this work (some #declare stuff)  
From: Peter Hertel
Date: 30 Oct 1999 13:53:09
Message: <381b3085@news.povray.org>
I have to write it like this then... makes it a bit more difficult, but
thanks a lot..
well...  I use an include file, so I just added the finish in the mail
manually without test rendering.. that's why the last } weren't there :)

#declare Test = 1;

#if (Test)

        #declare screen_text = texture {pigment {White}}

#else

        #declare screen_text = texture {Plastic_White}
#end

camera{
location <20,60,-50>
look_at <20,22,0>
}

light_source{<20,50,-100> White}

box{<0,6,0>,<40,44,6> texture{screen_text}}

#if (Test)
prism{linear_spline 6,44,4 <0,0>,<40,0>,<20,-1.5>,<0,0> texture
{screen_text}}
#else
prism{cubic_spline 6,44,6 <0,0>,<0,0>,<40,0>,<20,-1.5>,<0,0>,<0,0> texture
{screen_text}}
#end


Post a reply to this message

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