How to use the Lensflare function from three

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

129
130
131
132
133
134
135
136
137
138
//scene.add(helper);

// const textureFlare0 = textureLoader.load('/img/lensflare.png');
// const textureFlare3 = textureLoader.load('/img/lensflare3.png');

// const lensflare = new THREE.Lensflare();

// lensflare.addElement(new THREE.LensflareElement(textureFlare3, 10, 0.3));
// lensflare.addElement(new THREE.LensflareElement(textureFlare0, 30, 0.6));
// lensflare.addElement(new THREE.LensflareElement(textureFlare3, 50, 1));
fork icon0
star icon0
watch icon0

+ 2 other calls in file

4
5
6
7
8
9
10
11
12
13
14
15
16
17
const THREE = require('three');




THREE.Lensflare = function () {


	THREE.Mesh.call(this, THREE.Lensflare.Geometry, new THREE.MeshBasicMaterial({ opacity: 0, transparent: true }));


	this.type = 'Lensflare';
	this.frustumCulled = false;
	this.renderOrder = Infinity;
fork icon0
star icon0
watch icon0

+ 2 other calls in file

Other functions in three

Sorted by popularity

function icon

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