Shader: Fix validation and cast from u32 to i32

This commit is contained in:
Lynix
2022-04-02 21:20:01 +02:00
parent 5cd9f6fdcd
commit 83de0939bb
4 changed files with 115 additions and 13 deletions

View File

@@ -122,7 +122,7 @@ fn main(input: VertToFrag) -> FragOut
else
normal = normalize(input.normal);
for i in 0 -> lightData.lightCount
for i in u32(0) -> lightData.lightCount
{
let light = lightData.lights[i];