From 1a528cdfc47aa142295876a780696cdf24bd09eb Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Fri, 26 Jan 2018 21:19:49 -0800 Subject: Enabled MacOS support --- .../GhostCubeScene/assets/shaders/Mirror.vsh | 25 ++++++++++------------ 1 file changed, 11 insertions(+), 14 deletions(-) (limited to 'unityplugin/GhostCubeScene/assets') diff --git a/unityplugin/GhostCubeScene/assets/shaders/Mirror.vsh b/unityplugin/GhostCubeScene/assets/shaders/Mirror.vsh index bdeaaca..1e33134 100644 --- a/unityplugin/GhostCubeScene/assets/shaders/Mirror.vsh +++ b/unityplugin/GhostCubeScene/assets/shaders/Mirror.vsh @@ -11,20 +11,17 @@ struct PSInput PSInput main(uint VertId : SV_VertexID) { - float4 Pos[] = - { - float4(-0.5, +0.5, 0.0, 1.0), - float4(-0.5, -0.5, 0.0, 1.0), - float4(+0.5, +0.5, 0.0, 1.0), - float4(+0.5, -0.5, 0.0, 1.0) - }; - float2 UV[] = - { - float2(0.0, 1.0), - float2(0.0, 0.0), - float2(1.0, 1.0), - float2(1.0, 0.0) - }; + float4 Pos[4]; + Pos[0] = float4(-0.5, +0.5, 0.0, 1.0); + Pos[1] = float4(-0.5, -0.5, 0.0, 1.0); + Pos[2] = float4(+0.5, +0.5, 0.0, 1.0); + Pos[3] = float4(+0.5, -0.5, 0.0, 1.0); + + float2 UV[4]; + UV[0] = float2(0.0, 1.0); + UV[1] = float2(0.0, 0.0); + UV[2] = float2(1.0, 1.0); + UV[3] = float2(1.0, 0.0); PSInput ps; ps.Pos = mul( Pos[VertId], g_WorldViewProj); -- cgit v1.2.3