POV-Ray : Newsgroups : povray.newusers : Texture overriding? : Re: Texture overriding? Server Time
4 Nov 2024 14:19:21 EST (-0500)
  Re: Texture overriding?  
From: Mark M  Wilson
Date: 21 Mar 2002 14:11:55
Message: <3C9A324E.16496089@ncsl.dcr.state.nc.us>
Well, I just tried to do this, and it was rejected.  I entered the
following to describe the texture of a CSG object:
texture { T_Stone9 phong 0.01 scale 0.08 }

and got the error message: 
no matching } in texture, phong found instead.

So where should I put it?
Is that what you meant by my example "fall(ing) over?"

--Mark

"Mark M. Wilson" wrote:
> 
> Is it possible to override the phong or other characteristic of a
> texture from an include file?  Say for instance I wanted to reduce the
> default reflectivity of a polished marble texture -- could I simply:
> 
> #include "stones.inc" (at top of pov file, of course)
> 
> [...]
> 
> object { whatever texture { T_Stone8 phong 0.001 scale 0.08 } }
> 
> just as an example?
> 
> Or would I have to copy in the relevant lines from the textures.inc file
> and make the modifications needed there? (And I guess re-declare the
> texture with a different name to avoid confusion?)
> 
> TIA,
> Mark


Post a reply to this message

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