forked from AcademySoftwareFoundation/MaterialX
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_options.mtlx
More file actions
138 lines (107 loc) · 6.32 KB
/
_options.mtlx
File metadata and controls
138 lines (107 loc) · 6.32 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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
<?xml version="1.0"?>
<materialx version="1.38">
<!--
Test suite options file which is parsed when the "render" category units tests are executed.
Execution uses existing code generator instances to produce the code and corresponding validator
instance to check the validity of the generated code by compiling and/or rendering
the code to produce images on disk.
Input uniform and stream checking as well as node implementation coverage and profiling
can also be performed depending on the options enabled.
-->
<!-- nodedefs for custom test settings -->
<nodedef name="ND_BakingSettings" node="baker" >
<input name="file" type="filename" />
<input name="uvmin" type="vector2"/>
<input name="uvmax" type="vector2"/>
<input name="hdr" type="boolean" value="false" />
<input name="resolution" type="integer" value="1024" />
</nodedef>
<nodedef name="ND_WedgeRenderSettings" node="wedgerender" >
<input name="file" type="filename" />
<input name="parameter" type="string"/>
<input name="range" type="vector2" value="0.0, 1.0" />
<input name="steps" type="integer" value="1.0" />
</nodedef>
<!-- Render test Suite Options -->
<nodedef name="TestSuiteOptions">
<!-- List of comma separated file names acts as a filter to only test documents with these names -->
<input name="overrideFiles" type="string" value="" />
<!-- Comma separated list of light setup files. Only used for hardware shading languages -->
<input name="lightFiles" type="string" value="light_rig_test_2.mtlx" />
<!-- Comma separated list of target" specifiers to indicate which
code generators to use. -->
<input name="targets" type="string" value="genglsl,genosl,genmdl" />
<!-- Check the count of number of implementations used for a given generator -->
<input name="checkImplCount" type="boolean" value="true" />
<!-- Run using a given set of shader interface generation options. Default value is 2 where:
1 = run reduced only.
2 = run complete only.
3 = run complete + reduced.
-->
<input name="shaderInterfaces" type="integer" value="2" />
<!-- Validate element before attempting to generate code. Default is false -->
<input name="validateElementToRender" type="boolean" value="false" />
<!-- Perform source code compilation validation test -->
<input name="compileCode" type="boolean" value="true" />
<!-- Perform rendering validation test -->
<input name="renderImages" type="boolean" value="true" />
<!-- Rendered image size if render validation test enabled -->
<input name="renderSize" type="vector2" value="512, 512" />
<!-- Perform saving of image. Can only be disabled for GLSL tests -->
<input name="saveImages" type="boolean" value="true" />
<!-- Set this to be true if it is desired to dump out uniform and attribut information to the logging file -->
<input name="dumpUniformsAndAttributes" type="boolean" value="true" />
<!-- Set this to be true if it is desired to always dump out generated source code to disk instead of just on compile errors -->
<input name="dumpGeneratedCode" type="boolean" value="true" />
<!-- Suggested geometry file to use for rendering unshaded elements.
File path is relative to the "/resources/Geometry/" folder -->
<input name="unShadedGeometry" type="string" value="sphere.obj" />
<!-- Suggested geometry file to use for rendering shaded elements.
File path is relative to the "/resources/Geometry/" folder -->
<input name="shadedGeometry" type="string" value="sphere.obj" />
<!-- Enable direct lighting. Default is true. -->
<input name="enableDirectLighting" type="boolean" value="false" />
<!-- Enable indirect lighting. Default is true. -->
<input name="enableIndirectLighting" type="boolean" value="true" />
<!-- Suggested radiance IBL file path -->
<input name="radianceIBLPath" type="string" value="resources/Lights/san_giuseppe_bridge.hdr" />
<!-- Suggested irradiance IBL file path -->
<input name="irradianceIBLPath" type="string" value="resources/Lights/irradiance/san_giuseppe_bridge.hdr" />
<!-- Transforms UVs of loaded geometry -->
<input name="transformUVs" type="matrix44" value="1.0f, 0.0f, 0.0f, 0.0f, 0.0f, -1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 1.0f, 0.0f, -0.235f, 1.0f, 0.0f, 1.0f" />
<!-- List of extra library paths for generator and render tests -->
<input name="extraLibraryPaths" type="string" value="" />
<!-- List of document paths for render tests -->
<input name="renderTestPaths" type="string" value="resources/Materials/Examples,resources/Materials/TestSuite" />
<!-- Enable reference quality rendering. Default is false. -->
<input name="enableReferenceQuality" type="boolean" value="false" />
<!-- Wedge rendering options -->
<wedgerender name="wedge_conductor">
<input name="file" type="filename" value="wedge_conductor.mtlx" />
<input name="parameter" type="string" value="test_conductor/roughness1/roughness" />
<input name="range" type="vector2" value="0.0, 1.0" />
<input name="steps" type="integer" value="4" />
</wedgerender>
<wedgerender name="wedge_conductor_2">
<input name="file" type="filename" value="wedge_conductor.mtlx" />
<input name="parameter" type="string" value="test_conductor/roughness1/anisotropy" />
<input name="range" type="vector2" value="0.3, 0.9" />
<input name="steps" type="integer" value="3" />
</wedgerender>
<!-- Bake rendering options: Currently only supports the genglsl_glsl400 shader generator -->
<baker name="mapped_surfaceshader">
<input name="file" type="filename" value="mapped_surfaceshader.mtlx" />
<input name="uvmin" type="vector2" value="0,0"/>
<input name="uvmax" type="vector2" value="1,1" />
<input name="hdr" type="boolean" value="false" />
<input name="resolution" type="integer" value="1024" />
</baker>
<baker name="normalmapped_surfaceshader">
<input name="file" type="filename" value="normalmapped_surfaceshader.mtlx" />
<input name="uvmin" type="vector2" value="0,0"/>
<input name="uvmax" type="vector2" value="1,1" />
<input name="hdr" type="boolean" value="false" />
<input name="resolution" type="integer" value="1024" />
</baker>
</nodedef>
</materialx>