Fixed water rendering somewhat

This commit is contained in:
Dynamitos
2024-08-21 10:24:37 +02:00
parent 81090d78f0
commit fcdb132d49
8 changed files with 62 additions and 54 deletions
+9 -3
View File
@@ -1,9 +1,15 @@
struct WaterPayload
{
float2 offset;
float3 offset;
float extent;
};
struct WaterTile
{
int2 location;
float extent;
float height;
};
}
struct WaterVertex
{
@@ -58,7 +64,7 @@ struct MaterialParams
Texture2DArray<float2> slopeTextures;
TextureCube environmentMap;
SamplerState sampler;
StructuredBuffer<WaterPayload> tiles;
StructuredBuffer<WaterTile> tiles;
};
layout(set = 1)
ParameterBlock<MaterialParams> pWaterMaterial;