|
Post by brendanleber on Aug 10, 2022 22:20:41 GMT
My scene from chapter 7 matches the book. All of my unit tests pass. Yet when I render the scene again after adding support for shadows I get a Moiré pattern on the two walls. Not the acne effect described on page 114. I've gone through the code again but I can't find anything that doesn't match the pseudo code in the book. Any idea what's wrong or where to check? Here's the image I'm getting from my code: Attachments:
|
|
|
Post by icolomby on Aug 11, 2022 16:54:27 GMT
Hi,
Best guess without looking at your code would be to check if you are using the computations over point in your lighting and is shadow calls and not the original point. Also make sure that when you calculate the over point you do it after you negate the normal in the prepare computations call.
Ian.
|
|
|
Post by brendanleber on Aug 11, 2022 17:10:48 GMT
Thanks Ian. I fixed by switching from using "float_t" to "double_t".
|
|