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.
14 lines
372 B
Zig
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),
|
|
};
|