diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2018-01-27 05:19:49 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2018-01-27 05:19:49 +0000 |
| commit | 1a528cdfc47aa142295876a780696cdf24bd09eb (patch) | |
| tree | d8d645101a530792faf9e338ac3ec8c04a4d07d7 /unityplugin/GhostCubeScene/assets | |
| parent | Update README.md (diff) | |
| download | DiligentEngine-1a528cdfc47aa142295876a780696cdf24bd09eb.tar.gz DiligentEngine-1a528cdfc47aa142295876a780696cdf24bd09eb.zip | |
Enabled MacOS support
Diffstat (limited to 'unityplugin/GhostCubeScene/assets')
| -rw-r--r-- | unityplugin/GhostCubeScene/assets/shaders/Mirror.vsh | 25 |
1 files changed, 11 insertions, 14 deletions
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); |
