POV-Ray : Newsgroups : povray.newusers : Gradients : Re: Gradients Server Time
4 Nov 2024 17:42:30 EST (-0500)
  Re: Gradients  
From: Parasonic
Date: 21 Dec 2001 17:45:22
Message: <3c23bb82$1@news.povray.org>
Thanks, Trevor and Warp!

"Trevor Quayle" <Tin### [at] hotmailcom> wrote in message
news:3c2388cc$1@news.povray.org...
> "Parasonic" <par### [at] parasonicpar> wrote in message
> news:3c23817a$1@news.povray.org...
> > I try to find answers by my own, especially by trial and error here, but
I
> > haven't been able to figure this one either. I'm making a sky_sphere,
and
> I
> > want a single gradient, blue to black, with a median at 0*y. The
gradient
> > now is basically inverted in the lower 'hemisphere' I just need a
gradient
> > of mostly blue in the upper 'hemisphere' to mostly black in the lower
one.
> >
> > Thanks for your help.
> >
> >
> for sky_sphere:
>
> sky_sphere{
>   pigment {
>     gradient y
>     color_map {
>       [0.0 rgb <0.0,0.0,0.0>]
>       [1.0 rgb <0.0,0.0,1.0>]
>     }
>    translate -y/2 scale 2
>   }
> }
>
>
> -tgq
>
>


Post a reply to this message

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