How to use the HalfFloatType function from three

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

19
20
21
22
23
24
25
26
27
28
    wrapS: THREE.ClampToEdgeWrapping,
    wrapT: THREE.ClampToEdgeWrapping,
    format: THREE.RGBFormat,
    flipY: false
    // type: THREE.FloatType
    // type: THREE.HalfFloatType
  }
};

function RippleMap(params) {
fork icon4
star icon25
watch icon2

+ 3 other calls in file

23
24
25
26
27
28
29
30
31
32

// source from https://github.com/spite/codevember-2016
export  function createRenderTarget(renderer) {

    var type = THREE.FloatType;
    if( renderer.extensions.get( 'OES_texture_float_linear' ) === null ) type = THREE.HalfFloatType;

    var rt = new THREE.WebGLRenderTarget( 1, 1, {
        wrapS: THREE.ClampToEdgeWrapping,
        wrapT: THREE.ClampToEdgeWrapping,
fork icon0
star icon0
watch icon2

Other functions in three

Sorted by popularity

function icon

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