0027715: Visualization - turn off deprecated OpenGL fixed-function pipeline by default
[occt.git] / tests / bugs / vis / bug23747_2
CommitLineData
269294d6 1puts "============"
2puts "CR23747"
3puts "Checking environment mapping in general"
4puts "============"
5puts ""
6
be375252 7# enable FFP until bug-fix for GLSL
8vcaps -ffp 1
9
269294d6 10vinit
11vclear
12vaxo
b5ac8292 13psphere b 20
269294d6 14vdisplay b
15vsetdispmode b 1
16vfit
17
18puts "Applying standard environment textures"
19set max_textures 8
20for {set i 0} {$i < $max_textures} {incr i} {
21 vtextureenv on $i
22 vdump $imagedir/${casename}_std_texture_${i}.png
23}
24
25puts "Varying parameters of the 6th std texture (black stripes on white background)"
26puts "Trying modulate flag"
27vtextureenv on 6 clamp modulate trilinear 1 1 0 0 0
28vdump $imagedir/${casename}_modulate.png
29
30puts "Trying nearest texture filtering mode"
31vtextureenv on 6 clamp decal nearest 1 1 0 0 0
32vdump $imagedir/${casename}_nearest.png
33
34puts "Trying scaling of s and t texture coordinates by 5 (texture repeat on)"
35vtextureenv on 6 repeat decal trilinear 5 5 0 0 0
36vdump $imagedir/${casename}_scaled.png
37
38puts "Trying translation of s and t texture coordinates by 0.5 (texture repeat on)"
39vtextureenv on 6 repeat decal trilinear 1 1 0.5 0.5 0
40vdump $imagedir/${casename}_translated.png
41
42puts "Trying rotation of texture coordinates by 90 degrees around the texture center (texture repeat on)"
43vtextureenv on 6 repeat decal trilinear 1 1 0 0 90
44vdump $imagedir/${casename}_rotated.png
45