2 GL_ARB_texture_rectangle
3 GL_ARB_fragment_program_shadow
9 ADD texcoord.xyz, vertex.position.xyyy, {1}.x;
10 MUL texcoord.xy, texcoord, {32}.x;
11 MUL texcoord.z, texcoord, {1.0}.x;
12 MOV texcoord.w, {2}.x;
14 MOV result.position, vertex.position;
15 MOV result.texcoord[0], texcoord;
20 OPTION ARB_fragment_program_shadow;
21 TXP result.color, fragment.texcoord[0], texture[0], SHADOWRECT;
25 texture shadowRect 0 (32, 32)
26 texparameter Rect depth_mode luminance
27 texparameter Rect compare_func greater
30 # depth comparison pass
31 relative probe rgba (0.0, 0.1) (1.0, 1.0, 1.0, 1.0)
32 relative probe rgba (0.9, 1.0) (1.0, 1.0, 1.0, 1.0)
34 # depth comparison fail
35 relative probe rgba (0.1, 0.0) (0.0, 0.0, 0.0, 1.0)
36 relative probe rgba (1.0, 0.9) (0.0, 0.0, 0.0, 1.0)