Minor fixes

This commit is contained in:
Jérôme Leclercq
2021-12-23 17:39:37 +01:00
parent b53d2a0560
commit d4dfe97006
5 changed files with 12 additions and 8 deletions

View File

@@ -19,7 +19,7 @@ struct Settings
decay: f32,
density: f32,
weight: f32,
lightPosition: vec2<f32>, //< Switch to world position
lightPosition: vec2<f32>, //< TODO: Switch to world position
}
const SampleCount: i32 = 200;

View File

@@ -51,10 +51,7 @@ fn main(input: VertIn) -> VertOut
{
// Set translation part to zero
let rotationMat = viewerData.viewMatrix;
// rotationMat[3].xyz = vec3<f32>(0.0, 0.0, 0.0); // Requires SPIRV generator to handle swizzle for store expressions
rotationMat[3][0] = 0.0;
rotationMat[3][1] = 0.0;
rotationMat[3][2] = 0.0;
rotationMat[3].xyz = vec3<f32>(0.0, 0.0, 0.0);
let output: VertOut;
output.position = viewerData.projectionMatrix * rotationMat * vec4<f32>(input.position, 1.0);