forked from tharvik/COG
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConventions.txt
48 lines (35 loc) · 1.6 KB
/
Conventions.txt
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
= Shaders =
– Extensions –
Vertex Shader : .vsh
Fragement Shader : .fsh
– Names –
Base :
"diffX_specY_normZ.fsh"
X, Y, Z indicate the needed arguments. They can be replaced by :
- N for a number
- C for a color
- I for a intensity texture
- T for a color texture
More developed shaders :
"diffX_specY_normZ_tranU.fsh"
More arg can be asked as here where an arg for the transparancy is needed.
=========================================================================
= Object File =
(ASCII) : Version_of_the_object_file | 1.0
(ASCII with spaces, end marked by '\n') : Name_in_the_game | Large Fuel Tank
(ASCII) : Type | tank
(ASCII the path are numbered from 0) : Number_of_meshes | 2
(ASCII the path are numbered from 0) : Number_of_textures | 3
(ASCII with spaces, end marked by '\n') : Path_to_tex0 | Large Fuel Tank/diffuse.jpg
(ASCII with spaces, end marked by '\n') : Path_to_tex1 | Large Fuel Tank/normal.jpg
(ASCII with spaces, end marked by '\n') : Path_to_tex2 | Large Fuel Tank/specular.jpg
(ASCII the path are numbered from 0) : Number_of_shaders | 2
(ASCII with spaces, end marked by '\n') : Path_to_sh0 | shaders/difT_norT_specN
(ASCII with spaces, end marked by '\n') : Path_to_sh1 | shaders/difN_
(ASCII, end marked by '\n') : Number_of_vertexes | 2'000
(Binary floats numbered from 0) : Vertexes_coordinates | 3.253 -1.686 0.831 -10.403 5.256 …
(ASCII )
(ASCII with spaces, end marked by '\n') : Shader_id 't'+tex1_id 't'+tex0_id
23456765677665 566 54 45 8 7 5 567 8 75 4 5 78 76
2 t5 t2
9 234 54 345 67 8