POV-Ray : Newsgroups : povray.newusers : parameter help please : parameter help please Server Time
5 Nov 2024 18:23:22 EST (-0500)
  parameter help please  
From: Tom Melly
Date: 7 Apr 1999 12:54:23
Message: <370b7faf.0@news.povray.org>
if i am using a declared object, with a texture in the object declaration,
how can i just change the scale of the texture when I use the object, but
retain the rest of the texture settings? If i just add a  scale (as per the
example below), the old texture is completely replaced, rather than
appended.

Also, assuming this is possible, would the scaling over-ride the original
scale, or would it scale the original scale?

example:

#declare  mysphere =
object{
    sphere{
        <0,0,0>, 5
        texture{
            bozo
            scale 0.5
            color_map{
                [0 White]
                [1 Black]
            }
        }
    }
}

object{
    mysphere
    texture{
        scale 0.25
    }
}


Post a reply to this message

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