Add light support (WIP)

This commit is contained in:
Jérôme Leclercq
2022-02-02 12:55:39 +01:00
parent e6951d54a5
commit 8a3a8547dc
44 changed files with 1700 additions and 253 deletions

View File

@@ -72,7 +72,7 @@ struct Light
struct LightData
{
lights: array[Light, MaxLightCount],
lightCount: u32
lightCount: u32,
}
[layout(std140)]
@@ -250,7 +250,7 @@ fn main(input: VertToFrag) -> FragOut
else
{
let output: FragOut;
output.RenderTarget0 = diffuseColor.w;
output.RenderTarget0 = diffuseColor;
return output;
}
}