Metal gamma shader coordinate fix

This commit is contained in:
Jack Andersen 2018-01-21 13:30:01 -10:00
parent 5f48359cc7
commit b9d200c61d
1 changed files with 4 additions and 4 deletions

View File

@ -106,10 +106,10 @@ class MetalDataFactoryImpl : public MetalDataFactory, public GraphicsDataFactory
float pos[4]; float pos[4];
float uv[4]; float uv[4];
} verts[4] = { } verts[4] = {
{{-1.f, -1.f, 0.f, 1.f}, {0.f, 0.f, 0.f, 0.f}}, {{-1.f, 1.f, 0.f, 1.f}, {0.f, 0.f, 0.f, 0.f}},
{{ 1.f, -1.f, 0.f, 1.f}, {1.f, 0.f, 0.f, 0.f}}, {{ 1.f, 1.f, 0.f, 1.f}, {1.f, 0.f, 0.f, 0.f}},
{{-1.f, 1.f, 0.f, 1.f}, {0.f, 1.f, 0.f, 0.f}}, {{-1.f, -1.f, 0.f, 1.f}, {0.f, 1.f, 0.f, 0.f}},
{{ 1.f, 1.f, 0.f, 1.f}, {1.f, 1.f, 0.f, 0.f}} {{ 1.f, -1.f, 0.f, 1.f}, {1.f, 1.f, 0.f, 0.f}}
}; };
m_gammaVBO = ctx.newStaticBuffer(BufferUse::Vertex, verts, 32, 4); m_gammaVBO = ctx.newStaticBuffer(BufferUse::Vertex, verts, 32, 4);
ObjToken<ITexture> texs[] = {{}, m_gammaLUT.get()}; ObjToken<ITexture> texs[] = {{}, m_gammaLUT.get()};