More linux changes
This commit is contained in:
1 parent
4aacdce41f
commit
a47f17481b
15 files changed
+379
-271
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user