Starting implementation of UI framework

This commit is contained in:
Dynamitos
2021-01-19 15:30:00 +01:00
parent 65caae9e21
commit fb3c66cc4c
57 changed files with 381 additions and 186 deletions
+2 -3
View File
@@ -55,7 +55,7 @@ float4 fragmentMain(
float3 result = float3(0, 0, 0);
for (int i = 0; i < 5; i++)
for (int i = 0; i < gLightEnv.numDirectionalLights; i++)
{
result += gLightEnv.directionalLights[i].illuminate(materialParams, brdf, viewDir);
}
@@ -72,6 +72,5 @@ float4 fragmentMain(
result += pointLight.illuminate(materialParams, brdf, viewDir);
}
return float4(0, 1, 0, 1);
return float4(result, 1);
}