triangle... yes...

This commit is contained in:
abux 2026-07-10 21:32:59 +01:00
parent 676231e0d8
commit 6732f95f74
2 changed files with 16 additions and 1 deletions

View file

@ -13,5 +13,5 @@ fn vs_main(@builtin(vertex_index) in_vertex_index: u32) -> @builtin(position) ve
@fragment
fn fs_main() -> @location(0) vec4f {
return vec4f(0.0, 0.4, 1.0, 1.0);
return vec4f(0.0, 0.0, 0.0, 1.0);
}

View file

@ -167,6 +167,21 @@ pub fn draw(ctx: App.scheduler.Context) !void {
wgpu.wgpuRenderPassEncoderRelease(pass);
}
_ = camera_queue;
// TODO: Get pipeline from model instead
wgpu.wgpuRenderPassEncoderSetPipeline(
pass,
res.cache.pipelines.getPtr(.{ .shader = .pbr }).?.*,
);
// TODO: Yes
wgpu.wgpuRenderPassEncoderDraw(
pass,
3,
1,
0,
0,
);
}
}