sideros/src/rendering/lights.zig
Lorenzo Torres 503ed33aec Fully implemented lighting
Two types of light sources are currently supported: directional lights
and point lights. A scene can have only one directional light and up to
1024 point lights.
2025-08-08 03:18:08 +02:00

14 lines
372 B
Zig

pub const DirectionalLight = extern struct {
direction: [3]f32 align(16),
ambient: [3]f32 align(16),
diffuse: [3]f32 align(16),
specular: [3]f32 align(16),
};
pub const PointLight = extern struct {
position: [3]f32 align(16),
ambient: [3]f32 align(16),
diffuse: [3]f32 align(16),
specular: [3]f32 align(16),
data: [3]f32 align(16),
};