Light
In 3D scenes, lighting and shadows are essential for creating atmosphere, enhancing spatial depth, and achieving visual realism.
iCraft provides three core lighting components: Directional Light, Point Light, and Spot Light. By arranging lights properly, you can bring depth, realism, and visual focus to your scene.

Directional Light
A Directional Light simulates a very distant large light source (such as the sun). The light rays it emits are parallel and do not attenuate with distance.
It is primarily used to provide global illumination and scene-wide shadows.
Special Parameters
Basic Parameters
Position Defines the spatial position of the directional light in the 3D scene coordinate system (X/Y/Z). The position can be adjusted freely within the canvas space.
Rotation Determines the direction of the light rays, which controls the direction and length of shadows.
Default value: (0°, 0°, 0°)
Adjustable range:
-360° to 360°(supports continuous rotation beyond 360°)

Light Parameters
Color Select the main color of the light using the color picker. Default color:
#ffd17cIntensity Controls the brightness of the light.
Default value: 1
Adjustable range:
0 – 10

Shadow Parameters
Cast Shadow Toggle that determines whether objects cast shadows onto surfaces. Enabling this option makes lighting effects more realistic. Default: Disabled
Resolution Determines the quality level of the shadow map.
Default: Medium
Options: High / Ultra
Range Defines the area used for shadow calculations.
Default value: 40
Adjustable range:
1 – 200

Point Light
A Point Light emits light equally in all directions from a single point, similar to a light bulb or candle. It produces a strong sense of spatial position, and the light naturally attenuates with distance.
Special Parameters
Basic Parameters
Position Defines the spatial position of the point light in the 3D scene coordinate system (X/Y/Z). The position can be adjusted freely within the canvas space.
Rotation Determines the direction of the light rays, which controls the direction and length of shadows.
Default value: (0°, 0°, 0°)
Adjustable range:
-360° to 360°(supports continuous rotation beyond 360°)

Style Parameters
Color Select the main color of the light using the color picker. Default color:
#ffd17cIntensity Controls the brightness of the light source. Higher values produce brighter light.
Default value: 5
Adjustable range:
0 – 10Distance Defines the maximum effective illumination distance. Larger values increase the area covered by the light.
Default value: 0.1
Adjustable range:
0.1 – 100Attenuation Controls how quickly the light fades with distance. Higher values make distant areas darker.
Default value: 2
Adjustable range:
0 – 5

Shadow Parameters
Cast Shadow Toggle that determines whether objects cast shadows.
Default: Disabled
Resolution Determines the quality level of the shadow map.
Default: Medium
Options: High / Ultra

Spot Light
A Spot Light emits a cone-shaped beam from a point in a specific direction, similar to a flashlight or stage spotlight. It is ideal for highlighting specific objects or creating strong light–shadow contrast in a scene.
Special Parameters
Basic Parameters
Position Defines the spatial position of the spot light in the 3D scene coordinate system (X/Y/Z). The position can be adjusted freely within the canvas space.
Rotation Determines the direction of the light rays, which controls the direction and length of shadows.
Default value: (0°, 0°, 0°)
Adjustable range:
-360° to 360°(supports continuous rotation beyond 360°)

Style Parameters
Color Select the main color of the light using the color picker. Default color:
#ffd17cIntensity Controls the brightness of the light source. Higher values produce brighter light.
Default value: 3
Adjustable range:
0 – 10Distance Defines the maximum effective illumination distance. Larger values increase the lighting coverage. Default value: 0.1
Adjustable range:
0.1 – 100Angle Controls how concentrated the light beam is. Smaller angles produce a more focused beam.
Default value: 30°
Adjustable range:
0° – 90°Penumbra Controls the softness of the spotlight’s edge. Higher values produce softer edges.
Default value: 0.2
Adjustable range:
0 – 1Attenuation Controls how quickly the light fades with distance. Higher values make distant areas darker.
Default value: 2
Adjustable range:
0 – 5

Shadow Parameters
Cast Shadow Toggle that determines whether objects cast shadows.
Default: Disabled
Resolution Determines the quality level of the shadow map.
Default: Medium
Options: High / Ultra

Last updated