Based on the information found in the Needle Engine documentation and types, regarding your requirement to light plane meshes such as floors or tables with point lights in real-time mode, you should consider using the Light component. Here's a summary of how the Light component works, which supports different types of lights including point lights.
export declare class Light extends Behaviour {
private type;
range: number;
color: Color;
intensity: number;
...
createLight(): void;
...
}
A few tips for using point lights to illuminate your meshes in real-time:
- Ensure the
type of the Light is set to LightType.Point to create a point light.
- Adjust the
range to control how far the light reaches.
- Set the
color and intensity to get the desired lighting effect.
- Properly position your light in the scene so it illuminates your target meshes effectively.
Remember, lighting effectiveness in real-time also depends on other factors such as the material properties of the meshes. Make sure they are set to interact appropriately with the lighting in your scene.
1 messages left
thread_LWZVp0qAQj5hBUoq5PQO5lDH