diff options
author | Brian Paul <brianp@vmware.com> | 2009-09-29 18:56:49 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-09-29 18:56:49 -0600 |
commit | da0bf6bbe3ec4c0023803651f794e23845b7dc8e (patch) | |
tree | 0a3dc99d632cb4bdc6155daa2caa42431f8323f4 | |
parent | 7e96ca56e7177f80ac522a5ba20c17901bfd4a08 (diff) |
glsl1: sqrt(vec2) test
-rw-r--r-- | src/glean/tglsl1.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/glean/tglsl1.cpp b/src/glean/tglsl1.cpp index 8169533..9bd738c 100644 --- a/src/glean/tglsl1.cpp +++ b/src/glean/tglsl1.cpp @@ -623,6 +623,22 @@ static const ShaderProgram Programs[] = { }, { + "sqrt(vec2) function", + NO_VERTEX_SHADER, + "uniform vec4 uniform1; \n" + "void main() { \n" + " vec2 u = vec2(0.0, 0.04); \n" + " u = u * uniform1.xx; // mul by 1.0 \n" + " u = sqrt(u); \n" + " u = u * uniform1.xx; // mul by 1.0 \n" + " gl_FragColor = vec4(u.x, u.y, 0.0, 0.0); \n" + "} \n", + { 0.0, 0.2, 0.0, 0.0 }, + DONT_CARE_Z, + FLAG_NONE + }, + + { "clamp() function", NO_VERTEX_SHADER, "uniform vec4 uniform1; \n" |