dilevin / computer-graphics-ray-tracing

Computer Graphics Assignment about Ray Tracing
1 stars 5 forks source link

blinn phong shading math? #67

Closed dharhar closed 6 days ago

dharhar commented 1 week ago

I've implemented the math from the tutorial slides but am getting this output. Any ideas on what could be going wrong? image

vpineda1996 commented 6 days ago

Try using the sphere image. Are you also adding ambient light?

dharhar commented 6 days ago

I added ambient light outside of the loop going over all lights. When I used sphere.json, I just get a black screen, but my color values are all 0.0x