Skip to content

Commit

Permalink
Examples: Clean up AVIF demo. (#25712)
Browse files Browse the repository at this point in the history
* Examples: Clean up AVIF demo.

* Examples: Update screenshot.

* Examples: More clean up.
  • Loading branch information
Mugen87 committed Mar 25, 2023
1 parent c8549a5 commit 5a06391
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
Binary file modified examples/models/gltf/AVIFTest/forest_house.glb
Binary file not shown.
Binary file modified examples/screenshots/webgl_loader_gltf_avif.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 1 addition & 4 deletions examples/webgl_loader_gltf_avif.html
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
function init() {

camera = new THREE.PerspectiveCamera( 45, window.innerWidth / window.innerHeight, 0.1, 100 );
camera.position.set( 0, 8, 12 );
camera.position.set( 1.5, 4, 9 );

scene = new THREE.Scene();
scene.background = new THREE.Color( 0xf6eedc );
Expand All @@ -67,9 +67,6 @@
loader.setPath( 'models/gltf/AVIFTest/' );
loader.load( 'forest_house.glb', function ( gltf ) {

gltf.scene.scale.multiplyScalar( 40 );
gltf.scene.rotation.y = Math.PI * 0.5;

scene.add( gltf.scene );

render();
Expand Down

0 comments on commit 5a06391

Please sign in to comment.