Minor updates to the webpack sample.
This commit is contained in:
7
web/filament-js/filament.d.ts
vendored
7
web/filament-js/filament.d.ts
vendored
@@ -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;
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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]);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user