POV-Ray : Newsgroups : povray.newusers : Surface normal in pigment user-function : Re: Surface normal in pigment user-function Server Time
29 Jul 2024 00:26:05 EDT (-0400)
  Re: Surface normal in pigment user-function  
From: Christian Froeschlin
Date: 6 Apr 2007 11:43:42
Message: <46166aae$1@news.povray.org>
avariant wrote:

> vector from the camera position to the object's center.  But I want to
> evaluate the angle between the camera vector and the normal of EACH surface
> point which means, based on the point, the vector from the camera is always
> changing.

I think the "aoi" pattern in MegaPOV would be just what you need.
It is similar to slope, except that instead of a fixed direction
vector, either a reference point or the direction of the incoming
rendering ray is used.


Post a reply to this message

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