Progress i guess
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
import VertexData;
|
||||
|
||||
struct MaterialParameter
|
||||
{
|
||||
float3 position_TS;
|
||||
float3 position_TS;
|
||||
float3 worldPosition;
|
||||
float2 texCoords;
|
||||
float3 normal;
|
||||
float3 tangent;
|
||||
float3 biTangent;
|
||||
float3 viewDir_TS;
|
||||
|
||||
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