|
@@ -15,6 +15,7 @@ function init( canvas, width, height, pixelRatio, path ) {
|
|
// we don't use ImageLoader since it has a DOM dependency (HTML5 image element)
|
|
// we don't use ImageLoader since it has a DOM dependency (HTML5 image element)
|
|
|
|
|
|
var loader = new THREE.ImageBitmapLoader().setPath( path );
|
|
var loader = new THREE.ImageBitmapLoader().setPath( path );
|
|
|
|
+ loader.setOptions( { imageOrientation: 'flipY' } );
|
|
loader.load( 'textures/matcaps/matcap-porcelain-white.jpg', function ( imageBitmap ) {
|
|
loader.load( 'textures/matcaps/matcap-porcelain-white.jpg', function ( imageBitmap ) {
|
|
|
|
|
|
var texture = new THREE.CanvasTexture( imageBitmap );
|
|
var texture = new THREE.CanvasTexture( imageBitmap );
|