More linux changes

This commit is contained in:
Dynamitos committed 2023-10-09 17:20:30 +02:00
1 parent 4aacdce41f
commit a47f17481b
15 files changed
+379 -271

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
import VertexData;
struct MaterialParameter
{
float3 worldPosition;
float2 texCoords;
float3 normal;
float3 tangent;
float3 biTangent;
static MaterialParameter create(VertexAttributes attrib)
{
MaterialParameter result;
result.worldPosition = attrib.getWorldPosition().xyz;
result.texCoords = attrib.getTexCoords();
result.normal = attrib.getNormal();
result.tangent = attrib.getTangent();
result.biTangent = attrib.getBiTangent();
return result;
}
}