POV-Ray : Newsgroups : povray.general : Different textures depending on slope/steepness? : Re: Different textures depending on slope/steepness? Server Time
31 Jul 2024 22:18:02 EDT (-0400)
  Re: Different textures depending on slope/steepness?  
From: Charles C
Date: 26 Jul 2006 14:50:00
Message: <web.44c7b8d362efd8a43869c6770@news.povray.org>
Here's a quick (& kindof ugly) example....

//          /
//****   o-/--   ************************
//        o

#version 3.6;

#include "colors.inc"
#include "woods.inc"
#include "textures.inc"
#include "metals.inc"

// ----------------------------------------

camera {
  location  <2.0, 1.5, 0.5>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.5, 0.0,  0.5>
}

light_source {  <0, 10, 0>  color rgb <1, 1, 1>  }


// ----------------------------------------

plane { y, -1 pigment { color rgb <0.7,0.5,0.3> }    }


height_field {
  png
  "plasma3.png"
  texture {
      slope y
      texture_map {
        [0.0  T_Wood11]
        [0.5  pigment{Green} finish{phong 1}]
        [0.85  T_Chrome_1A]
        [0.95  pigment{Brown} finish{Shiny}]
      }
    }
  scale <1,.2,1>
}


//          /
//****   o-/--   ************************
//        o


Post a reply to this message

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