Almost fix function overloading. Return var issues.

This commit is contained in:
2024-06-22 17:03:38 +02:00
parent d5fdaca1ca
commit d2614b3ba9
6 changed files with 65 additions and 74 deletions

View File

@@ -4,7 +4,9 @@ camera :: constant_buffer {
}
vertex main :: (pos : float4 @position) -> float4 @position {
return mul(camera.projection, mul(camera.view, pos));
mv : float4 = mul(camera.view, pos);
mvp : float4 = mul(camera.projection, mv);
return mvp;
}
pixel main :: () -> float4 @target {