POV-Ray : Newsgroups : povray.newusers : How to get a texture like (y>0.8 & z>0.9) -> texture a else -> texture= b? : Re: How to get a texture like (y>0.8 & z>0.9) -> texture a else -> texture= b? Server Time
30 Jul 2024 06:18:29 EDT (-0400)
  Re: How to get a texture like (y>0.8 & z>0.9) -> texture a else -> texture= b?  
From: Josh
Date: 3 Sep 2004 11:45:48
Message: <413891ac$1@news.povray.org>
Heres an example of what I meant...

#include "colors.inc"

camera {
  location  <5, 5, -10> look_at   <0, 0,  0>
}

light_source {<200, 1000, -400> White}

#declare myObject = box     {
        <-1,-1,-1>,
        <1,1,1>
        };

#declare texture1 = texture {
        pigment {
                Red
                }
        };

#declare texture2 = texture {
        pigment {
                White
                }
        };

#declare myTexture = texture {
        object  {
                myObject
                texture { texture1 }
                texture { texture2 }
                }
        };

box     {
        <-2,-2,-2>,
        <0,0,0>
        texture {
                myTexture
                }
        }


Post a reply to this message

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