Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 20 Jun 2012
Offline Last Active Aug 16 2012 06:38 AM

Topics I've Started

100% dumb questions about opengl lighting

29 June 2012 - 07:00 AM

Well, i was setting up an hardcoded cornell box scene with opengl because i want to learn glsl and hopefully write a fragment shader path tracer

so i copied these data (here's the code), but i had a result i didn't expect, and i don't understand

Posted Image

There's no reason for having an enlighted left wall and such a dark right wall.. also that floor shouldnt be so dark if the bottom of the left wall is still enlighted

But if i invert floor and right wall normal direction (right wall normal = (-1, 0, 0) and floor normal = (0, -1, 0)) i get something similiar to what i expected

Posted Image

i feel like i'm missing something :/