You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/MaterialXView/Main.cpp
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -32,6 +32,7 @@ const std::string options =
32
32
" --envSampleCount [INTEGER] Specify the environment sample count (defaults to 16)\n"
33
33
" --envLightIntensity [FLOAT] Specify the environment light intensity (defaults to 1)\n"
34
34
" --lightRotation [FLOAT] Specify the rotation in degrees of the lighting environment about the Y axis (defaults to 0)\n"
35
+
" --directLight [BOOLEAN] Specify whether direct lighting is enabled (defaults to true)\n"
35
36
" --shadowMap [BOOLEAN] Specify whether shadow mapping is enabled (defaults to true)\n"
36
37
" --path [FILEPATH] Specify an additional data search path location (e.g. '/projects/MaterialX'). This absolute path will be queried when locating data libraries, XInclude references, and referenced images.\n"
37
38
" --library [FILEPATH] Specify an additional data library folder (e.g. 'vendorlib', 'studiolib'). This relative path will be appended to each location in the data search path when loading data libraries.\n"
@@ -94,6 +95,7 @@ int main(int argc, char* const argv[])
94
95
int envSampleCount = mx::DEFAULT_ENV_SAMPLE_COUNT;
95
96
float envLightIntensity = 1.0f;
96
97
float lightRotation = 0.0f;
98
+
bool directLight = true;
97
99
bool shadowMap = true;
98
100
DocumentModifiers modifiers;
99
101
int screenWidth = 1280;
@@ -177,6 +179,10 @@ int main(int argc, char* const argv[])
177
179
{
178
180
parseToken(nextToken, "float", lightRotation);
179
181
}
182
+
elseif (token == "--directLight")
183
+
{
184
+
parseToken(nextToken, "boolean", directLight);
185
+
}
180
186
elseif (token == "--shadowMap")
181
187
{
182
188
parseToken(nextToken, "boolean", shadowMap);
@@ -315,6 +321,7 @@ int main(int argc, char* const argv[])
0 commit comments