From 4ea4bbfcb03091cb987dc151d41980ec16f3d18d Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 8 Apr 2019 22:31:12 +0800 Subject: *misc --- .../Asura.Editor/graphics/shaders/image.shader.h | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 source/Asura.Editor/graphics/shaders/image.shader.h (limited to 'source/Asura.Editor/graphics/shaders/image.shader.h') diff --git a/source/Asura.Editor/graphics/shaders/image.shader.h b/source/Asura.Editor/graphics/shaders/image.shader.h new file mode 100644 index 0000000..6274f56 --- /dev/null +++ b/source/Asura.Editor/graphics/shaders/image.shader.h @@ -0,0 +1,35 @@ +#ifndef __ASURA_EDITOR_SHADER_H__ +#include "../shader.h" +#endif + +// »æÖÆ +static AsuraEditor::Graphics::ShaderProgram image_shader = +{ +R"( +in vec2 asura_position; +in vec2 asura_texcoord0; + +uniform mat4 asura_model_matrix; +uniform mat4 asura_view_matrix; +uniform mat4 asura_projection_matrix; + +void main() +{ + gl_Position = asura_projection_matrix * asura_view_matrix * asura_model_matrix * vec4(asura_position, 0, 1); + uv = asura_texcoord0; +} + +)", + +R"( +in vec2 uv; + +uniform sampler2D img; + +void main() +{ + +} + +)" +}; \ No newline at end of file -- cgit v1.1-26-g67d0