Lights
Lighting is essential for enhancing the visual quality of your scenes. Foxel supports three types of lights: Point Light, Directional Light, and Spot Light. Each type has unique properties that enable versatile lighting setups.
Point Light
The Point Light emits light in all directions from a single point, simulating the effect of a light bulb. It is ideal for creating localized lighting effects within a scene.
Properties
- Color: Defines the color of the light emitted by the Point Light.
- Intensity: Controls the brightness of the light, affecting the level of illumination.
- Range: Specifies the distance over which the light is effective.
- Cast Shadows: Enables or disables shadow casting from the light source.
- Shadow Bias: Adjusts the offset for shadow calculations to reduce shadow artifacts.
Spot Light
The Spot Light provides a focused beam of light, making it ideal for highlighting specific areas or objects within a scene. It is commonly used for effects like stage lighting or to draw attention to particular features.
Properties
- Color: Defines the color of the light emitted by the Spot Light.
- Intensity: Controls the brightness of the light.
- Range: Specifies the distance over which the light is effective.
- Spot Angle: Determines the angle of the cone of light emitted by the Spot Light.
- Spot Blend: Controls the smoothness of the transition between lit and unlit areas.
- Cast Shadows: Enables or disables shadow casting from the light source.
- Shadow Bias: Adjusts the offset for shadow calculations to minimize shadow artifacts.
Directional Light
The Directional Light simulates sunlight by casting parallel rays of light across the scene. It provides consistent illumination and shadows, making it perfect for outdoor environments.
Properties
- Color: Specifies the color of the light emitted by the Directional Light.
- Intensity: Adjusts the brightness of the light source.
Note
The only directional light source that can cast shadows in Foxel is the sun. Additional Directional Lights cannot cast shadows.