Fix DeferredShading demo

This commit is contained in:
Jérôme Leclercq
2021-10-20 23:50:39 +02:00
parent e84ec8e4ac
commit a18415216b
8 changed files with 85 additions and 62 deletions

View File

@@ -41,19 +41,14 @@ struct ViewerData
[set(0)]
external
{
[binding(0)] viewerData: uniform<ViewerData>
[binding(0)] viewerData: uniform<ViewerData>,
[binding(1)] colorTexture: sampler2D<f32>,
[binding(2)] normalTexture: sampler2D<f32>,
[binding(3)] positionTexture: sampler2D<f32>,
}
[set(1)]
external
{
[binding(0)] colorTexture: sampler2D<f32>,
[binding(1)] normalTexture: sampler2D<f32>,
[binding(2)] positionTexture: sampler2D<f32>,
}
[set(2)]
external
{
[binding(0)] lightParameters: uniform<SpotLight>,
}