Implementing ECS SystemBase and updating slang

This commit is contained in:
Dynamitos
2022-11-15 12:19:11 +01:00
parent 05bc31a2b4
commit f635ee2100
106 changed files with 1083 additions and 1675 deletions
+1 -2
View File
@@ -17,6 +17,5 @@ interface IMaterial
float getSheen(MaterialFragmentParameter input);
};
type_param TMaterial : IMaterial;
layout(set = INDEX_MATERIAL, binding = 0, std430)
ParameterBlock<TMaterial> gMaterial;
ParameterBlock<IMaterial> gMaterial;
+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];
}