POV-Ray : Newsgroups : povray.general : How to add attributes to pre-defined textures? : Re: How to add attributes to pre-defined textures? Server Time
4 Aug 2024 22:10:38 EDT (-0400)
  Re: How to add attributes to pre-defined textures?  
From: Bonsai
Date: 23 Jan 2003 10:50:46
Message: <3e300f56@news.povray.org>
Andreas Kreisig wrote:
> I didn't know how to add some attributes 
> to pre-defined textures.
> 
> I defined something like this:
> #declare ma_bottle_fsh=material { M_Glass2 }
> and want to add some bumpiness to the bottle, 

Just add the attributes you want to the definition:

#declare ma_bottle_fsh =
material {
	texture {
		M_Glass2
		
		normal {
			dents	
		}
	}
}

> or I defined this:
> #declare ma_chair_fsh=texture { T_Wood15 }
> and want to add a shiny surface.

#declare ma_chair_fsh =
texture {
	T_Wood15
	
	finish {
		reflection 0.2
	}
}

Hope that helps.

Bonsai

-- 
<--------------------------->
    ___ __ __  _ ___ ___  _
   | _ )  \  \( )  _) _ )( )
   | _ \() |\ \ |\ \/ _ \| |
   |___/__/_)\__)___)/ \_)_)

        www.b0n541.net
<--------------------------->


Post a reply to this message

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