|
 |
Op 07/01/2022 om 03:49 schreef Kenneth:
[snip]
>
> -----
> #version 3.8;
> global_settings{assumed_gamma 1.0}
> #default{finish{ambient .4 emission 0 diffuse 0}}
>
> camera {
> perspective
> location <0, 0, -20>
> look_at <0, 0, 0>
> right x*image_width/image_height
> // direction z
> // angle 67
>
> normal{
> gradient x+y // a 45-degree pattern
> sine_wave
> scale .1
> bump_size .4
> / /scale <3/4,1,1> // for 4/3 render
> // OR...
> // scale <9/16,1,1> // for 16/9 render
> // -- etc. --
> }
> }
>
> #declare S = seed(21);
> #for(i,1,100)
> sphere{0,1
> pigment{rgb <.1 + .9*rand(S),.1 + .9*rand(S),.1 + .9*rand(S)>}
> translate <-15 + 30*rand(S), -10 + 20*rand(S),0>
> }
> #end
That is interesting indeed. I guess you could use the camera 'right' for
the normal, like:
scale <image_height/image_width,1,1>
Don't you think?
--
Thomas
Post a reply to this message
|
 |