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.
This commit is contained in:
parent
214317e0bf
commit
503ed33aec
7 changed files with 181 additions and 48 deletions
|
|
@ -48,7 +48,7 @@ fn init_mods() void {
|
|||
export fn sideros_init(init: api.GameInit) callconv(.c) void {
|
||||
resources = .{
|
||||
.camera = .{
|
||||
.position = .{ -5.0, 5.0, -5.0 },
|
||||
.position = .{ 0.0, 5.0, -5.0 },
|
||||
.target = .{ 0.0, 0.0, 0.0 },
|
||||
},
|
||||
.renderer = undefined,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue