mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 19:58:54 +01:00
bff760af01
Updates #2640
17 lines
488 B
HLSL
17 lines
488 B
HLSL
cbuffer Uniforms : register(b0) {
|
|
float2 U0 : packoffset(c0);
|
|
}
|
|
|
|
Varyings VSMain(float2 A0 : POSITION, float2 A1 : TEXCOORD, float4 A2 : COLOR0) {
|
|
Varyings varyings;
|
|
float4x4 l0 = 0.0;
|
|
varyings.Position = 0.0;
|
|
varyings.M0 = 0.0;
|
|
varyings.M1 = 0.0;
|
|
l0 = float4x4((2.0) / ((U0).x), 0.0, 0.0, 0.0, 0.0, (2.0) / ((U0).y), 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, -1.0, -1.0, 0.0, 1.0);
|
|
varyings.Position = mul(float4(A0, 0.0, 1.0), l0);
|
|
varyings.M0 = A1;
|
|
varyings.M1 = A2;
|
|
return varyings;
|
|
}
|