some details about BED
This commit is contained in:
@@ -398,7 +398,7 @@ export class Engine {
|
||||
const viewProj = diorama.updateMatrices(aspect);
|
||||
|
||||
gl.uniformMatrix4fv(this.uniforms.viewProj, false, viewProj);
|
||||
gl.uniform3f(this.uniforms.lightDir, 1.0, 3.0, 2.0);
|
||||
gl.uniform3f(this.uniforms.lightDir, 1.0, 3.0, -2.0);
|
||||
gl.uniform3f(this.uniforms.viewDir, diorama.viewDir[0], diorama.viewDir[1], diorama.viewDir[2]);
|
||||
gl.uniform3f(this.uniforms.upDir, diorama.upDir[0], diorama.upDir[1], diorama.upDir[2]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user