mirror of
https://github.com/slendidev/lunar.git
synced 2026-03-16 21:56:50 +02:00
Enable culling while rendering wayland windows
I don't even know why I disabled culling even lmao Signed-off-by: Slendi <slendi@socopon.com>
This commit is contained in:
@@ -1092,7 +1092,7 @@ auto Application::run() -> void
|
||||
wayland_draw_extent.height) };
|
||||
if (draw_width > 0.0f && draw_height > 0.0f) {
|
||||
gl.set_transform(smath::Mat4::identity());
|
||||
gl.set_culling(false);
|
||||
gl.set_culling(true);
|
||||
gl.use_pipeline(m_renderer->wayland_pipeline());
|
||||
for (auto *surface : m_wayland->surfaces()) {
|
||||
auto buffer { surface->current_buffer() };
|
||||
|
||||
@@ -84,6 +84,9 @@ struct VulkanRenderer {
|
||||
auto draw_sphere(smath::Vec3 center, float radius, int rings = 16,
|
||||
int segments = 32, std::optional<smath::Vec4> sphere_color = {})
|
||||
-> void;
|
||||
auto draw_texture_cyl(AllocatedImage const *texture,
|
||||
smath::Vec3 sphere_center, PolarCoordinate coord, float rad,
|
||||
float scale, bool y_flip) -> void;
|
||||
auto end() -> void;
|
||||
auto flush() -> void;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user