File: OglShader_advanced.scn

package info (click to toggle)
sofa-framework 1.0~beta4-11
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 88,820 kB
  • ctags: 27,300
  • sloc: cpp: 151,126; ansic: 2,387; xml: 581; sh: 417; makefile: 68
file content (123 lines) | stat: -rw-r--r-- 2,244 bytes parent folder | download | duplicates (5)
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<Node name="root" dt="0.02" showBehaviorModels="0" showVisualModels="1" showCollisionModels="0" showMappings="0" showForceFields="0">

	<Node name="Lens">
		<Object type="MeshLoader" filename="mesh/single_tetra.msh" />
		<Object type="MechanicalObject" template="Vec3d"/>
		<include href="Objects/TetrahedronSetTopology.xml" />
		<Node  activated="0" >
			<Object type="OglShader" geometryVerticesOut="12" geometryInputType="10" geometryOutputType="5" vertFilename="shaders/tetra.vert" geoFilename="shaders/tetra_triangles.geo" fragFilename="shaders/tetra.frag"/>
			<Object type="OglFloatVector4Variable" id="MappingTable" values="
	1 0 0 0 
	0 0 0 1 
	0 1 0 0 
	0 0 1 0 
	
	1 0 0 0 
	0 0 0 1 
	0 0 1 0 
	0 1 0 0 
	
	1 0 0 0 
	0 0 1 0 
	0 1 0 0 
	0 0 0 1 
	
	1 0 0 0 
	0 0 1 0 
	0 0 0 1 
	0 1 0 0 
	
	1 0 0 0 
	0 1 0 0 
	0 0 0 1 
	0 0 1 0 
	
	1 0 0 0 
	0 1 0 0 
	0 0 1 0 
	0 0 0 1 
	
	0 0 1 0 
	1 0 0 0 
	0 0 0 1 
	0 1 0 0 
	
	0 0 0 1 
	1 0 0 0 
	0 0 1 0 
	0 1 0 0" />
			<Object type="OglFloatVector4Variable" id="RunSelectTable" values="
0. 1. 0. 0.
0. 0. 0. 0.
0. 0. 1. 0.
0. 0. 1. 0.
1. 0. 0. 0.
1. 0. 0. 0.
0. 0. 0. 1.
0. 0. 0. 1.
0. 0. 1. 0.
0. 1. 0. 0." />
			<Object type="OglTetrahedralModel" />
		</Node>
		
		<Node>
			<Object type="OglShader" geometryVerticesOut="12" geometryInputType="10" geometryOutputType="5" vertFilename="shaders/PT.vert" geoFilename="shaders/PT.geo" fragFilename="shaders/PT.frag"/>
						<Object type="OglFloat3Variable" id="fragmentColor" value="1.0 1.0 1.0" />
			<Object type="OglFloatVariable" id="fragmentOpacity" value="1.0" />
			<Object type="OglFloatVector4Variable" id="MappingTable" values="
	1 0 0 0 
	0 0 0 1 
	0 1 0 0 
	0 0 1 0 
	
	1 0 0 0 
	0 0 0 1 
	0 0 1 0 
	0 1 0 0 
	
	1 0 0 0 
	0 0 1 0 
	0 1 0 0 
	0 0 0 1 
	
	1 0 0 0 
	0 0 1 0 
	0 0 0 1 
	0 1 0 0 
	
	1 0 0 0 
	0 1 0 0 
	0 0 0 1 
	0 0 1 0 
	
	1 0 0 0 
	0 1 0 0 
	0 0 1 0 
	0 0 0 1 
	
	0 0 1 0 
	1 0 0 0 
	0 0 0 1 
	0 1 0 0 
	
	0 0 0 1 
	1 0 0 0 
	0 0 1 0 
	0 1 0 0" />
			<Object type="OglFloatVector4Variable" id="RunSelectTable" values="
0. 1. 0. 0.
0. 0. 0. 0.
0. 0. 1. 0.
0. 0. 1. 0.
1. 0. 0. 0.
1. 0. 0. 0.
0. 0. 0. 1.
0. 0. 0. 1.
0. 0. 1. 0.
0. 1. 0. 0." />
			<Object type="OglTetrahedralModel" />
		</Node>
	</Node>
	

</Node>