conversion-explicit: use a different value for normalized +/- min
[piglit.git] / tests / spec / arb_fragment_program_shadow / masked.shader_test
blob53eac09cd0df84c8574a0207693dd9cfdb21a737
1 [require]
2 GL_ARB_texture_rectangle
3 GL_ARB_fragment_program_shadow
5 [vertex program]
6 !!ARBvp1.0
7 MOV result.position, vertex.position;
8 MAD result.texcoord[0], vertex.position, 0.5, 0.5;
9 END
11 [fragment program]
12 !!ARBfp1.0
13 OPTION ARB_fragment_program_shadow;
14 MOV result.color.xzw, 0.125;
15 TEX result.color.y, fragment.texcoord[0].xyyy, texture[0], SHADOW2D;
16 END
18 [test]
19 texture shadow2D 0 (32, 32)
20 texparameter 2D depth_mode intensity
21 texparameter 2D compare_func greater
22 draw rect -1 -1 2 2
24 # depth comparison pass
25 relative probe rgba (0.0, 0.1) (0.125, 1, 0.125, 0.125);
26 relative probe rgba (0.9, 1.0) (0.125, 1, 0.125, 0.125);
28 # depth comparison fail
29 relative probe rgba (0.1, 0.0) (0.125, 0, 0.125, 0.125);
30 relative probe rgba (1.0, 0.9) (0.125, 0, 0.125, 0.125);