Implementing ECS SystemBase and updating slang

This commit is contained in:
Dynamitos committed 2022-11-15 12:19:11 +01:00
1 parent 05bc31a2b4
commit f635ee2100
106 files changed
+1083 -1675

No files matched your search

+2 -2
View File
@@ -63,7 +63,7 @@ struct ShaderAttributeInterpolation
#if NUM_MATERIAL_TEXCOORDS
for(int i = 0; i < NUM_MATERIAL_TEXCOORDS; ++i)
{
if(i % 2)
if(i % 2 == 1)
{
result.texCoords[i] = packedTexCoords[i / 2].zw;
}
@@ -191,7 +191,7 @@ struct VertexShaderInput
result.viewPosition = vertexParams.viewPosition;
for(int i = 0; i < NUM_MATERIAL_TEXCOORDS; ++i)
{
if(i % 2)
if(i % 2 == 1)
{
result.packedTexCoords[i / 2].zw = vertexParams.texCoords[i];
}