Skip to content

Commit 8d48322

Browse files
committed
staticClouds
1 parent d35b031 commit 8d48322

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

clouds.blend

846 KB
Binary file not shown.

clouds.blend1

863 KB
Binary file not shown.

clouds.fbx

60.7 KB
Binary file not shown.

index.html

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h3>Gra zatrzymana</h3>
110110
import Stats from 'https://threejsfundamentals.org/threejs/resources/threejs/r115/examples/jsm/libs/stats.module.js';
111111

112112
import {FirstPersonControls} from './js/fpc.module.js?123';
113-
113+
import { FBXLoader } from 'https://threejsfundamentals.org/threejs/resources/threejs/r115/examples/jsm/loaders/FBXLoader.js';
114114

115115
//Renderer
116116
var canvas = document.querySelector('#c');
@@ -124,6 +124,17 @@ <h3>Gra zatrzymana</h3>
124124
// scene.fog= new THREE.Fog(new THREE.Color('lightblue'),50, 64)
125125
scene.fog = new THREE.FogExp2(0xffffff, 0.00015);
126126

127+
//clouds
128+
var loader = new FBXLoader();
129+
loader.load( 'clouds.fbx', function ( object ) {
130+
object.scale.x=0.1
131+
object.scale.y=0.1
132+
object.scale.z=0.1
133+
object.position.y=100
134+
scene.add( object );
135+
136+
} );
137+
127138

128139
//Camera
129140
var camera = new THREE.PerspectiveCamera(75, 2, 0.1, 1000);

0 commit comments

Comments
 (0)