defTex.tcl
1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
### loadBlock #######
#puts "onee"
set loadBlockTile 0
set loadBlockTl 0
set loadBlockSh 0
set loadBlockDxt 0
#CloadBlock
#puts "twoo"
### loadTex #######
set loadTexFile 0
CloadTexFile
#puts "threee"
#CloadTex
### loadTile ######
# set to 1 since loadTile requires line Size to
# be set unlike loadBlock where lineSize = 0
set loadTileTile 1
set loadTileSl 0
set loadTileTl 0
set loadTileSh 0
set loadTileTh 0
#CloadTile
#### loadTlut.tcl #####
set loadTlutOffset 1
set loadTlutCount 1
set loadTlutAddr 256
#CloadTlut
#### set Conv ###########
set setConvertK0 128
.setConvertS0 set 128
CsetConvertK0 128
set setConvertK1 128
.setConvertS1 set 128
CsetConvertK1 128
set setConvertK2 128
.setConvertS2 set 128
CsetConvertK2 128
set setConvertK3 128
.setConvertS3 set 128
CsetConvertK3 128
set setConvertK4 128
.setConvertS4 set 128
CsetConvertK4 128
set setConvertK5 128
.setConvertS5 set 128
CsetConvertK5 128
#puts "fourr"
#### set Other ########
set setTotherDetail 0
CsetTotherDetail
set setTotherTlut 0
CsetTotherTlut
set setTotherTexFilt 2
CsetTotherTexFilt
set setTotherConvert 6
CsetTotherConvert
set setTotherLOD 0
set setTotherPersp 1
CsetTexStateAll
####### sp Tex ######
set spTexEnable 1
set spTexScaleS 0xffff
set spTexScaleT 0xffff
set spTexPrimTile 1
set spTexMaxLevel 5
###### tex state all ####
CsetTexStateAll
#puts "fivee"