How to use the CubeTexture function from three
Find comprehensive JavaScript three.CubeTexture code examples handpicked from public code repositorys.
28 29 30 31 32 33 34 35 36 37
var canvas = document.createElement('canvas') texture.needsUpdate = true texture.image = canvas // add a double-sided sphere var cubeTex = new THREE.CubeTexture() var geo = new THREE.SphereGeometry(1, 84, 84) var mat = new THREE.MeshBasicMaterial({ side: THREE.DoubleSide, })
3
3
23
32 33 34 35 36 37 38 39 40 41
} return this.defaultTexture; } getDefaultCubeTexture() { if (this.defaultCubeTexture === null) { const texture = new three_1.CubeTexture(); texture.minFilter = three_1.NearestFilter; texture.magFilter = three_1.NearestFilter; this._uploadTexture(texture); this.defaultCubeTexture = this.getTextureGPU(texture);
1
3
0
+ 5 other calls in file
22 23 24 25 26 27 28 29 30 31
var THREE = require('three'); var MD2Character = require('./lib/helpers/MD2Character'); /** * Factory & Initializer of THREE.CubeTexture */ var factory_THREE_CubeTexture = { props: 15, create: function() {
0
0
2
+ 7 other calls in file
22 23 24 25 26 27 28 29 30 31
var THREE = require('three'); var MD2Character = require('./lib/helpers/MD2Character'); /** * Property getter THREE.CubeTexture */ function getter_THREE_CubeTexture(inst) { return [ inst.name,
0
0
2
+ 5 other calls in file
three.Vector3 is the most popular function in three (22341 examples)