diff options
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index ada75e2..24ef4f8 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -133,7 +133,16 @@ CompiledVertexShader* createVertexShader(const DeviceMemory &inputData) VertexShader vertexShader; ShaderInputVec2 inputPosition = vertexShader.defineInputVec2("position"); inputPosition.setData(inputData); + #if 0 + ShaderGlobalMat4x4 model = vertexShader.defineGlobalMat4x4("model"); + ShaderGlobalMat4x4 view = vertexShader.defineGlobalMat4x4("view"); + ShaderGlobalMat4x4 proj = vertexShader.defineGlobalMat4x4("proj"); + vertexShader.defineMain([&inputPosition, &model, &view, &proj]() + { + return proj * view * model * ShaderVec4(inputPosition, 0.0f, 1.0f); + }); + #endif vertexShader.defineMain([&inputPosition]() { return ShaderVec4(inputPosition, 0.0f, 1.0f); |