Alpha discard, adjust lights for no reason
This commit is contained in:
24
src/Game.zig
24
src/Game.zig
@@ -602,24 +602,24 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
|
||||
|
||||
const point_lights_data: []const PointLight = &.{
|
||||
.{
|
||||
.positionWS = .{ 0, 0, 1 },
|
||||
.color = .{ 10, 10, 10 },
|
||||
.positionWS = .{ 0, 0, 0.5 },
|
||||
.color = .{ 1, 1, 1 },
|
||||
},
|
||||
.{
|
||||
.positionWS = .{ -7, 7, 1 },
|
||||
.color = .{ 5, 0, 0 },
|
||||
.positionWS = .{ -5, 5, 0.5 },
|
||||
.color = .{ 1, 0, 0 },
|
||||
},
|
||||
.{
|
||||
.positionWS = .{ 7, 7, 1 },
|
||||
.color = .{ 0, 0, 5 },
|
||||
.positionWS = .{ 5, 5, 0.5 },
|
||||
.color = .{ 0, 0, 1 },
|
||||
},
|
||||
.{
|
||||
.positionWS = .{ -7, -7, 1 },
|
||||
.color = .{ 0, 5, 0 },
|
||||
.positionWS = .{ -5, -5, 0.5 },
|
||||
.color = .{ 0, 1, 0 },
|
||||
},
|
||||
.{
|
||||
.positionWS = .{ 7, -7, 1 },
|
||||
.color = .{ 5, 5, 0 },
|
||||
.positionWS = .{ 5, -5, 0.5 },
|
||||
.color = .{ 1, 1, 0 },
|
||||
},
|
||||
};
|
||||
try point_lights.write(engine, .{
|
||||
@@ -630,7 +630,7 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
|
||||
const directional_lights_data: []const DirectionalLight = &.{
|
||||
.{
|
||||
.directionWS = .{ 0, 0, -1 },
|
||||
.color = .{ 0.2, 0.2, 0.2 },
|
||||
.color = .{ 0.3, 0.3, 0.3 },
|
||||
},
|
||||
};
|
||||
try directional_lights.write(engine, .{
|
||||
@@ -756,7 +756,7 @@ pub fn update(self: *Game, dt: f32) void {
|
||||
);
|
||||
// zig fmt: on
|
||||
|
||||
const ambient_light = Vector3.init(0.1, 0.1, 0.1);
|
||||
const ambient_light = Vector3.init(0.2, 0.2, 0.2);
|
||||
|
||||
const global_uniforms_data: GlobalUniforms = .{
|
||||
.matrixWStoVS = matrix_ws_to_vs.asArray(),
|
||||
|
||||
Reference in New Issue
Block a user