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,
})
fork icon3
star icon3
watch icon23

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);
fork icon1
star icon3
watch icon0

+ 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() {
fork icon0
star icon0
watch icon2

+ 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,
fork icon0
star icon0
watch icon2

+ 5 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)