DirectionalLight target and extruding RingGeometry

Hello,
I have another questions about my studies project, so I wanted to target DirectionalLight at (15,0,15), but it always points at 0,0,0.

image

And the secound question is, how to extrude RingGeometry, this is that yellow ring

var geometry10 = new THREE.RingGeometry( 30, 30.5, 4 );
var material6 = new THREE.MeshBasicMaterial( { color: 0xffff00, side: THREE.DoubleSide } );

var mesh19 = new THREE.Mesh( geometry10, material6 );
mesh19.position.set (14 , -0.001 , 14);
mesh19.rotation.x = Math.PI / 2;
mesh19.rotation.z = Math.PI / 4;

 scene.add( mesh19 );

Thank You very much!!!

  1. Have you tried to use .target property of THREE.DirectionalLight()? Any code example of what you try?

  2. I’d extrude a shape of circle with a circle hole. For reference: https://threejs.org/examples/?q=shapes#webgl_geometry_shapes

dirLight.target.position.set( 2 , 0 , 25 );

I got this line and it makes absolutely nothing

dirLight = new THREE.DirectionalLight( 0xffffff, 2 );
	dirLight.color.setHSL( 0.1, 1, 0.95 );
	dirLight.position.set( 2, 2, 2 );
	dirLight.position.multiplyScalar( 10 );
	//dirLight.shadow.mapSize.width = 2048;
	//dirLight.shadow.mapSize.height = 2048;
	
			
		dirLight.castShadow = true;
		dirLight.shadow.camera.left = - d;
		dirLight.shadow.camera.right = d;
		dirLight.shadow.camera.top = d;
		dirLight.shadow.camera.bottom = - d;

		dirLight.shadow.camera.near = 1;
		dirLight.shadow.camera.far = 2000;

		dirLight.shadow.mapSize.x = 2048;
		dirLight.shadow.mapSize.y = 2048;
	
	
	dirLight.target.position.set( 2 , 0 , 25 );
	
	scene.add( dirLight );

It’s my full DirectionalLight code

According to the documetation, .target is THREE.Object3D(), not just THREE.Vector3().

So what should I do to set it to (15,0,15), I am very beginner so I’m learning much things

awwww it worked with this :smiley:

dirLight.target.position.set( 15 , 0 , 15 );
dirLight.target.updateMatrixWorld();

I got one more question, is there any way to add shininess to gltf model for example for Material.002 (when I open .gltf file with notepad), I want to make windows at my project shiny