POV-Ray : Newsgroups : povray.general : goraud shading : Re: goraud shading Server Time
3 Aug 2024 14:18:56 EDT (-0400)
  Re: goraud shading  
From: Warp
Date: 19 Jan 2004 15:10:35
Message: <400c39ba@news.povray.org>
Chris Cera <cer### [at] csdrexeledu> wrote:
> Is there a way to configure povray to do goraud shading?

  No.

  There usually aren't any good reasons to perform gouraud shading.
In scanline renderers it's supported because in scanline rendering
gouraud shading is considerably faster than phong shading. However,
the result is usually not very realistic.
  In theory POV-Ray could support gouraud, but it would probably cause
more problems than it's worth (eg. how do you calculate the direction
of the reflected ray if the mesh is reflective?).

  You can define different colors for the vertices of a mesh and POV-Ray
will interpolate these colors, but there's no way of making POV-Ray to
calculate these colors automatically from the light sources.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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