Skip to content

Commit

Permalink
Use spec values for default lights
Browse files Browse the repository at this point in the history
  • Loading branch information
codefrau committed Dec 25, 2023
1 parent aa9aa0b commit a584ede
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jasmine-opengl.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,8 +186,8 @@ function OpenGL() {
gl.lights[i] = {
enabled: false,
ambient: new Float32Array([0, 0, 0, 1]),
diffuse: new Float32Array([0, 0, 0, 1]),
specular: new Float32Array([0, 0, 0, 1]),
diffuse: new Float32Array(i === 0 ? [1, 1, 1, 1] : [0, 0, 0, 1]),
specular: new Float32Array(i === 0 ? [1, 1, 1, 1] : [0, 0, 0, 1]),
position: new Float32Array([0, 0, 1, 0]),
};
}
Expand Down

0 comments on commit a584ede

Please sign in to comment.