Hello, I am trying to place the camera inside a model with texture. Is there any way to add ambient light within the mesh sk that I can see the model from inside ?
THREE.AmbientLightglobally illuminates all objects equally, so it’s position does not matter
- Other lights, which aren’t global, for example
THREE.PointLight, can have their positions set with:
light.position.set( x , y , z );
- The “insides” of a model, are probably backfaces. In
Three.jsall objects (or rather their materials) have backface culling enabled by default, for performance purposes.
If you can’t see the inside of your model, then you should try:
model.material.side = THREE.DoubleSide;
With that, both sides of your mesh will be visible. If you don’t need frontfaces, then you could also try:
model.material.side = THREE.BackSide;
That will make WebGLRenderer render backfaces (or “insides”) of your model only.