aboutsummaryrefslogtreecommitdiff
path: root/demo/Shaders/meshVS.hlsl
blob: 969cbeb38a052d2264e4519d246b69f881e153b6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
cbuffer params : register(b0)
{
	float4x4 projection;
};

struct Input
{
	float3 position : POSITION;
	float3 normal : NORMAL;
};

struct Output
{
	float4 position : SV_POSITION;
	float3 normal : NORMAL;
};

Output meshVS( Input input, uint instance : SV_InstanceID )
{
	Output output;
	output.position = mul(float4(input.position,1.f),projection);
	output.normal = input.normal;

	//output.position.z *= -1.f;
	//output.position.z += 0.5f;

	//output.position.y -= 1.f * float(instance) + 0.1f;

	return output;
}