Minor updates to the webpack sample.

This commit is contained in:
Philip Rideout
2019-07-03 15:30:00 -07:00
parent 073a6c7696
commit e009dbbf96
3 changed files with 12 additions and 1 deletions

View File

@@ -240,6 +240,13 @@ export class IndirectLight {
public setIntensity(intensity: number);
}
export class IcoSphere {
constructor(nsubdivs: number);
vertices: Float32Array;
tangents: Uint16Array;
triangles: Uint16Array;
}
export class Scene {
public addEntity(entity: Entity);
public getLightCount(): number;

View File

@@ -13,7 +13,9 @@
"webpack-cli": "^3.1.2"
},
"dependencies": {
"@types/gl-matrix": "2.4.5",
"copy-webpack-plugin": "^4.6.0",
"filament": "^1.2.0"
"filament": "1.3.0",
"gl-matrix": "2.4.5"
}
}

View File

@@ -15,8 +15,10 @@
*/
import * as Filament from "filament";
import * as glm from "gl-matrix";
Filament.init([], () => {
window["vec3"] = glm.vec3;
window["app"] = new App(document.getElementsByTagName('canvas')[0]);
});