matrix-engine-wgpu
Version:
Networking implemented - based on kurento openvidu server. fix arcball camera,instanced draws added also effect pipeline blend with instancing option.Normalmap added, Fixed shadows casting vs camera/video texture, webGPU powered pwa application. Crazy fas
34 lines (29 loc) • 887 B
JavaScript
import MatrixEngineWGPU from "../src/world.js";
export var unlitTextures = function() {
let unlitTextures = new MatrixEngineWGPU({
useSingleRenderPass: false,
canvasSize: 'fullscreen'
}, () => {
addEventListener('AmmoReady', () => {
let c = {
scale: 2,
position: {x: -3, y: 0, z: -10},
rotation: {x: 0, y: 0, z: 0},
rotationSpeed: {x: 10, y: 0, z: 0},
texturesPaths: ['./res/textures/rust.jpg']
};
let o = {
scale: 2,
position: {x: 3, y: 0, z: -10},
rotation: {x: 0, y: 0, z: 0},
rotationSpeed: {x: 10, y: 0, z: 0},
texturesPaths: ['./res/textures/default.png']
};
unlitTextures.addCube(o)
unlitTextures.addBall(c)
// just to fix warns
unlitTextures.addLight()
});
})
window.app = unlitTextures;
}