POV-Ray : Newsgroups : povray.text.scene-files : Copper Texture Server Time
2 Jun 2024 04:40:01 EDT (-0400)
  Copper Texture (Message 1 to 1 of 1)  
From: Mike Raiford
Subject: Copper Texture
Date: 12 Jan 2005 09:10:21
Message: <41e52fcd$1@news.povray.org>
The following is the POV Code for the copper texture

//----------------------------------------------------------------------
// Copper Texture
// Created By Michael Raiford

#declare copper_micro_norm = normal
{
   spotted .5 scale .3

   slope_map
   {
     [0 <1,0>]
     [0.3 <1,0>]
     [0.9 <0,0>]
     [1 <0,0>]
   }
}


#declare chinks = normal
{
   spotted .5 scale 1

   slope_map
   {
     [0 <1,0>]
     [0.60 <1,0>]
     [0.90 <0,0>]
     [1 <0,0>]
   }
}

#declare copper_norm = normal
{
   spotted 1 scale .0125

   normal_map
   {
     [0 copper_micro_norm]
     [.6 copper_micro_norm]
     [.6 chinks]
     [1 chinks]
   }
}

#declare t_copper = texture
{
   pigment {color rgb <0.9,0.66,0.42>*1}
   finish {
     diffuse 0.07
     specular 1 roughness 0.0005
     reflection {0.7,1  metallic}
     conserve_energy
     metallic
   }
   normal { copper_norm }
}

-- 
~Mike


Post a reply to this message

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