adding surface extraction pass
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user