Minor fixes and refactors

This commit is contained in:
2026-09-24 20:25:29 +02:00
parent ea94b65f06
commit 1f357b4e87
5 changed files with 21 additions and 29 deletions

View File

@@ -86,9 +86,9 @@ pub fn init() !Game {
.mag_filter = .linear,
.min_filter = .linear,
.mipmap_mode = .linear,
.address_mode_u = .repeat,
.address_mode_v = .repeat,
.address_mode_w = .repeat,
.address_mode_u = .clamp_to_edge,
.address_mode_v = .clamp_to_edge,
.address_mode_w = .clamp_to_edge,
.mip_lod_bias = 0,
.anisotropy_enable = .false,
.max_anisotropy = 0,
@@ -909,11 +909,12 @@ fn render(self: *Game) !void {
const ambient_light = vm.Vector3.init(0.01, 0.01, 0.01);
self.global_uniforms_staging_ptr.* = .{
.matrixWStoVS_i = matrix_ws_to_vs.getIVersor().dropW(),
.matrixWStoVS_j = matrix_ws_to_vs.getJVersor().dropW(),
.matrixWStoVS_k = matrix_ws_to_vs.getKVersor().dropW(),
.matrixWStoVS_t = matrix_ws_to_vs.getTranslationVector().dropW(),
.matrixWStoVS = .{
matrix_ws_to_vs.getIVersor().dropW(),
matrix_ws_to_vs.getJVersor().dropW(),
matrix_ws_to_vs.getKVersor().dropW(),
matrix_ws_to_vs.getTranslationVector().dropW(),
},
.matrixVStoCS = matrix_vs_to_cs,
.matrixSSPXtoCS = matrix_sspx_to_cs,