Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- StreamFormat("standardStream",
- {
- [VertexStream(0)] =
- {
- { Float, 3, Position },
- },
- [VertexStream(1)] =
- {
- { Float, 3, Normal },
- { Float, 3, Tangent },
- { Float, 2, TexCoord, 0 },
- -- { Float, 4, Color },
- -- { Float, 2, TexCoord, 1, "Projection1" },
- },
- })
- VertexFormat("standardVertex",
- {
- { "position", float3, Position },
- -- { "color", float4, Color },
- { "texcoord", float2, TexCoord, 0 },
- { "normal", float3, Normal },
- { "tangent", float3, Tangent },
- })
- ---------------------------------------------------------------------------
- StreamFormat("basicPostStream",
- {
- [VertexStream(0)] =
- {
- { Float, 2, Position },
- { Float, 2, TexCoord },
- },
- })
- VertexFormat("basicPostVertex",
- {
- { "position", float2, Position },
- { "texcoord", float2, TexCoord },
- })
- InputLayout( "basicPostStream", "basicPostVertex" )
- ---------------------------------------------------------------------------
- StreamFormat("simpleStream",
- {
- [VertexStream(0)] =
- {
- { Float, 3, Position },
- },
- [VertexStream(1)] =
- {
- { Float, 3, Normal, 0 },
- { Float, 2, TexCoord, 0 },
- },
- })
- VertexFormat("simple",
- {
- { "position", float3, Position },
- { "texcoord", float2, TexCoord, 0 },
- { "normal", float3, Normal },
- })
- ---------------------------------------------------------------------------
- StreamFormat("rocket",
- {
- [VertexStream(0)] =
- {
- { Float, 2, Position },
- { ByteUNorm, 4, Color },
- { Float, 2, TexCoord },
- },
- })
- VertexFormat("rocket",
- {
- { "position", float2, Position },
- { "color", float4, Color },
- { "texcoord", float2, TexCoord },
- })
- ---------------------------------------------------------------------------
- StreamFormat("trails",
- {
- [VertexStream(0)] =
- {
- { Float, 3, Position },
- { Float, 4, TexCoord },
- },
- })
- VertexFormat("trails",
- {
- { "position", float3, Position },
- { "texcoord", float4, TexCoord },
- })
- ---------------------------------------------------------------------------
- InputLayout( "simpleStream", "simple" )
- InputLayout( "standardStream", "standardVertex" )
- InputLayout( "standardStream", "simple" )
- InputLayout( "rocket", "rocket" )
- InputLayout( "trails", "trails" )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement