From 4620c40753ad540042a53a35f8d3725dbd6af5c6 Mon Sep 17 00:00:00 2001 From: chai Date: Tue, 9 Oct 2018 07:53:47 +0800 Subject: =?UTF-8?q?*=E4=BF=AE=E6=94=B9base=20shader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/libjin/Graphics/Shaders/base.shader.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/libjin/Graphics/Shaders/base.shader.h') diff --git a/src/libjin/Graphics/Shaders/base.shader.h b/src/libjin/Graphics/Shaders/base.shader.h index b449008..bf41c4f 100644 --- a/src/libjin/Graphics/Shaders/base.shader.h +++ b/src/libjin/Graphics/Shaders/base.shader.h @@ -1,3 +1,5 @@ +#ifndef LIBJIN_BASE_SHADER_H +#define LIBJIN_BASE_SHADER_H /* * https://stackoverflow.com/questions/10868958/what-does-sampler2d-store * The sampler2D is bound to a texture unit. The glUniform call binds it to texture @@ -102,3 +104,11 @@ void main() static const int BASE_FRAGMENT_SHADER_SIZE = strlen(base_fragment) + BASE_SHARED_SIZE; #define formatFragmentShader(buf, program) sprintf(buf, base_fragment, base_shared, program) + +static const char* SHADER_PROJECTION_MATRIX = "jin_ProjectionMatrix"; +static const char* SHADER_MODEL_MATRIX = "jin_ModelMatrix"; +static const char* SHADER_MAIN_TEXTURE = "jin_MainTexture"; +static const char* SHADER_VERTEX_COORDS = "jin_VertexCoords"; +static const char* SHADER_TEXTURE_COORDS = "jin_TextureCoords"; + +#endif \ No newline at end of file -- cgit v1.1-26-g67d0