From 79c852cd5adcdd0079103bfcc6605ffe1aee25d1 Mon Sep 17 00:00:00 2001
From: SinanPercen <101935658+SinanPercen@users.noreply.github.com>
Date: Mon, 9 Dec 2024 14:26:04 +0100
Subject: [PATCH] remove cube and add light

---
 public/index.html | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/public/index.html b/public/index.html
index c3759eb..bd42620 100644
--- a/public/index.html
+++ b/public/index.html
@@ -4,7 +4,7 @@
   <meta charset="UTF-8">
   <meta name="viewport"
         content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
-  <title>Cube Demo</title>
+  <title>  Demo</title>
 
   <!-- three.js -->
   <script src="https://unpkg.com/three@0.126.0/build/three.js"></script>
@@ -34,9 +34,17 @@ const materials = [
 ];
 
 // Create the cube and add it to the demo scene.
+/**
+ 
 const cube = new THREE.Mesh(new THREE.BoxBufferGeometry(0.5, 0.5, 0.5), materials);
 cube.position.set(0, 0, -1);
 scene.add(cube);
+* */
+
+
+const directionalLight = new THREE.DirectionalLight(0xffffff, 0.3);
+directionalLight.position.set(10, 15, 10);
+scene.add(directionalLight);
 
 // Set up the WebGLRenderer, which handles rendering to the session's base layer.
 const renderer = new THREE.WebGLRenderer({
-- 
GitLab