mirror of
https://github.com/libretro/RetroArch.git
synced 2024-05-20 13:27:22 -04:00
da29639d70
git-subtree-dir: deps/SPIRV-Cross git-subtree-split: f3a75d1d4ba6b559d5c89550f800a518baad522d
36 lines
725 B
GLSL
36 lines
725 B
GLSL
uniform float4 UBO[4];
|
|
|
|
static float4 gl_Position;
|
|
static float4 aVertex;
|
|
static float3 vNormal;
|
|
static float3 aNormal;
|
|
|
|
struct SPIRV_Cross_Input
|
|
{
|
|
float4 aVertex : TEXCOORD0;
|
|
float3 aNormal : TEXCOORD1;
|
|
};
|
|
|
|
struct SPIRV_Cross_Output
|
|
{
|
|
float3 vNormal : TEXCOORD0;
|
|
float4 gl_Position : SV_Position;
|
|
};
|
|
|
|
void vert_main()
|
|
{
|
|
gl_Position = mul(aVertex, float4x4(UBO[0], UBO[1], UBO[2], UBO[3]));
|
|
vNormal = aNormal;
|
|
}
|
|
|
|
SPIRV_Cross_Output main(SPIRV_Cross_Input stage_input)
|
|
{
|
|
aVertex = stage_input.aVertex;
|
|
aNormal = stage_input.aNormal;
|
|
vert_main();
|
|
SPIRV_Cross_Output stage_output;
|
|
stage_output.gl_Position = gl_Position;
|
|
stage_output.vNormal = vNormal;
|
|
return stage_output;
|
|
}
|