POV-Ray : Newsgroups : povray.general : layered texture help please : Re: layered texture help please Server Time
18 Nov 2024 21:26:48 EST (-0500)
  Re: layered texture help please  
From: Hugo
Date: 14 Jul 2002 16:23:25
Message: <3d31ddbd@news.povray.org>
> I can dig up the files, but perhaps you get the idea?

Here is one. You will probably be able to improve it.
------------

// Blur pigment from <0,0,0> to <1,1,0>
// by Hugo Asmussen

camera { location <0,0,-5> look_at 0 angle 48 }
light_source { <-80,80,-80>, 1 }

#declare Input=pigment { checker rgb 1,rgb 0 scale .5 }

#declare Layers=255; // between 1 - 255
#declare Amount=.025;

#declare Output=
pigment { image_map { function 50,50 {
 pigment { average pigment_map {

  #local Layers=1/Layers;

  #local Count=0;
  #while(Count<1)

   [1 Input translate vrotate(Amount*x,(360*Count)*z)  ]

   #local Count=Count+Layers;
  #end
 } scale .5 +(.5/25) }
} interpolate 2 }
}

box { <-10,-10,0>,<10,10,-1> pigment { Output } }


Post a reply to this message

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