Sketchy skybox
This commit is contained in:
@@ -618,7 +618,7 @@ pub fn init(allocator: std.mem.Allocator, engine: *Engine, swapchain: *Swapchain
|
||||
.elements = directional_lights_data,
|
||||
});
|
||||
|
||||
var skybox = try Skybox.load("skybox.hdr", engine, 512, allocator);
|
||||
var skybox = try Skybox.load("skybox.hdr", engine, 512, global_uniforms.buffer, swapchain.render_pass, allocator);
|
||||
errdefer skybox.deinit(engine);
|
||||
|
||||
return .{
|
||||
@@ -849,6 +849,9 @@ fn render(self: *Game) !void {
|
||||
while (it.next()) |chunk| {
|
||||
chunk.draw(self.pipeline_layout, command_buffer);
|
||||
}
|
||||
|
||||
try self.skybox.bind(command_buffer, extent);
|
||||
self.skybox.draw(command_buffer);
|
||||
}
|
||||
try command_buffer.endCommandBuffer();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user