POV-Ray : Newsgroups : povray.binaries.images : INVITATION: Join the Mississippi Paddle-Wheel Steamer! : Re: INVITATION: Join the Mississippi Paddle-Wheel Steamer! Server Time
18 May 2024 17:11:21 EDT (-0400)
  Re: INVITATION: Join the Mississippi Paddle-Wheel Steamer!  
From: Sven Littkowski
Date: 14 Apr 2018 22:45:24
Message: <5ad2bcc4@news.povray.org>
Still not succeeding with the texture macro (while I know how to use
macros for other things). Here is, what I have. Doesn't work the one or
other way.


#macro MyYellowSimpleDir(MyOrientation)
 #if(MyOrientation="X")
//  #declare MyYellowSimple =
   texture { MyYellowWood rotate < 00.0, 00.0, 90.0 > rotate < 00.0,
00.0, 00.0 > }
   texture { MyYellowSimple }
//  ;
 #elseif(MyOrientation="Y")
//  #declare MyYellowSimple =
   texture { MyYellowWood rotate < 0.0, 0.0, 00.0 > rotate < 00.0, 00.0,
00.0 > }
   texture { MyYellowSimple }
//  ;
 #elseif(MyOrientation="Z")
//  #declare MyYellowSimple =
   texture { MyYellowWood rotate < 0.0, 0.0, 90.0 > rotate < 00.0, 00.0,
00.0 > }
   texture { MyYellowSimple }
//  ;
 #end
#end

---

http://www.avg.com


Post a reply to this message

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