POV-Ray : Newsgroups : povray.general : Sphere function : Re: Sphere function Server Time
29 Jul 2024 00:33:17 EDT (-0400)
  Re: Sphere function  
From: posfan12
Date: 11 Oct 2013 11:50:00
Message: <web.52581db8c251fe7c41a177270@news.povray.org>
scott <sco### [at] scottcom> wrote:
> > I need a function to use in densities that is like the existing spherical
> > density, but gets weaker based on the square of the distance instead of a linear
> > radius.
>
> Something like this:
>
> #declare f_Example = function{ 1/(x*x + y*y + z*z) }

I think that works. Thanks!


Mike


Post a reply to this message

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