2 GL_ARB_texture_rectangle
3 GL_ARB_fragment_program_shadow
7 MOV result.position, vertex.position;
8 MAD result.texcoord[0], vertex.position, 0.5, 0.5;
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;
19 texture shadow2D 0 (32, 32)
20 texparameter 2D depth_mode intensity
21 texparameter 2D compare_func greater
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);