How to use the CullFaceBack function from three

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

39
40
41
42
43
44
45
46
47
48
if (config.shadow) {
  renderer.shadowMap.enabled = true;
  renderer.shadowMap.type = THREE.PCFSoftShadowMap;
  renderer.shadowMap.renderReverseSided = false;
}
// renderer.shadowMap.cullFace = THREE.CullFaceBack;
renderer.setSize(window.innerWidth, window.innerHeight);
document.getElementById('pt').appendChild(renderer.domElement);

// var parameters = {
fork icon2
star icon28
watch icon3

+ 9 other calls in file

34
35
36
37
38
39
40
41
42
43

renderer.gammaInput = true;
renderer.gammaOutput = true;

renderer.shadowMap.enabled = true;
renderer.shadowMap.cullFace = THREE.CullFaceBack;

container.appendChild( renderer.domElement );

window.addEventListener( 'resize', onWindowResize, false );
fork icon2
star icon13
watch icon1

28
29
30
31
32
33
34
35
36
37
  $('#splash-please-use-chrome').show();
}

if (this.renderer) {
  this.renderer.shadowMapEnabled = true;
  this.renderer.shadowMapCullFace = THREE.CullFaceBack;
  this.renderer.shadowMapType = THREE.PCFSoftShadowMap;

  this.renderer.gammaInput = true;
      this.renderer.gammaOutput = true;
fork icon2
star icon1
watch icon4

21
22
23
24
25
26
27
28
29
  antialias: true
});
renderer.setSize(window.innerWidth, window.innerHeight);
renderer.setClearColor(0xf6f6f6);
renderer.shadowMapEnabled = true;
renderer.shadowMapCullFace = THREE.CullFaceBack;

renderer.shadowMapType = THREE.PCFShadowMap;
document.body.appendChild(renderer.domElement);
fork icon0
star icon1
watch icon2

+ 3 other calls in file

88
89
90
91
92
93
94
95
96
camera.updateProjectionMatrix();

var renderer = new THREE.WebGLRenderer({ antialiasing: true });
renderer.shadowMapEnabled = true;
renderer.shadowMapSoft = true;
//renderer.shadowMapCullFace = THREE.CullFaceBack;
renderer.setClearColor( 0xffffff );
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
fork icon0
star icon1
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)