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) {
4
25
2
+ 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,
0
0
2
three.Vector3 is the most popular function in three (22341 examples)