Skip to content

Commit

Permalink
Examples: Improved webgl_loader_texture_hdrjpg.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Nov 30, 2023
1 parent bd8aba3 commit 9bcf8ab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Binary file modified examples/screenshots/webgl_loader_texture_hdrjpg.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 4 additions & 6 deletions examples/webgl_loader_texture_hdrjpg.html
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
const params = {
envMap: 'HDR JPG',
roughness: 0.0,
metalness: 0.0,
metalness: 1.0,
exposure: 1.0,
debug: false
};
Expand All @@ -85,19 +85,17 @@
container = document.createElement( 'div' );
document.body.appendChild( container );

camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 1000 );
camera.position.set( 0, 0, 120 );
camera = new THREE.PerspectiveCamera( 50, window.innerWidth / window.innerHeight, 1, 500 );
camera.position.set( 0, 0, - 120 );

scene = new THREE.Scene();
scene.background = new THREE.Color( 0x000000 );

renderer = new THREE.WebGLRenderer();
renderer.toneMapping = THREE.ACESFilmicToneMapping;

//

let geometry = new THREE.TorusKnotGeometry( 18, 8, 150, 20 );
// let geometry = new THREE.SphereGeometry( 26, 64, 32 );
let geometry = new THREE.TorusKnotGeometry( 18, 8, 200, 40, 1, 3 );
let material = new THREE.MeshStandardMaterial( {
color: 0xffffff,
metalness: params.metalness,
Expand Down

0 comments on commit 9bcf8ab

Please sign in to comment.