14 years, 3 months ago
Highlights
14 years, 3 months ago
14 years, 3 months ago
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'…
14 years, 3 months ago
You have a directional light, not a positional one. Spotlight settings only work for positional lights. Set the w-component of the position to 1 instead. Also, don't expect…
14 years, 3 months ago
What do you think is wrong with the directional light? If the light is coming from the upper left in the image, then the bottom and right faces are lit since they face the light…
14 years, 3 months ago
Latest Activity
See all in DiscussionsYou have a directional light, not a positional one. Spotlight settings only work for positional lights. Set the w-component of …
14 years, 3 months ago
What do you think is wrong with the directional light? If the light is coming from the upper left in …
14 years, 3 months ago
The light parameters are 4-dimensional vectors, not 3-dimensional vectors as in your code. OpenGL is currently reading the fourth component …
14 years, 3 months ago