This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const pixi = require('pixi.js'); | |
const three = require('three'); | |
// Create the pixi.js renderer | |
const pixiRenderer = pixi.autoDetectRenderer(512, 512, { transparent: true }); | |
// Create the three.js renderer | |
const threeRenderer = new three.WebGLRenderer(); | |
threeRenderer.setSize(window.innerWidth, window.innerHeight); | |
threeRenderer.autoClear = false; |