Light sources are divided into natural and artificial light sources. Human beings can see all things in nature, mainly because of the role of light, the generation of light requires a light source. In natural and man-made light sources, light sources are divided into three types: Point Light Source, cone light source and line light source.
The simulation of X3D light source in the real world is essentially a computing of light and shade. In the real world, light sources refer to various luminous objects. However, in the X3D world, you cannot see such light sources. X3D compares the brightness and shade of an object in the same environment by calculating the brightness and shade of the object surface. This way, the object looks like it is shining.
Another difference between X3D and the real world in light source is shadow. In the X3D light source system, no shadows are automatically generated. To perform shadow rendering on static objects, you must manually calculate the shadow range before simulating the shadow.
The light source consists of different colors. The color of the light source is controlled by an RGB color, which is similar to the color of the set material. The color of the light source is the same as that of the light source. In the real world, when a white light source shines on a colored object surface, two phenomena will occur. What we can see is only reflection, the other phenomenon is absorption of light, which leads to weak light intensity. The reflected light is red, but the white light is composed of multiple colors, the object absorbs all the light except the red light, and the red light is reflected. However, if the surface of an object is black, it does not reflect any light.