POV-Ray : Newsgroups : povray.unofficial.patches : patch for lighting.c Server Time
8 Jul 2024 15:53:30 EDT (-0400)
  patch for lighting.c (Message 1 to 1 of 1)  
From: Micha Riser
Subject: patch for lighting.c
Date: 7 Jun 2001 11:27:56
Message: <3b1f9d7c@news.povray.org>
Following patch fixes a bug in lighting.c introduced in megapov somewhere 
version <0.5. I had been complaining about it some time ago (see message-id 
3AB### [at] gmxnet). As there does not seem to come out never versions 
of megapov and we are still waiting for 3.5 I am posting the patch here now.

The bug affects nearly all scenes with glass or some other material with 
transparence and reflection.

- Micha

*** lighting.c  Sat Feb 10 10:57:18 2001
--- lighting.c  Thu Jun  7 17:11:24 2001
***************
*** 4515,4520 ****
--- 4515,4523 ----
        ListReflec[layer_number][2]*=FilCol[2];
        */
 
+       /* Micha Riser (mri### [at] gmxnet) - readded following line from 
pov3.1 */
+       Assign_Vector(ListNormal[layer_number], LayNormal);
+
        /* --------------------------------------------- */
        /* now compute the BRDF contribution ----------- */


Post a reply to this message

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