Skip to content

Commit de80b71

Browse files
committed
O 1 - 5
1 parent e458561 commit de80b71

4 files changed

Lines changed: 3 additions & 3 deletions

File tree

254 KB
Loading

web/assets/img/3D/moon_1024.jpg

233 KB
Loading

web/assets/img/3D/waternormals.jpg

243 KB
Loading

web/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ <h3 class="cin-heading-5 cin-text-center cin-mb-8" data-translate="استعد
107107
const moonLight = new THREE.PointLight(0xf0f0ff, 0.5, 300);
108108
scene.add(moonLight);
109109
const moonTextureLoader = new THREE.TextureLoader();
110-
const moonTexture = moonTextureLoader.load('https://www.realtimerendering.com/erich/udacity/exercises/textures/planets/earth_clouds_1024.png');
110+
const moonTexture = moonTextureLoader.load('./assets/img/3D/earth_clouds_1024.png');
111111
const moon = new THREE.Mesh(
112112
new THREE.SphereGeometry(10, 32, 32),
113113
new THREE.MeshStandardMaterial({
@@ -126,7 +126,7 @@ <h3 class="cin-heading-5 cin-text-center cin-mb-8" data-translate="استعد
126126
{
127127
textureWidth: 1024,
128128
textureHeight: 1024,
129-
waterNormals: new THREE.TextureLoader().load('https://threejs.org/examples/textures/waternormals.jpg', function(texture) {
129+
waterNormals: new THREE.TextureLoader().load('./assets/img/3D/waternormals.jpg', function(texture) {
130130
texture.wrapS = texture.wrapT = THREE.RepeatWrapping;
131131
texture.repeat.set(10, 10);
132132
}),
@@ -155,7 +155,7 @@ <h3 class="cin-heading-5 cin-text-center cin-mb-8" data-translate="استعد
155155
scene.add(oceanFloor);
156156

157157
// النجوم والغيوم
158-
const cloudTexture = new THREE.TextureLoader().load('https://threejs.org/examples/textures/sprites/cloud.png');
158+
const cloudTexture = new THREE.TextureLoader().load('./assets/img/3D/earth_clouds_1024.png');
159159
const cloudGeometry = new THREE.BufferGeometry();
160160
const cloudCount = 100;
161161
const cloudPositions = new Float32Array(cloudCount * 3);

0 commit comments

Comments
 (0)