Adding basic depth prepass
This commit is contained in:
1 parent
4a078bd24c
commit
0cf13bcff5
52 files changed
+880
-155
No files matched your search
@@ -8,7 +8,7 @@ struct ViewParameter
|
||||
float4x4 projectionMatrix;
|
||||
float4 cameraPos_WS;
|
||||
}
|
||||
layout(set = 1, binding = 0, std430)
|
||||
layout(set = INDEX_VIEW_PARAMS, binding = 0, std430)
|
||||
ConstantBuffer<ViewParameter> gViewParams;
|
||||
|
||||
struct ScreenToViewParams
|
||||
@@ -16,7 +16,7 @@ struct ScreenToViewParams
|
||||
float4x4 inverseProjection;
|
||||
float2 screenDimensions;
|
||||
}
|
||||
layout(set = 1, binding = 1, std430)
|
||||
layout(set = INDEX_VIEW_PARAMS, binding = 1, std430)
|
||||
ConstantBuffer<ScreenToViewParams> gScreenToViewParams;
|
||||
|
||||
// Convert clip space coordinates to view space
|
||||
|
||||
Reference in new issue
Block a user