I have a scene that contains Solar System planets. What I want is to put a PointLight inside of the Sun so that the light passes through the model, but the model itself has to be fully opaque. As I understand I need to change “transparent” property to true on the material, but I’m not sure how to access it when importing the model.
loader.load(
planets.paths[i],
function (gltf) {
var object = gltf.scene;
var scale: number = planets.scales[i];
object.scale.set( scale, scale, scale );
var coordinates = planets.coordinates;
object.translateX(coordinates[i][0]);
object.translateY(coordinates[i][1]);
object.translateZ(coordinates[i][2]);
scene.add( object );
}
);