get the camera closer
This commit is contained in:
parent
905a5b6038
commit
2507711e79
3 changed files with 10 additions and 6 deletions
File diff suppressed because one or more lines are too long
|
@ -12,7 +12,7 @@ import { basicVertexRounding } from "../common-shaders/basic-vertex-rounding";
|
|||
|
||||
const app = new WebGLApp({ fov: 45 });
|
||||
|
||||
const camera = new Transform([3, 3, 5], etoq([-15, 40, 0]));
|
||||
const camera = new Transform([2, 3, 3], etoq([-15, 40, 0]));
|
||||
const light = new Transform([1, 1, 0]);
|
||||
|
||||
const transform = new Transform(v3(0), etoq([0, 0, 0]));
|
||||
|
|
|
@ -19,9 +19,6 @@ export class Texture {
|
|||
}
|
||||
|
||||
async loadImage() {
|
||||
this.app.telemetry?.addTextures(-1);
|
||||
this.app.loading("Fetching textures...");
|
||||
|
||||
if (this.url === "manual") {
|
||||
if (this.texture === null) {
|
||||
throw new Error("manual specified, but texture was not ready...");
|
||||
|
@ -29,6 +26,13 @@ export class Texture {
|
|||
return;
|
||||
}
|
||||
|
||||
if (this.texture !== null) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.app.telemetry?.addTextures(-1);
|
||||
this.app.loading("Fetching textures...");
|
||||
|
||||
const image = new Image();
|
||||
return new Promise((resolve, reject) => {
|
||||
image.onload = async () => {
|
||||
|
|
Loading…
Add table
Reference in a new issue