This commit is contained in:
Flatlogic Bot 2025-11-04 18:22:09 +00:00
parent bb91ec1151
commit 77a4bd01b5

View File

@ -29,19 +29,25 @@ function init3DLogo() {
// Texture
const textureLoader = new THREE.TextureLoader();
textureLoader.load('assets/pasted-20251022-215019-f7191fbf.png', function(texture) {
textureLoader.load('assets/pasted-20251022-215019-f7191fbf.png',
function(texture) {
// Plane
const geometry = new THREE.PlaneGeometry(5, 1.5);
const material = new THREE.MeshStandardMaterial({ map: texture, transparent: true, roughness: 0.4, metalness: 0.2 });
plane = new THREE.Mesh(geometry, material);
scene.add(plane);
});
},
undefined, // onProgress callback not needed
function(err) {
console.error('An error happened while loading the texture.', err);
}
);
// Lights
const ambientLight = new THREE.AmbientLight(0xffffff, 0.7);
scene.add(ambientLight);
const pointLight = new THREE.PointLight(0xffffff, 0.8);
const pointLight = new THREE.PointLight(0xDB7093, 1.2); // Purple-red light
pointLight.position.set(0, 0, 5);
scene.add(pointLight);