Added: mesh transformation
Added: input Added: texture shader
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
cbuffer MatrixBuffer
|
||||
{
|
||||
float4x4 WorldViewProjectionMatrix;
|
||||
float4x4 WorldMatrix;
|
||||
//float4 tilingOffset; // option 1
|
||||
};
|
||||
|
||||
struct VertexInput
|
||||
{
|
||||
float4 position : POSITION;
|
||||
float2 uv : TEXCOORD;
|
||||
};
|
||||
|
||||
struct VertexOutput
|
||||
{
|
||||
float4 position : SV_Position;
|
||||
float2 uv : TEXCOORD;
|
||||
};
|
||||
|
||||
VertexOutput main(VertexInput INPUT)
|
||||
{
|
||||
VertexOutput OUTPUT;
|
||||
|
||||
OUTPUT.position = mul(INPUT.position, WorldViewProjectionMatrix);
|
||||
OUTPUT.uv = INPUT.uv;
|
||||
//OUTPUT.uv = INPUT.uv * float2(1.1f, 1.1f) + float2(-0.05f, -0.05f); // uv * tiling + offset
|
||||
|
||||
return OUTPUT;
|
||||
}
|
||||
Reference in New Issue
Block a user