Trying to add water
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
struct WaterPayload
|
||||
{
|
||||
float2 offset;
|
||||
float extent;
|
||||
float height;
|
||||
};
|
||||
|
||||
struct WaterVertex
|
||||
{
|
||||
float4 position_CS : SV_Position;
|
||||
float3 position_WS : POSITION0;
|
||||
float2 texCoord : TEXCOORD0;
|
||||
float depth : DEPTH;
|
||||
};
|
||||
|
||||
struct MaterialParams
|
||||
{
|
||||
float3 sunDirection;
|
||||
float displacementDepthAttenuation;
|
||||
|
||||
float foamSubtract0;
|
||||
float foamSubtract1;
|
||||
float foamSubtract2;
|
||||
float foamSubtract3;
|
||||
|
||||
float normalStrength;
|
||||
float foamDepthAttenuation;
|
||||
float normalDepthAttenuation;
|
||||
float roughness;
|
||||
|
||||
float3 sunIrradiance;
|
||||
float foamRoughnessModifier;
|
||||
|
||||
float3 scatterColor;
|
||||
float environmentLightStrength;
|
||||
|
||||
float3 bubbleColor;
|
||||
float heightModifier;
|
||||
|
||||
float bubbleDensity;
|
||||
float wavePeakScatterStrength;
|
||||
float scatterStrength;
|
||||
float scatterShadowStrength;
|
||||
|
||||
float3 foamColor;
|
||||
Texture2DArray displacementTextures;
|
||||
Texture2DArray<float2> slopeTextures;
|
||||
TextureCube environmentMap;
|
||||
SamplerState sampler;
|
||||
StructuredBuffer<WaterPayload> tiles;
|
||||
};
|
||||
layout(set = 1)
|
||||
ParameterBlock<MaterialParams> pWaterMaterial;
|
||||
Reference in New Issue
Block a user