diff options
author | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-12 18:33:15 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-12 18:33:15 -0700 |
commit | 4e0859b707a350e99b396eb78e17b470ae7207d8 (patch) | |
tree | 40cbcf1fe117e85b0a1f5bb656650362a7963e97 | |
parent | cab706002024f2ddf7c2ad39474fe59366d015e2 (diff) |
shaders: Add generic test that replicates glsl-fs-log2
-rw-r--r-- | tests/shaders/glsl-fs-log2.shader_test | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/shaders/glsl-fs-log2.shader_test b/tests/shaders/glsl-fs-log2.shader_test new file mode 100644 index 000000000..b6049eb59 --- /dev/null +++ b/tests/shaders/glsl-fs-log2.shader_test @@ -0,0 +1,26 @@ +[require] +GL >= 2.0 +GLSL >= 1.10 + +[vertex shader] +void main() +{ + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; +} + +[fragment shader] +uniform vec4 args1, args2; + +void main() +{ + gl_FragColor = log2(args1) + args2; +} + +[test] +clear color 1.0 0.0 0.0 0.0 +clear +ortho +uniform args1 vec4 1.0 2.0 4.0 0.0 +uniform args2 vec4 0.5 -0.5 -1.5 0.0 +draw rect 10 10 10 10 +probe rgb 15 15 0.5 0.5 0.5 |