Hi,
I have the below material:
const land = new THREE.MeshBasicMaterial({ color: 0xfcc61a });
The above code only adds background color which is not my goal. I want to add outline/border around the material. I tried below codes but did not work:
>> const land = new THREE.MeshBasicMaterial( { color: 0xfcc61a , wireframe: true, wireframeLinewidth: 4 } );
>> const land = new THREE.MeshBasicMaterial( { color: 0xfcc61a , side: THREE.BackSide } );
I want add an outline if material name matched. For example
if (data.value.material_name== “Land”) {
obj.material = land;
} else {
different outline should be applied
}
Btw, I tried v3d.apps[0].postprocessing.outlinePass.visibleEdgeColor = new v3d.Vector4(0,0,1,1) as well but it is not working outside PL.init function.
Please take a look to the attached image for more illustrations.
Anyone can help on this?
Thank you
Attachments:
You must be
logged in to view attached files.