POV-Ray : Newsgroups : povray.beta-test : Experimental tonemapping : Re: Experimental tonemapping Server Time
19 Apr 2024 00:12:27 EDT (-0400)
  Re: Experimental tonemapping  
From: Jaime Vives Piqueres
Date: 11 Apr 2016 07:48:06
Message: <570b8ef6$1@news.povray.org>
El 10/04/16 a las 17:02, clipka escribió:
>> So here's the deal: Get the thing, test the shit out of it and enjoy! :)

   // vignetting
   #declare vignetting_amount=0.3;
   #declare f_vignette=
   function{
     pigment{
       spherical
       color_map{
         [vignetting_amount rgb 0]
         [1 rgb 1]
       }
     }
   }
   tonemapping {
     #declare noise_amount=0.05;
     parameters { red,green,blue,x,y }
     function(r,g,b,x,y) {r*f_vignette(x-.5,y-.5,0).gray}
     function(r,g,b,x,y) {g*f_vignette(x-.5,y-.5,0).gray}
     function(r,g,b,x,y) {b*f_vignette(x-.5,y-.5,0).gray}
   }


Post a reply to this message

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