POV-Ray : Newsgroups : povray.general : layered texture and normal problem : layered texture and normal problem Server Time
5 Aug 2024 00:22:52 EDT (-0400)
  layered texture and normal problem  
From: Tom & Lu Melly
Date: 20 Jan 2003 18:44:25
Message: <3e2c89d9@news.povray.org>
I'm getting odd behaviour when adding a normal to the final texture
statement in a layered texture.

My understanding was that the normal in the last texture was applied to the
whole texture, regardless of transparency.

Here's a minimal scene - on my PC the normal comes and goes.

#version 3.5;

#include "colors.inc"
#include "functions.inc"

global_settings {
  assumed_gamma 1.0
}

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

camera {
  location  <0.0, 0.5, -2.0>
  look_at   <0.0, 0.0,  0.0>
}

sky_sphere {
  pigment {
    wrinkles
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.7 rgb <0.0,0.1,0.8>]
    }
  }
}

light_source {
  <0, 0, 0>            // light's position (translated below)
  color rgb <1, 1, 1>  // light's color
  translate <-100, 100, -100>
}

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

#declare TestTex =
texture{
  pigment{rgb 0.5}
}
texture{
  pigment{
    marble scale 0.2
    pigment_map{
      [0 rgbf 1]
      [1 rgbf <0.5,0.5,0.5,1>]

    }
  }
  normal{granite 5 scale 0.1}
}

box{
  0,1
  translate -0.5
  texture{TestTex}
}


Post a reply to this message

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