dharmendra-yadav commited on
Commit
b1023a8
·
verified ·
1 Parent(s): 7efa275

Add SimReady package: PFA755EXB2EC3341NN2NNS001

Browse files
Files changed (23) hide show
  1. .gitattributes +3 -0
  2. PFA755EXB2EC3341NN2NNS001/.metadata/PFA755EXB2EC3341NN2NNS001_benchmark.json +510 -0
  3. PFA755EXB2EC3341NN2NNS001/.metadata/PFA755EXB2EC3341NN2NNS001_validation.json +70 -0
  4. PFA755EXB2EC3341NN2NNS001/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +35 -0
  5. PFA755EXB2EC3341NN2NNS001/.metadata/com.nvidia.simready.packaging.bom.json +143 -0
  6. PFA755EXB2EC3341NN2NNS001/com.nvidia.simready.packaging.json +19 -0
  7. PFA755EXB2EC3341NN2NNS001/simready_usd/.simready/validation.json +68 -0
  8. PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd.png +3 -0
  9. PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_light.png +3 -0
  10. PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_transparent.png +3 -0
  11. PFA755EXB2EC3341NN2NNS001/simready_usd/PFA755EXB2EC3341NN2NNS001_main.usd +3 -0
  12. PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_ConnectionPoints.usd +0 -0
  13. PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.json +373 -0
  14. PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.usda +720 -0
  15. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Carpaint_Solid.mdl +1112 -0
  16. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Linen_White.mdl +47 -0
  17. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBR.mdl +419 -0
  18. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +493 -0
  19. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +734 -0
  20. PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Polyester_Charmeuse.mdl +1031 -0
  21. PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/external.usd +3 -0
  22. PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/internal.usd +3 -0
  23. PFA755EXB2EC3341NN2NNS001/simready_usd/textures/PFA_Screen.png +3 -0
.gitattributes CHANGED
@@ -139,3 +139,6 @@ NVD_RPP_1200_480_XT210_FA/simready_usd/payloads/internal.usd filter=lfs diff=lfs
139
  PFA755EXB2AC3341NN2NNS002/simready_usd/payloads/external.usd filter=lfs diff=lfs merge=lfs -text
140
  PFA755EXB2AC3341NN2NNS002/simready_usd/payloads/internal.usd filter=lfs diff=lfs merge=lfs -text
141
  PFA755EXB2AC3341NN2NNS002/simready_usd/PFA755EXB2AC3341NN2NNS002_main.usd filter=lfs diff=lfs merge=lfs -text
 
 
 
 
139
  PFA755EXB2AC3341NN2NNS002/simready_usd/payloads/external.usd filter=lfs diff=lfs merge=lfs -text
140
  PFA755EXB2AC3341NN2NNS002/simready_usd/payloads/internal.usd filter=lfs diff=lfs merge=lfs -text
141
  PFA755EXB2AC3341NN2NNS002/simready_usd/PFA755EXB2AC3341NN2NNS002_main.usd filter=lfs diff=lfs merge=lfs -text
142
+ PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/external.usd filter=lfs diff=lfs merge=lfs -text
143
+ PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/internal.usd filter=lfs diff=lfs merge=lfs -text
144
+ PFA755EXB2EC3341NN2NNS001/simready_usd/PFA755EXB2EC3341NN2NNS001_main.usd filter=lfs diff=lfs merge=lfs -text
PFA755EXB2EC3341NN2NNS001/.metadata/PFA755EXB2EC3341NN2NNS001_benchmark.json ADDED
@@ -0,0 +1,510 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "1.0",
3
+ "asset": "PFA755EXB2EC3341NN2NNS001",
4
+ "run_timestamp": "2026-10-22T15:06:22Z",
5
+ "passed": true,
6
+ "results": [
7
+ {
8
+ "test_name": "culling_xz",
9
+ "engine": "isaac_sim",
10
+ "engine_version": "6.2.0.0",
11
+ "status": "pass",
12
+ "passed": true,
13
+ "duration": 38.094,
14
+ "message": "",
15
+ "metrics": {
16
+ "_timing_capture_frame_total_s": {
17
+ "value": 2.624,
18
+ "unit": null
19
+ },
20
+ "_timing_capture_frame_count": {
21
+ "value": 16,
22
+ "unit": null
23
+ },
24
+ "_timing_capture_frame_avg_ms": {
25
+ "value": 164.0,
26
+ "unit": null
27
+ },
28
+ "_timing_encode_video_total_s": {
29
+ "value": 0.657,
30
+ "unit": null
31
+ },
32
+ "_timing_encode_video_count": {
33
+ "value": 2,
34
+ "unit": null
35
+ },
36
+ "_render_blank_retry_count": {
37
+ "value": 0,
38
+ "unit": null
39
+ },
40
+ "_render_blank_retry_unrecovered": {
41
+ "value": 0,
42
+ "unit": null
43
+ },
44
+ "culling_xz_max_diff": {
45
+ "value": 0.000167,
46
+ "unit": null
47
+ },
48
+ "culling_xz_mean_diff": {
49
+ "value": 3e-05,
50
+ "unit": null
51
+ },
52
+ "culling_xz_worst_angle": {
53
+ "value": 315.0,
54
+ "unit": null
55
+ },
56
+ "culling_xz_passed": {
57
+ "value": 1,
58
+ "unit": null
59
+ }
60
+ },
61
+ "kit_logs": []
62
+ },
63
+ {
64
+ "test_name": "light_response",
65
+ "engine": "isaac_sim",
66
+ "engine_version": "6.2.0.0",
67
+ "status": "pass",
68
+ "passed": true,
69
+ "duration": 29.672,
70
+ "message": "",
71
+ "metrics": {
72
+ "_timing_capture_frame_total_s": {
73
+ "value": 4.643,
74
+ "unit": null
75
+ },
76
+ "_timing_capture_frame_count": {
77
+ "value": 30,
78
+ "unit": null
79
+ },
80
+ "_timing_capture_frame_avg_ms": {
81
+ "value": 154.77,
82
+ "unit": null
83
+ },
84
+ "_timing_encode_video_total_s": {
85
+ "value": 0.859,
86
+ "unit": null
87
+ },
88
+ "_timing_encode_video_count": {
89
+ "value": 1,
90
+ "unit": null
91
+ },
92
+ "_render_blank_retry_count": {
93
+ "value": 0,
94
+ "unit": null
95
+ },
96
+ "_render_blank_retry_unrecovered": {
97
+ "value": 0,
98
+ "unit": null
99
+ },
100
+ "light_response_variation_ratio": {
101
+ "value": 0.586207,
102
+ "unit": null
103
+ },
104
+ "light_response_blank_ratio": {
105
+ "value": 0.0,
106
+ "unit": null
107
+ },
108
+ "light_response_blank_frames": {
109
+ "value": 0,
110
+ "unit": null
111
+ },
112
+ "light_response_total_frames": {
113
+ "value": 30,
114
+ "unit": null
115
+ },
116
+ "light_response_total_pairs": {
117
+ "value": 29,
118
+ "unit": null
119
+ },
120
+ "light_response_different_pairs": {
121
+ "value": 17,
122
+ "unit": null
123
+ },
124
+ "light_response_passed": {
125
+ "value": 1,
126
+ "unit": null
127
+ },
128
+ "light_response_max_pair_change": {
129
+ "value": 0.745035,
130
+ "unit": null
131
+ },
132
+ "light_response_min_pair_change": {
133
+ "value": 0.004807,
134
+ "unit": null
135
+ }
136
+ },
137
+ "kit_logs": []
138
+ },
139
+ {
140
+ "test_name": "normals_xz",
141
+ "engine": "isaac_sim",
142
+ "engine_version": "6.2.0.0",
143
+ "status": "pass",
144
+ "passed": true,
145
+ "duration": 24.156,
146
+ "message": "",
147
+ "metrics": {
148
+ "_timing_capture_frame_total_s": {
149
+ "value": 1.251,
150
+ "unit": null
151
+ },
152
+ "_timing_capture_frame_count": {
153
+ "value": 8,
154
+ "unit": null
155
+ },
156
+ "_timing_capture_frame_avg_ms": {
157
+ "value": 156.38,
158
+ "unit": null
159
+ },
160
+ "_timing_encode_video_total_s": {
161
+ "value": 0.312,
162
+ "unit": null
163
+ },
164
+ "_timing_encode_video_count": {
165
+ "value": 1,
166
+ "unit": null
167
+ },
168
+ "_render_blank_retry_count": {
169
+ "value": 0,
170
+ "unit": null
171
+ },
172
+ "_render_blank_retry_unrecovered": {
173
+ "value": 0,
174
+ "unit": null
175
+ },
176
+ "normals_xz_avg_dark": {
177
+ "value": 2.4e-05,
178
+ "unit": null
179
+ },
180
+ "normals_xz_max_dark": {
181
+ "value": 0.000175,
182
+ "unit": null
183
+ },
184
+ "normals_xz_problem_frames": {
185
+ "value": 0,
186
+ "unit": null
187
+ },
188
+ "normals_xz_passed": {
189
+ "value": 1,
190
+ "unit": null
191
+ }
192
+ },
193
+ "kit_logs": [
194
+ {
195
+ "level": "error",
196
+ "channel": "omni.kit.app._impl",
197
+ "message": "[py stderr]: Traceback (most recent call last):"
198
+ },
199
+ {
200
+ "level": "error",
201
+ "channel": "omni.kit.app._impl",
202
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
203
+ },
204
+ {
205
+ "level": "error",
206
+ "channel": "omni.kit.app._impl",
207
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
208
+ },
209
+ {
210
+ "level": "error",
211
+ "channel": "omni.kit.app._impl",
212
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
213
+ },
214
+ {
215
+ "level": "error",
216
+ "channel": "omni.kit.app._impl",
217
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
218
+ },
219
+ {
220
+ "level": "error",
221
+ "channel": "omni.kit.app._impl",
222
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
223
+ },
224
+ {
225
+ "level": "error",
226
+ "channel": "omni.kit.app._impl",
227
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
228
+ },
229
+ {
230
+ "level": "error",
231
+ "channel": "omni.kit.app._impl",
232
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
233
+ },
234
+ {
235
+ "level": "error",
236
+ "channel": "omni.kit.app._impl",
237
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
238
+ },
239
+ {
240
+ "level": "error",
241
+ "channel": "omni.kit.app._impl",
242
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
243
+ },
244
+ {
245
+ "level": "error",
246
+ "channel": "omni.kit.app._impl",
247
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
248
+ },
249
+ {
250
+ "level": "error",
251
+ "channel": "omni.kit.app._impl",
252
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
253
+ },
254
+ {
255
+ "level": "error",
256
+ "channel": "omni.kit.app._impl",
257
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
258
+ }
259
+ ]
260
+ },
261
+ {
262
+ "test_name": "pivot",
263
+ "engine": "isaac_sim",
264
+ "engine_version": "6.2.0.0",
265
+ "status": "pass",
266
+ "passed": true,
267
+ "duration": 30.969,
268
+ "message": "",
269
+ "metrics": {
270
+ "_timing_capture_frame_total_s": {
271
+ "value": 3.282,
272
+ "unit": null
273
+ },
274
+ "_timing_capture_frame_count": {
275
+ "value": 20,
276
+ "unit": null
277
+ },
278
+ "_timing_capture_frame_avg_ms": {
279
+ "value": 164.1,
280
+ "unit": null
281
+ },
282
+ "_timing_encode_video_total_s": {
283
+ "value": 0.672,
284
+ "unit": null
285
+ },
286
+ "_timing_encode_video_count": {
287
+ "value": 2,
288
+ "unit": null
289
+ },
290
+ "_render_blank_retry_count": {
291
+ "value": 0,
292
+ "unit": null
293
+ },
294
+ "_render_blank_retry_unrecovered": {
295
+ "value": 0,
296
+ "unit": null
297
+ },
298
+ "pivot_score": {
299
+ "value": 0.9,
300
+ "unit": null
301
+ },
302
+ "pivot_pivot_height_pct": {
303
+ "value": -0.0,
304
+ "unit": null
305
+ },
306
+ "pivot_pivot_at_base": {
307
+ "value": 1,
308
+ "unit": null
309
+ },
310
+ "pivot_pivot_centered_xy": {
311
+ "value": 1,
312
+ "unit": null
313
+ },
314
+ "pivot_ground_penetration": {
315
+ "value": 1,
316
+ "unit": null
317
+ },
318
+ "pivot_orbital_motion": {
319
+ "value": 0,
320
+ "unit": null
321
+ },
322
+ "pivot_passed": {
323
+ "value": 1,
324
+ "unit": null
325
+ }
326
+ },
327
+ "kit_logs": [
328
+ {
329
+ "level": "error",
330
+ "channel": "omni.kit.app._impl",
331
+ "message": "[py stderr]: Traceback (most recent call last):"
332
+ },
333
+ {
334
+ "level": "error",
335
+ "channel": "omni.kit.app._impl",
336
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
337
+ },
338
+ {
339
+ "level": "error",
340
+ "channel": "omni.kit.app._impl",
341
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
342
+ },
343
+ {
344
+ "level": "error",
345
+ "channel": "omni.kit.app._impl",
346
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
347
+ },
348
+ {
349
+ "level": "error",
350
+ "channel": "omni.kit.app._impl",
351
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
352
+ },
353
+ {
354
+ "level": "error",
355
+ "channel": "omni.kit.app._impl",
356
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
357
+ },
358
+ {
359
+ "level": "error",
360
+ "channel": "omni.kit.app._impl",
361
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
362
+ },
363
+ {
364
+ "level": "error",
365
+ "channel": "omni.kit.app._impl",
366
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
367
+ },
368
+ {
369
+ "level": "error",
370
+ "channel": "omni.kit.app._impl",
371
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
372
+ },
373
+ {
374
+ "level": "error",
375
+ "channel": "omni.kit.app._impl",
376
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
377
+ },
378
+ {
379
+ "level": "error",
380
+ "channel": "omni.kit.app._impl",
381
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
382
+ },
383
+ {
384
+ "level": "error",
385
+ "channel": "omni.kit.app._impl",
386
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
387
+ },
388
+ {
389
+ "level": "error",
390
+ "channel": "omni.kit.app._impl",
391
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
392
+ }
393
+ ]
394
+ },
395
+ {
396
+ "test_name": "presence",
397
+ "engine": "isaac_sim",
398
+ "engine_version": "6.2.0.0",
399
+ "status": "pass",
400
+ "passed": true,
401
+ "duration": 19.5,
402
+ "message": "",
403
+ "metrics": {
404
+ "_timing_capture_frame_total_s": {
405
+ "value": 0.266,
406
+ "unit": null
407
+ },
408
+ "_timing_capture_frame_count": {
409
+ "value": 2,
410
+ "unit": null
411
+ },
412
+ "_timing_capture_frame_avg_ms": {
413
+ "value": 133.0,
414
+ "unit": null
415
+ },
416
+ "_timing_encode_video_total_s": {
417
+ "value": 0.0,
418
+ "unit": null
419
+ },
420
+ "_timing_encode_video_count": {
421
+ "value": 0,
422
+ "unit": null
423
+ },
424
+ "_render_blank_retry_count": {
425
+ "value": 0,
426
+ "unit": null
427
+ },
428
+ "_render_blank_retry_unrecovered": {
429
+ "value": 0,
430
+ "unit": null
431
+ },
432
+ "presence_diff_ratio": {
433
+ "value": 0.339231,
434
+ "unit": null
435
+ },
436
+ "presence_passed": {
437
+ "value": 1,
438
+ "unit": null
439
+ }
440
+ },
441
+ "kit_logs": [
442
+ {
443
+ "level": "error",
444
+ "channel": "omni.kit.app._impl",
445
+ "message": "[py stderr]: Traceback (most recent call last):"
446
+ },
447
+ {
448
+ "level": "error",
449
+ "channel": "omni.kit.app._impl",
450
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/impl/texture.py\", line 429, in on_drawable_changed"
451
+ },
452
+ {
453
+ "level": "error",
454
+ "channel": "omni.kit.app._impl",
455
+ "message": "[py stderr]: self.__drawable_changed_fn(texture[\"rp_resource\"], presentation_key)"
456
+ },
457
+ {
458
+ "level": "error",
459
+ "channel": "omni.kit.app._impl",
460
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/widget.py\", line 516, in __set_image_data"
461
+ },
462
+ {
463
+ "level": "error",
464
+ "channel": "omni.kit.app._impl",
465
+ "message": "[py stderr]: vp_api._sync_viewport_api(camera, canvas_size, vp_api.time, view, projection, force_update=True) # noqa PLW0212"
466
+ },
467
+ {
468
+ "level": "error",
469
+ "channel": "omni.kit.app._impl",
470
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
471
+ },
472
+ {
473
+ "level": "error",
474
+ "channel": "omni.kit.app._impl",
475
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 546, in _sync_viewport_api"
476
+ },
477
+ {
478
+ "level": "error",
479
+ "channel": "omni.kit.app._impl",
480
+ "message": "[py stderr]: self.__projection = self._conform_projection(policy, camera, image_aspect, canvas_aspect, projection)"
481
+ },
482
+ {
483
+ "level": "error",
484
+ "channel": "omni.kit.app._impl",
485
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^"
486
+ },
487
+ {
488
+ "level": "error",
489
+ "channel": "omni.kit.app._impl",
490
+ "message": "[py stderr]: File \"../iv/lib/site-packages/isaacsim/extscache/omni.kit.widget.viewport-110.0.1+187cf21b/omni/kit/widget/viewport/api.py\", line 476, in _conform_projection"
491
+ },
492
+ {
493
+ "level": "error",
494
+ "channel": "omni.kit.app._impl",
495
+ "message": "[py stderr]: gf_camera = camera.GetCamera(self.__time)"
496
+ },
497
+ {
498
+ "level": "error",
499
+ "channel": "omni.kit.app._impl",
500
+ "message": "[py stderr]: ^^^^^^^^^^^^^^^^"
501
+ },
502
+ {
503
+ "level": "error",
504
+ "channel": "omni.kit.app._impl",
505
+ "message": "[py stderr]: AttributeError: 'NoneType' object has no attribute 'GetCamera'"
506
+ }
507
+ ]
508
+ }
509
+ ]
510
+ }
PFA755EXB2EC3341NN2NNS001/.metadata/PFA755EXB2EC3341NN2NNS001_validation.json ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "simready_usd/PFA755EXB2EC3341NN2NNS001_main.usd": {
3
+ "features_summary": {
4
+ "FET200_AIF": {
5
+ "blocking_failure": true,
6
+ "dependencies": "[]",
7
+ "failing requirements": "['com.nvidia.simready.AM.007']",
8
+ "passed": false,
9
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
10
+ "version": "0.1.0"
11
+ },
12
+ "FET201_AIF": {
13
+ "blocking_failure": true,
14
+ "dependencies": "[{'FET200_AIF': {'version': '0.1.0'}}]",
15
+ "failing requirements": "['com.nvidia.simready.AM.007']",
16
+ "passed": false,
17
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
18
+ "version": "0.2.0"
19
+ },
20
+ "FET202_AIF": {
21
+ "blocking_failure": true,
22
+ "dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
23
+ "failing requirements": "['com.nvidia.simready.AM.007']",
24
+ "passed": false,
25
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
26
+ "version": "0.2.0"
27
+ },
28
+ "FET203_AIF": {
29
+ "blocking_failure": true,
30
+ "dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
31
+ "failing requirements": "['com.nvidia.simready.AM.007']",
32
+ "passed": false,
33
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
34
+ "version": "0.2.0"
35
+ },
36
+ "FET_000_STANDARD": {
37
+ "blocking_failure": false,
38
+ "dependencies": "[]",
39
+ "passed": true,
40
+ "version": "0.2.0"
41
+ },
42
+ "FET_001_STANDARD": {
43
+ "blocking_failure": false,
44
+ "dependencies": "[]",
45
+ "passed": true,
46
+ "version": "1.0.0"
47
+ },
48
+ "FET_031_STANDARD": {
49
+ "blocking_failure": false,
50
+ "dependencies": "[]",
51
+ "passed": true,
52
+ "version": "0.1.0"
53
+ },
54
+ "FET_033_STANDARD": {
55
+ "blocking_failure": false,
56
+ "dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
57
+ "passed": true,
58
+ "version": "0.4.0"
59
+ }
60
+ },
61
+ "profile_id": "AIF-Entity",
62
+ "profile_version": "0.2.0",
63
+ "simready_validate_version": "2026.8.0",
64
+ "tier_versions": {
65
+ "sensors": "2026.8.0",
66
+ "tier_aif": "2026.8.0",
67
+ "tier_core": "2026.8.0"
68
+ }
69
+ }
70
+ }
PFA755EXB2EC3341NN2NNS001/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "profile": "Package",
4
+ "profile_version": "1.0.0",
5
+ "timestamp": "2026-10-22T15:06:27",
6
+ "assets": [
7
+ {
8
+ "asset": "com.nvidia.simready.packaging.json",
9
+ "features": [
10
+ {
11
+ "FET_030_STANDARD": {
12
+ "version": "0.1.0",
13
+ "passed": true,
14
+ "failing_requirements": [],
15
+ "dependencies": []
16
+ }
17
+ },
18
+ {
19
+ "FET_032_STANDARD": {
20
+ "version": "0.1.0",
21
+ "passed": true,
22
+ "failing_requirements": [],
23
+ "dependencies": [
24
+ {
25
+ "FET_030_STANDARD": {
26
+ "version": "0.1.0"
27
+ }
28
+ }
29
+ ]
30
+ }
31
+ }
32
+ ]
33
+ }
34
+ ]
35
+ }
PFA755EXB2EC3341NN2NNS001/.metadata/com.nvidia.simready.packaging.bom.json ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "items": [
4
+ {
5
+ "relative_path": "simready_usd/.simready/validation.json",
6
+ "size": 2821,
7
+ "hash": {
8
+ "sha256-flat-1mb": "fd0c1042ab90e4c7fc8e7e938cd2d2a77235ab339c4104667f7e0265c99dcab6",
9
+ "sha256": "91b4b5c9d27bbf52ffff962cf9e334771a5f5d9638782a6e76b19b55316b29b8"
10
+ }
11
+ },
12
+ {
13
+ "relative_path": "simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd.png",
14
+ "size": 549132,
15
+ "hash": {
16
+ "sha256-flat-1mb": "bab9d33cef88d8b5901141c316e2858e5445b7ea7049aa838151f63060f99a53",
17
+ "sha256": "f6fdbede663cddd4e1cc1237c8176955b68e9fe9fdc3308d7594a048f025e660"
18
+ }
19
+ },
20
+ {
21
+ "relative_path": "simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_light.png",
22
+ "size": 554846,
23
+ "hash": {
24
+ "sha256-flat-1mb": "487852d720888713118bc7c6cdd2c6d719239f1348b7d42ca5099ea6aef69750",
25
+ "sha256": "af455f45019fc7e51c81ee85d3f258131093c2f458e74d6dd52aec7aab602834"
26
+ }
27
+ },
28
+ {
29
+ "relative_path": "simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_transparent.png",
30
+ "size": 420854,
31
+ "hash": {
32
+ "sha256-flat-1mb": "75dfad65ab4b0ee711fa5444bc99789ac62d35a6869b80e8d08a7a6733dc4f81",
33
+ "sha256": "8cc52a18d1901b3ce754bc87da24ee03ce7d09e20ace30dfa579b77ab5285ccf"
34
+ }
35
+ },
36
+ {
37
+ "relative_path": "simready_usd/PFA755EXB2EC3341NN2NNS001_main.usd",
38
+ "size": 19720297,
39
+ "hash": {
40
+ "sha256-flat-1mb": "75bec546d8b3e3f15e6490d984956a0b0e3b30cad3f6db5406141ba2e5ed3c91",
41
+ "sha256": "5325887c80eaa63ece849d4ec0249b47df5971eccaacd136e16ba3b3bf05b50b",
42
+ "sha256-first1m": "ce3d690160bdde80331aaf64f772289e332960752ae2f9b4b87466b98333c0a8"
43
+ }
44
+ },
45
+ {
46
+ "relative_path": "simready_usd/layers/PFA755EXB2ACN341NNNNNS001_ConnectionPoints.usd",
47
+ "size": 9658,
48
+ "hash": {
49
+ "sha256-flat-1mb": "b455e76581a51797a0d5ab1878fbcb7811580441815e269c05708f236f272b83",
50
+ "sha256": "265e96896919787089d193db3e7e90d39bbebd79b9c28e19e53291cbb8f96b03"
51
+ }
52
+ },
53
+ {
54
+ "relative_path": "simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.json",
55
+ "size": 11094,
56
+ "hash": {
57
+ "sha256-flat-1mb": "9d2d3639e309b491eb866dd687d9d6689a26876d786723eda04059614560ed7b",
58
+ "sha256": "5a76ee8fb202efb061fac9c912a7ffa744919a448c7ad6479a77733213add9e4"
59
+ }
60
+ },
61
+ {
62
+ "relative_path": "simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.usda",
63
+ "size": 20959,
64
+ "hash": {
65
+ "sha256-flat-1mb": "7a21ab40c59e3071794004ac116301727038c54356a303f8df14bebe6c3ef9c4",
66
+ "sha256": "3affb21ec5b4640fe33bac6b9325f966bff7d313ae1f5c81bf4d4226a5d61b5e"
67
+ }
68
+ },
69
+ {
70
+ "relative_path": "simready_usd/materials/Carpaint_Solid.mdl",
71
+ "size": 44585,
72
+ "hash": {
73
+ "sha256-flat-1mb": "26159d8a8bbbc4ea913351f189b2eb1146ab7c2e51d9a8285262ecb0ab2964d7",
74
+ "sha256": "e51996b5c78df239742fcf76ed3475002328afd0c5ba7922932bca89330a3b56"
75
+ }
76
+ },
77
+ {
78
+ "relative_path": "simready_usd/materials/Linen_White.mdl",
79
+ "size": 1723,
80
+ "hash": {
81
+ "sha256-flat-1mb": "fb6f5a8739ba63efda85fa70e2075caeadf25a8dc627aafcb8dae503e376baa5",
82
+ "sha256": "4c47dd52b72c70c86fb4636f7d433b88e6672ef2a0d6128e2061001e65612e53"
83
+ }
84
+ },
85
+ {
86
+ "relative_path": "simready_usd/materials/OmniPBR/OmniPBR.mdl",
87
+ "size": 16010,
88
+ "hash": {
89
+ "sha256-flat-1mb": "ecc9a58be7f4dd86920d4d9e3c7ff37b4306bc818da5074c2e184950e43a143f",
90
+ "sha256": "6e6b3acbccd236e21a6c29964a431d2a53e77251cc6b8b1bc975eb1c62da1781"
91
+ }
92
+ },
93
+ {
94
+ "relative_path": "simready_usd/materials/OmniPBR/OmniPBRBase.mdl",
95
+ "size": 19369,
96
+ "hash": {
97
+ "sha256-flat-1mb": "001afd3ed8918a1fd8623689cf100e375bf3797f1398cb0a8a2727300e83016f",
98
+ "sha256": "a8fd9fe174e91892e94d06da90ba453a124024c2ce2c033be9d82c9e2f76a3b7"
99
+ }
100
+ },
101
+ {
102
+ "relative_path": "simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl",
103
+ "size": 29789,
104
+ "hash": {
105
+ "sha256-flat-1mb": "04bcb74cc928617064a7d3978735156b0976d66d0716fc57dfa7877b8f3d9f33",
106
+ "sha256": "d84c5ba482561c0eaea2e0c5b607358af549e36cd921773462f92dbc4f32cbc3"
107
+ }
108
+ },
109
+ {
110
+ "relative_path": "simready_usd/materials/Polyester_Charmeuse.mdl",
111
+ "size": 36517,
112
+ "hash": {
113
+ "sha256-flat-1mb": "73b29dd543d3362f8fbc7fadd3f642ec2f7414710f630cd98e2ec177ba1d4664",
114
+ "sha256": "7de6c7338a9c1c7de823e39db5f28122512ff457b15aafbd4d21b0e7a7cdc07d"
115
+ }
116
+ },
117
+ {
118
+ "relative_path": "simready_usd/payloads/external.usd",
119
+ "size": 12519055,
120
+ "hash": {
121
+ "sha256-flat-1mb": "0d9d9e3ef7bd30d89ed61b0c4f75537534c6d81ec09b4b0dac14c3bf58f703d5",
122
+ "sha256": "34203952a4b150b4a6ae8bea2b5d5ea37c20186d18e324914094831da72ac5de",
123
+ "sha256-first1m": "4c5c7695ebff0969696b7624f7093e6cdb42c07f369d8771d82996a8481a49f8"
124
+ }
125
+ },
126
+ {
127
+ "relative_path": "simready_usd/payloads/internal.usd",
128
+ "size": 303133,
129
+ "hash": {
130
+ "sha256-flat-1mb": "f5845f35b1d5985e95222b6e336694257d2588b41b69547bdab392575dd6181b",
131
+ "sha256": "047281a571ad165360e006c23dbf89a8761ee170c6b9e7c8c18998be7d37ee5d"
132
+ }
133
+ },
134
+ {
135
+ "relative_path": "simready_usd/textures/PFA_Screen.png",
136
+ "size": 227280,
137
+ "hash": {
138
+ "sha256-flat-1mb": "2ddf7d1e086636d061b78081675fe4f4634ee50f85175c05596192dc6f7623c4",
139
+ "sha256": "851e6fe37f0089dc1ab513acb95e8d9411954a1085132d6d17aa68b7e0742954"
140
+ }
141
+ }
142
+ ]
143
+ }
PFA755EXB2EC3341NN2NNS001/com.nvidia.simready.packaging.json ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "format_version": "1.0",
3
+ "package_id": "simready.hf.Vertiv.simready-assets.PFA755EXB2EC3341NN2NNS001.2026.10.22_00",
4
+ "license": "cc-by-4.0",
5
+ "metadata": [
6
+ {
7
+ "name": "com.nvidia.simready.packaging.bom.json",
8
+ "hash": {
9
+ "sha256": "0f04772631ec1366076c1ca8fb94001271a719f37de965d48cd06c42a63c375b"
10
+ }
11
+ }
12
+ ],
13
+ "content_hash": {
14
+ "sha256": "e55d2eea78d3a6514913a988fa414829211ab932101eaefe4a4812a9119bb4de"
15
+ },
16
+ "package_hash": {
17
+ "sha256": "a46384a942166b8452a68310016d4e2b66fd2b846789375ae5cf30cb12458273"
18
+ }
19
+ }
PFA755EXB2EC3341NN2NNS001/simready_usd/.simready/validation.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "SimReady_Metadata": {
3
+ "validation": {
4
+ "profile": "AIF-Entity",
5
+ "profile_version": "0.2.0",
6
+ "validated_features": {
7
+ "2026-10-22": {
8
+ "FET200_AIF": {
9
+ "blocking_failure": true,
10
+ "dependencies": "[]",
11
+ "failing requirements": "['com.nvidia.simready.AM.007']",
12
+ "passed": false,
13
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
14
+ "version": "0.1.0"
15
+ },
16
+ "FET201_AIF": {
17
+ "blocking_failure": true,
18
+ "dependencies": "[{'FET200_AIF': {'version': '0.1.0'}}]",
19
+ "failing requirements": "['com.nvidia.simready.AM.007']",
20
+ "passed": false,
21
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
22
+ "version": "0.2.0"
23
+ },
24
+ "FET202_AIF": {
25
+ "blocking_failure": true,
26
+ "dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
27
+ "failing requirements": "['com.nvidia.simready.AM.007']",
28
+ "passed": false,
29
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
30
+ "version": "0.2.0"
31
+ },
32
+ "FET203_AIF": {
33
+ "blocking_failure": true,
34
+ "dependencies": "[{'FET201_AIF': {'version': '0.2.0'}}]",
35
+ "failing requirements": "['com.nvidia.simready.AM.007']",
36
+ "passed": false,
37
+ "requirement_messages": "{\"com.nvidia.simready.AM.007\": [\"No equipment class definition found for assetClass 'PDU'. Defined classes: cdu, compute-rack, crah, ups.\"]}",
38
+ "version": "0.2.0"
39
+ },
40
+ "FET_000_STANDARD": {
41
+ "blocking_failure": false,
42
+ "dependencies": "[]",
43
+ "passed": true,
44
+ "version": "0.2.0"
45
+ },
46
+ "FET_001_STANDARD": {
47
+ "blocking_failure": false,
48
+ "dependencies": "[]",
49
+ "passed": true,
50
+ "version": "1.0.0"
51
+ },
52
+ "FET_031_STANDARD": {
53
+ "blocking_failure": false,
54
+ "dependencies": "[]",
55
+ "passed": true,
56
+ "version": "0.1.0"
57
+ },
58
+ "FET_033_STANDARD": {
59
+ "blocking_failure": false,
60
+ "dependencies": "[{'FET_031_STANDARD': {'version': '0.1.0'}}]",
61
+ "passed": true,
62
+ "version": "0.4.0"
63
+ }
64
+ }
65
+ }
66
+ }
67
+ }
68
+ }
PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd.png ADDED

Git LFS Details

  • SHA256: f6fdbede663cddd4e1cc1237c8176955b68e9fe9fdc3308d7594a048f025e660
  • Pointer size: 131 Bytes
  • Size of remote file: 549 kB
PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_light.png ADDED

Git LFS Details

  • SHA256: af455f45019fc7e51c81ee85d3f258131093c2f458e74d6dd52aec7aab602834
  • Pointer size: 131 Bytes
  • Size of remote file: 555 kB
PFA755EXB2EC3341NN2NNS001/simready_usd/.thumbs/256x256/PFA755EXB2EC3341NN2NNS001_main.usd_transparent.png ADDED

Git LFS Details

  • SHA256: 8cc52a18d1901b3ce754bc87da24ee03ce7d09e20ace30dfa579b77ab5285ccf
  • Pointer size: 131 Bytes
  • Size of remote file: 421 kB
PFA755EXB2EC3341NN2NNS001/simready_usd/PFA755EXB2EC3341NN2NNS001_main.usd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5325887c80eaa63ece849d4ec0249b47df5971eccaacd136e16ba3b3bf05b50b
3
+ size 19720297
PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_ConnectionPoints.usd ADDED
Binary file (9.66 kB). View file
 
PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.json ADDED
@@ -0,0 +1,373 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "properties": {
3
+ "aif:spec:inputVoltageTolerance": {
4
+ "type": "int",
5
+ "value": 480,
6
+ "description": "Input Voltage Tolerance in V"
7
+ },
8
+ "aif:spec:inputFrequency": {
9
+ "type": "int",
10
+ "value": 60,
11
+ "description": "Nominal Input Frequence in Hz"
12
+ },
13
+ "aif:spec:withstandVoltsAlternatingCurrent": {
14
+ "type": "string",
15
+ "value": "",
16
+ "description": "Withstand Volts Alternating Current in VAC"
17
+ },
18
+ "aif:spec:outputConnection": {
19
+ "type": "string",
20
+ "value": "",
21
+ "description": "Output Connection Type"
22
+ },
23
+ "aif:spec:inputConnection": {
24
+ "type": "string",
25
+ "value": "",
26
+ "description": "Input Connections Type"
27
+ },
28
+ "aif:spec:operatingTemperature": {
29
+ "type": "float",
30
+ "value": 313.15,
31
+ "description": "Operating Temperature in Kelvin"
32
+ },
33
+ "aif:spec:coolingMethod": {
34
+ "type": "string",
35
+ "value": "Convection",
36
+ "description": "Cooling Method"
37
+ },
38
+ "aif:spec:controlPanel": {
39
+ "type": "string",
40
+ "value": "",
41
+ "description": "Control Panel"
42
+ },
43
+ "aif:spec:inputBreakerRating": {
44
+ "type": "string",
45
+ "value": "",
46
+ "description": "Input Breaker Rating in Amp"
47
+ },
48
+ "aif:spec:monitoringConfiguration": {
49
+ "type": "string",
50
+ "value": "Monitoring at the System level",
51
+ "description": "Monitoring Configuration"
52
+ },
53
+ "aif:spec:electricalCapacity": {
54
+ "type": "string",
55
+ "value": "",
56
+ "description": "Electrical Capacity in KVA"
57
+ },
58
+ "aif:spec:storageTemperature": {
59
+ "type": "float",
60
+ "value": 328.15,
61
+ "description": "Storage Teperature in Kelvin"
62
+ },
63
+ "aif:spec:neutralConductorratingRating": {
64
+ "type": "string",
65
+ "value": "",
66
+ "description": "Neutral Conductor Rating in percentage"
67
+ },
68
+ "aif:spec:transformerMaterial": {
69
+ "type": "string",
70
+ "value": "Copper and Aluminium",
71
+ "description": "Transformer Material"
72
+ },
73
+ "aif:spec:kvaRating": {
74
+ "type": "int",
75
+ "value": 750,
76
+ "description": "kVARating in kVA"
77
+ },
78
+ "aif:spec:outputActivePower": {
79
+ "type": "string",
80
+ "value": "",
81
+ "description": "Output Active Power (kW)"
82
+ },
83
+ "aif:spec:electricalInputVoltage": {
84
+ "type": "int",
85
+ "value": 480,
86
+ "description": "Electrical Nominal Voltage in Volt"
87
+ },
88
+ "aif:spec:weldedDistributionAccess": {
89
+ "type": "float",
90
+ "value": 2133.6,
91
+ "description": "Welded Distribution Access in mm"
92
+ },
93
+ "aif:spec:electricalCurrent": {
94
+ "type": "string",
95
+ "value": "",
96
+ "description": "Electrical Current"
97
+ },
98
+ "aif:spec:inputCurrentDistortion": {
99
+ "type": "string",
100
+ "value": "",
101
+ "description": "Input Current Distortion (THDi) at Nominal Voltage at Full Load"
102
+ },
103
+ "aif:spec:electricalInputFrequency": {
104
+ "type": "int",
105
+ "value": 60,
106
+ "description": "Electrical Input Frequency in Hz"
107
+ },
108
+ "aif:spec:electricalOutputPhase": {
109
+ "type": "int",
110
+ "value": 3,
111
+ "description": "Electrical Output Phase"
112
+ },
113
+ "aif:spec:electricalInputPhase": {
114
+ "type": "int",
115
+ "value": 3,
116
+ "description": "Electrical Input Phase"
117
+ },
118
+ "aif:spec:transformerCtLocation": {
119
+ "type": "string",
120
+ "value": "Secondary Side",
121
+ "description": "Transformer CT Location"
122
+ },
123
+ "aif:spec:transformerRating": {
124
+ "type": "string",
125
+ "value": "K4 ",
126
+ "description": "Transformer Rating"
127
+ },
128
+ "aif:spec:temperatureRiseOption": {
129
+ "type": "float",
130
+ "value": 423.15,
131
+ "description": "Temperature Rise Options in Kelvin"
132
+ },
133
+ "aif:spec:inputPowerFactor": {
134
+ "type": "string",
135
+ "value": "",
136
+ "description": "Electrical Power Factor"
137
+ },
138
+ "aif:spec:dcRippleVoltage": {
139
+ "type": "string",
140
+ "value": "",
141
+ "description": "DC Ripple at Float Voltage"
142
+ },
143
+ "aif:spec:displaySize": {
144
+ "type": "float",
145
+ "value": 228.6,
146
+ "description": "Color touchscreen Display in mm"
147
+ },
148
+ "aif:spec:nominalBatteryBus": {
149
+ "type": "string",
150
+ "value": "",
151
+ "description": "Nominal Battery Bus"
152
+ },
153
+ "aif:spec:loadPowerFactor": {
154
+ "type": "string",
155
+ "value": "",
156
+ "description": "Load Power Factor Supported (Without Derating)"
157
+ },
158
+ "aif:spec:outputVoltage": {
159
+ "type": "int",
160
+ "value": 415,
161
+ "description": "Output Voltage"
162
+ },
163
+ "aif:spec:electricalOutputFrequency": {
164
+ "type": "int",
165
+ "value": 60,
166
+ "description": "Electrical Output Frequency in Hz"
167
+ },
168
+ "aif:spec:outputThdNominalVoltage": {
169
+ "type": "string",
170
+ "value": "",
171
+ "description": "Output THD at Nominal Voltage at RMS value"
172
+ },
173
+ "aif:spec:outputThdNominalVoltageWithNonLinearLoad": {
174
+ "type": "string",
175
+ "value": "",
176
+ "description": "Output THD at Nominal Voltage including a 100kVA Non Linear Load per IEC 6204 at RMS value"
177
+ },
178
+ "aif:spec:distributionBreakers": {
179
+ "type": "int",
180
+ "value": 3,
181
+ "description": "Number of Distribution Breakers"
182
+ },
183
+ "aif:spec:distributionRating": {
184
+ "type": "string",
185
+ "value": "1200AF & 1200AT 100%",
186
+ "description": "Distribution Breakers AF/AT & Rating"
187
+ },
188
+ "aif:spec:monitoringCards": {
189
+ "type": "int",
190
+ "value": 3,
191
+ "description": "Number of Monitoring Cards"
192
+ },
193
+ "aif:spec:monitoring": {
194
+ "type": "string",
195
+ "value": "DPM",
196
+ "description": "Monitoring of Transformer & Distribution"
197
+ },
198
+ "aif:spec:breakerConfiguration": {
199
+ "type": "string",
200
+ "value": "Dual MICB with KK",
201
+ "description": "Breaker Configuration"
202
+ },
203
+ "aif:spec:transientRecoveryLoad": {
204
+ "type": "string",
205
+ "value": "",
206
+ "description": "Transient Recovery 100 Load Step"
207
+ },
208
+ "aif:spec:voltageDisplacement": {
209
+ "type": "string",
210
+ "value": "",
211
+ "description": "Voltage Displacement"
212
+ },
213
+ "aif:spec:overloadAtNominalVoltage": {
214
+ "type": "string",
215
+ "value": "",
216
+ "description": "Overload at Nominal Voltage in Volt and 77degF (25degC)"
217
+ },
218
+ "aif:spec:upsEnclosureClass": {
219
+ "type": "string",
220
+ "value": "",
221
+ "description": "UPS Enclosure Class with and without front door open"
222
+ },
223
+ "aif:spec:color": {
224
+ "type": "string",
225
+ "value": "RAL7021",
226
+ "description": "Color"
227
+ },
228
+ "aif:spec:relativeHumidity": {
229
+ "type": "string",
230
+ "value": "",
231
+ "description": "Relative Humidity non-condensing in percentage"
232
+ },
233
+ "aif:spec:operatingAltitude": {
234
+ "type": "float",
235
+ "value": 2011.68,
236
+ "description": "Operating Altitude without derating in meter"
237
+ },
238
+ "aif:spec:communicationOptions": {
239
+ "type": "string",
240
+ "value": "",
241
+ "description": "Communication Options"
242
+ },
243
+ "aif:spec:cardCompatibility": {
244
+ "type": "string",
245
+ "value": "Liebert Intellislot",
246
+ "description": "Card Compatibility"
247
+ },
248
+ "aif:core:manufacturer": {
249
+ "type": "string",
250
+ "value": "Vertiv",
251
+ "description": "Equipment manufacturer name"
252
+ },
253
+ "aif:core:modelNumber": {
254
+ "type": "string",
255
+ "value": "PFA755EXB2ACN341NNNNNS001",
256
+ "description": "Equipment model number"
257
+ },
258
+ "aif:core:overallGeometryDimensions": {
259
+ "type": "vector3f",
260
+ "value": [
261
+ 2132.73,
262
+ 1524.0,
263
+ 2159.0
264
+ ],
265
+ "description": "Overall Geometry (WxDxH) (mm)"
266
+ },
267
+ "aif:core:weight": {
268
+ "type": "int",
269
+ "value": 3420,
270
+ "description": "Equipment weight in kilograms"
271
+ },
272
+ "aif:core:height": {
273
+ "type": "int",
274
+ "value": 2159,
275
+ "description": "Equipment height in mm"
276
+ },
277
+ "aif:core:width": {
278
+ "type": "float",
279
+ "value": 2132.73,
280
+ "description": "Equipment width in mm"
281
+ },
282
+ "aif:core:depth": {
283
+ "type": "int",
284
+ "value": 1524,
285
+ "description": "Equipment depth in mm"
286
+ },
287
+ "aif:core:installationClearance": {
288
+ "type": "int",
289
+ "value": 1067,
290
+ "description": "Installation Clearance in mm"
291
+ },
292
+ "aif:core:accessibilityRequirement": {
293
+ "type": "int",
294
+ "value": 1067,
295
+ "description": "Service clearance in mm"
296
+ },
297
+ "aif:core:assetVersion": {
298
+ "type": "float",
299
+ "value": 0.1,
300
+ "description": "Design Revision of Digital Twin Asset"
301
+ },
302
+ "aif:core:assetClass": {
303
+ "type": "string",
304
+ "value": "PDU",
305
+ "description": "Class of AI Factory Equipment"
306
+ },
307
+ "aif:core:simreadyVersion": {
308
+ "type": "float",
309
+ "value": 0.1,
310
+ "description": "SimReady version"
311
+ },
312
+ "aif:core:geometrympv": {
313
+ "type": "string",
314
+ "value": "",
315
+ "description": "Geometry_MPV"
316
+ },
317
+ "aif:core:aifthermal": {
318
+ "type": "string",
319
+ "value": "",
320
+ "description": "AIF_Thermal"
321
+ },
322
+ "aif:coreaifelectrical": {
323
+ "type": "string",
324
+ "value": "",
325
+ "description": "AIF_Electrical"
326
+ },
327
+ "aif:core:sceneOptimizerVersion": {
328
+ "type": "string",
329
+ "value": "get_scene_optimizer_id()",
330
+ "description": "Scene Optimizer version"
331
+ },
332
+ "aif:core:assetValidatorVersion": {
333
+ "type": "string",
334
+ "value": "get_asset_validator_id()",
335
+ "description": "Asset Validator version"
336
+ },
337
+ "aif:core:assetDescription": {
338
+ "type": "string",
339
+ "value": "Self-contained power distribution cabinet combining computer-grade grounding, isolation, and intelligent monitoring for mission-critical data centers.",
340
+ "description": "Human Readable Description of Asset"
341
+ },
342
+ "aif:core:connectsToModelDocumentation": {
343
+ "type": "string",
344
+ "value": "https://www.vertiv.com/en-ca/products-catalog/critical-power/power-distribution/liebert-ppc-distribution-cabinet-new-large-ppc-400-1000kva/",
345
+ "description": "Url to online documentation"
346
+ },
347
+ "aif:core:assetCreationDate": {
348
+ "type": "string",
349
+ "value": "7/30/2026",
350
+ "description": "Creation Date of Revision of Asset ISO 8601 format (YYYY-MM-DD)"
351
+ },
352
+ "aif:core:topClearance": {
353
+ "type": "int",
354
+ "value": 460,
355
+ "description": "Top Clearance in mm"
356
+ },
357
+ "aif:core:sideClearance": {
358
+ "type": "int",
359
+ "value": 1067,
360
+ "description": "Side Clearance (For installation) in mm"
361
+ },
362
+ "aif:core:frontClearance": {
363
+ "type": "int",
364
+ "value": 1067,
365
+ "description": "Front Clearance in mm"
366
+ }
367
+ },
368
+ "metadata": {
369
+ "description": "AIF properties for USD equipment models",
370
+ "version": "1.0",
371
+ "created": "2025-12-02"
372
+ }
373
+ }
PFA755EXB2EC3341NN2NNS001/simready_usd/layers/PFA755EXB2ACN341NNNNNS001_Properties.usda ADDED
@@ -0,0 +1,720 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #usda 1.0
2
+ (
3
+ defaultPrim = "PFA755EXB2ACN341NNNNNS001"
4
+ )
5
+
6
+ over "PFA755EXB2ACN341NNNNNS001"
7
+ {
8
+ custom int aif:core:accessibilityRequirement = 1067 (
9
+ customData = {
10
+ dictionary omni = {
11
+ dictionary kit = {
12
+ bool locked = 1
13
+ }
14
+ }
15
+ }
16
+ doc = "Service clearance in mm [AIF-MANAGED]"
17
+ )
18
+ custom string aif:core:aifthermal = "" (
19
+ customData = {
20
+ dictionary omni = {
21
+ dictionary kit = {
22
+ bool locked = 1
23
+ }
24
+ }
25
+ }
26
+ doc = "AIF_Thermal [AIF-MANAGED]"
27
+ )
28
+ custom string aif:core:assetClass = "PDU" (
29
+ customData = {
30
+ dictionary omni = {
31
+ dictionary kit = {
32
+ bool locked = 1
33
+ }
34
+ }
35
+ }
36
+ doc = "Class of AI Factory Equipment [AIF-MANAGED]"
37
+ )
38
+ custom string aif:core:assetCreationDate = "2026-07-31" (
39
+ customData = {
40
+ dictionary omni = {
41
+ dictionary kit = {
42
+ bool locked = 1
43
+ }
44
+ }
45
+ }
46
+ doc = "Creation Date of Revision of Asset ISO 8601 format (YYYY-MM-DD) [AIF-MANAGED]"
47
+ )
48
+ custom string aif:core:assetDescription = "Self-contained power distribution cabinet combining computer-grade grounding, isolation, and intelligent monitoring for mission-critical data centers." (
49
+ customData = {
50
+ dictionary omni = {
51
+ dictionary kit = {
52
+ bool locked = 1
53
+ }
54
+ }
55
+ }
56
+ doc = "Human Readable Description of Asset [AIF-MANAGED]"
57
+ )
58
+ custom string aif:core:assetValidatorVersion = "1.9.2" (
59
+ customData = {
60
+ dictionary omni = {
61
+ dictionary kit = {
62
+ bool locked = 1
63
+ }
64
+ }
65
+ }
66
+ doc = "Asset Validator version [AIF-MANAGED]"
67
+ )
68
+ custom float aif:core:assetVersion = 0.1 (
69
+ customData = {
70
+ dictionary omni = {
71
+ dictionary kit = {
72
+ bool locked = 1
73
+ }
74
+ }
75
+ }
76
+ doc = "Design Revision of Digital Twin Asset [AIF-MANAGED]"
77
+ )
78
+ custom string aif:core:connectsToModelDocumentation = "https://www.vertiv.com/en-ca/products-catalog/critical-power/power-distribution/liebert-ppc-distribution-cabinet-new-large-ppc-400-1000kva/" (
79
+ customData = {
80
+ dictionary omni = {
81
+ dictionary kit = {
82
+ bool locked = 1
83
+ }
84
+ }
85
+ }
86
+ doc = "Url to online documentation [AIF-MANAGED]"
87
+ )
88
+ custom int aif:core:depth = 1524 (
89
+ customData = {
90
+ dictionary omni = {
91
+ dictionary kit = {
92
+ bool locked = 1
93
+ }
94
+ }
95
+ }
96
+ doc = "Equipment depth in mm [AIF-MANAGED]"
97
+ )
98
+ custom int aif:core:frontClearance = 1067 (
99
+ customData = {
100
+ dictionary omni = {
101
+ dictionary kit = {
102
+ bool locked = 1
103
+ }
104
+ }
105
+ }
106
+ doc = "Front Clearance in mm [AIF-MANAGED]"
107
+ )
108
+ custom string aif:core:geometrympv = "" (
109
+ customData = {
110
+ dictionary omni = {
111
+ dictionary kit = {
112
+ bool locked = 1
113
+ }
114
+ }
115
+ }
116
+ doc = "Geometry_MPV [AIF-MANAGED]"
117
+ )
118
+ custom int aif:core:height = 2159 (
119
+ customData = {
120
+ dictionary omni = {
121
+ dictionary kit = {
122
+ bool locked = 1
123
+ }
124
+ }
125
+ }
126
+ doc = "Equipment height in mm [AIF-MANAGED]"
127
+ )
128
+ custom int aif:core:installationClearance = 1067 (
129
+ customData = {
130
+ dictionary omni = {
131
+ dictionary kit = {
132
+ bool locked = 1
133
+ }
134
+ }
135
+ }
136
+ doc = "Installation Clearance in mm [AIF-MANAGED]"
137
+ )
138
+ custom string aif:core:manufacturer = "Vertiv" (
139
+ customData = {
140
+ dictionary omni = {
141
+ dictionary kit = {
142
+ bool locked = 1
143
+ }
144
+ }
145
+ }
146
+ doc = "Equipment manufacturer name [AIF-MANAGED]"
147
+ )
148
+ custom string aif:core:modelNumber = "PFA755EXB2ACN341NNNNNS001" (
149
+ customData = {
150
+ dictionary omni = {
151
+ dictionary kit = {
152
+ bool locked = 1
153
+ }
154
+ }
155
+ }
156
+ doc = "Equipment model number [AIF-MANAGED]"
157
+ )
158
+ custom vector3f aif:core:overallGeometryDimensions = (2132.73, 1524, 2159) (
159
+ customData = {
160
+ dictionary omni = {
161
+ dictionary kit = {
162
+ bool locked = 1
163
+ }
164
+ }
165
+ }
166
+ doc = "Overall Geometry (WxDxH) (mm) [AIF-MANAGED]"
167
+ )
168
+ custom string aif:core:sceneOptimizerVersion = "109.0.2" (
169
+ customData = {
170
+ dictionary omni = {
171
+ dictionary kit = {
172
+ bool locked = 1
173
+ }
174
+ }
175
+ }
176
+ doc = "Scene Optimizer version [AIF-MANAGED]"
177
+ )
178
+ custom int aif:core:sideClearance = 1067 (
179
+ customData = {
180
+ dictionary omni = {
181
+ dictionary kit = {
182
+ bool locked = 1
183
+ }
184
+ }
185
+ }
186
+ doc = "Side Clearance (For installation) in mm [AIF-MANAGED]"
187
+ )
188
+ custom string aif:core:simreadyVersion = "0.2.0"
189
+ custom int aif:core:topClearance = 460 (
190
+ customData = {
191
+ dictionary omni = {
192
+ dictionary kit = {
193
+ bool locked = 1
194
+ }
195
+ }
196
+ }
197
+ doc = "Top Clearance in mm [AIF-MANAGED]"
198
+ )
199
+ custom int aif:core:weight = 3420 (
200
+ customData = {
201
+ dictionary omni = {
202
+ dictionary kit = {
203
+ bool locked = 1
204
+ }
205
+ }
206
+ }
207
+ doc = "Equipment weight in kilograms [AIF-MANAGED]"
208
+ )
209
+ custom float aif:core:width = 2132.73 (
210
+ customData = {
211
+ dictionary omni = {
212
+ dictionary kit = {
213
+ bool locked = 1
214
+ }
215
+ }
216
+ }
217
+ doc = "Equipment width in mm [AIF-MANAGED]"
218
+ )
219
+ custom string aif:coreaifelectrical = "" (
220
+ customData = {
221
+ dictionary omni = {
222
+ dictionary kit = {
223
+ bool locked = 1
224
+ }
225
+ }
226
+ }
227
+ doc = "AIF_Electrical [AIF-MANAGED]"
228
+ )
229
+ custom string aif:spec:breakerConfiguration = "Dual MICB with KK" (
230
+ customData = {
231
+ dictionary omni = {
232
+ dictionary kit = {
233
+ bool locked = 1
234
+ }
235
+ }
236
+ }
237
+ doc = "Breaker Configuration [AIF-MANAGED]"
238
+ )
239
+ custom string aif:spec:cardCompatibility = "Liebert Intellislot" (
240
+ customData = {
241
+ dictionary omni = {
242
+ dictionary kit = {
243
+ bool locked = 1
244
+ }
245
+ }
246
+ }
247
+ doc = "Card Compatibility [AIF-MANAGED]"
248
+ )
249
+ custom string aif:spec:color = "RAL7021" (
250
+ customData = {
251
+ dictionary omni = {
252
+ dictionary kit = {
253
+ bool locked = 1
254
+ }
255
+ }
256
+ }
257
+ doc = "Color [AIF-MANAGED]"
258
+ )
259
+ custom string aif:spec:communicationOptions = "" (
260
+ customData = {
261
+ dictionary omni = {
262
+ dictionary kit = {
263
+ bool locked = 1
264
+ }
265
+ }
266
+ }
267
+ doc = "Communication Options [AIF-MANAGED]"
268
+ )
269
+ custom string aif:spec:controlPanel = "" (
270
+ customData = {
271
+ dictionary omni = {
272
+ dictionary kit = {
273
+ bool locked = 1
274
+ }
275
+ }
276
+ }
277
+ doc = "Control Panel [AIF-MANAGED]"
278
+ )
279
+ custom string aif:spec:coolingMethod = "Convection" (
280
+ customData = {
281
+ dictionary omni = {
282
+ dictionary kit = {
283
+ bool locked = 1
284
+ }
285
+ }
286
+ }
287
+ doc = "Cooling Method [AIF-MANAGED]"
288
+ )
289
+ custom string aif:spec:dcRippleVoltage = "" (
290
+ customData = {
291
+ dictionary omni = {
292
+ dictionary kit = {
293
+ bool locked = 1
294
+ }
295
+ }
296
+ }
297
+ doc = "DC Ripple at Float Voltage [AIF-MANAGED]"
298
+ )
299
+ custom float aif:spec:displaySize = 228.6 (
300
+ customData = {
301
+ dictionary omni = {
302
+ dictionary kit = {
303
+ bool locked = 1
304
+ }
305
+ }
306
+ }
307
+ doc = "Color touchscreen Display in mm [AIF-MANAGED]"
308
+ )
309
+ custom int aif:spec:distributionBreakers = 3 (
310
+ customData = {
311
+ dictionary omni = {
312
+ dictionary kit = {
313
+ bool locked = 1
314
+ }
315
+ }
316
+ }
317
+ doc = "Number of Distribution Breakers [AIF-MANAGED]"
318
+ )
319
+ custom string aif:spec:distributionRating = "1200AF & 1200AT 100%" (
320
+ customData = {
321
+ dictionary omni = {
322
+ dictionary kit = {
323
+ bool locked = 1
324
+ }
325
+ }
326
+ }
327
+ doc = "Distribution Breakers AF/AT & Rating [AIF-MANAGED]"
328
+ )
329
+ custom string aif:spec:electricalCapacity = "" (
330
+ customData = {
331
+ dictionary omni = {
332
+ dictionary kit = {
333
+ bool locked = 1
334
+ }
335
+ }
336
+ }
337
+ doc = "Electrical Capacity in KVA [AIF-MANAGED]"
338
+ )
339
+ custom string aif:spec:electricalCurrent = "" (
340
+ customData = {
341
+ dictionary omni = {
342
+ dictionary kit = {
343
+ bool locked = 1
344
+ }
345
+ }
346
+ }
347
+ doc = "Electrical Current [AIF-MANAGED]"
348
+ )
349
+ custom int aif:spec:electricalInputFrequency = 60 (
350
+ customData = {
351
+ dictionary omni = {
352
+ dictionary kit = {
353
+ bool locked = 1
354
+ }
355
+ }
356
+ }
357
+ doc = "Electrical Input Frequency in Hz [AIF-MANAGED]"
358
+ )
359
+ custom int aif:spec:electricalInputPhase = 3 (
360
+ customData = {
361
+ dictionary omni = {
362
+ dictionary kit = {
363
+ bool locked = 1
364
+ }
365
+ }
366
+ }
367
+ doc = "Electrical Input Phase [AIF-MANAGED]"
368
+ )
369
+ custom int aif:spec:electricalInputVoltage = 480 (
370
+ customData = {
371
+ dictionary omni = {
372
+ dictionary kit = {
373
+ bool locked = 1
374
+ }
375
+ }
376
+ }
377
+ doc = "Electrical Nominal Voltage in Volt [AIF-MANAGED]"
378
+ )
379
+ custom int aif:spec:electricalOutputFrequency = 60 (
380
+ customData = {
381
+ dictionary omni = {
382
+ dictionary kit = {
383
+ bool locked = 1
384
+ }
385
+ }
386
+ }
387
+ doc = "Electrical Output Frequency in Hz [AIF-MANAGED]"
388
+ )
389
+ custom int aif:spec:electricalOutputPhase = 3 (
390
+ customData = {
391
+ dictionary omni = {
392
+ dictionary kit = {
393
+ bool locked = 1
394
+ }
395
+ }
396
+ }
397
+ doc = "Electrical Output Phase [AIF-MANAGED]"
398
+ )
399
+ custom string aif:spec:inputBreakerRating = "" (
400
+ customData = {
401
+ dictionary omni = {
402
+ dictionary kit = {
403
+ bool locked = 1
404
+ }
405
+ }
406
+ }
407
+ doc = "Input Breaker Rating in Amp [AIF-MANAGED]"
408
+ )
409
+ custom string aif:spec:inputConnection = "" (
410
+ customData = {
411
+ dictionary omni = {
412
+ dictionary kit = {
413
+ bool locked = 1
414
+ }
415
+ }
416
+ }
417
+ doc = "Input Connections Type [AIF-MANAGED]"
418
+ )
419
+ custom string aif:spec:inputCurrentDistortion = "" (
420
+ customData = {
421
+ dictionary omni = {
422
+ dictionary kit = {
423
+ bool locked = 1
424
+ }
425
+ }
426
+ }
427
+ doc = "Input Current Distortion (THDi) at Nominal Voltage at Full Load [AIF-MANAGED]"
428
+ )
429
+ custom int aif:spec:inputFrequency = 60 (
430
+ customData = {
431
+ dictionary omni = {
432
+ dictionary kit = {
433
+ bool locked = 1
434
+ }
435
+ }
436
+ }
437
+ doc = "Nominal Input Frequence in Hz [AIF-MANAGED]"
438
+ )
439
+ custom string aif:spec:inputPowerFactor = "" (
440
+ customData = {
441
+ dictionary omni = {
442
+ dictionary kit = {
443
+ bool locked = 1
444
+ }
445
+ }
446
+ }
447
+ doc = "Electrical Power Factor [AIF-MANAGED]"
448
+ )
449
+ custom int aif:spec:inputVoltageTolerance = 480 (
450
+ customData = {
451
+ dictionary omni = {
452
+ dictionary kit = {
453
+ bool locked = 1
454
+ }
455
+ }
456
+ }
457
+ doc = "Input Voltage Tolerance in V [AIF-MANAGED]"
458
+ )
459
+ custom int aif:spec:kvaRating = 750 (
460
+ customData = {
461
+ dictionary omni = {
462
+ dictionary kit = {
463
+ bool locked = 1
464
+ }
465
+ }
466
+ }
467
+ doc = "kVARating in kVA [AIF-MANAGED]"
468
+ )
469
+ custom string aif:spec:loadPowerFactor = "" (
470
+ customData = {
471
+ dictionary omni = {
472
+ dictionary kit = {
473
+ bool locked = 1
474
+ }
475
+ }
476
+ }
477
+ doc = "Load Power Factor Supported (Without Derating) [AIF-MANAGED]"
478
+ )
479
+ custom string aif:spec:monitoring = "DPM" (
480
+ customData = {
481
+ dictionary omni = {
482
+ dictionary kit = {
483
+ bool locked = 1
484
+ }
485
+ }
486
+ }
487
+ doc = "Monitoring of Transformer & Distribution [AIF-MANAGED]"
488
+ )
489
+ custom int aif:spec:monitoringCards = 3 (
490
+ customData = {
491
+ dictionary omni = {
492
+ dictionary kit = {
493
+ bool locked = 1
494
+ }
495
+ }
496
+ }
497
+ doc = "Number of Monitoring Cards [AIF-MANAGED]"
498
+ )
499
+ custom string aif:spec:monitoringConfiguration = "Monitoring at the System level" (
500
+ customData = {
501
+ dictionary omni = {
502
+ dictionary kit = {
503
+ bool locked = 1
504
+ }
505
+ }
506
+ }
507
+ doc = "Monitoring Configuration [AIF-MANAGED]"
508
+ )
509
+ custom string aif:spec:neutralConductorratingRating = "" (
510
+ customData = {
511
+ dictionary omni = {
512
+ dictionary kit = {
513
+ bool locked = 1
514
+ }
515
+ }
516
+ }
517
+ doc = "Neutral Conductor Rating in percentage [AIF-MANAGED]"
518
+ )
519
+ custom string aif:spec:nominalBatteryBus = "" (
520
+ customData = {
521
+ dictionary omni = {
522
+ dictionary kit = {
523
+ bool locked = 1
524
+ }
525
+ }
526
+ }
527
+ doc = "Nominal Battery Bus [AIF-MANAGED]"
528
+ )
529
+ custom float aif:spec:operatingAltitude = 2011.68 (
530
+ customData = {
531
+ dictionary omni = {
532
+ dictionary kit = {
533
+ bool locked = 1
534
+ }
535
+ }
536
+ }
537
+ doc = "Operating Altitude without derating in meter [AIF-MANAGED]"
538
+ )
539
+ custom float aif:spec:operatingTemperature = 313.15 (
540
+ customData = {
541
+ dictionary omni = {
542
+ dictionary kit = {
543
+ bool locked = 1
544
+ }
545
+ }
546
+ }
547
+ doc = "Operating Temperature in Kelvin [AIF-MANAGED]"
548
+ )
549
+ custom string aif:spec:outputActivePower = "" (
550
+ customData = {
551
+ dictionary omni = {
552
+ dictionary kit = {
553
+ bool locked = 1
554
+ }
555
+ }
556
+ }
557
+ doc = "Output Active Power (kW) [AIF-MANAGED]"
558
+ )
559
+ custom string aif:spec:outputConnection = "" (
560
+ customData = {
561
+ dictionary omni = {
562
+ dictionary kit = {
563
+ bool locked = 1
564
+ }
565
+ }
566
+ }
567
+ doc = "Output Connection Type [AIF-MANAGED]"
568
+ )
569
+ custom string aif:spec:outputThdNominalVoltage = "" (
570
+ customData = {
571
+ dictionary omni = {
572
+ dictionary kit = {
573
+ bool locked = 1
574
+ }
575
+ }
576
+ }
577
+ doc = "Output THD at Nominal Voltage at RMS value [AIF-MANAGED]"
578
+ )
579
+ custom string aif:spec:outputThdNominalVoltageWithNonLinearLoad = "" (
580
+ customData = {
581
+ dictionary omni = {
582
+ dictionary kit = {
583
+ bool locked = 1
584
+ }
585
+ }
586
+ }
587
+ doc = "Output THD at Nominal Voltage including a 100kVA Non Linear Load per IEC 6204 at RMS value [AIF-MANAGED]"
588
+ )
589
+ custom int aif:spec:outputVoltage = 415 (
590
+ customData = {
591
+ dictionary omni = {
592
+ dictionary kit = {
593
+ bool locked = 1
594
+ }
595
+ }
596
+ }
597
+ doc = "Output Voltage [AIF-MANAGED]"
598
+ )
599
+ custom string aif:spec:overloadAtNominalVoltage = "" (
600
+ customData = {
601
+ dictionary omni = {
602
+ dictionary kit = {
603
+ bool locked = 1
604
+ }
605
+ }
606
+ }
607
+ doc = "Overload at Nominal Voltage in Volt and 77degF (25degC) [AIF-MANAGED]"
608
+ )
609
+ custom string aif:spec:relativeHumidity = "" (
610
+ customData = {
611
+ dictionary omni = {
612
+ dictionary kit = {
613
+ bool locked = 1
614
+ }
615
+ }
616
+ }
617
+ doc = "Relative Humidity non-condensing in percentage [AIF-MANAGED]"
618
+ )
619
+ custom float aif:spec:storageTemperature = 328.15 (
620
+ customData = {
621
+ dictionary omni = {
622
+ dictionary kit = {
623
+ bool locked = 1
624
+ }
625
+ }
626
+ }
627
+ doc = "Storage Teperature in Kelvin [AIF-MANAGED]"
628
+ )
629
+ custom float aif:spec:temperatureRiseOption = 423.15 (
630
+ customData = {
631
+ dictionary omni = {
632
+ dictionary kit = {
633
+ bool locked = 1
634
+ }
635
+ }
636
+ }
637
+ doc = "Temperature Rise Options in Kelvin [AIF-MANAGED]"
638
+ )
639
+ custom string aif:spec:transformerCtLocation = "Secondary Side" (
640
+ customData = {
641
+ dictionary omni = {
642
+ dictionary kit = {
643
+ bool locked = 1
644
+ }
645
+ }
646
+ }
647
+ doc = "Transformer CT Location [AIF-MANAGED]"
648
+ )
649
+ custom string aif:spec:transformerMaterial = "Copper and Aluminium" (
650
+ customData = {
651
+ dictionary omni = {
652
+ dictionary kit = {
653
+ bool locked = 1
654
+ }
655
+ }
656
+ }
657
+ doc = "Transformer Material [AIF-MANAGED]"
658
+ )
659
+ custom string aif:spec:transformerRating = "K4 " (
660
+ customData = {
661
+ dictionary omni = {
662
+ dictionary kit = {
663
+ bool locked = 1
664
+ }
665
+ }
666
+ }
667
+ doc = "Transformer Rating [AIF-MANAGED]"
668
+ )
669
+ custom string aif:spec:transientRecoveryLoad = "" (
670
+ customData = {
671
+ dictionary omni = {
672
+ dictionary kit = {
673
+ bool locked = 1
674
+ }
675
+ }
676
+ }
677
+ doc = "Transient Recovery 100 Load Step [AIF-MANAGED]"
678
+ )
679
+ custom string aif:spec:upsEnclosureClass = "" (
680
+ customData = {
681
+ dictionary omni = {
682
+ dictionary kit = {
683
+ bool locked = 1
684
+ }
685
+ }
686
+ }
687
+ doc = "UPS Enclosure Class with and without front door open [AIF-MANAGED]"
688
+ )
689
+ custom string aif:spec:voltageDisplacement = "" (
690
+ customData = {
691
+ dictionary omni = {
692
+ dictionary kit = {
693
+ bool locked = 1
694
+ }
695
+ }
696
+ }
697
+ doc = "Voltage Displacement [AIF-MANAGED]"
698
+ )
699
+ custom float aif:spec:weldedDistributionAccess = 2133.6 (
700
+ customData = {
701
+ dictionary omni = {
702
+ dictionary kit = {
703
+ bool locked = 1
704
+ }
705
+ }
706
+ }
707
+ doc = "Welded Distribution Access in mm [AIF-MANAGED]"
708
+ )
709
+ custom string aif:spec:withstandVoltsAlternatingCurrent = "" (
710
+ customData = {
711
+ dictionary omni = {
712
+ dictionary kit = {
713
+ bool locked = 1
714
+ }
715
+ }
716
+ }
717
+ doc = "Withstand Volts Alternating Current in VAC [AIF-MANAGED]"
718
+ )
719
+ }
720
+
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Carpaint_Solid.mdl ADDED
@@ -0,0 +1,1112 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+ * Copyright 2023 NVIDIA Corporation. All rights reserved. *
3
+ ******************************************************************************
4
+
5
+ Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
6
+ to any person obtaining a copy of the sample definition code that uses our
7
+ Material Definition Language (the "MDL Materials"), to reproduce and distribute
8
+ the MDL Materials, including without limitation the rights to use, copy, merge,
9
+ publish, distribute, and sell modified and unmodified copies of the MDL
10
+ Materials, and to permit persons to whom the MDL Materials is furnished to do
11
+ so, in all cases solely for use with NVIDIA's Material Definition Language,
12
+ subject to the following further conditions:
13
+
14
+ 1. The above copyright notices, this list of conditions, and the disclaimer
15
+ that follows shall be retained in all copies of one or more of the MDL
16
+ Materials, including in any software with which the MDL Materials are bundled,
17
+ redistributed, and/or sold, and included either as stand-alone text files,
18
+ human-readable headers or in the appropriate machine-readable metadata fields
19
+ within text or binary files as long as those fields can be easily viewed by the
20
+ user, as applicable.
21
+ 2. The name of NVIDIA shall not be used to promote, endorse or advertise any
22
+ Modified Version without specific prior written permission, except a) to comply
23
+ with the notice requirements otherwise contained herein; or b) to acknowledge
24
+ the contribution(s) of NVIDIA.
25
+
26
+ THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
29
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
30
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
31
+ INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
32
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
33
+ THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
34
+ */
35
+
36
+ mdl 1.6;
37
+ import ::df::*;
38
+ import ::math::*;
39
+ import ::anno::*;
40
+ import ::state::*;
41
+ import ::base::*;
42
+ import ::tex::*;
43
+ import ::nvidia::core_definitions::dimension;
44
+ import ::nvidia::core_definitions::blend_colors;
45
+
46
+
47
+ const string COPYRIGHT =
48
+ " Copyright 2023 NVIDIA Corporation. All rights reserved.\n"
49
+ " MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
50
+ " WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
51
+ " THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
52
+ " EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
53
+ " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
54
+ " COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
55
+ " CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
56
+ " GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
57
+ " AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
58
+ " INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
59
+
60
+
61
+ ::base::texture_coordinate_info transform_coordinate_2(
62
+ float4x4 transform
63
+ [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix") ]],
64
+ ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
65
+ [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection") ]]
66
+ ) [[
67
+ ::anno::description("Transform a texture coordinate by a matrix") ,
68
+ ::anno::noinline()
69
+ ]]
70
+ {
71
+ // Version 2
72
+ float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
73
+ //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
74
+ //just pretend there is no other rotation happening
75
+ //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
76
+ float4 u = transform[0];
77
+ float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
78
+ float cos = ru.x;
79
+ float sin = -ru.y;
80
+
81
+ return ::base::texture_coordinate_info(
82
+ float3(r_position.x,r_position.y,r_position.z),
83
+ ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
84
+ ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
85
+ }
86
+
87
+ // Takes the standard input that every material has. It combines a couple of
88
+ // functions in one convenience function.
89
+ ::base::texture_coordinate_info vmat_transform(
90
+ float2 translation = float2(0.0f, 0.0f),
91
+ float rotation = 0.0f, // rotation in degrees
92
+ float2 scaling = float2(1.0f, 1.0f),
93
+ uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
94
+ uniform int uv_space = 0
95
+ )
96
+ {
97
+ float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
98
+ float4x4 scale =
99
+ float4x4(1.0f /scaling.x, 0.f , 0.f , 0.f,
100
+ 0.f , 1.0f /scaling.y , 0.f , 0.f,
101
+ 0.f , 0.f , 1.0f, 0.f,
102
+ translation.x , translation.y , 0.0f, 1.f);
103
+
104
+ float s = ::math::sin(rotation_rad);
105
+ float c = ::math::cos(rotation_rad);
106
+ float4x4 rotate =
107
+ float4x4( c , -s , 0.0f , 0.0f,
108
+ s , c , 0.0f , 0.0f,
109
+ 0.0f, 0.0f , 1.0f , 0.0f,
110
+ 0.f , 0.0f , 0.0f , 1.f);
111
+
112
+ return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
113
+ }
114
+
115
+
116
+
117
+ float histogram_range(float input, float range = 1.0f, float position = 0.5f)
118
+ {
119
+ float low = ::math::clamp(1.0f - ::math::min(((1.0f - position) + range * 0.5f), (1.0f - position) * 2), 0.0f, 1.0f);
120
+ float high = ::math::clamp(::math::min((position + range * 0.5f ), position * 2.0f), 0.0f, 1.0f);
121
+ return ::math::lerp(low, high, input);
122
+ }
123
+
124
+ //
125
+ // flake noise utilities
126
+ //
127
+ int hash(int seed, int i)
128
+ {
129
+ return (i ^ seed) * 1075385539;
130
+ }
131
+ int rnd_init(int3 pos)
132
+ {
133
+ return hash(hash(hash(0, pos.x), pos.y), pos.z);
134
+ }
135
+
136
+ int rnd_next(int seed) {
137
+ // xorshift32 using signed int
138
+ seed ^= seed << 13;
139
+ seed ^= seed >>> 17;
140
+ seed ^= seed << 5;
141
+ return seed;
142
+ }
143
+
144
+ float rnd_value(int seed)
145
+ {
146
+ //return ::math::abs(float(seed) * 4.6566fe-10f);
147
+ return ::math::abs(float(seed) * 0.00000000046566f);
148
+ }
149
+
150
+ // apply random rotation (using "Fast Random Rotation Matrices" by James Arvo)
151
+ float3 rotate_pos(float3 pos, float3 xi)
152
+ {
153
+ float theta = ::math::PI * 2.0f * xi.x;
154
+ float phi = ::math::PI * 2.0f * xi.y;
155
+ float z = xi.z * 2.0f;
156
+
157
+ float r = ::math::sqrt(z);
158
+ float[2] sp_cp = ::math::sincos(phi);
159
+ float Vx = sp_cp[0] * r;
160
+ float Vy = sp_cp[1] * r;
161
+ float Vz = ::math::sqrt(2.0f - z);
162
+
163
+ float[2] st_ct = ::math::sincos(theta);
164
+ float Sx = Vx * st_ct[1] - Vy * st_ct[0];
165
+ float Sy = Vx * st_ct[0] + Vy * st_ct[1];
166
+
167
+ float3x3 M(
168
+ Vx * Sx - st_ct[1], Vx * Sy - st_ct[0], Vx * Vz,
169
+ Vy * Sx + st_ct[0], Vy * Sy - st_ct[1], Vy * Vz,
170
+ Vz * Sx, Vz * Sy, 1.0f - z);
171
+
172
+ return M * pos;
173
+ }
174
+
175
+ struct flake_noise_value {
176
+ // flake priority (in [0..1], 0: no flake, flakes with higher priority shadow flakes "below" them)
177
+ float priority;
178
+ // Stores values from the functions (once normal, another time the color)
179
+ // current pseudo random number generator seed
180
+ int rnd_seed;
181
+ float4 carrier;
182
+ };
183
+
184
+ // flake noise function with controllable regularity, flake size, and probability
185
+ flake_noise_value flake_noise(
186
+ float3 pos,
187
+ float jitter_scale = 1.0f,
188
+ float flake_diameter = 0.75f,
189
+ float flake_probability = 1.0f)
190
+ {
191
+ float3 base_pos = ::math::floor(pos);
192
+ int3 base_pos_i = int3(base_pos);
193
+
194
+ // limit the flake size to the allowed maximum (such that looking at all neighbors is sufficient)
195
+ flake_diameter = ::math::min(flake_diameter, (1.5f - 0.5f * jitter_scale) / ::math::sqrt(3.0f));
196
+
197
+ flake_noise_value val(0.0f, 0, float4(0.0f));
198
+
199
+ for (int i = -1; i < 2; ++i) {
200
+ for (int j = -1; j < 2; ++j) {
201
+ for (int k = -1; k < 2; ++k) {
202
+
203
+ int seed = rnd_init(base_pos_i + int3(i, j, k));
204
+
205
+ seed = rnd_next(seed);
206
+ if (rnd_value(seed) > flake_probability)
207
+ continue;
208
+
209
+ seed = rnd_next(seed);
210
+ float priority = rnd_value(seed);
211
+ if (priority < val.priority)
212
+ continue;
213
+
214
+ float3 flake_pos = base_pos + float3(i, j, k) + float3(0.5f);
215
+
216
+ if (jitter_scale > 0.0f) {
217
+ seed = rnd_next(seed);
218
+ flake_pos.x += (rnd_value(seed) - 0.5f) * jitter_scale;
219
+ seed = rnd_next(seed);
220
+ flake_pos.y += (rnd_value(seed) - 0.5f) * jitter_scale;
221
+ seed = rnd_next(seed);
222
+ flake_pos.z += (rnd_value(seed) - 0.5f) * jitter_scale;
223
+ }
224
+
225
+ float3 p = pos - flake_pos;
226
+ if (::math::dot(p, p) >= flake_diameter * flake_diameter * 4.0f)
227
+ continue;
228
+
229
+ float3 xi_rot;
230
+ seed = rnd_next(seed);
231
+ xi_rot.x = rnd_value(seed);
232
+ seed = rnd_next(seed);
233
+ xi_rot.y = rnd_value(seed);
234
+ seed = rnd_next(seed);
235
+ xi_rot.z = rnd_value(seed);
236
+ p = rotate_pos(p, xi_rot);
237
+
238
+ if (::math::abs(p.x) <= flake_diameter &&
239
+ ::math::abs(p.y) <= flake_diameter &&
240
+ ::math::abs(p.z) <= flake_diameter)
241
+ {
242
+ val.priority = priority;
243
+ val.rnd_seed = seed;
244
+ }
245
+ }
246
+ }
247
+ }
248
+
249
+ return val;
250
+ }
251
+
252
+ // create a flake normal by importance sampling the Beckmann distribution with given roughness
253
+ flake_noise_value flake_normal(
254
+ flake_noise_value val,
255
+ float spread)
256
+ {
257
+ if (val.priority <= 0.0f)
258
+ {
259
+ val.carrier = float4(::state::normal().x, ::state::normal().y, ::state::normal().z, 1.0f);
260
+ return val;
261
+ }
262
+
263
+ int seed = rnd_next(val.rnd_seed);
264
+ float xi0 = rnd_value(seed);
265
+ seed = rnd_next(seed);
266
+ float xi1 = rnd_value(seed);
267
+
268
+ float phi = ::math::PI * 2.0f * xi0;
269
+
270
+ float roughness = spread * spread;
271
+
272
+ float tantheta = ::math::sqrt(-roughness * roughness * ::math::log(1.0f - xi1));
273
+ float sintheta = tantheta / ::math::sqrt(1.0f + tantheta * tantheta);
274
+ float costheta = ::math::sqrt(1.0f - sintheta * sintheta);
275
+
276
+ float[2] scphi = ::math::sincos(phi);
277
+
278
+ val.rnd_seed = seed;
279
+
280
+ float3 normal = ::state::texture_tangent_u(0) * scphi[1] * sintheta +
281
+ ::state::texture_tangent_v(0) * scphi[0] * sintheta +
282
+ ::state::normal() * costheta;
283
+
284
+ val.carrier = float4(normal.x, normal.y, normal.z, 1.0f);
285
+
286
+
287
+ return val;
288
+ }
289
+
290
+
291
+ export material Carpaint_Solid(
292
+ color base_color = color(0.002125f, 0.051269f, 0.046665f) [[
293
+ ::anno::description("Sets the base color of the carpaint"),
294
+ ::anno::display_name("Base "),
295
+ ::anno::in_group("Appearance"),
296
+ ::anno::ui_order(0)
297
+ ]],
298
+ float ground_coat_influence = 0.9f [[
299
+ ::anno::description("The ground coat layer is a metallic base layer over which the base color coat, the flakes and the clearcoat are applied. Use the parameter 'Ground Coat Brightness' to adjust its brightness."),
300
+ ::anno::display_name("Base Coat Influence"),
301
+ ::anno::in_group("Appearance"),
302
+ ::anno::hard_range(0.f, 1.f),
303
+ ::anno::ui_order(1)
304
+ ]],
305
+ float ground_coat_brightness = 0.24f [[
306
+ ::anno::description("Adjusts the brightness of the metallic ground coat over which the base color coat, the flakes and the clearcoat are applied. Only has an effect, if the Ground Coat Influence is greater than 0.0"),
307
+ ::anno::display_name("Base Coat Brightness"),
308
+ ::anno::in_group("Appearance"),
309
+ ::anno::hard_range(0.f, 1.f),
310
+ ::anno::ui_order(2)
311
+ ]],
312
+ float edge_darkening = 0.96f [[
313
+ ::anno::description("The amount how much colors fade to darker color when looking at the carpaint at grazing angles. Low values make the carpaint look more flat"),
314
+ ::anno::display_name("Edge Darkening"),
315
+ ::anno::in_group("Appearance"),
316
+ ::anno::hard_range(0.f, 1.f),
317
+ ::anno::ui_order(3)
318
+ ]],
319
+ color flakes_tint = color(0.016807f, 0.171441f, 0.417885f) [[
320
+ ::anno::description("The color of the flakes"),
321
+ ::anno::display_name("Flakes Tint"),
322
+ ::anno::in_group("Flakes"),
323
+ ::anno::ui_order(4)
324
+ ]],
325
+ uniform float flakes_density = 0.29f [[
326
+ ::anno::description("Adjusts the density of the flakes. Lower number means less flake particles being applied."),
327
+ ::anno::display_name("Flakes Density"),
328
+ ::anno::in_group("Flakes"),
329
+ ::anno::hard_range(0.f, 1.f),
330
+ ::anno::ui_order(5)
331
+ ]],
332
+ float spread = 0.12f [[
333
+ ::anno::description("The amount how much flakes are pointing to random directions. It is strongly discouraged using a value of 0.0 as the flakes will be oriented exactly as the surface normal, which will result in an unnatural look. Higher values lead to a more scintillating look of the flakes."),
334
+ ::anno::display_name("Flakes Spread"),
335
+ ::anno::enable_if("flakes_density > 0.0f"),
336
+ ::anno::in_group("Flakes"),
337
+ ::anno::hard_range(0.f, 1.f),
338
+ ::anno::ui_order(6)
339
+ ]],
340
+ float flakes_roughness = 0.46f [[
341
+ ::anno::description("The roughness of the flakes itself. Higher values smoothen out the look of the flakes. Depending on the flakes being used in carpaints, use low values for a sparkling flake effect while mica flakes tend to have a higher roughness, leading to a smoother more pearlescent look on the final carpaint"),
342
+ ::anno::display_name("Flakes Roughness"),
343
+ ::anno::enable_if("flakes_density > 0.0f"),
344
+ ::anno::in_group("Flakes"),
345
+ ::anno::hard_range(0.f, 1.f),
346
+ ::anno::ui_order(7)
347
+ ]],
348
+ float flakes_size = 0.1f [[
349
+ ::anno::description("Size of the metal flakes in millimeters."),
350
+ ::anno::display_name("Flakes Size (mm)"),
351
+ ::anno::enable_if("flakes_density > 0.0f"),
352
+ ::anno::soft_range(0.f, 1.f),
353
+ ::anno::in_group("Flakes"),
354
+ ::anno::ui_order(8)
355
+ ]],
356
+ float candy_flip = 0.f [[
357
+ ::anno::description("Changes the tint of the coating to fade towards the flake color to produce a candy paint effect. "),
358
+ ::anno::display_name("Candy Coating"),
359
+ ::anno::in_group("Flakes"),
360
+ ::anno::hard_range(0.f, 1.f),
361
+ ::anno::ui_order(9)
362
+ ]],
363
+ float flake_layer_visibility = 0.f [[
364
+ ::anno::description("Adjusts how much the flakes contribute to the final look. Lowering the value makes the flakes appear more transparent. At value of 0.0 no flakes are not rendered at all"),
365
+ ::anno::display_name("Flakes Visibility"),
366
+ ::anno::enable_if("flakes_density > 0.0f"),
367
+ ::anno::in_group("Flakes"),
368
+ ::anno::hard_range(0.f, 1.f),
369
+ ::anno::ui_order(10)
370
+ ]],
371
+ uniform texture_2d roughness_texture = texture_2d("./textures/smudges_scratches_A_rough.jpg", ::tex::gamma_linear) [[
372
+ ::anno::description("Texture to use for adding variation to the roughness on the clearcoat"),
373
+ ::anno::display_name("Roughness Texture"),
374
+ ::anno::in_group("Clearcoat"),
375
+ ::anno::ui_order(11)
376
+ ]],
377
+ float clearcoat_rough = 0.f [[
378
+ ::anno::description("The roughness of the clearcoat"),
379
+ ::anno::display_name("Clearcoat Roughness"),
380
+ ::anno::in_group("Clearcoat"),
381
+ ::anno::hard_range(0.f, 1.f),
382
+ ::anno::ui_order(12)
383
+ ]],
384
+ float roughness_variation = 0.f [[
385
+ ::anno::description("The amount of variation to apply to the roughness. This parameter only has an effect when the clearcoat roughness is not zero or one"),
386
+ ::anno::display_name("Clearcoat Roughness Variation"),
387
+ ::anno::in_group("Clearcoat"),
388
+ ::anno::hard_range(0.f, 1.f),
389
+ ::anno::ui_order(13)
390
+ ]],
391
+ float clearcoat_ior = 1.600f [[
392
+ ::anno::description("The index of refraction for the clearcoat layer"),
393
+ ::anno::display_name("Clearcoat Index of Refraction"),
394
+ ::anno::in_group("Clearcoat"),
395
+ ::anno::soft_range(1.f, 3.f),
396
+ ::anno::hard_range(1.f, 5.f),
397
+ ::anno::ui_order(14)
398
+ ]],
399
+ float clearcoat_visibility = 1.f [[
400
+ ::anno::description("While the full value is the correct physical behavior of the clearcoat, lowering the value to reduce the amount of reflection for artistic purposes"),
401
+ ::anno::display_name("Clearcoat Visibility"),
402
+ ::anno::in_group("Clearcoat"),
403
+ ::anno::hard_range(0.f, 1.f),
404
+ ::anno::ui_order(15)
405
+ ]],
406
+ uniform float orange_peel_strength = 0.f [[
407
+ ::anno::description("Strength of the bump mapping effect"),
408
+ ::anno::display_name("Coat Orange Peel Strength"),
409
+ ::anno::in_group("Clearcoat"),
410
+ ::anno::soft_range(0.f, 1.f),
411
+ ::anno::hard_range(0.f, 1.f),
412
+ ::anno::ui_order(16)
413
+ ]],
414
+ uniform float orange_peel_size = 1.f [[
415
+ ::anno::description("Size of the biggest feature of the pattern"),
416
+ ::anno::display_name("Coat Orange Peel Size"),
417
+ ::anno::soft_range(0.f, 1.f),
418
+ ::anno::in_group("Clearcoat"),
419
+ ::anno::ui_order(17)
420
+ ]],
421
+ float2 texture_translate = float2(0.f) [[
422
+ ::anno::description("Controls the position of the texture."),
423
+ ::anno::display_name("Texture Translate"),
424
+ ::anno::in_group("Transform"),
425
+ ::anno::ui_order(18)
426
+ ]],
427
+ float texture_rotate = 0.f [[
428
+ ::anno::description("Rotates angle of the texture in degrees."),
429
+ ::anno::display_name("Texture Rotate"),
430
+ ::anno::in_group("Transform"),
431
+ ::anno::soft_range(0.f, 360.f),
432
+ ::anno::ui_order(19)
433
+ ]],
434
+ float2 texture_scale = float2(1.f) [[
435
+ ::anno::description("Larger numbers increase the size."),
436
+ ::anno::display_name("Texture Scale"),
437
+ ::anno::in_group("Transform"),
438
+ ::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
439
+ ::anno::ui_order(20)
440
+ ]],
441
+ uniform bool roundcorners_enable = false [[
442
+ ::anno::description("Enables the round corneer effect. Comes at a slight performance cost as additional raytracing calls are rquired to evaluate the round corner effect"),
443
+ ::anno::display_name("Enable Round Corners"),
444
+ ::anno::in_group("Round Corners"),
445
+ ::anno::ui_order(22)
446
+ ]],
447
+ uniform float roundcorners_radius_mm = 1.5f [[
448
+ ::anno::description("Radius of the rounded corners in millimeters"),
449
+ ::anno::display_name("Round Corner Radius (mm)"),
450
+ ::anno::in_group("Round Corners"),
451
+ ::anno::soft_range(0.f, 10.f),
452
+ ::anno::ui_order(23)
453
+ ]],
454
+ uniform bool roundcorners_across_materials = false [[
455
+ ::anno::description("Applies the round corner effect across different materials when enabled."),
456
+ ::anno::display_name("Across Materials"),
457
+ ::anno::in_group("Round Corners"),
458
+ ::anno::ui_order(27)
459
+ ]],
460
+ uniform int uv_space_index = 0 [[
461
+ ::anno::description("Use selected UV space for material."),
462
+ ::anno::display_name("UV Space Index"),
463
+ ::anno::in_group("Advanced"),
464
+ ::anno::ui_order(28)
465
+ ]]
466
+
467
+
468
+ )
469
+ [[
470
+ ::anno::author("NVIDIA"),
471
+ ::anno::display_name("Carpaint Solid"),
472
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
473
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design")),
474
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Carpaint_Solid.png"),
475
+ ::anno::copyright_notice(COPYRIGHT)
476
+ ]]
477
+ =
478
+ let {
479
+ bool tmp0 = false;
480
+ // Tried Scaling factors for flakes to fit 1mm size both in Substance Designer and (Iray for) Rhino
481
+ // Rhino scaling factor: 1492.537313432835
482
+ // Substance Designer Scaling factor: 1158.6829010512
483
+ float flakes_size_m = (1492.537313432835f/flakes_size); // Flake scaling adjustment, so that flake size is in mm
484
+ float flake_layer_visibility_m = 1.0f - flake_layer_visibility;
485
+
486
+ ::base::texture_coordinate_info coord_info = ::base::coordinate_source(::base::texture_coordinate_object, 0);
487
+
488
+ float scale_trans = ::state::transform_scale(::state::coordinate_object, ::state::coordinate_world, 1.0f);
489
+
490
+ float3 source_coord = coord_info.position * ::state::meters_per_scene_unit() * scale_trans;
491
+
492
+ ::base::texture_coordinate_info transformed_coord = ::base::transform_coordinate(
493
+ ::base::rotation_translation_scale(float3(0.0f), float3(0.0f), float3(scale_trans)),
494
+ coord_info
495
+ );
496
+
497
+ material_surface tmp1(::df::fresnel_layer(clearcoat_ior, clearcoat_visibility, ::df::simple_glossy_bsdf(histogram_range(::base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, roughness_variation, clearcoat_rough) * histogram_range(::base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, roughness_variation, clearcoat_rough), histogram_range(::base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, roughness_variation, clearcoat_rough) * histogram_range(::base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, roughness_variation, clearcoat_rough), nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), flakes_tint, ::base::color_layer_blend, candy_flip).tint, nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), flakes_tint, ::base::color_layer_blend, candy_flip).tint, ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::directional_factor(color(1.f, 1.f, 1.f), color(1.f - edge_darkening), 1.f, flakes_density > 0.f ? ::df::weighted_layer(::math::lerp(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density).priority > 0.001f ? 1.0f : 0.0f , 0.f, flake_layer_visibility_m), ::df::microfacet_ggx_smith_bsdf(flakes_roughness * 0.340000004f, flakes_roughness * 0.340000004f, flakes_tint, color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::directional_factor(base_color, color(1.f - edge_darkening), 1.f, ::df::weighted_layer(ground_coat_influence * 0.5f, ::df::microfacet_ggx_vcavities_bsdf(0.40959999f, 0.40959999f, color(ground_coat_brightness * 0.949999988f + 0.0500000007f), color(ground_coat_brightness * 0.949999988f + 0.0500000007f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(base_color, 0.f), ::state::normal())), float3(flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.x, flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.y, flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.z)) : ::df::directional_factor(base_color, color(1.f - edge_darkening), 1.f, ::df::weighted_layer(ground_coat_influence * 0.5f, ::df::microfacet_ggx_vcavities_bsdf(0.40959999f, 0.40959999f, color(ground_coat_brightness * 0.949999988f + 0.0500000007f), color(ground_coat_brightness * 0.949999988f + 0.0500000007f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(base_color, 0.f), ::state::normal()))), orange_peel_strength > 0.f ? ::base::perlin_noise_bump_texture(transformed_coord, orange_peel_strength, orange_peel_size, false, false, 0.f, 2, false, false, float3(0.f), 1.f, 0.f, 1.f, ::state::normal()) : ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
498
+ material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
499
+ color tmp3 = color(1.f, 1.f, 1.f);
500
+ material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
501
+ material_geometry tmp5(float3(0.f), 1.f, roundcorners_enable ? ::state::rounded_corner_normal(roundcorners_radius_mm * 0.00100000005f, roundcorners_across_materials, 1.f) : ::state::normal());
502
+ hair_bsdf tmp6 = hair_bsdf();
503
+ } in
504
+ material(
505
+ thin_walled: tmp0,
506
+ surface: tmp1,
507
+ backface: tmp2,
508
+ ior: tmp3,
509
+ volume: tmp4,
510
+ geometry: tmp5,
511
+ hair: tmp6);
512
+
513
+
514
+ // ------------------- 2 (Plain White) -------------------
515
+ export material White(*)
516
+ [[
517
+ ::anno::author("NVIDIA"),
518
+ ::anno::display_name("Carpaint Solid - White"),
519
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
520
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "white", "light", "neutral")),
521
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.White.png"),
522
+ ::anno::copyright_notice(COPYRIGHT)
523
+ ]]
524
+ = Carpaint_Solid(
525
+ base_color: color(0.768151f, 0.768151f, 0.768151f),
526
+ ground_coat_influence: 0.0f,
527
+ ground_coat_brightness: 0.24f,
528
+ edge_darkening: 0.56f,
529
+ flakes_tint: color(0.552011f, 0.552011f, 0.552011f),
530
+ flakes_density: 0.0f,
531
+ spread: 0.47f,
532
+ flakes_roughness: 0.34f,
533
+ flakes_size: 0.5f,
534
+ candy_flip: 0.0f,
535
+ flake_layer_visibility: 1.0f,
536
+ // roughness_texture:
537
+ clearcoat_rough: 0.05f,
538
+ roughness_variation: 0.34f,
539
+ clearcoat_ior: 1.6f,
540
+ clearcoat_visibility: 1.0f,
541
+ orange_peel_strength: 0.0f,
542
+ orange_peel_size: 0.01f
543
+ );
544
+
545
+ // ------------------- 3 (vintage White) -------------------
546
+ export material Vintage_White(*)
547
+ [[
548
+ ::anno::author("NVIDIA"),
549
+ ::anno::display_name("Carpaint Solid - Vintage White"),
550
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
551
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "vintage", "white", "light", "neutral")),
552
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_White.png"),
553
+ ::anno::copyright_notice(COPYRIGHT)
554
+ ]]
555
+ = Carpaint_Solid(
556
+ base_color: color(0.672443f, 0.630757f, 0.502886f),
557
+ ground_coat_influence: 0.0f,
558
+ ground_coat_brightness: 0.24f,
559
+ edge_darkening: 0.28f,
560
+ flakes_tint: color(0.603827f, 0.665387f, 0.693872f),
561
+ flakes_density: 0.0f,
562
+ spread: 0.41f,
563
+ flakes_roughness: 0.32f,
564
+ flakes_size: 0.5f,
565
+ candy_flip: 0.0f,
566
+ flake_layer_visibility: 0.0f,
567
+ // roughness_texture:
568
+ clearcoat_rough: 0.05f,
569
+ roughness_variation: 0.34f,
570
+ clearcoat_ior: 1.6f,
571
+ clearcoat_visibility: 1.0f,
572
+ orange_peel_strength: 0.06f,
573
+ orange_peel_size: 0.01f
574
+ );
575
+
576
+
577
+ // ------------------- 4 (Black) -------------------
578
+ export material Black(*)
579
+ [[
580
+ ::anno::author("NVIDIA"),
581
+ ::anno::display_name("Carpaint Solid - Black"),
582
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
583
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "black", "dark", "neutral")),
584
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Black.png"),
585
+ ::anno::copyright_notice(COPYRIGHT)
586
+ ]]
587
+ = Carpaint_Solid(
588
+ base_color: color(0.006049f, 0.006049f, 0.006049f),
589
+ ground_coat_influence: 0.97f,
590
+ ground_coat_brightness: 0.17f,
591
+ edge_darkening: 0.57f,
592
+ flakes_tint: color(0.552011f, 0.552011f, 0.552011f),
593
+ flakes_density: 0.0f,
594
+ spread: 0.47f,
595
+ flakes_roughness: 0.34f,
596
+ flakes_size: 0.5f,
597
+ candy_flip: 0.0f,
598
+ flake_layer_visibility: 0.0f,
599
+ // roughness_texture:
600
+ clearcoat_rough: 0.05f,
601
+ roughness_variation: 0.36f,
602
+ clearcoat_ior: 1.6f,
603
+ clearcoat_visibility: 1.0f,
604
+ orange_peel_strength: 0.0f,
605
+ orange_peel_size: 0.01f
606
+ );
607
+
608
+ // ------------------- 5 (Black Matte) -------------------
609
+ export material Black_Matte(*)
610
+ [[
611
+ ::anno::author("NVIDIA"),
612
+ ::anno::display_name("Carpaint Solid - Black Matte"),
613
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
614
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "black", "dark", "neutral")),
615
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Black_Matte.png"),
616
+ ::anno::copyright_notice(COPYRIGHT)
617
+ ]]
618
+ = Carpaint_Solid(
619
+ base_color: color(0.006995f, 0.006995f, 0.006995f),
620
+ ground_coat_influence: 0.11f,
621
+ ground_coat_brightness: 0.64f,
622
+ edge_darkening: 0.0f,
623
+ flakes_tint: color(0.577580f, 0.577580f, 0.577580f),
624
+ flakes_density: 0.12f,
625
+ spread: 0.39f,
626
+ flakes_roughness: 0.5f,
627
+ flakes_size: 0.5f,
628
+ candy_flip: 0.0f,
629
+ flake_layer_visibility: 0.0f,
630
+ // roughness_texture:
631
+ clearcoat_rough: 0.48f,
632
+ roughness_variation: 0.14f,
633
+ clearcoat_ior: 1.6f,
634
+ clearcoat_visibility: 1.0f,
635
+ orange_peel_strength: 0.0f,
636
+ orange_peel_size: 0.01f
637
+ );
638
+
639
+ // ------------------- 6 -------------------
640
+ export material Agent_Gray(*)
641
+ [[
642
+ ::anno::author("NVIDIA"),
643
+ ::anno::display_name("Carpaint Solid - Agent Gray"),
644
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
645
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "gray", "neutral")),
646
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Agent_Gray.png"),
647
+ ::anno::copyright_notice(COPYRIGHT)
648
+ ]]
649
+ = Carpaint_Solid(
650
+ base_color: color(0.234551f, 0.254152f, 0.234551f),
651
+ ground_coat_influence: 0.11f,
652
+ ground_coat_brightness: 0.64f,
653
+ edge_darkening: 0.0f,
654
+ flakes_tint: color(0.644480f, 0.701102f, 0.644480f),
655
+ flakes_density: 0.2f,
656
+ spread: 0.25f,
657
+ flakes_roughness: 0.5f,
658
+ flakes_size: 0.5f,
659
+ candy_flip: 0.0f,
660
+ flake_layer_visibility: 0.0f,
661
+ // roughness_texture:
662
+ clearcoat_rough: 0.06f,
663
+ roughness_variation: 0.36f,
664
+ clearcoat_ior: 1.6f,
665
+ clearcoat_visibility: 1.0f,
666
+ orange_peel_strength: 0.0f,
667
+ orange_peel_size: 0.01f
668
+ );
669
+
670
+
671
+ // ------------------- 7 (Agent Gray Matte)-------------------
672
+ export material Agent_Gray_Matte(*)
673
+ [[
674
+ ::anno::author("NVIDIA"),
675
+ ::anno::display_name("Carpaint Solid - Agent Gray Matte"),
676
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
677
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "matte", "gray", "neutral")),
678
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Agent_Gray_Matte.png"),
679
+ ::anno::copyright_notice(COPYRIGHT)
680
+ ]]
681
+ = Carpaint_Solid(
682
+ base_color: color(0.234551f, 0.254152f, 0.234551f),
683
+ ground_coat_influence: 0.11f,
684
+ ground_coat_brightness: 0.64f,
685
+ edge_darkening: 0.0f,
686
+ flakes_tint: color(0.644480f, 0.701102f, 0.644480f),
687
+ flakes_density: 0.21f,
688
+ spread: 0.25f,
689
+ flakes_roughness: 0.5f,
690
+ flakes_size: 0.5f,
691
+ candy_flip: 0.0f,
692
+ flake_layer_visibility: 0.0f,
693
+ // roughness_texture:
694
+ clearcoat_rough: 0.4f,
695
+ roughness_variation: 0.14f,
696
+ clearcoat_ior: 1.6f,
697
+ clearcoat_visibility: 1.0f,
698
+ orange_peel_strength: 0.0f,
699
+ orange_peel_size: 0.01f
700
+ );
701
+
702
+ // ------------------- 8 (Blood Red)-------------------
703
+ export material Blood_Red(*)
704
+ [[
705
+ ::anno::author("NVIDIA"),
706
+ ::anno::display_name("Carpaint Solid - Blood Red"),
707
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
708
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "saturated")),
709
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Blood_Red.png"),
710
+ ::anno::copyright_notice(COPYRIGHT)
711
+ ]]
712
+ = Carpaint_Solid(
713
+ base_color: color(0.462077f, 0.022174f, 0.015209f),
714
+ ground_coat_influence: 0.03f,
715
+ ground_coat_brightness: 0.24f,
716
+ edge_darkening: 0.56f,
717
+ flakes_tint: color(0.552011f, 0.552011f, 0.552011f),
718
+ flakes_density: 0.0f,
719
+ spread: 0.47f,
720
+ flakes_roughness: 0.34f,
721
+ flakes_size: 0.5f,
722
+ candy_flip: 0.0f,
723
+ flake_layer_visibility: 0.0f,
724
+ // roughness_texture:
725
+ clearcoat_rough: 0.05f,
726
+ roughness_variation: 0.36f,
727
+ clearcoat_ior: 1.6f,
728
+ clearcoat_visibility: 1.0f,
729
+ orange_peel_strength: 0.0f,
730
+ orange_peel_size: 0.01f
731
+ );
732
+
733
+ // ------------------- 9 (Tarreri Red)-------------------
734
+ export material Tarreri_Red(*)
735
+ [[
736
+ ::anno::author("NVIDIA"),
737
+ ::anno::display_name("Carpaint Solid - Tarreri Red"),
738
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
739
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "saturated")),
740
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Tarreri_Red.png"),
741
+ ::anno::copyright_notice(COPYRIGHT)
742
+ ]]
743
+ = Carpaint_Solid(
744
+ base_color: color(0.672443f, 0.038204f, 0.026241f),
745
+ ground_coat_influence: 0.03f,
746
+ ground_coat_brightness: 0.24f,
747
+ edge_darkening: 0.56f,
748
+ flakes_tint: color(0.672443f, 0.095307f, 0.078187f),
749
+ flakes_density: 0.0f,
750
+ spread: 0.47f,
751
+ flakes_roughness: 0.34f,
752
+ flakes_size: 0.5f,
753
+ candy_flip: 0.0f,
754
+ flake_layer_visibility: 0.0f,
755
+ // roughness_texture:
756
+ clearcoat_rough: 0.05f,
757
+ roughness_variation: 0.36f,
758
+ clearcoat_ior: 1.6f,
759
+ clearcoat_visibility: 1.0f,
760
+ orange_peel_strength: 0.0f,
761
+ orange_peel_size: 0.01f
762
+ );
763
+
764
+
765
+ // ------------------- 10 (Dark Decent Red)-------------------
766
+ export material Dark_Decent_Red(*)
767
+ [[
768
+ ::anno::author("NVIDIA"),
769
+ ::anno::display_name("Carpaint Solid - Dark Decent Red"),
770
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
771
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "dark")),
772
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Dark_Decent_Red.png"),
773
+ ::anno::copyright_notice(COPYRIGHT)
774
+ ]]
775
+ = Carpaint_Solid(
776
+ base_color: color(0.135633f, 0.012983f, 0.027321f),
777
+ ground_coat_influence: 0.19f,
778
+ ground_coat_brightness: 0.24f,
779
+ edge_darkening: 0.1f,
780
+ flakes_tint: color(0.135633f, 0.012983f, 0.027321f),
781
+ flakes_density: 0.0f,
782
+ spread: 0.38f,
783
+ flakes_roughness: 0.18f,
784
+ flakes_size: 0.5f,
785
+ candy_flip: 0.0f,
786
+ flake_layer_visibility: 0.0f,
787
+ // roughness_texture:
788
+ clearcoat_rough: 0.05f,
789
+ roughness_variation: 0.36f,
790
+ clearcoat_ior: 1.6f,
791
+ clearcoat_visibility: 1.0f,
792
+ orange_peel_strength: 0.0f,
793
+ orange_peel_size: 0.01f
794
+ );
795
+
796
+ // ------------------- 11 (Vintage Maroon)-------------------
797
+ export material Vintage_Maroon(*)
798
+ [[
799
+ ::anno::author("NVIDIA"),
800
+ ::anno::display_name("Carpaint Solid - Vintage Maroon"),
801
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
802
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "dark", "brown", "red")),
803
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_Maroon.png"),
804
+ ::anno::copyright_notice(COPYRIGHT)
805
+ ]]
806
+ = Carpaint_Solid(
807
+ base_color: color(0.283149f, 0.054480f, 0.063010f),
808
+ ground_coat_influence: 0.19f,
809
+ ground_coat_brightness: 0.24f,
810
+ edge_darkening: 0.1f,
811
+ flakes_tint: color(0.283149f, 0.054480f, 0.063010f),
812
+ flakes_density: 0.0f,
813
+ spread: 0.38f,
814
+ flakes_roughness: 0.3f,
815
+ flakes_size: 0.5f,
816
+ candy_flip: 0.0f,
817
+ flake_layer_visibility: 0.0f,
818
+ // roughness_texture:
819
+ clearcoat_rough: 0.05f,
820
+ roughness_variation: 0.36f,
821
+ clearcoat_ior: 1.6f,
822
+ clearcoat_visibility: 1.0f,
823
+ orange_peel_strength: 0.0f,
824
+ orange_peel_size: 0.01f
825
+ );
826
+
827
+ // ------------------- 12 -------------------
828
+ export material Orange(*)
829
+ [[
830
+ ::anno::author("NVIDIA"),
831
+ ::anno::display_name("Carpaint Solid - Orange"),
832
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
833
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "orange", "warm", "saturated")),
834
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Orange.png"),
835
+ ::anno::copyright_notice(COPYRIGHT)
836
+ ]]
837
+ = Carpaint_Solid(
838
+ base_color: color(0.623960f, 0.262251f, 0.022174f),
839
+ ground_coat_influence: 0.11f,
840
+ ground_coat_brightness: 0.64f,
841
+ edge_darkening: 0.0f,
842
+ flakes_tint: color(0.017642f, 0.262251f, 0.623960f),
843
+ flakes_density: 0.59f,
844
+ spread: 0.25f,
845
+ flakes_roughness: 0.5f,
846
+ flakes_size: 0.5f,
847
+ candy_flip: 0.0f,
848
+ flake_layer_visibility: 0.0f,
849
+ // roughness_texture:
850
+ clearcoat_rough: 0.06f,
851
+ roughness_variation: 0.36f,
852
+ clearcoat_ior: 1.6f,
853
+ clearcoat_visibility: 1.0f,
854
+ orange_peel_strength: 0.0f,
855
+ orange_peel_size: 0.01f
856
+ );
857
+
858
+
859
+ // ------------------- 13 (Brown Matte) -------------------
860
+ export material Brown_Matte(*)
861
+ [[
862
+ ::anno::author("NVIDIA"),
863
+ ::anno::display_name("Carpaint Solid - Brown Matte"),
864
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
865
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "brown", "matte")),
866
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Brown_Matte.png"),
867
+ ::anno::copyright_notice(COPYRIGHT)
868
+ ]]
869
+ = Carpaint_Solid(
870
+ base_color: color(0.300544f, 0.250158f, 0.187821f),
871
+ ground_coat_influence: 0.11f,
872
+ ground_coat_brightness: 0.64f,
873
+ edge_darkening: 0.0f,
874
+ flakes_tint: color(0.300544f, 0.250158f, 0.187821f),
875
+ flakes_density: 0.0f,
876
+ spread: 0.39f,
877
+ flakes_roughness: 0.5f,
878
+ flakes_size: 0.5f,
879
+ candy_flip: 0.0f,
880
+ flake_layer_visibility: 0.0f,
881
+ // roughness_texture:
882
+ clearcoat_rough: 0.5f,
883
+ roughness_variation: 0.14f,
884
+ clearcoat_ior: 1.6f,
885
+ clearcoat_visibility: 1.0f,
886
+ orange_peel_strength: 0.0f,
887
+ orange_peel_size: 0.01f
888
+ );
889
+
890
+
891
+ // ------------------- 14 (Bumblebee) -------------------
892
+ export material Bumblebee(*)
893
+ [[
894
+ ::anno::author("NVIDIA"),
895
+ ::anno::display_name("Carpaint Solid - Bumblebee"),
896
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
897
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "yellow", "warm", "light", "saturated")),
898
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Bumblebee.png"),
899
+ ::anno::copyright_notice(COPYRIGHT)
900
+ ]]
901
+ = Carpaint_Solid(
902
+ base_color: color(0.775822f, 0.564712f, 0.030713f),
903
+ ground_coat_influence: 0.09f,
904
+ ground_coat_brightness: 0.64f,
905
+ edge_darkening: 0.1f,
906
+ flakes_tint: color(1.000000f, 0.479320f, 0.095307f),
907
+ flakes_density: 0.0f,
908
+ spread: 0.54f,
909
+ flakes_roughness: 0.37f,
910
+ flakes_size: 0.5f,
911
+ candy_flip: 0.0f,
912
+ flake_layer_visibility: 0.0f,
913
+ // roughness_texture:
914
+ clearcoat_rough: 0.06f,
915
+ roughness_variation: 0.14f,
916
+ clearcoat_ior: 1.6f,
917
+ clearcoat_visibility: 1.0f,
918
+ orange_peel_strength: 0.0f,
919
+ orange_peel_size: 0.01f
920
+ );
921
+
922
+
923
+ // ------------------- 15 (Wasp) -------------------
924
+ export material Wasp(*)
925
+ [[
926
+ ::anno::author("NVIDIA"),
927
+ ::anno::display_name("Carpaint Solid - Wasp"),
928
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
929
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "yellow", "warm", "light", "saturated")),
930
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Wasp.png"),
931
+ ::anno::copyright_notice(COPYRIGHT)
932
+ ]]
933
+ = Carpaint_Solid(
934
+ base_color: color(0.701102f, 0.603827f, 0.022174f),
935
+ ground_coat_influence: 0.0f,
936
+ ground_coat_brightness: 0.5f,
937
+ edge_darkening: 0.12f,
938
+ flakes_tint: color(1.000000f, 0.479320f, 0.076185f),
939
+ flakes_density: 0.0f,
940
+ spread: 0.54f,
941
+ flakes_roughness: 0.37f,
942
+ flakes_size: 0.5f,
943
+ candy_flip: 0.0f,
944
+ flake_layer_visibility: 0.0f,
945
+ // roughness_texture:
946
+ clearcoat_rough: 0.06f,
947
+ roughness_variation: 0.14f,
948
+ clearcoat_ior: 1.6f,
949
+ clearcoat_visibility: 1.0f,
950
+ orange_peel_strength: 0.0f,
951
+ orange_peel_size: 0.01f
952
+ );
953
+
954
+ // ------------------- 16 (Feline Dark Green)-------------------
955
+ export material Feline_Dark_Green(*)
956
+ [[
957
+ ::anno::author("NVIDIA"),
958
+ ::anno::display_name("Carpaint Solid - Feline Dark Green"),
959
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
960
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "green", "dark")),
961
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Feline_Dark_Green.png"),
962
+ ::anno::copyright_notice(COPYRIGHT)
963
+ ]]
964
+ = Carpaint_Solid(
965
+ base_color: color(0.010330f, 0.099899f, 0.043735f),
966
+ ground_coat_influence: 0.19f,
967
+ ground_coat_brightness: 0.24f,
968
+ edge_darkening: 0.1f,
969
+ flakes_tint: color(0.010330f, 0.099899f, 0.043735f),
970
+ flakes_density: 0.0f,
971
+ spread: 0.38f,
972
+ flakes_roughness: 0.3f,
973
+ flakes_size: 0.5f,
974
+ candy_flip: 0.0f,
975
+ flake_layer_visibility: 0.0f,
976
+ // roughness_texture:
977
+ clearcoat_rough: 0.05f,
978
+ roughness_variation: 0.36f,
979
+ clearcoat_ior: 1.6f,
980
+ clearcoat_visibility: 1.0f,
981
+ orange_peel_strength: 0.0f,
982
+ orange_peel_size: 0.01f
983
+ );
984
+
985
+
986
+ // ------------------- 17 (Hunting Green Matte) -------------------
987
+ export material Hunting_Green_Matte(*)
988
+ [[
989
+ ::anno::author("NVIDIA"),
990
+ ::anno::display_name("Carpaint Solid - Hunting Green Matte"),
991
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
992
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "green", "dark", "matte")),
993
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Hunting_Green_Matte.png"),
994
+ ::anno::copyright_notice(COPYRIGHT)
995
+ ]]
996
+ = Carpaint_Solid(
997
+ base_color: color(0.162029f, 0.187821f, 0.114435f),
998
+ ground_coat_influence: 0.11f,
999
+ ground_coat_brightness: 0.64f,
1000
+ edge_darkening: 0.0f,
1001
+ flakes_tint: color(0.318547f, 0.456411f, 0.127438f),
1002
+ flakes_density: 0.0f,
1003
+ spread: 0.3f,
1004
+ flakes_roughness: 0.5f,
1005
+ flakes_size: 0.5f,
1006
+ candy_flip: 0.0f,
1007
+ flake_layer_visibility: 0.0f,
1008
+ // roughness_texture:
1009
+ clearcoat_rough: 0.4f,
1010
+ roughness_variation: 0.14f,
1011
+ clearcoat_ior: 1.6f,
1012
+ clearcoat_visibility: 1.0f,
1013
+ orange_peel_strength: 0.0f,
1014
+ orange_peel_size: 0.01f
1015
+ );
1016
+
1017
+
1018
+ // ------------------- 18 (Vintage Sky Blue) -------------------
1019
+ export material Vintage_Sky_Blue(*)
1020
+ [[
1021
+ ::anno::author("NVIDIA"),
1022
+ ::anno::display_name("Carpaint Solid - Vintage Sky Blue"),
1023
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
1024
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "light", "cool")),
1025
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_Sky_Blue.png"),
1026
+ ::anno::copyright_notice(COPYRIGHT)
1027
+ ]]
1028
+ = Carpaint_Solid(
1029
+ base_color: color(0.318547f, 0.564712f, 0.603827f),
1030
+ ground_coat_influence: 0.06f,
1031
+ ground_coat_brightness: 0.24f,
1032
+ edge_darkening: 0.0f,
1033
+ flakes_tint: color(0.603827f, 127.338437f, 0.693872f),
1034
+ flakes_density: 0.0f,
1035
+ spread: 0.41f,
1036
+ flakes_roughness: 0.32f,
1037
+ flakes_size: 0.5f,
1038
+ candy_flip: 0.0f,
1039
+ flake_layer_visibility: 0.0f,
1040
+ // roughness_texture:
1041
+ clearcoat_rough: 0.06f,
1042
+ roughness_variation: 0.34f,
1043
+ clearcoat_ior: 1.6f,
1044
+ clearcoat_visibility: 1.0f,
1045
+ orange_peel_strength: 0.06f,
1046
+ orange_peel_size: 0.01f
1047
+ );
1048
+
1049
+
1050
+ // ------------------- 19 (Blue)-------------------
1051
+ export material Blue(*)
1052
+ [[
1053
+ ::anno::author("NVIDIA"),
1054
+ ::anno::display_name("Carpaint Solid - Blue"),
1055
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
1056
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "cool", "saturated")),
1057
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Blue.png"),
1058
+ ::anno::copyright_notice(COPYRIGHT)
1059
+ ]]
1060
+ = Carpaint_Solid(
1061
+ base_color: color(0.012983f, 0.296138f, 0.462077f),
1062
+ ground_coat_influence: 0.00f,
1063
+ ground_coat_brightness: 0.24f,
1064
+ edge_darkening: 0.0f,
1065
+ flakes_tint: color(0.012983f, 0.234551f, 0.665387f),
1066
+ flakes_density: 0.5f,
1067
+ spread: 0.47f,
1068
+ flakes_roughness: 0.34f,
1069
+ flakes_size: 0.5f,
1070
+ candy_flip: 0.0f,
1071
+ flake_layer_visibility: 0.0f,
1072
+ // roughness_texture:
1073
+ clearcoat_rough: 0.06f,
1074
+ roughness_variation: 0.36f,
1075
+ clearcoat_ior: 1.6f,
1076
+ clearcoat_visibility: 1.0f,
1077
+ orange_peel_strength: 0.0f,
1078
+ orange_peel_size: 0.01f
1079
+ );
1080
+
1081
+
1082
+
1083
+ // ------------------- 20 (Dark Decent Blue) -------------------
1084
+ export material Dark_Decent_Blue(*)
1085
+ [[
1086
+ ::anno::author("NVIDIA"),
1087
+ ::anno::display_name("Carpaint Solid - Dark Decent Blue"),
1088
+ ::anno::description("Multilayered carpaint material with metallic flakes"),
1089
+ ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "cool", "dark")),
1090
+ ::anno::thumbnail("./.thumbs/Carpaint_Solid.Dark_Decent_Blue.png"),
1091
+ ::anno::copyright_notice(COPYRIGHT)
1092
+ ]]
1093
+ = Carpaint_Solid(
1094
+ base_color: color(0.013702f, 0.046665f, 0.147027f),
1095
+ ground_coat_influence: 0.19f,
1096
+ ground_coat_brightness: 0.24f,
1097
+ edge_darkening: 0.1f,
1098
+ flakes_tint: color(0.012983f, 0.234551f, 0.665387f),
1099
+ flakes_density: 0.5f,
1100
+ spread: 0.25f,
1101
+ flakes_roughness: 0.34f,
1102
+ flakes_size: 0.5f,
1103
+ candy_flip: 0.0f,
1104
+ flake_layer_visibility: 0.0f,
1105
+ // roughness_texture:
1106
+ clearcoat_rough: 0.06f,
1107
+ roughness_variation: 0.36f,
1108
+ clearcoat_ior: 1.6f,
1109
+ clearcoat_visibility: 1.0f,
1110
+ orange_peel_strength: 0.0f,
1111
+ orange_peel_size: 0.01f
1112
+ );
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Linen_White.mdl ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ mdl 1.4;
2
+
3
+ import ::OmniPBR::OmniPBR;
4
+ import ::anno::author;
5
+ import ::anno::description;
6
+ import ::anno::display_name;
7
+ import ::anno::key_words;
8
+ import ::anno::version;
9
+ import ::tex::gamma_mode;
10
+ import ::state::normal;
11
+
12
+ export material Linen_White(*)
13
+ = ::OmniPBR::OmniPBR(
14
+ diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
15
+ diffuse_texture: texture_2d("./Linen_White/Linen_White_BaseColor.png" /* tag 2956, version 3373013613 */, ::tex::gamma_srgb),
16
+ albedo_desaturation: 0.f,
17
+ albedo_add: 0.f,
18
+ albedo_brightness: 1.f,
19
+ diffuse_tint: color(1.f, 1.f, 1.f),
20
+ reflection_roughness_constant: 0.5f,
21
+ reflection_roughness_texture_influence: 1.f,
22
+ reflectionroughness_texture: texture_2d(),
23
+ metallic_constant: 0.f,
24
+ metallic_texture_influence: 1.f,
25
+ metallic_texture: texture_2d(),
26
+ specular_level: 0.5f,
27
+ enable_ORM_texture: true,
28
+ ORM_texture: texture_2d("./Linen_White/Linen_White_ORM.png", ::tex::gamma_linear),
29
+ ao_to_diffuse: 0.f,
30
+ ao_texture: texture_2d(),
31
+ enable_emission: false,
32
+ emissive_color: color(1.f, 0.100000001f, 0.100000001f),
33
+ emissive_mask_texture: texture_2d(),
34
+ emissive_intensity: 40.f,
35
+ bump_factor: 1.f,
36
+ normalmap_texture: texture_2d("./Linen_White/Linen_White_N.png", ::tex::gamma_linear),
37
+ detail_bump_factor: 1.0f,
38
+ detail_normalmap_texture: texture_2d("./Linen_White/Linen_White_DN.png", ::tex::gamma_linear),
39
+ project_uvw: false,
40
+ world_or_object: false,
41
+ uv_space_index: 0,
42
+ texture_translate: float2(0.f),
43
+ texture_rotate: 0.f,
44
+ texture_scale: float2(1.f),
45
+ detail_texture_translate: float2(0.f),
46
+ detail_texture_rotate: 0.f,
47
+ detail_texture_scale: float2(10.f,10.f));
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBR.mdl ADDED
@@ -0,0 +1,419 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /***************************************************************************************************
2
+ * Copyright 2022 NVIDIA Corporation. All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions
6
+ * are met:
7
+ * * Redistributions of source code must retain the above copyright
8
+ * notice, this list of conditions and the following disclaimer.
9
+ * * Redistributions in binary form must reproduce the above copyright
10
+ * notice, this list of conditions and the following disclaimer in the
11
+ * documentation and/or other materials provided with the distribution.
12
+ * * Neither the name of NVIDIA CORPORATION nor the names of its
13
+ * contributors may be used to endorse or promote products derived
14
+ * from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
17
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ **************************************************************************************************/
28
+
29
+ mdl 1.7;
30
+
31
+ import ::df::*;
32
+ import ::state::*;
33
+ import ::math::*;
34
+ import ::base::*;
35
+ import ::state::*;
36
+ import ::tex::*;
37
+ import ::anno::*;
38
+
39
+ import ::debug::*;
40
+
41
+ import ::nvidia::core_definitions::file_texture;
42
+ import ::nvidia::core_definitions::normalmap_texture;
43
+
44
+ import OmniPBR_ClearCoat::*;
45
+
46
+
47
+ // OmniPBR //
48
+
49
+ export material OmniPBR(
50
+
51
+ // Albdeo //
52
+
53
+ color diffuse_color_constant = color(0.2) [[
54
+ anno::display_name("Albedo Color"),
55
+ anno::description("This is the albedo base color"),
56
+ anno::in_group("Albedo")
57
+ ]],
58
+ uniform texture_2d diffuse_texture = texture_2d() [[
59
+ anno::display_name("Albedo Map"),
60
+ anno::in_group("Albedo")
61
+ ]],
62
+ float albedo_desaturation = float(0.0) [[
63
+ anno::display_name("Albedo Map Desaturation"),
64
+ anno::description("Desaturates the albedo map"),
65
+ anno::in_group("Albedo"),
66
+ anno::soft_range(float(0.0), float(1.0))
67
+ ]],
68
+ float albedo_add = float(0.0) [[
69
+ anno::display_name("Albedo Add"),
70
+ anno::description("Adds a constant value to the diffuse color "),
71
+ anno::in_group("Albedo"),
72
+ anno::soft_range(float(-1.0), float(1.0))
73
+ ]],
74
+ float albedo_brightness = float(1.0) [[
75
+ anno::display_name("Albedo Brightness"),
76
+ anno::description("Multiplier for the diffuse color "),
77
+ anno::in_group("Albedo"),
78
+ anno::soft_range(float(0.0), float(1.0))
79
+ ]],
80
+ color diffuse_tint = color(1.0) [[
81
+ anno::display_name("Color Tint"),
82
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
83
+ anno::in_group("Albedo")
84
+ ]],
85
+
86
+
87
+ // Reflectivity //
88
+
89
+ float reflection_roughness_constant = float(0.5) [[
90
+ anno::display_name("Roughness Amount"),
91
+ anno::description("Higher roughness values lead to more blurry reflections"),
92
+ anno::in_group("Reflectivity"),
93
+ anno::hard_range(float(0.0), float(1.0))
94
+ ]],
95
+ float reflection_roughness_texture_influence = float(0.0) [[
96
+ anno::display_name("Roughness Map Influence"),
97
+ anno::description("Blends between the constant value and the lookup of the roughness texture"),
98
+ anno::in_group("Reflectivity"),
99
+ anno::hard_range(float(0.0), float(1.0))
100
+ ]],
101
+ uniform texture_2d reflectionroughness_texture = texture_2d() [[
102
+ anno::display_name("Roughness Map"),
103
+ anno::in_group("Reflectivity"),
104
+ anno::usage("roughness")
105
+ ]],
106
+ float metallic_constant = float(0.0) [[
107
+ anno::display_name("Metallic Amount"),
108
+ anno::description("Metallic Material"),
109
+ anno::in_group("Reflectivity"),
110
+ anno::hard_range(float(0.0), float(1.0))
111
+ ]],
112
+ float metallic_texture_influence = float(0.0) [[
113
+ anno::display_name("Metallic Map Influence"),
114
+ anno::description("Blends between the constant value and the lookup of the metallic texture"),
115
+ anno::in_group("Reflectivity"),
116
+ anno::hard_range(float(0.0), float(1.0))
117
+ ]],
118
+ uniform texture_2d metallic_texture = texture_2d() [[
119
+ anno::display_name("Metallic Map"),
120
+ anno::in_group("Reflectivity"),
121
+ anno::usage("metalness")
122
+ ]],
123
+ float specular_level = float(0.5) [[
124
+ anno::display_name("Specular"),
125
+ anno::description("The specular level (intensity) of the material"),
126
+ anno::in_group("Reflectivity"),
127
+ anno::soft_range(float(0.0), float(1.0))
128
+ ]],
129
+
130
+
131
+ // ORM //
132
+
133
+ uniform bool enable_ORM_texture = false [[
134
+ anno::display_name("Enable ORM Texture"),
135
+ anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
136
+ anno::in_group("Reflectivity")
137
+ ]],
138
+ uniform texture_2d ORM_texture = texture_2d() [[
139
+ anno::display_name("ORM Map"),
140
+ anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
141
+ anno::in_group("Reflectivity"),
142
+ anno::usage("roughness")
143
+ ]],
144
+
145
+
146
+ // AO Group //
147
+
148
+ float ao_to_diffuse = 0.0 [[
149
+ anno::display_name("AO to diffuse"),
150
+ anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
151
+ anno::in_group("AO"),
152
+ anno::hard_range(float(0.0), float(1.0))
153
+ ]],
154
+ uniform texture_2d ao_texture = texture_2d() [[
155
+ anno::display_name("Ambient Occlusion Map"),
156
+ anno::description("The ambient occlusion texture for the material"),
157
+ anno::in_group("AO"),
158
+ anno::usage("occlusion")
159
+ ]],
160
+
161
+
162
+ // Emission //
163
+
164
+ uniform bool enable_emission = false [[
165
+ anno::display_name("Enable Emission"),
166
+ anno::description("Enables the emission of light from the material"),
167
+ anno::in_group("Emissive")
168
+ ]],
169
+ color emissive_color = color(1.0,0.1,0.1) [[
170
+ anno::display_name("Emissive Color"),
171
+ anno::description("The emission color"),
172
+ anno::in_group("Emissive"),
173
+ anno::enable_if("enable_emission == true")
174
+ ]],
175
+ uniform texture_2d emissive_color_texture = texture_2d() [[
176
+ anno::display_name("Emissive Color map"),
177
+ anno::in_group("Emissive"),
178
+ anno::description("The emissive color texture"),
179
+ anno::enable_if("enable_emission == true")
180
+ ]],
181
+ uniform texture_2d emissive_mask_texture = texture_2d() [[
182
+ anno::display_name("Emissive Mask map"),
183
+ anno::description("The texture masking the emissive color"),
184
+ anno::in_group("Emissive"),
185
+ anno::enable_if("enable_emission == true"),
186
+ anno::usage("occlusion")
187
+ ]],
188
+ float emissive_intensity = float(40.0) [[
189
+ anno::display_name("Emissive Intensity"),
190
+ anno::description("Intensity of the emission"),
191
+ anno::in_group("Emissive"),
192
+ anno::enable_if("enable_emission == true")
193
+ ]],
194
+
195
+
196
+ // Cutout Opacity //
197
+
198
+ uniform bool enable_opacity = false [[
199
+ anno::display_name("Enable Opacity"),
200
+ anno::description("Enables the use of cutout opacity"),
201
+ anno::in_group("Opacity")
202
+ ]],
203
+ uniform texture_2d opacity_texture = texture_2d() [[
204
+ anno::display_name("Opacity Map"),
205
+ anno::in_group("Opacity"),
206
+ anno::usage("opacity")
207
+ ]],
208
+ float opacity_constant = float(1.0) [[
209
+ anno::display_name("Opacity Amount"),
210
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
211
+ anno::in_group("Opacity"),
212
+ anno::hard_range(float(0.0), float(1.0))
213
+ ]],
214
+ uniform bool enable_opacity_texture = false [[
215
+ anno::display_name("Enable Opacity Texture"),
216
+ anno::description("Enables or disables the usage of the opacity texture map"),
217
+ anno::in_group("Opacity")
218
+ ]],
219
+ uniform base::mono_mode opacity_mode = base::mono_average [[
220
+ anno::display_name("Opacity Mono Source"),
221
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
222
+ anno::in_group("Opacity")
223
+ ]],
224
+ uniform float opacity_threshold = float(0.0) [[
225
+ anno::hard_range(0.0, 1.0),
226
+ anno::display_name("Opacity Threshold"),
227
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
228
+ anno::in_group("Opacity")
229
+ ]],
230
+
231
+
232
+ // Normal //
233
+
234
+ uniform float geometry_normal_roughness_strength = 1.f
235
+ [[
236
+ anno::hard_range(0.0, 1.0),
237
+ anno::display_name("Normal map to roughness weight"),
238
+ anno::description("Enables and weights roughness induced by normal maps"),
239
+ anno::in_group("Normal")
240
+ ]],
241
+ uniform float bump_factor = float(1.0) [[
242
+ anno::display_name("Normal Strength"),
243
+ anno::description("Strength of normal map"),
244
+ anno::in_group("Normal"),
245
+ anno::soft_range(float(0.0), float(1.0))
246
+ ]],
247
+ uniform texture_2d normalmap_texture = texture_2d() [[
248
+ anno::display_name("Normal Map"),
249
+ anno::in_group("Normal"),
250
+ anno::usage("normal")
251
+ ]],
252
+ uniform float detail_bump_factor = float(0.3) [[
253
+ anno::display_name("Detail Normal Strength"),
254
+ anno::in_group("Normal"),
255
+ anno::description("Strength of the detail normal"),
256
+ anno::soft_range(float(0.0), float(1.0))
257
+ ]],
258
+ uniform texture_2d detail_normalmap_texture = texture_2d() [[
259
+ anno::display_name("Detail Normal Map"),
260
+ anno::in_group("Normal"),
261
+ anno::usage("normal")
262
+ ]],
263
+ uniform bool flip_tangent_u = false [[
264
+ anno::display_name("Normal Map Flip U Tangent"),
265
+ anno::in_group("Normal")
266
+ ]],
267
+ uniform bool flip_tangent_v = true [[
268
+ anno::display_name("Normal Map Flip V Tangent"),
269
+ anno::in_group("Normal")
270
+ ]],
271
+
272
+
273
+ // UVW Projection Group //
274
+
275
+ uniform bool project_uvw = false [[
276
+ anno::display_name("Enable Project UVW Coordinates"),
277
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
278
+ anno::in_group("UV")
279
+ ]],
280
+ uniform bool world_or_object = false [[
281
+ anno::display_name("Enable World Space"),
282
+ anno::description("When enabled, uses world space for projection, otherwise object space is used"),
283
+ anno::in_group("UV"),
284
+ anno::enable_if("project_uvw == true")
285
+ ]],
286
+ uniform int uv_space_index = 0 [[
287
+ anno::display_name("UV Space Index"),
288
+ anno::description("UV Space Index."),
289
+ anno::in_group("UV"),
290
+ anno::enable_if("project_uvw == true"),
291
+ anno::hard_range(int(0), int(3))
292
+ ]],
293
+
294
+
295
+ // UVW Adjustments Group //
296
+
297
+ uniform float2 texture_translate = float2(0.0) [[
298
+ anno::display_name("Texture Translate"),
299
+ anno::description("Controls position of texture."),
300
+ anno::in_group("UV"),
301
+ anno::enable_if("project_uvw == true")
302
+ ]],
303
+ uniform float texture_rotate = float(0.0) [[
304
+ anno::display_name("Texture Rotate"),
305
+ anno::description("Rotates angle of texture in degrees."),
306
+ anno::in_group("UV"),
307
+ anno::enable_if("project_uvw == true")
308
+ ]],
309
+ uniform float2 texture_scale = float2(1.0) [[
310
+ anno::display_name("Texture Tiling"),
311
+ anno::description("Controls the repetition of the texture."),
312
+ anno::in_group("UV"),
313
+ anno::enable_if("project_uvw == true")
314
+ ]],
315
+ uniform float2 detail_texture_translate = float2(0.0) [[
316
+ anno::display_name("Detail Texture Translate"),
317
+ anno::description("Controls the position of the detail texture."),
318
+ anno::in_group("UV"),
319
+ anno::enable_if("project_uvw == true")
320
+ ]],
321
+ uniform float detail_texture_rotate = float(0.0) [[
322
+ anno::display_name("Detail Texture Rotate"),
323
+ anno::description("Rotates angle of the detail texture in degrees."),
324
+ anno::in_group("UV"),
325
+ anno::enable_if("project_uvw == true")
326
+ ]],
327
+ uniform float2 detail_texture_scale = float2(1.0) [[
328
+ anno::display_name("Detail Texture Tiling"),
329
+ anno::description("Controls the repetition of the detail texture."),
330
+ anno::in_group("UV"),
331
+ anno::enable_if("project_uvw == true")
332
+ ]],
333
+
334
+
335
+ // Geometry //
336
+
337
+ uniform float round_edges_radius = float(0.0) [[
338
+ anno::display_name("Round Edge Radius"),
339
+ anno::description("Influence radius around the edges in meters"),
340
+ anno::in_group("Geometry"),
341
+ anno::soft_range(0.0, 1.0)
342
+ ]],
343
+ uniform float round_edges_roundness = float(1.0) [[
344
+ anno::display_name("Round Edge Roundness"),
345
+ anno::description("Determines how round the edge will look"),
346
+ anno::in_group("Geometry"),
347
+ anno::hard_range(0.0, 1.0)
348
+ ]],
349
+ uniform bool round_edges_across_materials = false [[
350
+ anno::display_name("Round Edge Across Materials"),
351
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
352
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
353
+ "\t\thappens between facets irrespective of their materials"),
354
+ anno::in_group("Geometry")
355
+ ]]
356
+ )
357
+ [[
358
+ anno::display_name("OmniPBR"),
359
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
360
+ anno::in_group("Base"),
361
+ anno::version( 2, 1, 2),
362
+ anno::author("NVIDIA CORPORATION"),
363
+ anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
364
+ ]] = let {
365
+
366
+ material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat(
367
+ diffuse_color_constant: diffuse_color_constant,
368
+ diffuse_texture: diffuse_texture,
369
+ albedo_desaturation: albedo_desaturation,
370
+ albedo_add: albedo_add,
371
+ albedo_brightness: albedo_brightness,
372
+ diffuse_tint: diffuse_tint,
373
+ reflection_roughness_constant: reflection_roughness_constant,
374
+ reflection_roughness_texture_influence: reflection_roughness_texture_influence,
375
+ reflectionroughness_texture: reflectionroughness_texture,
376
+ metallic_constant: metallic_constant,
377
+ metallic_texture_influence: metallic_texture_influence,
378
+ metallic_texture: metallic_texture,
379
+ specular_level: specular_level,
380
+ enable_ORM_texture: enable_ORM_texture,
381
+ ORM_texture: ORM_texture,
382
+ ao_to_diffuse: ao_to_diffuse,
383
+ ao_texture: ao_texture,
384
+ enable_emission: enable_emission,
385
+ emissive_color: emissive_color,
386
+ emissive_color_texture: emissive_color_texture,
387
+ emissive_mask_texture: emissive_mask_texture,
388
+ emissive_intensity: emissive_intensity,
389
+ enable_opacity: enable_opacity,
390
+ opacity_texture: opacity_texture,
391
+ opacity_constant: opacity_constant,
392
+ enable_opacity_texture: enable_opacity_texture,
393
+ opacity_mode: opacity_mode,
394
+ opacity_threshold: opacity_threshold,
395
+ geometry_normal_roughness_strength: geometry_normal_roughness_strength,
396
+ bump_factor: bump_factor,
397
+ normalmap_texture: normalmap_texture,
398
+ detail_bump_factor: detail_bump_factor,
399
+ detail_normalmap_texture: detail_normalmap_texture,
400
+ flip_tangent_u: flip_tangent_u,
401
+ flip_tangent_v: flip_tangent_v,
402
+ project_uvw: project_uvw,
403
+ world_or_object: world_or_object,
404
+ uv_space_index: uv_space_index,
405
+ texture_translate: texture_translate,
406
+ texture_rotate: texture_rotate,
407
+ texture_scale: texture_scale,
408
+ detail_texture_translate: detail_texture_translate,
409
+ detail_texture_rotate: detail_texture_rotate,
410
+ detail_texture_scale: detail_texture_scale,
411
+ round_edges_radius: round_edges_radius,
412
+ round_edges_roundness: round_edges_roundness,
413
+ round_edges_across_materials: round_edges_across_materials
414
+ );
415
+
416
+ } in material(
417
+ surface: base.surface,
418
+ geometry: base.geometry
419
+ );
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBRBase.mdl ADDED
@@ -0,0 +1,493 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /***************************************************************************************************
2
+ * Copyright 2022 NVIDIA Corporation. All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions
6
+ * are met:
7
+ * * Redistributions of source code must retain the above copyright
8
+ * notice, this list of conditions and the following disclaimer.
9
+ * * Redistributions in binary form must reproduce the above copyright
10
+ * notice, this list of conditions and the following disclaimer in the
11
+ * documentation and/or other materials provided with the distribution.
12
+ * * Neither the name of NVIDIA CORPORATION nor the names of its
13
+ * contributors may be used to endorse or promote products derived
14
+ * from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
17
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ **************************************************************************************************/
28
+
29
+ mdl 1.7;
30
+
31
+ import ::df::*;
32
+ import ::state::*;
33
+ import ::math::*;
34
+ import ::base::*;
35
+ import ::tex::*;
36
+ import ::anno::*;
37
+ import ::anno::*;
38
+
39
+ export float3 HemiOctahedronToUnitVector( float2 Oct ) [[
40
+ anno::hidden()
41
+ ]]
42
+ {
43
+ Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5;
44
+ float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) );
45
+ return math::normalize(N);
46
+ }
47
+
48
+ export struct NormalData [[
49
+ anno::hidden()
50
+ ]]
51
+ {
52
+ float3 normal;
53
+ float2 roughness;
54
+ };
55
+
56
+ export NormalData tangent_space_normal_roughness_texture(
57
+ uniform texture_2d texture
58
+ [[
59
+ anno::description("The input texture"),
60
+ anno::usage("normal")
61
+ ]],
62
+ uniform float factor = 1.0f
63
+ [[ anno::description("Determines the degree of bumpiness") ]],
64
+ uniform bool flip_tangent_u = false
65
+ [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
66
+ uniform bool flip_tangent_v = false
67
+ [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
68
+ base::texture_coordinate_info uvw = base::texture_coordinate_info()
69
+ [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]],
70
+ uniform float2 crop_u = float2( 0.0, 1.0)
71
+ [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]],
72
+ uniform float2 crop_v = float2( 0.0, 1.0)
73
+ [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]],
74
+ uniform tex::wrap_mode wrap_u = tex::wrap_repeat
75
+ [[ anno::description("Wrapping mode in the u direction") ]],
76
+ uniform tex::wrap_mode wrap_v = tex::wrap_repeat
77
+ [[ anno::description("Wrapping mode in the v direction") ]],
78
+ uniform bool clip = false
79
+ [[
80
+ anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"),
81
+ anno::hidden()
82
+ ]],
83
+ uniform float scale = 1.
84
+ [[
85
+ anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"),
86
+ anno::unused()
87
+ ]],
88
+ uniform float offset = 0.
89
+ [[
90
+ anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"),
91
+ anno::unused()
92
+ ]],
93
+ uniform float animation_start_time = 0.
94
+ [[ anno::description("When to start playing first frame of the animation ") ]],
95
+ uniform int2 animation_crop = int2(0, 0)
96
+ [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]],
97
+ uniform tex::wrap_mode animation_wrap = tex::wrap_repeat
98
+ [[ anno::description("Defines what to do outside of regular animation time") ]],
99
+ uniform float animation_fps = 30
100
+ [[ anno::description("Framerate to use for animation playback") ]]
101
+ )
102
+ [[
103
+ anno::description("Interprets the color values of a bitmap as a vector in tangent space"),
104
+ anno::hidden(),
105
+ anno::noinline()
106
+ ]]
107
+ {
108
+ NormalData normalData;
109
+ normalData.roughness = float2(0);
110
+ normalData.normal = state::normal();
111
+
112
+ float frame = 0.0;
113
+ if(animation_crop != int2(0,0)) //only if we have an animation
114
+ {
115
+ frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation
116
+ switch ( animation_wrap) {
117
+ case tex::wrap_repeat:
118
+ frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x:
119
+ math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y;
120
+ break;
121
+ case tex::wrap_mirrored_repeat:
122
+ float animation_crop_2y = 2.0*animation_crop.y;
123
+ frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x:
124
+ math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x;
125
+ if(frame>animation_crop.y)
126
+ frame = animation_crop_2y-frame;
127
+ break;
128
+ case tex::wrap_clamp:
129
+ frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y);
130
+ break;
131
+ case tex::wrap_clip:
132
+ frame += animation_crop.x;
133
+ if(frame < animation_crop.x || frame > animation_crop.y) return normalData;
134
+ break;
135
+ }
136
+ }
137
+
138
+ if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource
139
+ factor == 0.0f)
140
+ return normalData;
141
+ {
142
+ if (clip) {
143
+ if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) {
144
+ return normalData;
145
+ }
146
+ if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) {
147
+ return normalData;
148
+ }
149
+ }
150
+ if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) {
151
+ return normalData;
152
+ }
153
+ if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) {
154
+ return normalData;
155
+ }
156
+ }
157
+ bool pixel_flip_u = flip_tangent_u;
158
+ bool pixel_flip_v = flip_tangent_v;
159
+ //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile
160
+ if (wrap_u == tex::wrap_mirrored_repeat) {
161
+ if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1)
162
+ pixel_flip_u = ! pixel_flip_u;
163
+ else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0)
164
+ pixel_flip_u = ! pixel_flip_u;
165
+ }
166
+ if (wrap_v == tex::wrap_mirrored_repeat) {
167
+ if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1)
168
+ pixel_flip_v = ! pixel_flip_v;
169
+ else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0)
170
+ pixel_flip_v = ! pixel_flip_v;
171
+ }
172
+
173
+ float3 transformed_tangent_u = uvw.tangent_u;
174
+ float3 transformed_tangent_v = uvw.tangent_v;
175
+
176
+ if (pixel_flip_u)
177
+ transformed_tangent_u=-transformed_tangent_u;
178
+ if (pixel_flip_v)
179
+ transformed_tangent_v=-transformed_tangent_v;
180
+
181
+ float3 tangent_space_normal;
182
+ float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame);
183
+ if(normal_raw.x > 1.5)
184
+ {
185
+ // octahedron packed by OV
186
+ normal_raw.x -= 2.0;
187
+ normal_raw.x -= 0.5;
188
+ normal_raw.y -= 0.5;
189
+ tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0);
190
+ normalData.roughness = float2(normal_raw.z, normal_raw.w);
191
+ }
192
+ else
193
+ {
194
+ // regular
195
+ tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0;
196
+ normalData.roughness = float2(0);
197
+ }
198
+
199
+ normalData.normal = math::normalize(
200
+ transformed_tangent_u * tangent_space_normal.x * factor +
201
+ transformed_tangent_v * tangent_space_normal.y * factor +
202
+ state::normal() * tangent_space_normal.z);
203
+
204
+ return normalData;
205
+ }
206
+
207
+
208
+ export material OmniPBRBase(
209
+
210
+
211
+ // Albdeo //
212
+
213
+ color diffuse_reflection_color = color(0.2) [[
214
+ anno::display_name("Albedo Color"),
215
+ anno::description("This is the albedo base color"),
216
+ anno::in_group("Albedo")
217
+ ]],
218
+ color diffuse_tint = color(1.0) [[
219
+ anno::display_name("Albedo Tint"),
220
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
221
+ anno::in_group("Albedo")
222
+ ]],
223
+
224
+
225
+ // Reflecitivity //
226
+
227
+ float specular_reflection_roughness = float(0.0) [[
228
+ anno::display_name("Roughness"),
229
+ anno::description("Higher roughness values lead to more blurry reflections"),
230
+ anno::in_group("Reflectivity"),
231
+ anno::hard_range(0.0, 1.0)
232
+ ]],
233
+ float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[
234
+ anno::display_name("Aniso roughness"),
235
+ anno::description("Higher roughness values lead to more blurry reflections"),
236
+ anno::in_group("Reflectivity"),
237
+ anno::hidden()
238
+ ]],
239
+ float metalness = float(0.0) [[
240
+ anno::display_name("Metalness"),
241
+ anno::description("Bias towards pure specular reflection"),
242
+ anno::in_group("Reflectivity"),
243
+ anno::hard_range(0.0, 1.0)
244
+ ]],
245
+ float specular_level = float(0.5) [[
246
+ anno::display_name("Specular"),
247
+ anno::description("The specular level (intensity) of the material"),
248
+ anno::in_group("Reflectivity"),
249
+ anno::soft_range(0.0, 1.0)
250
+ ]],
251
+
252
+
253
+ // Emission //
254
+
255
+ uniform bool enable_emission = false [[
256
+ anno::display_name("Enable Emission"),
257
+ anno::description("Enables the emission of light from the material"),
258
+ anno::in_group("Emissive")
259
+ ]],
260
+ color emission_color = color(1.0,0.1,0.1) [[
261
+ anno::display_name("Emissive Color"),
262
+ anno::description("The emission color"),
263
+ anno::in_group("Emissive"),
264
+ anno::enable_if("enable_emission == true")
265
+ ]],
266
+ float emission_intensity = float(40.0) [[
267
+ anno::display_name("Emissive Intensity"),
268
+ anno::description("Intensity of the emission"),
269
+ anno::in_group("Emissive"),
270
+ anno::soft_range(0.0, 1000.0),
271
+ anno::enable_if("enable_emission == true")
272
+ ]],
273
+
274
+
275
+ // Geometry Opacity //
276
+
277
+ uniform bool enable_opacity = false [[
278
+ anno::display_name("Enable Opacity"),
279
+ anno::description("Enables the use of cutout opacity"),
280
+ anno::in_group("Opacity")
281
+ ]],
282
+ float geometry_opacity = float(1.0) [[
283
+ anno::display_name("Opacity Amount"),
284
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
285
+ anno::in_group("Opacity"),
286
+ anno::hard_range(0.0, 1.0)
287
+ ]],
288
+ uniform float geometry_opacity_threshold = 0.f
289
+ [[
290
+ anno::display_name("Opacity Threshold"),
291
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
292
+ anno::in_group("Opacity"),
293
+ anno::hard_range(0.0, 1.0)
294
+ ]],
295
+
296
+
297
+ // Clearcoat //
298
+
299
+ uniform bool enable_coat = false [[
300
+ anno::display_name("Enable Clearcoat Layer"),
301
+ anno::description("Adds a coat layer on top of the material when enabled"),
302
+ anno::in_group("Clearcoat")
303
+ ]],
304
+ float coat_weight = float(1.0) [[
305
+ anno::display_name("Clearcoat Weight"),
306
+ anno::description("Sets the weight for coat layer"),
307
+ anno::in_group("Clearcoat"),
308
+ anno::hard_range(0.0, 1.0)
309
+ ]],
310
+ color coat_color = color(1.0) [[
311
+ anno::display_name("Clearcoat Tint"),
312
+ anno::description("Clearcoat is tinted and affects the underlying material"),
313
+ anno::in_group("Clearcoat")
314
+ ]],
315
+ float coat_transparency = float(1.0) [[
316
+ anno::display_name("Clearcoat Transparency"),
317
+ anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"),
318
+ anno::in_group("Clearcoat"),
319
+ anno::hard_range(0.0, 1.0)
320
+ ]],
321
+ float coat_roughness = float(0.0) [[
322
+ anno::display_name("Clearcoat Roughness"),
323
+ anno::description("Higher roughness values lead to more blurry reflections"),
324
+ anno::in_group("Clearcoat"),
325
+ anno::hard_range(0.0, 1.0)
326
+ ]],
327
+ float2 coat_aniso_roughness = float2(0.0, 0.0) [[
328
+ anno::display_name("Clearcoat aniso roughness"),
329
+ anno::description("Higher roughness values lead to more blurry reflections"),
330
+ anno::in_group("Clearcoat"),
331
+ anno::hidden()
332
+ ]],
333
+ float coat_ior = float(1.56) [[
334
+ anno::display_name("Clearcoat IOR"),
335
+ anno::description("Sets the Index of refraction for the coat layer"),
336
+ anno::in_group("Clearcoat"),
337
+ anno::soft_range(0.0, 4.0)
338
+ ]],
339
+ float3 clearcoat_geometry_normal = state::normal() [[
340
+ anno::display_name("Clearcoat Normal"),
341
+ anno::in_group("Clearcoat"),
342
+ anno::usage("normal")
343
+ ]],
344
+
345
+
346
+ // Geometry //
347
+
348
+ uniform float round_edges_radius = float(0.0) [[
349
+ anno::display_name("Round Edge Radius"),
350
+ anno::description("Influence radius around the edges in meters"),
351
+ anno::in_group("Geometry"),
352
+ anno::soft_range(0.0, 1.0)
353
+ ]],
354
+ uniform float round_edges_roundness = float(1.0) [[
355
+ anno::display_name("Round Edge Roundness"),
356
+ anno::description("Determines how round the edge will look"),
357
+ anno::in_group("Geometry"),
358
+ anno::hard_range(0.0, 1.0)
359
+ ]],
360
+ uniform bool round_edges_across_materials = false [[
361
+ anno::display_name("Round Edge Across Materials"),
362
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
363
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
364
+ "\t\thappens between facets irrespective of their materials"),
365
+ anno::in_group("Geometry")
366
+ ]],
367
+ float3 geometry_normal = state::normal() [[
368
+ anno::display_name("Geometry Normal"),
369
+ anno::in_group("Geometry"),
370
+ anno::usage("normal")
371
+ ]]
372
+
373
+ )
374
+ [[
375
+ anno::display_name("OmniPBR Base"),
376
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
377
+ anno::in_group("Omni Materials"),
378
+ anno::version( 2, 1, 1),
379
+ anno::author("NVIDIA CORPORATION"),
380
+ anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
381
+ ]]
382
+ = let{
383
+
384
+ // Diffuse Bsdf //
385
+
386
+ color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint;
387
+
388
+ color base_color = tinted_diffuse_color;
389
+
390
+ bsdf diffuse_bsdf = df::weighted_layer(
391
+ weight: 1.0,
392
+ layer: df::diffuse_reflection_bsdf(
393
+ tint: base_color,
394
+ roughness: float(0.0)
395
+ ),
396
+ base: bsdf(),
397
+ normal: geometry_normal
398
+ );
399
+
400
+ // Glossy Reflection Bsdf //
401
+
402
+ float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness
403
+ + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1);
404
+ float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness
405
+ + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1);
406
+ bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf(
407
+ roughness_u: roughness_u,
408
+ roughness_v: roughness_v,
409
+ tint: color(1.0),
410
+ mode: df::scatter_reflect
411
+ );
412
+
413
+ bsdf custom_curve_layer_bsdf = df::custom_curve_layer(
414
+ normal_reflectivity: 0.08,
415
+ grazing_reflectivity: 1.0,
416
+ exponent: 5.0,
417
+ weight: specular_level,
418
+ layer: ggx_smith_bsdf,
419
+ base: diffuse_bsdf,
420
+ normal: geometry_normal
421
+ );
422
+
423
+ bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf);
424
+
425
+ bsdf omni_PBR_bsdf = df::weighted_layer(
426
+ weight: metalness,
427
+ layer: directional_factor_bsdf,
428
+ base: custom_curve_layer_bsdf,
429
+ normal: geometry_normal
430
+ );
431
+
432
+ // Clear Coat //
433
+
434
+ float coat_roughness_u = math::clamp(coat_roughness * coat_roughness
435
+ + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1);
436
+ float coat_roughness_v = math::clamp(coat_roughness * coat_roughness
437
+ + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1);
438
+ bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf(
439
+ roughness_u: coat_roughness_u,
440
+ roughness_v: coat_roughness_v,
441
+ tint: color(1.0),
442
+ mode: df::scatter_reflect
443
+ );
444
+
445
+ bsdf opaque_coat = df::weighted_layer(
446
+ weight: coat_transparency,
447
+ layer: ::df::tint(
448
+ tint: coat_color,
449
+ base: omni_PBR_bsdf
450
+ ),
451
+ base: ::df::diffuse_reflection_bsdf(
452
+ tint: coat_color
453
+ )
454
+ );
455
+
456
+ bsdf omni_PBR_coated_bsdf = df::fresnel_layer(
457
+ ior: coat_ior,
458
+ weight: coat_weight,
459
+ layer: coat_bsdf,
460
+ base: opaque_coat,
461
+ normal: clearcoat_geometry_normal
462
+ );
463
+
464
+ bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf;
465
+
466
+ color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0);
467
+
468
+ float opacity_value = geometry_opacity;
469
+ float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0;
470
+
471
+ material_emission emission = material_emission(
472
+ df::diffuse_edf(),
473
+ intensity: emission_value
474
+ );
475
+
476
+ material_surface surface = material_surface(
477
+ scattering: final_bsdf,
478
+ emission: emission
479
+ );
480
+
481
+ material_geometry geometry = material_geometry(
482
+ normal: state::rounded_corner_normal(
483
+ radius: round_edges_radius,
484
+ across_materials: round_edges_across_materials,
485
+ roundness: round_edges_roundness
486
+ ),
487
+ cutout_opacity: cutout_opacity
488
+ );
489
+
490
+ } in material(
491
+ surface: surface,
492
+ geometry: geometry
493
+ );
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl ADDED
@@ -0,0 +1,734 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /***************************************************************************************************
2
+ * Copyright 2022 NVIDIA Corporation. All rights reserved.
3
+ *
4
+ * Redistribution and use in source and binary forms, with or without
5
+ * modification, are permitted provided that the following conditions
6
+ * are met:
7
+ * * Redistributions of source code must retain the above copyright
8
+ * notice, this list of conditions and the following disclaimer.
9
+ * * Redistributions in binary form must reproduce the above copyright
10
+ * notice, this list of conditions and the following disclaimer in the
11
+ * documentation and/or other materials provided with the distribution.
12
+ * * Neither the name of NVIDIA CORPORATION nor the names of its
13
+ * contributors may be used to endorse or promote products derived
14
+ * from this software without specific prior written permission.
15
+ *
16
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
17
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
18
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
20
+ * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
21
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22
+ * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
23
+ * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
24
+ * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
+ **************************************************************************************************/
28
+
29
+ mdl 1.7;
30
+
31
+ import ::df::*;
32
+ import ::state::*;
33
+ import ::math::*;
34
+ import ::base::*;
35
+ import ::state::*;
36
+ import ::tex::*;
37
+ import ::anno::*;
38
+
39
+ import ::debug::*;
40
+
41
+ import ::nvidia::core_definitions::file_texture;
42
+ import ::nvidia::core_definitions::normalmap_texture;
43
+
44
+ import OmniPBRBase::*;
45
+
46
+ // Functions //
47
+
48
+
49
+ // Returns a matrix from R,T,S. inputs //
50
+
51
+ uniform float4x4 rotation_translation_scale(
52
+ uniform float3 rotation = float3(0.)
53
+ [[ anno::description("Rotation applied to every UVW coordinate") ]],
54
+ uniform float3 translation = float3(0.)
55
+ [[ anno::description("Offset applied to every UVW coordinate") ]],
56
+ uniform float3 scaling = float3(1.)
57
+ [[ anno::description("Scale applied to every UVW coordinate") ]]
58
+ )
59
+ [[
60
+ anno::description("Construct a transformation matrix from euler rotation, translation and scale"),
61
+ anno::hidden()
62
+ ]]
63
+ {
64
+ float4x4 scale =
65
+ float4x4(scaling.x , 0.0 , 0.0 , 0.0,
66
+ 0.0 , scaling.y , 0.0 , 0.0,
67
+ 0.0 , 0.0 , scaling.z , 0.0,
68
+ translation.x , translation.y , translation.z , 1.0);
69
+
70
+ float3 s = math::sin(rotation);
71
+ float3 c = math::cos(rotation);
72
+
73
+ float4x4 rotate =
74
+ float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0,
75
+ c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0,
76
+ -s.y , s.x*c.y , c.x*c.y , 0.0,
77
+ 0.0 , 0.0 , 0 , 1.0);
78
+
79
+ return scale * rotate;
80
+ }
81
+
82
+ // Returns the normal n in tangent space, given n is in internal space. //
83
+
84
+ float3 transform_internal_to_tangent(float3 n)
85
+ {
86
+ /* flip_tangent_v */
87
+ return
88
+ n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+
89
+ n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+
90
+ n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z);
91
+ }
92
+
93
+ // Returns the normal n in internal space, given n is in tangent space.
94
+ float3 transform_tangent_to_internal(float3 n)
95
+ {
96
+ return state::texture_tangent_u(0) * n.x -
97
+ state::texture_tangent_v(0) * n.y + /* flip_tangent_v */
98
+ state::normal() * n.z;
99
+ }
100
+
101
+ // Returns a normal by adding a detail normal to a global normal.
102
+ export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal())
103
+ {
104
+ // http://blog.selfshadow.com/publications/blending-in-detail/
105
+ float3 n_t = transform_internal_to_tangent(n);
106
+ float3 nd_t = transform_internal_to_tangent(nd);
107
+ n_t = n_t + float3(0.,0.,1.);
108
+ nd_t = nd_t * float3(-1.,-1.,1.);
109
+ n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t;
110
+ return math::normalize(transform_tangent_to_internal(n));
111
+ }
112
+
113
+ base::texture_return multiply_colors(
114
+ color color_1 = color(1.0, 1.0, 1.0),
115
+ color color_2 = color(.5, .5, .5),
116
+ float weight = 1.0
117
+ )
118
+ [[
119
+ anno::hidden()
120
+ ]]
121
+ {
122
+ return base::blend_color_layers(
123
+ layers: base::color_layer[](
124
+ base::color_layer(
125
+ layer_color: color_2,
126
+ weight: weight,
127
+ mode: base::color_layer_multiply
128
+ )),
129
+ base: color_1
130
+ );
131
+ }
132
+
133
+
134
+ // OmniPBR Clearcoat //
135
+
136
+ export material OmniPBR_ClearCoat(
137
+
138
+ // Albdeo //
139
+
140
+ color diffuse_color_constant = color(0.2) [[
141
+ anno::display_name("Albedo Color"),
142
+ anno::description("This is the albedo base color"),
143
+ anno::in_group("Albedo")
144
+ ]],
145
+ uniform texture_2d diffuse_texture = texture_2d() [[
146
+ anno::display_name("Albedo Map"),
147
+ anno::in_group("Albedo")
148
+ ]],
149
+ float albedo_desaturation = float(0.0) [[
150
+ anno::display_name("Albedo Map Desaturation"),
151
+ anno::description("Desaturates the albedo map"),
152
+ anno::in_group("Albedo"),
153
+ anno::soft_range(float(0.0), float(1.0))
154
+ ]],
155
+ float albedo_add = float(0.0) [[
156
+ anno::display_name("Albedo Add"),
157
+ anno::description("Adds a constant value to the diffuse color "),
158
+ anno::in_group("Albedo"),
159
+ anno::soft_range(float(-1.0), float(1.0))
160
+ ]],
161
+ float albedo_brightness = float(1.0) [[
162
+ anno::display_name("Albedo Brightness"),
163
+ anno::description("Multiplier for the diffuse color "),
164
+ anno::in_group("Albedo"),
165
+ anno::soft_range(float(0.0), float(1.0))
166
+ ]],
167
+ color diffuse_tint = color(1.0) [[
168
+ anno::display_name("Color Tint"),
169
+ anno::description("When enabled, this color value is multiplied over the final albedo color"),
170
+ anno::in_group("Albedo")
171
+ ]],
172
+
173
+
174
+ // Reflectivity //
175
+
176
+ float reflection_roughness_constant = float(0.5) [[
177
+ anno::display_name("Roughness Amount"),
178
+ anno::description("Higher roughness values lead to more blurry reflections"),
179
+ anno::in_group("Reflectivity"),
180
+ anno::hard_range(float(0.0), float(1.0))
181
+ ]],
182
+ float reflection_roughness_texture_influence = float(0.0) [[
183
+ anno::display_name("Roughness Map Influence"),
184
+ anno::description("Blends between the constant value and the lookup of the roughness texture"),
185
+ anno::in_group("Reflectivity"),
186
+ anno::hard_range(float(0.0), float(1.0))
187
+ ]],
188
+ uniform texture_2d reflectionroughness_texture = texture_2d() [[
189
+ anno::display_name("Roughness Map"),
190
+ anno::in_group("Reflectivity"),
191
+ anno::usage("roughness")
192
+ ]],
193
+ float metallic_constant = float(0.0) [[
194
+ anno::display_name("Metallic Amount"),
195
+ anno::description("Metallic Material"),
196
+ anno::in_group("Reflectivity"),
197
+ anno::hard_range(float(0.0), float(1.0))
198
+ ]],
199
+ float metallic_texture_influence = float(0.0) [[
200
+ anno::display_name("Metallic Map Influence"),
201
+ anno::description("Blends between the constant value and the lookup of the metallic texture"),
202
+ anno::in_group("Reflectivity"),
203
+ anno::hard_range(float(0.0), float(1.0))
204
+ ]],
205
+ uniform texture_2d metallic_texture = texture_2d() [[
206
+ anno::display_name("Metallic Map"),
207
+ anno::in_group("Reflectivity"),
208
+ anno::usage("metalness")
209
+ ]],
210
+ float specular_level = float(0.5) [[
211
+ anno::display_name("Specular"),
212
+ anno::description("The specular level (intensity) of the material"),
213
+ anno::in_group("Reflectivity"),
214
+ anno::soft_range(float(0.0), float(1.0))
215
+ ]],
216
+
217
+
218
+ // ORM //
219
+
220
+ uniform bool enable_ORM_texture = false [[
221
+ anno::display_name("Enable ORM Texture"),
222
+ anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
223
+ anno::in_group("Reflectivity")
224
+ ]],
225
+ uniform texture_2d ORM_texture = texture_2d() [[
226
+ anno::display_name("ORM Map"),
227
+ anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
228
+ anno::in_group("Reflectivity"),
229
+ anno::usage("roughness")
230
+ ]],
231
+
232
+
233
+ // AO Group //
234
+
235
+ float ao_to_diffuse = 0.0 [[
236
+ anno::display_name("AO to diffuse"),
237
+ anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
238
+ anno::in_group("AO"),
239
+ anno::hard_range(float(0.0), float(1.0))
240
+ ]],
241
+ uniform texture_2d ao_texture = texture_2d() [[
242
+ anno::display_name("Ambient Occlusion Map"),
243
+ anno::description("The ambient occlusion texture for the material"),
244
+ anno::in_group("AO"),
245
+ anno::usage("occlusion")
246
+ ]],
247
+
248
+
249
+ // Emission //
250
+
251
+ uniform bool enable_emission = false [[
252
+ anno::display_name("Enable Emission"),
253
+ anno::description("Enables the emission of light from the material"),
254
+ anno::in_group("Emissive")
255
+ ]],
256
+ color emissive_color = color(1.0,0.1,0.1) [[
257
+ anno::display_name("Emissive Color"),
258
+ anno::description("The emission color"),
259
+ anno::in_group("Emissive"),
260
+ anno::enable_if("enable_emission == true")
261
+ ]],
262
+ uniform texture_2d emissive_color_texture = texture_2d() [[
263
+ anno::display_name("Emissive Color map"),
264
+ anno::in_group("Emissive"),
265
+ anno::description("The emissive color texture"),
266
+ anno::enable_if("enable_emission == true")
267
+ ]],
268
+ uniform texture_2d emissive_mask_texture = texture_2d() [[
269
+ anno::display_name("Emissive Mask map"),
270
+ anno::description("The texture masking the emissive color"),
271
+ anno::in_group("Emissive"),
272
+ anno::enable_if("enable_emission == true"),
273
+ anno::usage("occlusion")
274
+ ]],
275
+ float emissive_intensity = float(40.0) [[
276
+ anno::display_name("Emissive Intensity"),
277
+ anno::description("Intensity of the emission"),
278
+ anno::in_group("Emissive"),
279
+ anno::enable_if("enable_emission == true")
280
+ ]],
281
+
282
+
283
+ // Cutout Opacity //
284
+
285
+ uniform bool enable_opacity = false [[
286
+ anno::display_name("Enable Opacity"),
287
+ anno::description("Enables the use of cutout opacity"),
288
+ anno::in_group("Opacity")
289
+ ]],
290
+ uniform texture_2d opacity_texture = texture_2d() [[
291
+ anno::display_name("Opacity Map"),
292
+ anno::in_group("Opacity"),
293
+ anno::usage("opacity")
294
+ ]],
295
+ float opacity_constant = float(1.0) [[
296
+ anno::display_name("Opacity Amount"),
297
+ anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
298
+ anno::in_group("Opacity"),
299
+ anno::hard_range(float(0.0), float(1.0))
300
+ ]],
301
+ uniform bool enable_opacity_texture = false [[
302
+ anno::display_name("Enable Opacity Texture"),
303
+ anno::description("Enables or disables the usage of the opacity texture map"),
304
+ anno::in_group("Opacity")
305
+ ]],
306
+ uniform base::mono_mode opacity_mode = base::mono_average [[
307
+ anno::display_name("Opacity Mono Source"),
308
+ anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
309
+ anno::in_group("Opacity")
310
+ ]],
311
+ uniform float opacity_threshold = float(0.0) [[
312
+ anno::display_name("Opacity Threshold"),
313
+ anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
314
+ anno::in_group("Opacity"),
315
+ anno::hard_range(float(0.0), float(1.0))
316
+ ]],
317
+
318
+
319
+ // Clearcoat //
320
+
321
+ uniform bool enable_clearcoat = false [[
322
+ anno::display_name("Enable Clearcoat Layer"),
323
+ anno::description("Adds a clearcoat layer on top of the material when enabled"),
324
+ anno::in_group("Clearcoat")
325
+ ]],
326
+ float clearcoat_weight = float(1.0) [[
327
+ anno::display_name("Clearcoat Weight"),
328
+ anno::description("Sets the weight for clearcoat layer"),
329
+ anno::in_group("Clearcoat"),
330
+ anno::hard_range(float(0.0), float(1.0))
331
+ ]],
332
+ color clearcoat_tint = color(1.0) [[
333
+ anno::display_name("Clearcoat Tint"),
334
+ anno::description("Clearcoat is tinted and affects the underlying material"),
335
+ anno::in_group("Clearcoat")
336
+ ]],
337
+ float clearcoat_transparency = float(1.0) [[
338
+ anno::display_name("Clearcoat Transparency"),
339
+ anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"),
340
+ anno::in_group("Clearcoat"),
341
+ anno::hard_range(float(0.0), float(1.0))
342
+ ]],
343
+ float clearcoat_reflection_roughness = float(0.0) [[
344
+ anno::display_name("Clearcoat Roughness"),
345
+ anno::description("Higher roughness values lead to more blurry reflections"),
346
+ anno::in_group("Clearcoat"),
347
+ anno::hard_range(float(0.0), float(1.0))
348
+ ]],
349
+ float clearcoat_ior = float(1.56) [[
350
+ anno::display_name("Clearcoat IOR"),
351
+ anno::description("Sets the Index of refraction for the clearcoat layer"),
352
+ anno::in_group("Clearcoat"),
353
+ anno::soft_range(float(0.0), float(4.0))
354
+ ]],
355
+ uniform float clearcoat_bump_factor = float(1.0) [[
356
+ anno::display_name("Clearcoat Normal Map Strength"),
357
+ anno::description("Strength of normal map."),
358
+ anno::in_group("Clearcoat"),
359
+ anno::soft_range(float(0.0), float(1.0))
360
+ ]],
361
+ uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[
362
+ anno::display_name("Clearcoat Normal Map"),
363
+ anno::description("Enables the usage of the normalmap texture"),
364
+ anno::in_group("Clearcoat"),
365
+ anno::usage("normal")
366
+ ]],
367
+ uniform float2 clearcoat_texture_translate = float2(0.0) [[
368
+ anno::display_name("Clearcoat Texture Translate"),
369
+ anno::description("Controls the position of the clearcoat texture"),
370
+ anno::ui_order(1),
371
+ anno::in_group("UV")
372
+ ]],
373
+ uniform float clearcoat_texture_rotate = float(0.0) [[
374
+ anno::display_name("Clearcoat Texture Rotate"),
375
+ anno::description("Rotates angle of the clearcoat texture in degrees"),
376
+ anno::ui_order(2),
377
+ anno::in_group("UV")
378
+ ]],
379
+ uniform float2 clearcoat_texture_scale = float2(1.0) [[
380
+ anno::display_name("Clearcoat Texture Tiling"),
381
+ anno::description("Controls the repetition of the clearcoat texture"),
382
+ anno::ui_order(3),
383
+ anno::in_group("UV")
384
+ ]],
385
+ float clearcoat_flatten = float(1.0) [[
386
+ anno::display_name("Clearcoat Flatten"),
387
+ anno::description("Flattens the clearcoat to even out the underlying bump maps"),
388
+ anno::in_group("Clearcoat"),
389
+ anno::hard_range(float(0.0), float(1.0))
390
+ ]],
391
+
392
+
393
+ // Normal //
394
+
395
+ uniform float geometry_normal_roughness_strength = 1.f
396
+ [[
397
+ anno::hard_range(0.0, 1.0),
398
+ anno::display_name("Normal map to roughness weight"),
399
+ anno::description("Enables and weights roughness induced by normal maps"),
400
+ anno::in_group("Normal")
401
+ ]],
402
+ uniform float bump_factor = float(1.0) [[
403
+ anno::display_name("Normal Strength"),
404
+ anno::description("Strength of normal map"),
405
+ anno::in_group("Normal"),
406
+ anno::soft_range(float(0.0), float(1.0))
407
+ ]],
408
+ uniform texture_2d normalmap_texture = texture_2d() [[
409
+ anno::display_name("Normal Map"),
410
+ anno::in_group("Normal"),
411
+ anno::usage("normal")
412
+ ]],
413
+ uniform float detail_bump_factor = float(0.3) [[
414
+ anno::display_name("Detail Normal Strength"),
415
+ anno::in_group("Normal"),
416
+ anno::description("Strength of the detail normal"),
417
+ anno::soft_range(float(0.0), float(1.0))
418
+ ]],
419
+ uniform texture_2d detail_normalmap_texture = texture_2d() [[
420
+ anno::display_name("Detail Normal Map"),
421
+ anno::in_group("Normal"),
422
+ anno::usage("normal")
423
+ ]],
424
+ uniform bool flip_tangent_u = false [[
425
+ anno::display_name("Normal Map Flip U Tangent"),
426
+ anno::in_group("Normal")
427
+ ]],
428
+ uniform bool flip_tangent_v = true [[
429
+ anno::display_name("Normal Map Flip V Tangent"),
430
+ anno::in_group("Normal")
431
+ ]],
432
+
433
+
434
+ // UVW Projection Group //
435
+
436
+ uniform bool project_uvw = false [[
437
+ anno::display_name("Enable Project UVW Coordinates"),
438
+ anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
439
+ anno::in_group("UV")
440
+ ]],
441
+ uniform bool world_or_object = false [[
442
+ anno::display_name("Enable World Space"),
443
+ anno::description("When enabled, uses world space for projection, otherwise object space is used"),
444
+ anno::in_group("UV"),
445
+ anno::enable_if("project_uvw == true")
446
+ ]],
447
+ uniform int uv_space_index = 0 [[
448
+ anno::display_name("UV Space Index"),
449
+ anno::description("UV Space Index"),
450
+ anno::in_group("UV"),
451
+ anno::enable_if("project_uvw == true"),
452
+ anno::hard_range(int(0), int(3))
453
+ ]],
454
+
455
+
456
+ // UVW Adjustments Group //
457
+
458
+ uniform float2 texture_translate = float2(0.0) [[
459
+ anno::display_name("Texture Translate"),
460
+ anno::description("Controls position of texture."),
461
+ anno::in_group("UV"),
462
+ anno::enable_if("project_uvw == true")
463
+ ]],
464
+ uniform float texture_rotate = float(0.0) [[
465
+ anno::display_name("Texture Rotate"),
466
+ anno::description("Rotates angle of texture in degrees."),
467
+ anno::in_group("UV"),
468
+ anno::enable_if("project_uvw == true")
469
+ ]],
470
+ uniform float2 texture_scale = float2(1.0) [[
471
+ anno::display_name("Texture Tiling"),
472
+ anno::description("Controls repetition of the texture."),
473
+ anno::in_group("UV"),
474
+ anno::enable_if("project_uvw == true")
475
+ ]],
476
+ uniform float2 detail_texture_translate = float2(0.0) [[
477
+ anno::display_name("Detail Texture Translate"),
478
+ anno::description("Controls the position of the detail texture."),
479
+ anno::in_group("UV"),
480
+ anno::enable_if("project_uvw == true")
481
+ ]],
482
+ uniform float detail_texture_rotate = float(0.0) [[
483
+ anno::display_name("Detail Texture Rotate"),
484
+ anno::description("Rotates angle of the detail texture in degrees."),
485
+ anno::in_group("UV"),
486
+ anno::enable_if("project_uvw == true")
487
+ ]],
488
+ uniform float2 detail_texture_scale = float2(1.0) [[
489
+ anno::display_name("Detail Texture Tiling"),
490
+ anno::description("Controls repetition of the detail texture."),
491
+ anno::in_group("UV"),
492
+ anno::enable_if("project_uvw == true")
493
+ ]],
494
+
495
+
496
+ // Geometry //
497
+
498
+ uniform float round_edges_radius = float(0.0) [[
499
+ anno::display_name("Round Edge Radius"),
500
+ anno::description("Influence radius around the edges in meters"),
501
+ anno::in_group("Geometry"),
502
+ anno::soft_range(0.0, 1.0)
503
+ ]],
504
+ uniform float round_edges_roundness = float(1.0) [[
505
+ anno::display_name("Round Edge Roundness"),
506
+ anno::description("Determines how round the edge will look"),
507
+ anno::in_group("Geometry"),
508
+ anno::hard_range(0.0, 1.0)
509
+ ]],
510
+ uniform bool round_edges_across_materials = false [[
511
+ anno::display_name("Round Edge Across Materials"),
512
+ anno::description("Normal smoothing happens only between facets of equal material, \n"
513
+ "\t\tunless this parameter is set true, in which case the smoothing \n"
514
+ "\t\thappens between facets irrespective of their materials"),
515
+ anno::in_group("Geometry")
516
+ ]]
517
+ )
518
+ [[
519
+ anno::display_name("OmniPBR ClearCoat "),
520
+ anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
521
+ anno::in_group("Base"),
522
+ anno::version( 2, 1, 1),
523
+ anno::author("NVIDIA CORPORATION"),
524
+ anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic"))
525
+ ]] = let {
526
+
527
+ // UVW lookup and transformation //
528
+ base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object;
529
+
530
+ base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection(
531
+ coordinate_system: the_system,
532
+ texture_space: uv_space_index,
533
+ projection_type: base::projection_cubic
534
+ ) :
535
+ base::coordinate_source(
536
+ coordinate_system: base::texture_coordinate_uvw,
537
+ texture_space: uv_space_index
538
+ );
539
+
540
+ base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
541
+ transform: rotation_translation_scale(
542
+ scaling: float3(texture_scale.x, texture_scale.y, 1.0),
543
+ rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ),
544
+ translation: float3(texture_translate.x, texture_translate.y, 0.0)
545
+ ),
546
+ coordinate: uvw
547
+ );
548
+
549
+ base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate(
550
+ transform: rotation_translation_scale(
551
+ scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0),
552
+ rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ),
553
+ translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0)
554
+ ),
555
+ coordinate: uvw
556
+ );
557
+
558
+ base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate(
559
+ transform: rotation_translation_scale(
560
+ scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0),
561
+ rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ),
562
+ translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f)
563
+ ),
564
+ coordinate: uvw
565
+ );
566
+
567
+ // Normal calculations //
568
+ OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0));
569
+
570
+ OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ?
571
+ OmniPBRBase::tangent_space_normal_roughness_texture(
572
+ texture: normalmap_texture,
573
+ factor: bump_factor,
574
+ uvw: transformed_uvw,
575
+ flip_tangent_u: flip_tangent_u,
576
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
577
+ //flip_tangent_v: true
578
+
579
+ ) : defaultData;
580
+ float3 the_normal = normal_data.normal;
581
+
582
+ OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ?
583
+ OmniPBRBase::tangent_space_normal_roughness_texture(
584
+ texture: detail_normalmap_texture,
585
+ factor: detail_bump_factor,
586
+ uvw: detail_transformed_uvw,
587
+ flip_tangent_u: flip_tangent_u,
588
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
589
+ ) : defaultData;
590
+ float3 detail_normal = detail_normal_data.normal;
591
+
592
+ OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ?
593
+ OmniPBRBase::tangent_space_normal_roughness_texture(
594
+ texture: clearcoat_normalmap_texture,
595
+ factor: clearcoat_bump_factor,
596
+ uvw: clearcoat_transformed_uvw,
597
+ flip_tangent_u: flip_tangent_u,
598
+ flip_tangent_v: flip_tangent_v // true for dx, false for opengl
599
+ ) : defaultData;
600
+ float3 clearcoat_normal = clearcoat_normal_data.normal;
601
+
602
+
603
+ float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal;
604
+ float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten);
605
+ float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal)
606
+ : flattened_clearcoat_normal;
607
+
608
+
609
+ // ORM Handling //
610
+
611
+ float3 ORM_lookup = tex::lookup_float3(
612
+ tex: ORM_texture,
613
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
614
+ );
615
+
616
+
617
+ float3 roughness_lookup = tex::lookup_float3(
618
+ tex: reflectionroughness_texture,
619
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
620
+ );
621
+
622
+ float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x;
623
+ float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence);
624
+ float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)),
625
+ math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)));
626
+
627
+ float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)),
628
+ math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y)));
629
+
630
+ // Diffuse Color Lookup and AO //
631
+
632
+ base::texture_return base_lookup = base::file_texture(
633
+ texture: diffuse_texture,
634
+ color_offset: color(albedo_add),
635
+ color_scale: color(albedo_brightness),
636
+ mono_source: base::mono_luminance,
637
+ uvw: transformed_uvw,
638
+ clip: false
639
+ );
640
+
641
+ base::texture_return ao_lookup = base::file_texture(
642
+ texture: ao_texture,
643
+ color_offset: color(0.0, 0.0, 0.0),
644
+ color_scale: color(1.0, 1.0, 1.0),
645
+ mono_source: base::mono_average,
646
+ uvw: transformed_uvw,
647
+ clip: false
648
+ );
649
+
650
+
651
+ color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint;
652
+ color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation);
653
+ color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant;
654
+ color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint;
655
+
656
+ color base_color = multiply_colors(
657
+ color_1: tinted_diffuse,
658
+ color_2: ao_color,
659
+ weight: ao_to_diffuse
660
+ ).tint;
661
+
662
+
663
+ // Metalness //
664
+
665
+ float3 metallic_lookup = tex::lookup_float3(
666
+ tex: metallic_texture,
667
+ coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
668
+ );
669
+
670
+ float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x;
671
+ float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence);
672
+
673
+
674
+ // Emission //
675
+
676
+ color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ?
677
+ base::file_texture(
678
+ texture: emissive_color_texture,
679
+ color_offset: color(0.0, 0.0, 0.0),
680
+ color_scale: color(1.0, 1.0, 1.0),
681
+ mono_source: base::mono_average,
682
+ uvw: transformed_uvw,
683
+ clip: false
684
+ ).tint : emissive_color;
685
+
686
+ color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ?
687
+ base::file_texture(
688
+ texture: emissive_mask_texture,
689
+ color_offset: color(0.0, 0.0, 0.0),
690
+ color_scale: color(1.0, 1.0, 1.0),
691
+ mono_source: base::mono_average,
692
+ uvw: transformed_uvw,
693
+ clip: false
694
+ ).tint : color(1.0);
695
+
696
+ color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0);
697
+
698
+ // Opacity //
699
+
700
+ float opacity_value = enable_opacity_texture ? base::file_texture(
701
+ texture: opacity_texture,
702
+ mono_source: opacity_mode,
703
+ uvw: transformed_uvw
704
+ ).mono : opacity_constant;
705
+
706
+ float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0;
707
+
708
+ material base = OmniPBRBase::OmniPBRBase(
709
+ diffuse_reflection_color: base_color,
710
+ specular_reflection_aniso_roughness: reflection_roughness,
711
+ specular_level: specular_level,
712
+ metalness: metallic,
713
+ enable_emission: enable_emission,
714
+ emission_color: final_emission_color,
715
+ emission_intensity: emissive_intensity,
716
+ enable_coat: enable_clearcoat,
717
+ coat_weight: clearcoat_weight,
718
+ coat_color: clearcoat_tint,
719
+ coat_transparency: clearcoat_transparency,
720
+ coat_aniso_roughness: clearcoat_reflection_roughness2,
721
+ coat_ior: clearcoat_ior,
722
+ enable_opacity: enable_opacity,
723
+ geometry_opacity: cutout_opacity,
724
+ clearcoat_geometry_normal: final_clearcoat_normal,
725
+ round_edges_radius: round_edges_radius,
726
+ round_edges_roundness: round_edges_roundness,
727
+ round_edges_across_materials: round_edges_across_materials,
728
+ geometry_normal: diffuse_gloss_normal
729
+ );
730
+
731
+ } in material(
732
+ surface: base.surface,
733
+ geometry: base.geometry
734
+ );
PFA755EXB2EC3341NN2NNS001/simready_usd/materials/Polyester_Charmeuse.mdl ADDED
@@ -0,0 +1,1031 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /******************************************************************************
2
+ * Copyright 2023 NVIDIA Corporation. All rights reserved.
3
+ ******************************************************************************
4
+
5
+ Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
6
+ to any person obtaining a copy of the sample definition code that uses our
7
+ Material Definition Language (the "MDL Materials"), to reproduce and distribute
8
+ the MDL Materials, including without limitation the rights to use, copy, merge,
9
+ publish, distribute, and sell modified and unmodified copies of the MDL
10
+ Materials, and to permit persons to whom the MDL Materials is furnished to do
11
+ so, in all cases solely for use with NVIDIA's Material Definition Language,
12
+ subject to the following further conditions:
13
+
14
+ 1. The above copyright notices, this list of conditions, and the disclaimer
15
+ that follows shall be retained in all copies of one or more of the MDL
16
+ Materials, including in any software with which the MDL Materials are bundled,
17
+ redistributed, and/or sold, and included either as stand-alone text files,
18
+ human-readable headers or in the appropriate machine-readable metadata fields
19
+ within text or binary files as long as those fields can be easily viewed by the
20
+ user, as applicable.
21
+ 2. The name of NVIDIA shall not be used to promote, endorse or advertise any
22
+ Modified Version without specific prior written permission, except a) to comply
23
+ with the notice requirements otherwise contained herein; or b) to acknowledge
24
+ the contribution(s) of NVIDIA.
25
+
26
+ THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
27
+ OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
28
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
29
+ TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
30
+ ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
31
+ INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
32
+ CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
33
+ THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
34
+ */
35
+
36
+
37
+ mdl 1.7;
38
+
39
+ import ::anno::*;
40
+ import ::base::*;
41
+ import ::df::*;
42
+ import ::math::*;
43
+ import ::state::*;
44
+ import ::tex::*;
45
+ import ::nvidia::core_definitions::blend_colors;
46
+ import ::nvidia::core_definitions::dimension;
47
+
48
+
49
+ const string COPYRIGHT =
50
+ " Copyright 2023 NVIDIA Corporation. All rights reserved.\n"
51
+ " MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
52
+ " WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
53
+ " THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
54
+ " EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
55
+ " MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
56
+ " COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
57
+ " CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
58
+ " GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
59
+ " AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
60
+ " INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
61
+
62
+ annotation preview_scale( float f);
63
+
64
+ // Returns the normal n in tangent space, given n is in internal space.
65
+ float3 transform_internal_to_tangent(float3 n)
66
+ [[
67
+ ::anno::hidden()
68
+ ]]
69
+ {
70
+ return
71
+ n.x* float3(state::texture_tangent_u(0).x,state::texture_tangent_v(0).x,state::normal().x)+
72
+ n.y* float3(state::texture_tangent_u(0).y,state::texture_tangent_v(0).y,state::normal().y)+
73
+ n.z* float3(state::texture_tangent_u(0).z,state::texture_tangent_v(0).z,state::normal().z);
74
+ }
75
+
76
+ // Returns the normal n in internal space, given n is in tangent space.
77
+ float3 transform_tangent_to_internal(float3 n)
78
+ [[
79
+ ::anno::hidden()
80
+ ]]
81
+ {
82
+ return state::texture_tangent_u(0) * n.x +
83
+ state::texture_tangent_v(0) * n.y +
84
+ state::normal() * n.z ;
85
+ }
86
+
87
+
88
+
89
+ // Returns a normal by adding a detail normal to a global normal.
90
+ // If detail blending of two normal maps gives visual artifacts, check if texture_2d are loaded
91
+ // correctly with tex::gamma_linear
92
+ float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal())
93
+ {
94
+ // http://blog.selfshadow.com/publications/blending-in-detail/
95
+ float3 n_t = transform_internal_to_tangent(n);
96
+ float3 nd_t = transform_internal_to_tangent(nd);
97
+
98
+ n_t=n_t + float3(0.,0.,1.);
99
+ nd_t = nd_t * float3(-1.,-1.,1.);
100
+ n = n_t*math::dot(n_t, nd_t)/n_t.z - nd_t;
101
+ return ::math::normalize(transform_tangent_to_internal(n));
102
+ }
103
+
104
+ float histogram_range(float input, float range = 1.0f, float position = 0.5f)
105
+ {
106
+ float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
107
+ float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
108
+ return ::math::lerp(low, high, input);
109
+ }
110
+
111
+ int lowbias32(int x)
112
+ {
113
+ x ^= x >>> 16;
114
+ x *= 0x7feb352d;
115
+ x ^= x >>> 15;
116
+ x *= 0x846ca68b;
117
+ x ^= x >>> 16;
118
+ return x;
119
+ }
120
+
121
+ float uint2float(int x)
122
+ {
123
+ return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
124
+ }
125
+
126
+ float3 normalmap_normal(
127
+ uniform texture_2d texture,
128
+ float factor = 1.0,
129
+ ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
130
+ )
131
+ {
132
+ float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0);
133
+ return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + state::normal() * (lookup.z + (1.0 - factor)));
134
+ }
135
+
136
+ float4 rand_tile_id_lookup(
137
+ ::base::texture_coordinate_info uvw = ::base::coordinate_source(::base::texture_coordinate_uvw, 0),
138
+ uniform texture_2d id_offset_tex = texture_2d() // map containing the ID in r channel
139
+ //and the cell offset in g channel.
140
+ )
141
+ [[
142
+ ::anno::noinline()
143
+ ]]
144
+ {
145
+ float4 ret_val;
146
+ int offset_x, offset_y;
147
+
148
+ // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here
149
+ int2 texel_coord = int2(int(::math::frac(uvw.position.x) * ::tex::width(id_offset_tex)),
150
+ int(::math::frac(uvw.position.y) * ::tex::height(id_offset_tex)));
151
+ float3 id_offset_map_2 = ::tex::texel_float3(id_offset_tex, texel_coord);
152
+
153
+ float offset_id = id_offset_map_2.y;
154
+ int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts
155
+ // with the random number generator. Setting it to 254 apparently fixes it
156
+
157
+ // Offset of overlapping tiles stored in G-channel
158
+ // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1
159
+ // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37
160
+ // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62
161
+ // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87
162
+
163
+ offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0;
164
+ offset_y = offset_id < 0.5 ? 0 : 1;
165
+
166
+ int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y));
167
+
168
+ int rand_val_1 = lowbias32(rand_id + lowbias32(cell_id.x + lowbias32(cell_id.y)));
169
+ int rand_val_2 = lowbias32(rand_val_1);
170
+ int rand_val_3 = lowbias32(rand_val_2);
171
+ int rand_val_4 = lowbias32(rand_val_3);
172
+ ret_val = float4(uint2float(rand_val_1),
173
+ uint2float(rand_val_2),
174
+ uint2float(rand_val_3),
175
+ uint2float(rand_val_4));
176
+
177
+ return float4(ret_val/4294967296.f);
178
+ }
179
+
180
+ ::base::texture_coordinate_info transform_coordinate_2(
181
+ float4x4 transform
182
+ [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix") ]],
183
+ ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
184
+ [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection") ]]
185
+ ) [[
186
+ ::anno::description("Transform a texture coordinate by a matrix") ,
187
+ ::anno::noinline()
188
+ ]]
189
+ {
190
+ // Version 2
191
+ float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
192
+ float4 u = transform[0];
193
+ float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
194
+ float cos = ru.x;
195
+ float sin = -ru.y;
196
+
197
+ return ::base::texture_coordinate_info(
198
+ float3(r_position.x,r_position.y,r_position.z),
199
+ math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
200
+ math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
201
+ }
202
+
203
+
204
+ // Takes the standard input that every material has. It combines a couple of
205
+ // functions in one convenience function.
206
+ ::base::texture_coordinate_info vmat_transform(
207
+ float2 translation = float2(0.0, 0.0),
208
+ float rotation = 0.0, // rotation in degrees
209
+ float2 scaling = float2(1.0, 1.0),
210
+ uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
211
+ uniform int uv_space = 0
212
+ )
213
+ {
214
+ float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
215
+ float4x4 scale =
216
+ float4x4(1.0 /scaling.x, 0. , 0. , 0.,
217
+ 0. , 1.0 /scaling.y , 0. , 0.,
218
+ 0. , 0. , 1.0, 0.,
219
+ translation.x , translation.y , 0.0, 1.);
220
+
221
+ float s = ::math::sin(rotation_rad);
222
+ float c = ::math::cos(rotation_rad);
223
+ float4x4 rotate =
224
+ float4x4( c , -s , 0.0 , 0.0,
225
+ s , c , 0.0 , 0.0,
226
+ 0.0, 0.0 , 1.0 , 0.0,
227
+ 0. , 0.0 , 0.0 , 1.);
228
+
229
+ return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
230
+ }
231
+
232
+ ::base::texture_coordinate_info vmat_transform_post_scale(
233
+ ::base::texture_coordinate_info uvw,
234
+ float2 scale = float2(1.0f)
235
+ )
236
+ {
237
+ return ::base::texture_coordinate_info(
238
+ position: float3(uvw.position.x / scale.x,
239
+ uvw.position.y / scale.y,
240
+ uvw.position.z / scale.x),
241
+ tangent_u: uvw.tangent_u,
242
+ tangent_v: uvw.tangent_v
243
+ );
244
+ }
245
+
246
+
247
+ float3 rgb2hsl(float3 c)
248
+ [[
249
+ ::anno::description("Converts a color value to HSL. The function outputs the hue to \n"
250
+ "lie in the range from 0.0-1.0"),
251
+ ::anno::author("NVIDIA vMaterials")
252
+ ]]
253
+ {
254
+ float3 hsl;
255
+ float cMax = ::math::max(::math::max(c.x, c.y), c.z);
256
+ float cMin = ::math::min(::math::min(c.x, c.y), c.z);
257
+ float delta = cMax - cMin;
258
+
259
+ hsl.z = (cMax + cMin) / 2.0;
260
+ hsl.x = ((cMax == cMin) ? 0 :
261
+ (cMax == c.x) ? (c.y - c.z) / delta + ((c.z > c.y) ? 6.0f : 0.0f):
262
+ (cMax == c.y) ? (c.z - c.x) / delta + 2.0 : (c.x - c.y) / delta + 4.0) / 6.0f;
263
+ hsl.y = (hsl.z == 0.0 || hsl.z == 1.0) ? 0.0 : delta / (1.0 - ::math::abs(2.0 * hsl.z - 1.0));
264
+ return hsl;
265
+ }
266
+
267
+ float f_n(float n, float a, float h, float l) {
268
+ float k = ::math::fmod(n + h * 12.f, 12.f);
269
+
270
+ return l - a * ::math::max(-1.0f, ::math::min(::math::min(k-3.0f, 9.0f-k), 1.0f));
271
+ }
272
+
273
+ color hsl2rgb(float3 hsl)
274
+ [[
275
+ ::anno::description("Converts a HSL value back to a color. Note that the hue is expected to \n"
276
+ "lie in the range from 0.0-1.0"),
277
+ ::anno::author("NVIDIA vMaterials")
278
+ ]]
279
+ {
280
+ float h = hsl.x, s = hsl.y, l = hsl.z;
281
+ float a = s * ::math::min(l, 1.0f - l);
282
+ return color(f_n(0.0, a, h, l),
283
+ f_n(8.0, a, h, l),
284
+ f_n(4.0, a, h, l));
285
+ }
286
+
287
+
288
+
289
+ //
290
+ // flake noise utilities
291
+ //
292
+ // constants for numerical fitted curve to observed flake noise density behavior
293
+ // 1. no jitter, maximum flake diameter
294
+ const float4 ABCD = float4(-26.19771808f, 26.39663835f, 85.53857017f, -102.35069432f);
295
+ const float2 EF = float2(-101.42634862f, 118.45082288f);
296
+ // 2. jitter scale of 0.5f, maximum flake diameter
297
+ const float4 ABCD_J = float4(-0.87962159f, 0.91006603f, 0.76088203f, -0.24953308f);
298
+ const float2 EF_J = float2(-3.11456809f, 2.63430594f);
299
+
300
+ float density_to_probability(
301
+ float4 abcd,
302
+ float2 ef,
303
+ float x)
304
+ {
305
+ float xx = x * x;
306
+ return (abcd.x * xx + abcd.y * x) / (abcd.z * xx * x + abcd.w * xx + ef.x * x + ef.y);
307
+ }
308
+
309
+
310
+ int hash(int seed, int i)
311
+ {
312
+ return (i ^ seed) * 1075385539;
313
+ }
314
+ int rnd_init(int3 pos)
315
+ {
316
+ return hash(hash(hash(0, pos.x), pos.y), pos.z);
317
+ }
318
+
319
+ int rnd_next(int seed) {
320
+ // xorshift32 using signed int
321
+ seed ^= seed << 13;
322
+ seed ^= seed >>> 17;
323
+ seed ^= seed << 5;
324
+ return seed;
325
+ }
326
+
327
+ float rnd_value(int seed)
328
+ {
329
+ return ::math::abs(float(seed) * 4.6566e-10f);
330
+ }
331
+
332
+ // apply random rotation (using "Fast Random Rotation Matrices" by James Arvo)
333
+ float3 rotate_pos(float3 pos, float3 xi)
334
+ {
335
+ float theta = ::math::PI * 2.0f * xi.x;
336
+ float phi = ::math::PI * 2.0f * xi.y;
337
+ float z = xi.z * 2.0f;
338
+
339
+ float r = ::math::sqrt(z);
340
+ float[2] sp_cp = ::math::sincos(phi);
341
+ float Vx = sp_cp[0] * r;
342
+ float Vy = sp_cp[1] * r;
343
+ float Vz = ::math::sqrt(2.0f - z);
344
+
345
+ float[2] st_ct = ::math::sincos(theta);
346
+ float Sx = Vx * st_ct[1] - Vy * st_ct[0];
347
+ float Sy = Vx * st_ct[0] + Vy * st_ct[1];
348
+
349
+ float3x3 M(
350
+ Vx * Sx - st_ct[1], Vx * Sy - st_ct[0], Vx * Vz,
351
+ Vy * Sx + st_ct[0], Vy * Sy - st_ct[1], Vy * Vz,
352
+ Vz * Sx, Vz * Sy, 1.0f - z);
353
+
354
+ return M * pos;
355
+ }
356
+
357
+ struct flake_noise_value {
358
+ // flake priority (in [0..1], 0: no flake, flakes with higher priority shadow flakes "below" them)
359
+ float priority;
360
+ // Stores values from the functions (once normal, another time the color)
361
+ // current pseudo random number generator seed
362
+ int rnd_seed;
363
+ float4 carrier;
364
+ };
365
+
366
+ // flake noise function with controllable regularity, flake size, and probability
367
+ flake_noise_value flake_noise(
368
+ float3 pos,
369
+ float jitter_scale = 1.0f,
370
+ float flake_diameter = 0.75f,
371
+ float flake_probability = 1.0f)
372
+ {
373
+ float3 base_pos = ::math::floor(pos);
374
+ int3 base_pos_i = int3(base_pos);
375
+
376
+ // limit the flake size to the allowed maximum (such that looking at all neighbors is sufficient)
377
+ flake_diameter = ::math::min(flake_diameter, (1.5f - 0.5f * jitter_scale) / ::math::sqrt(3.0f));
378
+
379
+ flake_noise_value val(0.0f, 0, float4(0.0));
380
+
381
+ for (int i = -1; i < 2; ++i) {
382
+ for (int j = -1; j < 2; ++j) {
383
+ for (int k = -1; k < 2; ++k) {
384
+
385
+ int seed = rnd_init(base_pos_i + int3(i, j, k));
386
+
387
+ seed = rnd_next(seed);
388
+ if (rnd_value(seed) > flake_probability)
389
+ continue;
390
+
391
+ seed = rnd_next(seed);
392
+ float priority = rnd_value(seed);
393
+ if (priority < val.priority)
394
+ continue;
395
+
396
+ float3 flake_pos = base_pos + float3(i, j, k) + float3(0.5f);
397
+
398
+ if (jitter_scale > 0.0f) {
399
+ seed = rnd_next(seed);
400
+ flake_pos.x += (rnd_value(seed) - 0.5f) * jitter_scale;
401
+ seed = rnd_next(seed);
402
+ flake_pos.y += (rnd_value(seed) - 0.5f) * jitter_scale;
403
+ seed = rnd_next(seed);
404
+ flake_pos.z += (rnd_value(seed) - 0.5f) * jitter_scale;
405
+ }
406
+
407
+ float3 p = pos - flake_pos;
408
+ if (math::dot(p, p) >= flake_diameter * flake_diameter * 4.0f)
409
+ continue;
410
+
411
+ float3 xi_rot;
412
+ seed = rnd_next(seed);
413
+ xi_rot.x = rnd_value(seed);
414
+ seed = rnd_next(seed);
415
+ xi_rot.y = rnd_value(seed);
416
+ seed = rnd_next(seed);
417
+ xi_rot.z = rnd_value(seed);
418
+ p = rotate_pos(p, xi_rot);
419
+
420
+ if (math::abs(p.x) <= flake_diameter &&
421
+ ::math::abs(p.y) <= flake_diameter &&
422
+ ::math::abs(p.z) <= flake_diameter)
423
+ {
424
+ val.priority = priority;
425
+ val.rnd_seed = seed;
426
+ }
427
+ }
428
+ }
429
+ }
430
+
431
+ return val;
432
+ }
433
+
434
+ flake_noise_value flake_noise(
435
+ float3 position,
436
+ float density = 0.5f,
437
+ bool jittered = false) // jittered: slightly slower and slightly less uniform
438
+ {
439
+ float probability = density_to_probability(jittered ? ABCD_J : ABCD, jittered ? EF_J : EF, ::math::saturate(density));
440
+
441
+ return flake_noise(pos: position, jitter_scale: jittered ? 0.5f : 0.0f, flake_diameter: (jittered ? 1.25f : 1.5f) / ::math::sqrt(3.0f), flake_probability: probability);
442
+ }
443
+
444
+ // create a flake normal by importance sampling the Beckmann distribution with given roughness
445
+ flake_noise_value flake_normal(
446
+ flake_noise_value val,
447
+ float spread)
448
+ {
449
+ if (val.priority <= 0.0f)
450
+ {
451
+ val.carrier = float4(::state::normal().x, ::state::normal().y, ::state::normal().z, 1.0);
452
+ return val;
453
+ }
454
+
455
+ // int seed0 = rnd_next(val.rnd_seed);
456
+ // float xi0 = rnd_value(seed0);
457
+ // float xi1 = rnd_value(rnd_next(seed0));
458
+
459
+ int seed = rnd_next(val.rnd_seed);
460
+ float xi0 = rnd_value(seed);
461
+ seed = rnd_next(seed);
462
+ float xi1 = rnd_value(seed);
463
+
464
+ float phi = ::math::PI * 2.0f * xi0;
465
+
466
+ float roughness = spread * spread;
467
+
468
+ float tantheta = ::math::sqrt(-roughness * roughness * ::math::log(1.0f - xi1));
469
+ float sintheta = tantheta / ::math::sqrt(1.0f + tantheta * tantheta);
470
+ float costheta = ::math::sqrt(1.0f - sintheta * sintheta);
471
+
472
+ float[2] scphi = ::math::sincos(phi);
473
+
474
+ val.rnd_seed = seed;
475
+
476
+ // return
477
+ // ::state::texture_tangent_u(0) * scphi[1] * sintheta +
478
+ // ::state::texture_tangent_v(0) * scphi[0] * sintheta +
479
+ // ::state::normal() * costheta;
480
+ float3 normal = ::state::texture_tangent_u(0) * scphi[1] * sintheta +
481
+ ::state::texture_tangent_v(0) * scphi[0] * sintheta +
482
+ ::state::normal() * costheta;
483
+
484
+ val.carrier = float4(normal.x, normal.y, normal.z, 1.0);
485
+
486
+
487
+ return val;
488
+ }
489
+
490
+
491
+
492
+
493
+
494
+ export material Polyester_Charmeuse(
495
+ color fabric_color = color(0.98f, 0.98f, 0.98f) [[
496
+ ::anno::description("Choose the color of the fabric."),
497
+ ::anno::display_name("Fabric Color"),
498
+ ::anno::in_group("Appearance"),
499
+ ::anno::ui_order(0)
500
+ ]],
501
+ float color_deviation = 0.f [[
502
+ ::anno::description("Adds a variation to the reflection colors of the fabric. Higher values lead to more drastical color changes."),
503
+ ::anno::display_name("Color Deviation"),
504
+ ::anno::in_group("Appearance"),
505
+ ::anno::hard_range(0.f, 1.f),
506
+ ::anno::ui_order(1)
507
+ ]],
508
+ float highlight_saturation = 0.79f [[
509
+ ::anno::description("Higher values cause reflected light to be tinted in the color of the material."),
510
+ ::anno::display_name("Highlight Saturation"),
511
+ ::anno::in_group("Appearance"),
512
+ ::anno::hard_range(0.f, 1.f),
513
+ ::anno::ui_order(2)
514
+ ]],
515
+ float diffuse_weight = 0.0f [[
516
+ ::anno::description("Increasing the diffuse contribution make the material appear more flat and takes away some of its shininess."),
517
+ ::anno::display_name("Diffuse Amount"),
518
+ ::anno::in_group("Appearance"),
519
+ ::anno::hard_range(0.f, 1.f),
520
+ ::anno::ui_order(3)
521
+ ]],
522
+ float transmissive_weight = 0.16f [[
523
+ ::anno::description("Lets light pass through the material and illuminate it from the other side."),
524
+ ::anno::display_name("Translucency"),
525
+ ::anno::in_group("Appearance"),
526
+ ::anno::hard_range(0.f, 1.f),
527
+ ::anno::ui_order(4)
528
+ ]],
529
+ float bump_strength = 0.71f [[
530
+ ::anno::description("Specifies the strength of the bump."),
531
+ ::anno::display_name("Bump Strength"),
532
+ ::anno::in_group("Appearance"),
533
+ ::anno::hard_range(0.f, 1.f),
534
+ ::anno::ui_order(5)
535
+ ]],
536
+ float2 texture_translate = float2(0.f) [[
537
+ ::anno::description("Controls the position of the texture."),
538
+ ::anno::display_name("Texture Translate"),
539
+ ::anno::in_group("Transform"),
540
+ ::anno::ui_order(6)
541
+ ]],
542
+ float texture_rotate = 0.f [[
543
+ ::anno::description("Rotates angle of the texture in degrees."),
544
+ ::anno::display_name("Texture Rotate"),
545
+ ::anno::in_group("Transform"),
546
+ ::anno::soft_range(0.f, 360.f),
547
+ ::anno::ui_order(7)
548
+ ]],
549
+ float2 texture_scale = float2(1.f) [[
550
+ ::anno::description("Larger numbers increase the size."),
551
+ ::anno::display_name("Texture Scale"),
552
+ ::anno::in_group("Transform"),
553
+ ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
554
+ ::preview_scale(2.5f),
555
+ ::anno::ui_order(8)
556
+ ]],
557
+ uniform int uv_space_index = 0 [[
558
+ ::anno::description("Uses selected UV space for material."),
559
+ ::anno::display_name("UV Space Index"),
560
+ ::anno::in_group("Transform"),
561
+ ::anno::ui_order(9)
562
+ ]]
563
+
564
+ )
565
+ [[
566
+ ::anno::author("NVIDIA vMaterials"),
567
+ ::anno::contributor("Rüdiger Raab"),
568
+ ::anno::display_name("Polyester Charmeuse - White"),
569
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
570
+ ::anno::copyright_notice(COPYRIGHT),
571
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse.png"),
572
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "white", "light", "neutral"))
573
+ ]]
574
+ =
575
+ let {
576
+ // These parameters could be exposed globally, however, they are set as constants in the material
577
+ float weft_deviation = 0.41f; // note that a stronger deviation will lead to clipping behavior of the
578
+ // bsdfs when viewing them at grazing angles
579
+ float warp_to_weft = 0.26f;
580
+ float middle_lobe_weight = 0.26f;
581
+
582
+
583
+ // The next parameters control the width of the highlight
584
+ float warp_roughness = 0.1f; // Width of the warp roughness
585
+ float weft_roughness = 0.09f; // Width of the weft roughness
586
+ float warpweft_noise_amount = 1.0f; // we use noise to introduce irregularities in the appearance of the
587
+ // BDSF across the material surface
588
+
589
+ texture_2d weave_normal_texture = texture_2d("./textures/charmeuse_weaving_02_norm.png", ::tex::gamma_linear);
590
+ texture_2d weave_random_texture = texture_2d("./textures/charmeuse_weaving_02_R_id_G_offs.png", ::tex::gamma_linear);
591
+ texture_2d glizz_texture = texture_2d("./textures/fabric_noise_multi_R_noise1_G_noise_2.png", ::tex::gamma_linear);
592
+
593
+ // preparing fabric colors
594
+ // We will be deriving all colors of the fabric from a single color which requires some amount of remapping
595
+ // the values in HSL space and then converting them back to RGB
596
+ float3 fabric_hsl_color = rgb2hsl(float3(fabric_color));
597
+
598
+ color diffuse_transmission_color = hsl2rgb(
599
+ float3( fabric_hsl_color.x,
600
+ fabric_hsl_color.y * ::math::pow(fabric_hsl_color.z, 0.26f),
601
+ 0.76f
602
+ )
603
+ );
604
+
605
+ float remap_thread_brightness = fabric_hsl_color.z * 0.85 + 0.15;
606
+
607
+ color warp_color = hsl2rgb(
608
+ float3( fabric_hsl_color.x - (color_deviation * 0.3), // - Shifting color by color deviation
609
+ ::math::lerp(0.0f, highlight_saturation, fabric_hsl_color.y * 0.85f), //scaling the max saturation down by 15%
610
+ remap_thread_brightness) // remapping brightness for weft highlight
611
+ );
612
+
613
+ color weft_color = hsl2rgb(
614
+ float3( fabric_hsl_color.x + (color_deviation * 0.3), // + Shifting color by color deviation
615
+ ::math::lerp(0.0f, highlight_saturation, fabric_hsl_color.y * 0.85f),
616
+ remap_thread_brightness
617
+ )
618
+ );
619
+
620
+ // Prepare UV coordinates for texture and noise lookups
621
+ ::base::texture_coordinate_info uvw = vmat_transform(
622
+ translation: texture_translate,
623
+ rotation: texture_rotate,
624
+ scaling: texture_scale * 0.4f, // scale to fit default size of 1m for UV 0...1
625
+ system: ::base::texture_coordinate_uvw,
626
+ uv_space: uv_space_index
627
+ );
628
+
629
+ ::base::texture_coordinate_info uvw_post = vmat_transform_post_scale(uvw: uvw, scale: float2(0.004f));
630
+
631
+ // Flake normal
632
+ flake_noise_value flake_noise_val = flake_noise(
633
+ position: float3(uvw.position * 2500.0f),
634
+ density: 0.72f,
635
+ jittered: true
636
+ );
637
+
638
+ flake_noise_value flake_noise_val2 = flake_normal(
639
+ val: flake_noise_val,
640
+ spread: 0.38f // controllable from outside
641
+ );
642
+
643
+ float3 flake_normal = float3(flake_noise_val2.carrier.x, flake_noise_val2.carrier.y, flake_noise_val2.carrier.z);
644
+
645
+ // TEXTURES
646
+ // Glizz noise textures
647
+ float3 glizz_lookup = tex::lookup_float3(
648
+ glizz_texture,
649
+ float2(uvw.position.x,uvw.position.y)
650
+ );
651
+
652
+
653
+ // Weave normal
654
+ float4 rand_val = rand_tile_id_lookup(
655
+ uvw: uvw_post, // we use the downscaled small UV cordinates here
656
+ id_offset_tex: weave_random_texture // special texture that allows us to randomize the height of the single weaves
657
+ );
658
+
659
+ float3 weave_normal = normalmap_normal(
660
+ texture: weave_normal_texture,
661
+ factor: ::math::lerp(bump_strength* 0.4f, bump_strength * 0.86f, rand_val.x), // lerping the random values and scaling by bump_strength
662
+ uvw: uvw_post // we use the downscaled small UV cordinates here
663
+ );
664
+
665
+ // BSDFs
666
+ // (single) Warp BSDF
667
+ bsdf warp_bsdf = ::df::simple_glossy_bsdf(
668
+ roughness_u: 0.88f,
669
+ roughness_v: histogram_range(glizz_lookup.x, warpweft_noise_amount, warp_roughness), // adjusting noise texture to show some glizzening effect
670
+ tint: warp_color,
671
+ tangent_u: uvw.tangent_u, // required to rotate the anisotropic highlight correctly
672
+ mode: ::df::scatter_reflect
673
+ );
674
+
675
+ // (triple) Weft BSDF
676
+ bsdf weft_bsdf = ::df::microfacet_ggx_smith_bsdf(
677
+ roughness_u: histogram_range(glizz_lookup.y, warpweft_noise_amount, weft_roughness), // adjusting noise texture to show some glizzening effect
678
+ roughness_v: 0.58f,
679
+ tint: weft_color,
680
+ multiscatter_tint: weft_color,
681
+ tangent_u: uvw.tangent_u // required to rotate the anisotropic highlight correctly
682
+ );
683
+
684
+ float3 weft_left_normal = ::math::normalize(::state::normal() - uvw.tangent_u * weft_deviation);
685
+ float3 weft_right_normal = ::math::normalize(::state::normal() + uvw.tangent_u * weft_deviation);
686
+
687
+ //adding flake detail normals
688
+ float3 weft_left_detail_normal = add_detail_normal(
689
+ n: weft_left_normal, // left-shifted normal
690
+ nd: flake_normal
691
+ );
692
+
693
+ float3 weft_right_detail_normal = add_detail_normal(
694
+ n: weft_right_normal, // right-shifted normal
695
+ nd: flake_normal
696
+ );
697
+
698
+ // Left lobe with detail normal
699
+ bsdf left_lobe_bsdf = ::df::weighted_layer(
700
+ weight: 1.0f,
701
+ layer: weft_bsdf,
702
+ base: bsdf(),
703
+ normal: weft_left_detail_normal
704
+ );
705
+
706
+ // Right lobe with detail normal
707
+ bsdf right_lobe_bsdf = ::df::weighted_layer(
708
+ weight: 1.0f,
709
+ layer: weft_bsdf,
710
+ base: bsdf(),
711
+ normal: weft_right_detail_normal
712
+ );
713
+
714
+ // Middle lobe
715
+ bsdf middle_lobe_bsdf = ::df::weighted_layer(
716
+ weight: 1.0f,
717
+ layer: weft_bsdf,
718
+ base: bsdf(),
719
+ normal: flake_normal
720
+ );
721
+
722
+
723
+ bsdf left_right_lobe_bsdf = ::df::weighted_layer(
724
+ base: left_lobe_bsdf,
725
+ layer: right_lobe_bsdf,
726
+ weight: 0.5f
727
+ );
728
+
729
+ bsdf left_right_middle_lobe_bsdf = ::df::weighted_layer(
730
+ base: left_right_lobe_bsdf,
731
+ layer: middle_lobe_bsdf,
732
+ weight: middle_lobe_weight
733
+ );
734
+
735
+ // Warp and Weft BSDF combined and weighted via custom curve layer
736
+ bsdf warp_weft_combined_bsdf = ::df::custom_curve_layer(
737
+ base: df::weighted_layer(
738
+ layer: warp_bsdf,
739
+ base: left_right_middle_lobe_bsdf,
740
+ weight: warp_to_weft > 1.0f ? 1.0 - 1.0f / warp_to_weft : warp_to_weft
741
+ ),
742
+ layer: bsdf(),
743
+ normal_reflectivity: 0.11f,
744
+ grazing_reflectivity: 1.0f,
745
+ exponent: 3.63f,
746
+ weight: 1.0f
747
+ );
748
+
749
+
750
+ // Diffuse Transmission BSDF
751
+ bsdf diff_transmission_bsdf = ::df::diffuse_transmission_bsdf(
752
+ tint: diffuse_transmission_color
753
+ );
754
+
755
+ // Diffuse Reflection BSDF
756
+ bsdf diff_reflection_bsdf = ::df::diffuse_reflection_bsdf(
757
+ tint: fabric_color
758
+ );
759
+
760
+ bsdf transmission_warp_weft_mix = ::df::weighted_layer(
761
+ base: warp_weft_combined_bsdf,
762
+ layer: diff_transmission_bsdf,
763
+ weight: transmissive_weight * 0.68f
764
+ );
765
+
766
+ bsdf diffuse_warp_weft_mix = ::df::weighted_layer(
767
+ base: warp_weft_combined_bsdf,
768
+ layer: diff_reflection_bsdf,
769
+ weight: diffuse_weight * 0.68f
770
+ );
771
+
772
+ bsdf final_bsdf = ::df::weighted_layer(
773
+ base: transmission_warp_weft_mix,
774
+ layer: diffuse_warp_weft_mix,
775
+ weight: 0.5f
776
+ );
777
+
778
+
779
+ } in
780
+ material(
781
+ thin_walled: true,
782
+ surface: material_surface(
783
+ scattering: final_bsdf
784
+ ),
785
+ ior: color(1.0f),
786
+ geometry: material_geometry(
787
+ normal: weave_normal
788
+ )
789
+ );
790
+
791
+
792
+ // 2
793
+ export material Polyester_Charmeuse_Silver(*)
794
+ [[
795
+ ::anno::author("NVIDIA vMaterials"),
796
+ ::anno::contributor("Rüdiger Raab"),
797
+ ::anno::display_name("Polyester Charmeuse - Silver"),
798
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
799
+ ::anno::copyright_notice(COPYRIGHT),
800
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Silver.png"),
801
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "silver", "light", "neutral"))
802
+ ]] = Polyester_Charmeuse(
803
+ fabric_color: color(0.571125f, 0.571125f, 0.672443f),
804
+ color_deviation: 0.09f,
805
+ highlight_saturation: 0.79f,
806
+ diffuse_weight: 0.05f,
807
+ transmissive_weight: 0.16f,
808
+ bump_strength: 0.70f,
809
+ texture_translate: float2(0.0f),
810
+ texture_rotate: 0.0f,
811
+ texture_scale: float2(1.0f),
812
+ uv_space_index: 0
813
+ );
814
+
815
+
816
+
817
+ // 3
818
+ export material Polyester_Charmeuse_Gold(*)
819
+ [[
820
+ ::anno::author("NVIDIA vMaterials"),
821
+ ::anno::contributor("Rüdiger Raab"),
822
+ ::anno::display_name("Polyester Charmeuse - Gold"),
823
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
824
+ ::anno::copyright_notice(COPYRIGHT),
825
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Gold.png"),
826
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "gold", "warm", "saturated"))
827
+ ]] = Polyester_Charmeuse(
828
+ fabric_color: color(0.571125f, 0.309469f, 0.031896f),
829
+ color_deviation: 0.09f,
830
+ highlight_saturation: 0.93f,
831
+ diffuse_weight: 0.05f,
832
+ transmissive_weight: 0.16f,
833
+ bump_strength: 0.70f,
834
+ texture_translate: float2(0.0f),
835
+ texture_rotate: 0.0f,
836
+ texture_scale: float2(1.0f),
837
+ uv_space_index: 0
838
+ );
839
+
840
+
841
+ // 4
842
+ export material Polyester_Charmeuse_Red(*)
843
+ [[
844
+ ::anno::author("NVIDIA vMaterials"),
845
+ ::anno::contributor("Rüdiger Raab"),
846
+ ::anno::display_name("Polyester Charmeuse - Red"),
847
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
848
+ ::anno::copyright_notice(COPYRIGHT),
849
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Red.png"),
850
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "red", "saturated", "warm"))
851
+ ]] = Polyester_Charmeuse(
852
+ fabric_color: color(0.445201f, 0.003035f, 0.003035f),
853
+ color_deviation: 0.00f,
854
+ highlight_saturation: 0.98f,
855
+ diffuse_weight: 0.05f,
856
+ transmissive_weight: 0.16f,
857
+ bump_strength: 0.70f,
858
+ texture_translate: float2(0.0f),
859
+ texture_rotate: 0.0f,
860
+ texture_scale: float2(1.0f),
861
+ uv_space_index: 0
862
+ );
863
+
864
+
865
+ // 5
866
+ export material Polyester_Charmeuse_Orange(*)
867
+ [[
868
+ ::anno::author("NVIDIA vMaterials"),
869
+ ::anno::contributor("Rüdiger Raab"),
870
+ ::anno::display_name("Polyester Charmeuse - Orange"),
871
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
872
+ ::anno::copyright_notice(COPYRIGHT),
873
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Orange.png"),
874
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "orange", "warm", "saturated"))
875
+ ]] = Polyester_Charmeuse(
876
+ fabric_color: color(0.672443f, 0.223228f, 0.003035f),
877
+ color_deviation: 0.0f,
878
+ highlight_saturation: 0.98f,
879
+ diffuse_weight: 0.06f,
880
+ transmissive_weight: 0.16f,
881
+ bump_strength: 0.70f,
882
+ texture_translate: float2(0.0f),
883
+ texture_rotate: 0.0f,
884
+ texture_scale: float2(1.0f),
885
+ uv_space_index: 0
886
+ );
887
+
888
+
889
+ // 6
890
+ export material Polyester_Charmeuse_Purple(*)
891
+ [[
892
+ ::anno::author("NVIDIA vMaterials"),
893
+ ::anno::contributor("Rüdiger Raab"),
894
+ ::anno::display_name("Polyester Charmeuse - Purple"),
895
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
896
+ ::anno::copyright_notice(COPYRIGHT),
897
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Purple.png"),
898
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "purple", "saturated"))
899
+ ]] = Polyester_Charmeuse(
900
+ fabric_color: color(0.337164f, 0.022174f, 0.198069f),
901
+ color_deviation: 0.0f,
902
+ highlight_saturation: 0.98f,
903
+ diffuse_weight: 0.05f,
904
+ transmissive_weight: 0.16f,
905
+ bump_strength: 0.70f,
906
+ texture_translate: float2(0.0f),
907
+ texture_rotate: 0.0f,
908
+ texture_scale: float2(1.0f),
909
+ uv_space_index: 0
910
+ );
911
+
912
+
913
+ // 7
914
+ export material Polyester_Charmeuse_Aqua_Blue(*)
915
+ [[
916
+ ::anno::author("NVIDIA vMaterials"),
917
+ ::anno::contributor("Rüdiger Raab"),
918
+ ::anno::display_name("Polyester Charmeuse - Aqua Blue"),
919
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
920
+ ::anno::copyright_notice(COPYRIGHT),
921
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Aqua_Blue.png"),
922
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "aqua", "blue", "saturated", "cool"))
923
+ ]] = Polyester_Charmeuse(
924
+ fabric_color: color(0.006512f, 0.168269f, 0.278894f),
925
+ color_deviation: 0.1f,
926
+ highlight_saturation: 0.98f,
927
+ diffuse_weight: 0.05f,
928
+ transmissive_weight: 0.16f,
929
+ bump_strength: 0.70f,
930
+ texture_translate: float2(0.0f),
931
+ texture_rotate: 0.0f,
932
+ texture_scale: float2(1.0f),
933
+ uv_space_index: 0
934
+ );
935
+
936
+
937
+ // 8
938
+ export material Polyester_Charmeuse_Black(*)
939
+ [[
940
+ ::anno::author("NVIDIA vMaterials"),
941
+ ::anno::contributor("Rüdiger Raab"),
942
+ ::anno::display_name("Polyester Charmeuse - Black"),
943
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
944
+ ::anno::copyright_notice(COPYRIGHT),
945
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Black.png"),
946
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "black", "dark", "neutral"))
947
+ ]] = Polyester_Charmeuse(
948
+ fabric_color: color(0.001821f, 0.001821f, 0.001821f),
949
+ color_deviation: 0.00f,
950
+ highlight_saturation: 0.49f,
951
+ diffuse_weight: 0.93f,
952
+ transmissive_weight: 0.21f,
953
+ bump_strength: 0.70f,
954
+ texture_translate: float2(0.0f),
955
+ texture_rotate: 0.0f,
956
+ texture_scale: float2(1.0f),
957
+ uv_space_index: 0
958
+ );
959
+
960
+
961
+ // 9
962
+ export material Polyester_Charmeuse_Lime_Green(*)
963
+ [[
964
+ ::anno::author("NVIDIA vMaterials"),
965
+ ::anno::contributor("Rüdiger Raab"),
966
+ ::anno::display_name("Polyester Charmeuse - Lime Green"),
967
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
968
+ ::anno::copyright_notice(COPYRIGHT),
969
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Lime_Green.png"),
970
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "lime", "green", "saturated"))
971
+ ]] = Polyester_Charmeuse(
972
+ fabric_color: color(0.212231f, 0.337164f, 0.006049f),
973
+ color_deviation: 0.09f,
974
+ highlight_saturation: 0.99f,
975
+ diffuse_weight: 0.05f,
976
+ transmissive_weight: 0.21f,
977
+ bump_strength: 0.70f,
978
+ texture_translate: float2(0.0f),
979
+ texture_rotate: 0.0f,
980
+ texture_scale: float2(1.0f),
981
+ uv_space_index: 0
982
+ );
983
+
984
+
985
+ // 10
986
+ export material Polyester_Charmeuse_Lemon(*)
987
+ [[
988
+ ::anno::author("NVIDIA vMaterials"),
989
+ ::anno::contributor("Rüdiger Raab"),
990
+ ::anno::display_name("Polyester Charmeuse - Lemon"),
991
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
992
+ ::anno::copyright_notice(COPYRIGHT),
993
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Lemon.png"),
994
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "lemon", "yellow", "warm", "light", "saturated"))
995
+ ]] = Polyester_Charmeuse(
996
+ fabric_color: color(0.715694f, 0.693872f, 0.004025f),
997
+ color_deviation: 0.09f,
998
+ highlight_saturation: 0.99f,
999
+ diffuse_weight: 0.05f,
1000
+ transmissive_weight: 0.21f,
1001
+ bump_strength: 0.70f,
1002
+ texture_translate: float2(0.0f),
1003
+ texture_rotate: 0.0f,
1004
+ texture_scale: float2(1.0f),
1005
+ uv_space_index: 0
1006
+ );
1007
+
1008
+
1009
+ // 11
1010
+ export material Polyester_Charmeuse_Teal(*)
1011
+ [[
1012
+ ::anno::author("NVIDIA vMaterials"),
1013
+ ::anno::contributor("Rüdiger Raab"),
1014
+ ::anno::display_name("Polyester Charmeuse - Teal"),
1015
+ ::anno::description("A polyester material woven using a satin weave. It features color deviation to simulate color shifting in the material."),
1016
+ ::anno::copyright_notice(COPYRIGHT),
1017
+ ::anno::thumbnail("./.thumbs/Polyester_Charmeuse.Polyester_Charmeuse_Teal.png"),
1018
+ ::anno::key_words(string[]("fabric", "translucent", "polyester", "synthetic", "woven", "charmeuse", "iridescent", "fashion", "design", "dark", "teal", "blue", "saturated", "cool"))
1019
+ ]] = Polyester_Charmeuse(
1020
+ fabric_color: color(0.003035f, 0.033105f, 0.070360f),
1021
+ color_deviation: 0.09f,
1022
+ highlight_saturation: 0.99f,
1023
+ diffuse_weight: 0.05f,
1024
+ transmissive_weight: 0.21f,
1025
+ bump_strength: 0.70f,
1026
+ texture_translate: float2(0.0f),
1027
+ texture_rotate: 0.0f,
1028
+ texture_scale: float2(1.0f),
1029
+ uv_space_index: 0
1030
+ );
1031
+
PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/external.usd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34203952a4b150b4a6ae8bea2b5d5ea37c20186d18e324914094831da72ac5de
3
+ size 12519055
PFA755EXB2EC3341NN2NNS001/simready_usd/payloads/internal.usd ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:047281a571ad165360e006c23dbf89a8761ee170c6b9e7c8c18998be7d37ee5d
3
+ size 303133
PFA755EXB2EC3341NN2NNS001/simready_usd/textures/PFA_Screen.png ADDED

Git LFS Details

  • SHA256: 851e6fe37f0089dc1ab513acb95e8d9411954a1085132d6d17aa68b7e0742954
  • Pointer size: 131 Bytes
  • Size of remote file: 227 kB