POV-Ray : Newsgroups : povray.general : Turbulence in a pigment_map : Re: Turbulence in a pigment_map Server Time: 26 Oct 2020 13:24:58 GMT
  Re: Turbulence in a pigment_map  
From: Bald Eagle
Date: 8 Sep 2020 01:20:01
#version 3.8;
global_settings {assumed_gamma 1.0}

camera {
 location <0.5, 0.5, -3>
 right x*image_width/image_height
 up y
 look_at <0.5, 0.5, 0>
}

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

sky_sphere {pigment {rgb 1}}

#declare P_cells = pigment { cells scale 0.1 }
#declare P_fire = pigment { gradient x turbulence 1.05
                            pigment_map {
                            [0.00 rgbt 1 ]
                            [0.75 rgbt 1 ]
                            [0.75 rgbt <1, 0, 0, 0.25> ]
                            [0.75 rgbt <1, 0.5, 0, 0.25> ]
                            [0.75 rgbt <1, 1, 0, 0.25> ]
                            [1.00 rgbt <1, 0, 0, 0.9> ] }
                            }

#declare T_cells = texture { pigment {P_cells} }
#declare T_fire = texture { pigment { P_fire } }

plane {z, 0 texture {T_cells} texture {T_fire}}


Post a reply to this message

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