POV-Ray : Newsgroups : povray.object-collection : RC3Metal 1.2.1: blurred reflection speed-up : Re: RC3Metal 1.2.1: blurred reflection speed-up Server Time
27 Sep 2021 06:33:05 EDT (-0400)
  Re: RC3Metal 1.2.1: blurred reflection speed-up  
From: Cousin Ricky
Date: 25 Mar 2016 18:05:01
Message: <web.56f5b59bbce46252f7965d7b0@news.povray.org>
"LanuHum" <Lan### [at] yandexru> wrote:
> Thanks! Very Good! But...
> Update rc3metal.inc:
>
> #macro RC3Metal_Galvanized_t (c_Dull, c_Shiny, Dull, Shiny, Dark, Light, Shine,
> Turb, Scale)
>   #if (RC3M_Debug) #debug "RC3Metal_Galvanized_t()...\n" #end
>   texture
>   { crackle solid texture_map
>     { [0 RC3Metal (c_Shiny, Shiny, Light)]
>       [Shine RC3Metal (c_Dull, Dull, Light)]
>       [1 RC3Metal (c_Dull, Dull, Dark)]
>     }
>     turbulence Turb
>     scale Scale
>   }
> #end
>
> Scaling crackle is required surely!  :)

Scaling can be easily achieved this way:

#declare T = RC3Metal_Galvanized_t (...)
texture { T scale MyScale }

Unfortunately, this syntax is not accepted for turbulence, so I will consider
your suggestion.


Post a reply to this message

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