Fixing tree and adding unit tests

This commit is contained in:
Dynamitos committed 2023-12-23 18:26:54 +01:00
1 parent c8f99bb64d
commit 95dcfda1cd
11 files changed
+272 -98

No files matched your search

+1 -1
View File
@@ -29,5 +29,5 @@ float4 fragmentMain(in FragmentParameter params) : SV_Target
{
result += pLightEnv.pointLights[i].illuminate(lightingParams, brdf);
}
return float4(result, 1.0f);
return float4(params.vertexColor, 1.0f);
}
+1
View File
@@ -120,6 +120,7 @@ void meshMain(
{
uint vertexIndex = pScene.vertexIndices[m.vertexOffset + v];
VertexAttributes attr = pVertexData.getAttributes(md.indicesOffset + vertexIndex);
attr.vertexColor = m.color;
vertices[v] = attr.getParameter(inst.transformMatrix);
}
}
+2
View File
@@ -7,6 +7,8 @@ struct MeshletDescription
uint32_t primitiveCount;
uint32_t vertexOffset;
uint32_t primitiveOffset;
float3 color;
float pad;
};
struct MeshData