How to use the FBOUtils function from three

Find comprehensive JavaScript three.FBOUtils code examples handpicked from public code repositorys.

125
126
127
128
129
130
131
132
133
  },
  vertexShader: glslify('../shaders/smoke/simulation.vert'),
  fragmentShader: glslify('../shaders/smoke/position.frag'),
});

this.positionsFBO = new THREE.FBOUtils(width, renderer, this.positionShader);
this.positionsFBO.renderToTexture(this.rtTexturePos, this.rtTexturePos2);
this.positionsFBO.in = this.rtTexturePos;
this.positionsFBO.out = this.rtTexturePos2;
fork icon2
star icon0
watch icon1

144
145
146
147
148
149
150
151
152
this.positionsFBO = new THREE.FBOUtils(width, renderer, this.positionShader);
this.positionsFBO.renderToTexture(this.rtTexturePos, this.rtTexturePos2);
this.positionsFBO.in = this.rtTexturePos;
this.positionsFBO.out = this.rtTexturePos2;

this.velocityFBO = new THREE.FBOUtils(width, renderer, this.velocityShader);
this.velocityFBO.renderToTexture(this.rtTextureVel, this.rtTextureVel2);
this.velocityFBO.in = this.rtTextureVel;
this.velocityFBO.out = this.rtTextureVel2;
fork icon0
star icon4
watch icon0

+ 3 other calls in file

131
132
133
134
135
136
137
138
139
        wind: { type: "f", value: wind}
    },
    vertexShader: simulationVertexShader,
    fragmentShader:  simulationFragmentShader
});
var fboParticlesArray = new THREE.FBOUtils( fboWidth, renderer, simulationShader);
fboParticlesArray.renderToTexture(rtTexturePos, rtTexturePos2);
fboParticlesArray.in = rtTexturePos;
fboParticlesArray.out = rtTexturePos2;
fork icon0
star icon0
watch icon2

+ 3 other calls in file

49
50
51
52
53
54
55
56
57
58
  alert( 'OES_texture_float is not :(' );

}

// Start Creation of DataTexture
// Could it be simplified with THREE.FBOUtils.createTextureFromData(textureWidth, textureWidth, data); ?

data = new Float32Array( width * height * 3 );

var textGeo = new THREE.TextGeometry( TEXT, {
fork icon0
star icon0
watch icon2

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

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