From 886ae7e19b731f634be83e2c6ca89e659d45df66 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 18 Feb 2020 19:48:23 +0100 Subject: [PATCH] Fix the Shader3D --- source/video/shaders/Shader3D.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/video/shaders/Shader3D.cpp b/source/video/shaders/Shader3D.cpp index 15e9e26..cded7cf 100644 --- a/source/video/shaders/Shader3D.cpp +++ b/source/video/shaders/Shader3D.cpp @@ -209,6 +209,8 @@ Shader3D::Shader3D() pixelShader.addSamplerVar((GX2SamplerVar) { "sampl_texture", GX2_SAMPLER_VAR_TYPE_SAMPLER_2D, samplerLocation }); + //! create vertex shader + vertexShader.setProgram(cpVertexShaderProgram, sizeof(cpVertexShaderProgram), cpVertexShaderRegs, sizeof(cpVertexShaderRegs)); modelMatrixLocation = 0; projectionMatrixLocation = 16;