This post has been moved to my blog, under Color Management in three.js.
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
import THREE from 'three'; | |
export default class MeshLine { | |
constructor() { | |
this.attributes = {}; | |
this.positions = []; | |
this.geometry = new THREE.BufferGeometry(); | |
this.widthCallback = null; | |
} |
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
import { Dictionary, ErrorCallback, parallel } from 'async'; | |
import { AnimationParser, Cache } from 'phaser'; | |
import { Client } from './client'; | |
/** | |
* pending texture atlas 'complete' callbacks | |
*/ | |
const pending: Dictionary<ErrorCallback<string>> = {}; | |
/** |