79f4f036 |
1 | puts "========" |
a6dee93d |
2 | puts "Texture 2D transformation (UV coordinates generation)" |
79f4f036 |
3 | puts "========" |
4 | |
8e0a2b19 |
5 | vclear |
6 | vclose ALL |
7 | vinit View1 |
8 | |
79f4f036 |
9 | set aTexture [locate_data_file bug26122_texture_trsf_ref.png] |
10 | pload MODELING VISUALIZATION |
11 | box b 1 1 1 |
12 | explode b F |
13 | vclear |
14 | vclose ALL |
15 | vinit View1 w=512 h=512 |
16 | vtop |
17 | vsetdispmode 1 |
18 | vdisplay b_6 |
19 | vfit |
20 | |
21 | vcaps -ffp 1 |
22 | vtexture b_6 $aTexture -modulate off |
23 | vdump $::imagedir/${::casename}_identity_ffp.png |
24 | vcaps -ffp 0 |
25 | vdump $::imagedir/${::casename}_identity_glsl.png |
26 | |
27 | vcaps -ffp 1 |
28 | vtexture b_6 $aTexture -origin 0.0 0.0 -scale 1.25 0.5 |
29 | vdump $::imagedir/${::casename}_scale_ffp.png |
30 | vcaps -ffp 0 |
31 | vdump $::imagedir/${::casename}_scale_glsl.png |
32 | |
33 | vcaps -ffp 1 |
34 | vtexture b_6 $aTexture -origin 0.25 -0.25 -scale 1.0 1.0 |
35 | vdump $::imagedir/${::casename}_translate_ffp.png |
36 | vcaps -ffp 0 |
37 | vdump $::imagedir/${::casename}_translate_glsl.png |
38 | |
39 | vcaps -ffp 1 |
40 | vtexture b_6 $aTexture -origin 0.25 -0.25 -scale 1.1 0.8 |
41 | vdump $::imagedir/${::casename}_ffp.png |
42 | vcaps -ffp 0 |
43 | vdump $::imagedir/${::casename}_glsl.png |