Skip to content

Commit

Permalink
Examples: Fix webgl_lights_rectarealight.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mugen87 committed Jun 11, 2020
1 parent 795130a commit 3661601
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions examples/webgl_lights_rectarealight.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,23 +45,6 @@
renderer.outputEncoding = THREE.sRGBEncoding;
document.body.appendChild( renderer.domElement );

// Check for float-RT support
// TODO (abelnation): figure out fall-back for float textures

if ( ! renderer.extensions.get( 'OES_texture_float' ) ) {

alert( 'OES_texture_float not supported' );
throw 'missing webgl extension';

}

if ( ! renderer.extensions.get( 'OES_texture_float_linear' ) ) {

alert( 'OES_texture_float_linear not supported' );
throw 'missing webgl extension';

}

camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 1, 1000 );
camera.position.set( 0, 20, 35 );

Expand Down

0 comments on commit 3661601

Please sign in to comment.