diff options
| author | jpbruyere <jp.bruyere@hotmail.com> | 2016-04-22 12:19:40 +0200 |
|---|---|---|
| committer | jpbruyere <jp.bruyere@hotmail.com> | 2016-04-22 12:19:40 +0200 |
| commit | 68056c452876b77bb443e89f49b6dd52ca50cfbb (patch) | |
| tree | 7d6ef98f0dc7e688fe85b8b07701c1357962807b /OTKCrow/OpenGL/GLBackend/ClipShader.cs | |
| parent | 88769581ad8993ae9e3b1cb60ccbdc4cb5008fe7 (diff) | |
copy old glbackend files, no changes made for now, not workingtestglbackend2
Diffstat (limited to 'OTKCrow/OpenGL/GLBackend/ClipShader.cs')
| -rw-r--r-- | OTKCrow/OpenGL/GLBackend/ClipShader.cs | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/OTKCrow/OpenGL/GLBackend/ClipShader.cs b/OTKCrow/OpenGL/GLBackend/ClipShader.cs new file mode 100644 index 00000000..8c98cad7 --- /dev/null +++ b/OTKCrow/OpenGL/GLBackend/ClipShader.cs @@ -0,0 +1,41 @@ +using System; +using OpenTK.Graphics.OpenGL; +using Crow; + +namespace Crow.GLBackend +{ + public class ClipShader : Shader + { + public ClipShader () + { + vertSource = @" + #version 130 + + precision highp float; + + uniform mat4 projection_matrix; + uniform mat4 modelview_matrix; + + in vec2 in_position; + + void main(void) + { + gl_Position = projection_matrix * modelview_matrix * vec4(in_position,0, 1); + }"; + + fragSource = @" + #version 130 + precision highp float; + + out vec4 out_frag_color; + + void main(void) + { + out_frag_color = vec4(1.0,1.0,1.0,1.0); + }"; + + Compile (); + } + } +} + |