blob: 3609db67e5d1c4f2ae621c6489ad8a4b017c51fc (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
#ifndef COMMON_HLSL
#define COMMON_HLSL
struct VSIn
{
float3 position : POSITION;
float3 normal : NORMAL;
};
struct VSOut
{
float4 position : SV_Position;
float3 positionModel : POSITIONMODEL;
float3 normalWorld : NORMAL;
float3 albedo : ALBEDO; // Alternatively, can pass just "ao" to PS and read cbuffer in PS
};
struct Skybox_VSIn
{
float3 position : POSITION;
float3 uvFace : UVFACE;
};
struct Skybox_VSOut
{
float4 position : SV_Position;
float3 coords : UVFACE;
};
struct Font_VSIn
{
float2 position : POSITION;
float2 uv : UV;
};
struct Font_VSOut
{
float4 position : SV_Position;
float2 uv : UV;
};
#endif
|