adding surface extraction pass

This commit is contained in:
2026-04-07 22:25:23 +02:00
parent 0996bb3688
commit a8bcaeee23
10 changed files with 471 additions and 123 deletions
+1 -1
View File
@@ -27,6 +27,6 @@ float4 fragmentMain(VertexOut input) : SV_Target
FluidGridData<float> density = params.density;
int x = int(input.uv.x * (gridSize.x - 2) + 1);
int y = int(input.uv.y * (gridSize.y - 2) + 1);
float d = density[x, y, 0];
float d = density[x, y, 1];
return float4(d, d, d, 1);
}