diff options
author | Eric Anholt <eric@anholt.net> | 2011-11-29 16:12:56 -0800 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2011-12-12 15:05:49 -0800 |
commit | ba64eef4063f41228dec243d92416c0c97ccc9b0 (patch) | |
tree | 8a4a104ed09caca7bd1b52455d9d96631a587b8f /tests/spec/arb_fragment_program | |
parent | 4ea8aff242ee6c7e1a9c04dd905a3cacea803069 (diff) |
ARB_fragment_program/dph.fp: Convert old dph.fp to shader_runner.
As much of the previous test's behavior is maintained as possible
(such as using fragment.texcoord[] for input arguments as opposed to
fp env parameters), except that now both results are displayed at the
same time.
Diffstat (limited to 'tests/spec/arb_fragment_program')
-rw-r--r-- | tests/spec/arb_fragment_program/dph.shader_test | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/spec/arb_fragment_program/dph.shader_test b/tests/spec/arb_fragment_program/dph.shader_test new file mode 100644 index 00000000..cb53df58 --- /dev/null +++ b/tests/spec/arb_fragment_program/dph.shader_test @@ -0,0 +1,23 @@ +[vertex program] +!!ARBvp1.0 +MOV result.position, vertex.position; +MOV result.texcoord[0], program.env[0]; +MOV result.texcoord[1], program.env[1]; +END + +[fragment program] +!!ARBfp1.0 +DPH result.color, -fragment.texcoord[0], fragment.texcoord[1]; +MOV result.color.w, 1; +END + +[test] +parameter env_vp 0 (-1.0, 0.0, 0.0, -0.5) +parameter env_vp 1 (0.2, 0.0, 0.0, 0.0) +draw rect -1 -1 1 2 +relative probe rgba (0.25, 0.5) (0.2, 0.2, 0.2, 1.0); + +parameter env_vp 0 (-1.0, 0.0, 0.0, -0.5) +parameter env_vp 1 (0.2, 0.0, 0.0, 0.5) +draw rect 0 -1 1 2 +relative probe rgba (0.75, 0.5) (0.7, 0.7, 0.7, 1.0); |