Smaller matrices in uniforms, texcoord transform to rotate voxel faces
This commit is contained in:
@@ -909,7 +909,11 @@ fn render(self: *Game) !void {
|
||||
const ambient_light = vm.Vector3.init(0.01, 0.01, 0.01);
|
||||
|
||||
self.global_uniforms_staging_ptr.* = .{
|
||||
.matrixWStoVS = matrix_ws_to_vs,
|
||||
.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(),
|
||||
|
||||
.matrixVStoCS = matrix_vs_to_cs,
|
||||
.matrixSSPXtoCS = matrix_sspx_to_cs,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user