Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +77 -0
- assets/basic/arrange_the_tableware/fork/fork_0/Aligned_obj.obj.mtl +14 -0
- assets/basic/arrange_the_tableware/fork/fork_0/README.md +5 -0
- assets/basic/arrange_the_tableware/fork/fork_0/asset.json +26 -0
- assets/basic/arrange_the_tableware/knife/knife_0/Aligned_obj.obj.mtl +14 -0
- assets/basic/arrange_the_tableware/knife/knife_0/README.md +5 -0
- assets/basic/arrange_the_tableware/knife/knife_0/asset.json +26 -0
- assets/basic/arrange_the_tableware/plate/plate_0/Aligned_obj.obj.mtl +14 -0
- assets/basic/arrange_the_tableware/plate/plate_0/README.md +5 -0
- assets/basic/arrange_the_tableware/plate/plate_0/asset.json +26 -0
- assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.mtl +10 -0
- assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.obj +0 -0
- assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.obj.mtl +14 -0
- assets/basic/arrange_the_tableware/spoon/spoon_0/Aligned_obj.obj.mtl +14 -0
- assets/basic/arrange_the_tableware/spoon/spoon_0/README.md +5 -0
- assets/basic/arrange_the_tableware/spoon/spoon_0/asset.json +26 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.mtl +11 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.obj +1172 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.obj.mtl +13 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.usd +0 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Looks.usd +0 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/DayMaterial.mdl +67 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/KooPbr.mdl +462 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/KooPbr_maps.mdl +515 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/Num5bed78cdc3f62601a28ea512.mdl +284 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Base.mdl +224 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Function.mdl +1413 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Translucent.mdl +233 -0
- assets/basic/arrange_the_tableware/tray/tray_0/Materials/WorldGridMaterial.mdl +75 -0
- assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.mtl +9 -0
- assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.obj +0 -0
- assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.obj.mtl +14 -0
- assets/basic/hang_the_cup_on_rack/cup/cup0/README.md +5 -0
- assets/basic/hang_the_cup_on_rack/cup/cup0/asset.json +26 -0
- assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.mtl +9 -0
- assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.obj +0 -0
- assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.obj.mtl +14 -0
- assets/basic/hang_the_cup_on_rack/cup/cup1/README.md +5 -0
- assets/basic/hang_the_cup_on_rack/cup/cup1/asset.json +26 -0
- assets/basic/hang_the_cup_on_rack/cup/cup2/Aligned_obj.obj.mtl +14 -0
- assets/basic/hang_the_cup_on_rack/cup/cup2/README.md +5 -0
- assets/basic/hang_the_cup_on_rack/cup/cup2/asset.json +26 -0
- assets/basic/hang_the_cup_on_rack/cup/cup2/material.mtl +10 -0
- assets/basic/hang_the_cup_on_rack/cup/cup3/Aligned_obj.obj.mtl +14 -0
- assets/basic/hang_the_cup_on_rack/cup/cup3/README.md +5 -0
- assets/basic/hang_the_cup_on_rack/cup/cup3/asset.json +26 -0
- assets/basic/hang_the_cup_on_rack/cup/cup3/material.mtl +10 -0
- assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.mtl +9 -0
- assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.obj +0 -0
- assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.obj.mtl +14 -0
.gitattributes
CHANGED
|
@@ -4615,3 +4615,80 @@ assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3
|
|
| 4615 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_035/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4616 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_029/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4617 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_038/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4615 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_035/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4616 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_029/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4617 |
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_038/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4618 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_031/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4619 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_030/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4620 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_001/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4621 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_005/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4622 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_015/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4623 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_028/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4624 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_023/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4625 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_026/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4626 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_016/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4627 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_003/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4628 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_041/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4629 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_020/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4630 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_021/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4631 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_010/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4632 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_013/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4633 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_027/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4634 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_036/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4635 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_009/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4636 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-tooth_paste/omniobject3d-tooth_paste_024/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4637 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_007/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4638 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_019/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4639 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_006/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4640 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_020/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4641 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_029/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4642 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_024/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4643 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_001/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4644 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_027/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4645 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_026/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4646 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_013/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4647 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_028/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4648 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_010/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4649 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_014/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4650 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_030/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4651 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_022/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4652 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_008/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4653 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_009/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4654 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_004/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4655 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_023/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4656 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_025/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4657 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_011/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4658 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_031/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4659 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_003/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4660 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-lipstick/omniobject3d-lipstick_012/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4661 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mouse/omniobject3d-mouse_009/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4662 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_033/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4663 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_029/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4664 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_028/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4665 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_034/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4666 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_005/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4667 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_003/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4668 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_035/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4669 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_017/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4670 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_014/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4671 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-chili/omniobject3d-chili_004/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4672 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_004/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4673 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_042/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4674 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_003/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4675 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_059/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4676 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_032/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4677 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_025/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4678 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_012/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4679 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_016/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4680 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_013/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4681 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_019/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4682 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_028/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4683 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_005/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4684 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_027/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4685 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_061/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4686 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_054/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4687 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_064/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4688 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_049/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4689 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_002/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4690 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_029/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4691 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_023/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4692 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_006/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4693 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_055/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
| 4694 |
+
assets/pick_and_place/pre-train-pick/assets/omniobject3d-mango/omniobject3d-mango_057/Aligned_obj.usd filter=lfs diff=lfs merge=lfs -text
|
assets/basic/arrange_the_tableware/fork/fork_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/arrange_the_tableware/fork/fork_0/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# fork_0
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[0.1177, 0.2357, 1.7909]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[223, 223, 223]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/arrange_the_tableware/fork/fork_0/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
0.1177,
|
| 9 |
+
0.2357,
|
| 10 |
+
1.7909
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
223,
|
| 22 |
+
223,
|
| 23 |
+
223
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/arrange_the_tableware/knife/knife_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/arrange_the_tableware/knife/knife_0/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# knife_0
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[0.0702, 0.1725, 1.7987]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[221, 221, 221]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/arrange_the_tableware/knife/knife_0/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
0.0702,
|
| 9 |
+
0.1725,
|
| 10 |
+
1.7987
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
221,
|
| 22 |
+
221,
|
| 23 |
+
221
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/arrange_the_tableware/plate/plate_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/arrange_the_tableware/plate/plate_0/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# plate_0
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[1.555, 1.5576, 0.2279]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[236, 236, 236]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/arrange_the_tableware/plate/plate_0/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
1.555,
|
| 9 |
+
1.5576,
|
| 10 |
+
0.2279
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
236,
|
| 22 |
+
236,
|
| 23 |
+
236
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.mtl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
|
| 2 |
+
# (assimp v5.0.1937526254)
|
| 3 |
+
|
| 4 |
+
newmtl Texture
|
| 5 |
+
Ke 0 0 0
|
| 6 |
+
illum 1
|
| 7 |
+
map_Kd ./baked_mesh_d814f419_tex0.png
|
| 8 |
+
bump ./baked_mesh_d814f419_norm0.png
|
| 9 |
+
map_bump ./baked_mesh_d814f419_norm0.png
|
| 10 |
+
|
assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/basic/arrange_the_tableware/plate_shelf/shelf_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 1.000000 1.000000 1.000000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd ./baked_mesh_d814f419_tex0.png
|
| 14 |
+
|
assets/basic/arrange_the_tableware/spoon/spoon_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/arrange_the_tableware/spoon/spoon_0/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# spoon_0
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[0.1934, 0.4036, 1.8804]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[215, 215, 215]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/arrange_the_tableware/spoon/spoon_0/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
0.1934,
|
| 9 |
+
0.4036,
|
| 10 |
+
1.8804
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
215,
|
| 22 |
+
215,
|
| 23 |
+
215
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.mtl
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
|
| 2 |
+
# (assimp v5.0.1937526254)
|
| 3 |
+
|
| 4 |
+
newmtl _db17c16c6ff5a0001df1b3e
|
| 5 |
+
Kd 1 1 1
|
| 6 |
+
illum 1
|
| 7 |
+
|
| 8 |
+
newmtl _db17c16b1d8ad000158f1b2
|
| 9 |
+
Kd 1 1 1
|
| 10 |
+
illum 1
|
| 11 |
+
|
assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.obj
ADDED
|
@@ -0,0 +1,1172 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
####
|
| 2 |
+
#
|
| 3 |
+
# OBJ File Generated by Meshlab
|
| 4 |
+
#
|
| 5 |
+
####
|
| 6 |
+
# Object Aligned_obj.obj
|
| 7 |
+
#
|
| 8 |
+
# Vertices: 232
|
| 9 |
+
# Faces: 460
|
| 10 |
+
#
|
| 11 |
+
####
|
| 12 |
+
mtllib ./Aligned_obj.obj.mtl
|
| 13 |
+
|
| 14 |
+
vn -0.4720345453436440 -0.0000028398727418 -0.8815800519488599
|
| 15 |
+
v -0.0413441629460282 -0.0031602286293634 -0.0902206671743056
|
| 16 |
+
vn -0.4720573871559659 -0.0000000355877919 -0.8815678211184217
|
| 17 |
+
v -0.0413442549987574 0.0040845965087022 -0.0902206425088512
|
| 18 |
+
vn -0.1317373636529443 0.0000008497978801 -0.9912846548883171
|
| 19 |
+
v -0.0402666636703066 0.0034680175224838 -0.0904634843019239
|
| 20 |
+
vn -0.1317365138950188 0.0000007416798861 -0.9912847678171181
|
| 21 |
+
v -0.0402665807938725 -0.0034684705224736 -0.0904635065085975
|
| 22 |
+
vn -0.8710464423722258 -0.0000087102096277 -0.4912006668916697
|
| 23 |
+
v -0.0419929812347721 -0.0031602286293634 -0.0896020900495676
|
| 24 |
+
vn -0.8710394741237970 0.0000000000000001 -0.4912130235632391
|
| 25 |
+
v -0.0419929812347721 0.0040845965087022 -0.0896020900495676
|
| 26 |
+
vn -0.8617701152169098 -0.0000091619745208 0.5072989931343175
|
| 27 |
+
v -0.0428473394575319 -0.0031602286293634 0.0932179363241531
|
| 28 |
+
vn -0.8617498335454998 -0.0000030648740025 0.5073334449599297
|
| 29 |
+
v -0.0428473394575319 0.0040845965087022 0.0932179363241531
|
| 30 |
+
vn -0.9945953970857699 -0.0000034810062026 0.1038267599594747
|
| 31 |
+
v -0.0430580833032188 0.0034680175224838 0.0922421456048672
|
| 32 |
+
vn -0.9945994946152795 -0.0000092823166877 0.1037875003305757
|
| 33 |
+
v -0.0430579957903409 -0.0034684705224736 0.0922421221558622
|
| 34 |
+
vn -0.4162948508300329 -0.0000037614933415 0.9092296723921035
|
| 35 |
+
v -0.0422041546215993 -0.0031602286293634 0.0937812834096601
|
| 36 |
+
vn -0.4162939021580808 -0.0000044916921006 0.9092301067418650
|
| 37 |
+
v -0.0422041546215993 0.0040845965087022 0.0937812834096601
|
| 38 |
+
vn 0.4161284773422028 -0.0000004463847992 -0.9093058288302460
|
| 39 |
+
v 0.0422036089052169 -0.0031596803293756 -0.0937808685312334
|
| 40 |
+
vn 0.0485262593073446 0.0000000000000001 -0.9988219071274100
|
| 41 |
+
v 0.0411279854678284 -0.0034680175224838 -0.0939320957327244
|
| 42 |
+
vn 0.0484918362003928 -0.0000035044069809 -0.9988235789215398
|
| 43 |
+
v 0.0411279854678284 0.0034684705224736 -0.0939320957327244
|
| 44 |
+
vn 0.4161206958043833 -0.0000038315381960 -0.9093093898715637
|
| 45 |
+
v 0.0422035854562120 0.0040850543086919 -0.0937809560441113
|
| 46 |
+
vn 0.8616714112025635 -0.0000014832457275 -0.5074666285717543
|
| 47 |
+
v 0.0428475215170048 0.0040850543086919 -0.0932176069204615
|
| 48 |
+
vn 0.8616568949312946 -0.0000000000000000 -0.5074912761982809
|
| 49 |
+
v 0.0428475215170048 -0.0031596803293756 -0.0932176069204615
|
| 50 |
+
vn 0.4721848620982139 -0.0000000000000001 0.8814995496341962
|
| 51 |
+
v 0.0413438035250362 -0.0031597709293736 0.0902207634808701
|
| 52 |
+
vn 0.4721848620982139 -0.0000000000000001 0.8814995496341962
|
| 53 |
+
v 0.0413438035250362 0.0040850543086919 0.0902207634808701
|
| 54 |
+
vn 0.1319778275269206 -0.0000000385526962 0.9912526686174787
|
| 55 |
+
v 0.0402662782277691 0.0034684705224736 0.0904641476653416
|
| 56 |
+
vn 0.1319777708360731 -0.0000000000000001 0.9912526761654372
|
| 57 |
+
v 0.0402662782277691 -0.0034680175224838 0.0904641476653416
|
| 58 |
+
vn 0.8709749737011615 0.0000333816419516 0.4913273797295722
|
| 59 |
+
v 0.0419930397424645 -0.0031596803293756 0.0896019761247714
|
| 60 |
+
vn 0.8711568845326415 0.0000042223323910 0.4910047683205876
|
| 61 |
+
v 0.0419930397424645 0.0040850543086919 0.0896019761247714
|
| 62 |
+
vn -0.9938220453125561 -0.0000036295235546 -0.1109853244244230
|
| 63 |
+
v -0.0422129671081440 0.0034680175224838 -0.0886078875059010
|
| 64 |
+
vn -0.9938260328666672 -0.0000087208722114 -0.1109496116282008
|
| 65 |
+
v -0.0422128749588222 -0.0034684705224736 -0.0886079121972374
|
| 66 |
+
vn -0.0483937114988532 -0.0000015726949728 0.9988283379464624
|
| 67 |
+
v -0.0411284396627324 0.0034680175224838 0.0939322250949258
|
| 68 |
+
vn -0.0483947625787260 -0.0000013206073645 0.9988282870209498
|
| 69 |
+
v -0.0411284396627324 -0.0034684705224736 0.0939322250949258
|
| 70 |
+
vn 0.9946095842645690 0.0000009488606094 -0.1036907656841282
|
| 71 |
+
v 0.0430580201941675 0.0034684705224736 -0.0922416620958838
|
| 72 |
+
vn 0.9946094050367471 0.0000007818771882 -0.1036924848377974
|
| 73 |
+
v 0.0430580201941675 -0.0034680175224838 -0.0922416620958838
|
| 74 |
+
vn 0.9938572236594212 0.0000341042369605 0.1106698595683964
|
| 75 |
+
v 0.0422122036101321 0.0034684705224736 0.0886082820577516
|
| 76 |
+
vn 0.9938163098927387 0.0000559709459184 0.1110366563727185
|
| 77 |
+
v 0.0422130883981692 -0.0034680175224838 0.0886080449795116
|
| 78 |
+
vn -0.6199767865587180 0.4630946816521065 0.6333814805895892
|
| 79 |
+
v 0.0350616509773893 0.0113297912467594 -0.0857949446745564
|
| 80 |
+
vn -0.6605829765998984 0.6653381824350908 0.3477861900944142
|
| 81 |
+
v 0.0354922536330779 0.0115609547415925 -0.0857317335807865
|
| 82 |
+
vn -0.4247652216360130 0.8404498835023816 0.3364795681900195
|
| 83 |
+
v 0.0361400672911351 0.0122546217260879 -0.0861055277151118
|
| 84 |
+
vn -0.2715007931638735 0.9240410553934816 0.2691383422306982
|
| 85 |
+
v 0.0351429617676903 0.0124858710209190 -0.0872925771116103
|
| 86 |
+
vn -0.2890697748416789 0.6492849892739978 0.7034683134132239
|
| 87 |
+
v 0.0343310716189164 0.0115609547415925 -0.0867486398736906
|
| 88 |
+
vn -0.2310310599394680 0.9235891022442470 0.3059539500626067
|
| 89 |
+
v 0.0360525157564130 0.0124858710209190 -0.0864957242252342
|
| 90 |
+
vn -0.2958984214800331 0.8317919956477995 0.4696447595171012
|
| 91 |
+
v 0.0347123764986662 0.0122546217260879 -0.0873557928641228
|
| 92 |
+
vn -0.7770034802541654 0.4136064259503379 0.4745474855960176
|
| 93 |
+
v -0.0428474269704097 0.0113293335467697 0.0932179597731581
|
| 94 |
+
vn -0.2659946610302249 0.9557587467472406 0.1255868556798829
|
| 95 |
+
v -0.0416755414681123 0.0124854156209292 0.0918565692519904
|
| 96 |
+
vn -0.5190490159901375 0.8429267829788412 0.1416423578475441
|
| 97 |
+
v -0.0421953569139939 0.0122541639260981 0.0918787574358835
|
| 98 |
+
vn -0.7780224528592302 0.5909902671032410 0.2130998991931882
|
| 99 |
+
v -0.0428452082832022 0.0115604994416027 0.0927423081074261
|
| 100 |
+
vn -0.0990596863420731 0.9535757730417708 0.2843948375227641
|
| 101 |
+
v -0.0407658491293756 0.0124854156209292 0.0926535872570255
|
| 102 |
+
vn -0.1030725389580574 0.8215424483931931 0.5607531160866228
|
| 103 |
+
v -0.0407679852212669 0.0122541639260981 0.0931291971211622
|
| 104 |
+
vn -0.3980864409039503 0.4162194440843437 0.8174891803165015
|
| 105 |
+
v -0.0422042467709211 0.0113293335467697 0.0937813081009965
|
| 106 |
+
vn -0.1651579340196593 0.5749043202466685 0.8013787365485024
|
| 107 |
+
v -0.0416843388945998 0.0115605900416007 0.0937591148206888
|
| 108 |
+
vn -0.4498882480151894 0.4095401124562935 -0.7936481969910283
|
| 109 |
+
v -0.0413442549987574 0.0113293335467697 -0.0902206425088512
|
| 110 |
+
vn -0.1250793491491853 0.9515216178397568 -0.2810013651212895
|
| 111 |
+
v -0.0399158280637212 0.0124854156209292 -0.0892150932748760
|
| 112 |
+
vn -0.1438667840107530 0.8180003909497874 -0.5569360006898445
|
| 113 |
+
v -0.0399136005143845 0.0122541639260981 -0.0896907300260965
|
| 114 |
+
vn -0.2272212651537978 0.5635927243648396 -0.7941874701258674
|
| 115 |
+
v -0.0408244313636760 0.0115605900416007 -0.0902428182896398
|
| 116 |
+
vn -0.2722714779656448 0.9534265206493562 -0.1297925730111946
|
| 117 |
+
v -0.0408333445401986 0.0124854156209292 -0.0883403546544418
|
| 118 |
+
vn -0.5256177182920041 0.8392288071182818 -0.1393593323761747
|
| 119 |
+
v -0.0413531675541143 0.0122541639260981 -0.0883181765554312
|
| 120 |
+
vn -0.7868199806228667 0.5791179791937888 -0.2133932620003130
|
| 121 |
+
v -0.0419952076642521 0.0115605900416007 -0.0891264487326139
|
| 122 |
+
vn -0.7878013327955609 0.4070302019604439 -0.4622720786913033
|
| 123 |
+
v -0.0419929812347721 0.0113293335467697 -0.0896020900495676
|
| 124 |
+
vn 0.1440572692599579 0.8180253749452632 0.5568500598177446
|
| 125 |
+
v 0.0399135929048736 0.0122546217260879 0.0896907391049366
|
| 126 |
+
vn 0.4500654820127711 0.4097278482914118 0.7934507875319691
|
| 127 |
+
v 0.0413438035250362 0.0113297912467594 0.0902207634808701
|
| 128 |
+
vn 0.2272498413110575 0.5637054963831952 0.7940992525947086
|
| 129 |
+
v 0.0408237299924394 0.0115610453415905 0.0902430011486431
|
| 130 |
+
vn 0.1251354197816945 0.9515160035283177 0.2809954123211937
|
| 131 |
+
v 0.0399155580055988 0.0124858710209190 0.0892151564227741
|
| 132 |
+
vn 0.2721338272031991 0.9534783691818646 0.1297003453890215
|
| 133 |
+
v 0.0408324350677602 0.0124858710209190 0.0883404999956123
|
| 134 |
+
vn 0.5254688185816263 0.8393205092204120 0.1393685886432746
|
| 135 |
+
v 0.0413525269529473 0.0122546217260879 0.0883182574102776
|
| 136 |
+
vn 0.7877133706324984 0.4070077406367928 0.4624417204237974
|
| 137 |
+
v 0.0419921549544274 0.0113297912467594 0.0896022132030114
|
| 138 |
+
vn 0.7868466329478797 0.5789315387385562 0.2138004903464734
|
| 139 |
+
v 0.0419949911493420 0.0115610453415905 0.0891264157468350
|
| 140 |
+
vn 0.0988035685485516 0.9536631887010618 -0.2841907411556449
|
| 141 |
+
v 0.0407651808660733 0.0124858710209190 -0.0926532228819811
|
| 142 |
+
vn 0.5188585951823808 0.8430087984000062 -0.1418517677913959
|
| 143 |
+
v 0.0421948377686616 0.0122547099260859 -0.0918785366480221
|
| 144 |
+
vn 0.2658666111233496 0.9557901578521691 -0.1256189446011678
|
| 145 |
+
v 0.0416747580532772 0.0124858710209190 -0.0918562872813975
|
| 146 |
+
vn 0.7769079320241435 0.4139221985173215 -0.4744285812770515
|
| 147 |
+
v 0.0428475215170048 0.0113297912467594 -0.0932176069204615
|
| 148 |
+
vn 0.7777860315578807 0.5913842015933315 -0.2128699490751602
|
| 149 |
+
v 0.0428446865385397 0.0115610453415905 -0.0927418049244338
|
| 150 |
+
vn 0.1032033581108646 0.8215868490421944 -0.5606639959508363
|
| 151 |
+
v 0.0407680146280890 0.0122546217260879 -0.0931290294178601
|
| 152 |
+
vn 0.1656446010589508 0.5751028762437458 -0.8011357861662354
|
| 153 |
+
v 0.0416843699938991 0.0115610453415905 -0.0937589431191971
|
| 154 |
+
vn 0.3980437224547628 0.4162478326427924 -0.8174955271036862
|
| 155 |
+
v 0.0422035854562120 0.0113297912467594 -0.0937809560441113
|
| 156 |
+
vn 0.1306520317607544 0.0831407096601245 0.9879360652360040
|
| 157 |
+
v -0.0325476109235071 -0.0020811414534829 -0.0837017499424361
|
| 158 |
+
vn -0.0481154485928903 0.0838106290744745 0.9953193869612136
|
| 159 |
+
v 0.0333430417942507 -0.0020807742534911 -0.0865095830744801
|
| 160 |
+
vn -0.0539637081651152 0.0911315528216140 0.9943756625548474
|
| 161 |
+
v 0.0333430417942507 0.0104048726674330 -0.0865095830744801
|
| 162 |
+
vn 0.9881178064844848 0.0975497901091362 0.1187738984708085
|
| 163 |
+
v -0.0344945222891640 0.0104045078674411 -0.0818459901491173
|
| 164 |
+
vn 0.9889004308748924 0.0981850726354372 -0.1115151529032098
|
| 165 |
+
v -0.0352731418230779 0.0104045078674411 0.0848192588679112
|
| 166 |
+
vn 0.9904794332546152 0.0913219142942126 -0.1030087388004378
|
| 167 |
+
v -0.0352731418230779 -0.0020811414534829 0.0848192588679112
|
| 168 |
+
vn 0.9898387248377739 0.0905782317669005 0.1096124205622313
|
| 169 |
+
v -0.0344945222891640 -0.0020811414534829 -0.0818459901491173
|
| 170 |
+
vn 0.0101036422669796 0.4380280742023008 -0.8989045125170775
|
| 171 |
+
v -0.0333425602131941 -0.0032372188276425 0.0863126299203952
|
| 172 |
+
vn 0.1901533705148837 0.3990985281066041 -0.8969738349277373
|
| 173 |
+
v -0.0339404679134863 -0.0031087779305134 0.0863387218854910
|
| 174 |
+
vn 0.0326031341120072 0.0679424929248083 -0.9971563835734277
|
| 175 |
+
v -0.0333432662807322 -0.0020811414534829 0.0865102038274908
|
| 176 |
+
vn 0.0541560537393294 0.0909481438346917 -0.9943819975122273
|
| 177 |
+
v -0.0333433537936101 0.0104045078674411 0.0865102272764958
|
| 178 |
+
vn -0.1368325712753941 0.0908733282395453 -0.9864171965516579
|
| 179 |
+
v 0.0325479409137344 0.0104048726674330 0.0837019502603415
|
| 180 |
+
vn -0.1304981336805186 0.0830326840653836 -0.9879654905323362
|
| 181 |
+
v 0.0325479409137344 -0.0020807742534911 0.0837019502603415
|
| 182 |
+
vn -0.9888718191512451 0.0981069663910035 0.1118371514035554
|
| 183 |
+
v 0.0352730518292536 0.0104048726674330 -0.0848192415869614
|
| 184 |
+
vn -0.5064076894743395 0.8606223669122868 0.0536692985938357
|
| 185 |
+
v 0.0344112240928820 -0.0039305209121460 -0.0847823922399494
|
| 186 |
+
vn -0.4516066933926944 0.8522211889377838 0.2641409464819631
|
| 187 |
+
v 0.0342942808132029 -0.0039305209121460 -0.0853245105117562
|
| 188 |
+
vn -0.0815156215692510 0.9921357202905180 0.0949837668435702
|
| 189 |
+
v 0.0333345824226504 -0.0041616868069790 -0.0847365301529863
|
| 190 |
+
vn 0.0720959926328245 0.8439192437409925 0.5316036849852710
|
| 191 |
+
v -0.0325517651256487 -0.0039308881121378 -0.0829136543672665
|
| 192 |
+
vn 0.2520674823424380 0.8387987474927279 0.4825750154640994
|
| 193 |
+
v -0.0331502829716387 -0.0039308881121378 -0.0827787819843352
|
| 194 |
+
vn 0.0882225753537926 0.9916064764071868 0.0945165231336189
|
| 195 |
+
v -0.0325560707521883 -0.0041620492069709 -0.0819286967949401
|
| 196 |
+
vn 0.0994532211420528 0.9885684483577576 -0.1133202528942004
|
| 197 |
+
v -0.0333349825976637 -0.0041620492069709 0.0847371930122715
|
| 198 |
+
vn -0.1087768361347555 0.9875278689952852 -0.1138257786186565
|
| 199 |
+
v 0.0325563990430033 -0.0041616868069790 0.0819288927024036
|
| 200 |
+
vn -0.9904525159583020 0.0913369643798195 0.1032539227814095
|
| 201 |
+
v 0.0352730518292536 -0.0020807742534911 -0.0848192415869614
|
| 202 |
+
vn -0.8841144732491095 0.4635690961343277 -0.0586966038255399
|
| 203 |
+
v 0.0342782860608895 -0.0032368564276506 0.0818556684855963
|
| 204 |
+
vn -0.8732501900724854 0.4137893910219150 -0.2573177907103999
|
| 205 |
+
v 0.0342757729231536 -0.0031084107305216 0.0824031571453983
|
| 206 |
+
vn -0.9929939736750113 0.0732818144150919 -0.0926970545440530
|
| 207 |
+
v 0.0344938700718679 -0.0020807742534911 0.0818460639707898
|
| 208 |
+
vn -0.9880930366496988 0.0978802239883935 -0.1187080986131911
|
| 209 |
+
v 0.0344938700718679 0.0104048726674330 0.0818460639707898
|
| 210 |
+
vn 0.1369844558190789 0.0908201761948825 0.9864010109787404
|
| 211 |
+
v -0.0325476356148434 0.0104045078674411 -0.0837018420917578
|
| 212 |
+
vn 0.1047159263255863 0.9944963485029766 -0.0034040546441798
|
| 213 |
+
v 0.0402865300221284 0.0124858710209190 0.0861833257375782
|
| 214 |
+
vn 0.1046520541788391 0.9945002177464366 0.0041550521584695
|
| 215 |
+
v 0.0411076521484592 0.0124858710209190 -0.0896515432871110
|
| 216 |
+
vn -0.0768603445189948 0.9966098532448872 -0.0293477061390835
|
| 217 |
+
v 0.0364273652288142 0.0124858710209190 0.0828022259998018
|
| 218 |
+
vn -0.0722127540103472 0.9969269054976434 0.0303654944490294
|
| 219 |
+
v 0.0372156239350793 0.0124858710209190 -0.0859404009089613
|
| 220 |
+
vn 0.0077956733929625 0.9934123397640418 0.1143291331239871
|
| 221 |
+
v -0.0383794667698425 0.0124854156209292 0.0920424935393811
|
| 222 |
+
vn 0.0017973407352100 0.9934088547042187 0.1146107192261442
|
| 223 |
+
v 0.0375341264497251 0.0124858710209190 0.0888077895986861
|
| 224 |
+
vn 0.0285290638657469 0.9960775077393553 -0.0837597223652196
|
| 225 |
+
v -0.0344869236464261 0.0124854156209292 0.0883315044146861
|
| 226 |
+
vn -0.0337776469647543 0.9957193071229347 -0.0860356437074053
|
| 227 |
+
v 0.0336749616564110 0.0124858710209190 0.0854266898609097
|
| 228 |
+
vn -0.1046738622360404 0.9945007646289049 0.0034075969705831
|
| 229 |
+
v -0.0402867385629127 0.0124854156209292 -0.0861829986168901
|
| 230 |
+
vn -0.1047098514079519 0.9944941185989107 -0.0041587366231459
|
| 231 |
+
v -0.0411083798234169 0.0124854156209292 0.0896524018790450
|
| 232 |
+
vn 0.0768375220444233 0.9966118894198428 0.0293383208974852
|
| 233 |
+
v -0.0364270857253882 0.0124854156209292 -0.0828022121693524
|
| 234 |
+
vn 0.0721809109287396 0.9969296445608098 -0.0303512749873014
|
| 235 |
+
v -0.0372159909241053 0.0124854156209292 0.0859404871306434
|
| 236 |
+
vn -0.0285611089603184 0.9960756929426435 0.0837703824975719
|
| 237 |
+
v 0.0344869349163467 0.0124858710209190 -0.0883311300762929
|
| 238 |
+
vn -0.0078020060073683 0.9934111353219715 -0.1143391661705327
|
| 239 |
+
v 0.0383789643461760 0.0124858710209190 -0.0920422679145913
|
| 240 |
+
vn -0.0017966382733336 0.9934176746170780 -0.1145342562263019
|
| 241 |
+
v -0.0375346261345767 0.0124854156209292 -0.0888071863143239
|
| 242 |
+
vn 0.0337509050967475 0.9957199848317569 0.0860382950307376
|
| 243 |
+
v -0.0336746324477176 0.0124854156209292 -0.0854264913006177
|
| 244 |
+
vn -0.5501974802467370 0.4591477625819596 0.6974711928432041
|
| 245 |
+
v 0.0344186231536384 0.0113297912467594 -0.0863584433635682
|
| 246 |
+
vn -0.2529699301733643 0.9194512700321420 -0.3010242124221309
|
| 247 |
+
v 0.0352580727033129 0.0124858710209190 0.0834574255506263
|
| 248 |
+
vn -0.4512383552590842 0.8268199356237357 -0.3357867489914365
|
| 249 |
+
v 0.0353496104185727 0.0122546217260879 0.0830589025113794
|
| 250 |
+
vn -0.6773146527525007 0.6485882101217579 -0.3472437110414153
|
| 251 |
+
v 0.0347051969453662 0.0115609547415925 0.0827404613834597
|
| 252 |
+
vn -0.3320138016109848 0.8180807723126475 -0.4695856530092927
|
| 253 |
+
v 0.0339098101938713 0.0122546217260879 0.0844316173326425
|
| 254 |
+
vn -0.2873419777931034 0.9199832099065319 -0.2665810970193155
|
| 255 |
+
v 0.0343411866890002 0.0124858710209190 0.0843320833412336
|
| 256 |
+
vn -0.5846735632853776 0.4437608410418756 -0.6791414730032226
|
| 257 |
+
v 0.0336257068061930 0.0113297912467594 0.0834594292160196
|
| 258 |
+
vn -0.3424065196651357 0.6336954166468115 -0.6936770820862060
|
| 259 |
+
v 0.0335339313055863 0.0115609547415925 0.0838570686919742
|
| 260 |
+
vn -0.6514482195163932 0.4473245777649225 -0.6127935536674282
|
| 261 |
+
v 0.0342740582355842 0.0113297912467594 0.0828408789381608
|
| 262 |
+
vn 0.2528957763240448 0.9194668748771542 0.3010388551683961
|
| 263 |
+
v -0.0352585800873329 0.0124854156209292 -0.0834568127492899
|
| 264 |
+
vn 0.4512493476933958 0.8267812854507682 0.3358671347938948
|
| 265 |
+
v -0.0353493870791093 0.0122542545260961 -0.0830590608097708
|
| 266 |
+
vn 0.6773002425699923 0.6485262181964425 0.3473875727864339
|
| 267 |
+
v -0.0347049198748392 0.0115605900416007 -0.0827404566327128
|
| 268 |
+
vn 0.3324403571437074 0.8178584839286032 0.4696710649041212
|
| 269 |
+
v -0.0339104377646599 0.0122542545260961 -0.0844314511425812
|
| 270 |
+
vn 0.2879278240162105 0.9195986427610561 0.2672749602737112
|
| 271 |
+
v -0.0343408199813755 0.0124854156209292 -0.0843317104460663
|
| 272 |
+
vn 0.5848572164172955 0.4439036598378536 0.6788899595569020
|
| 273 |
+
v -0.0336252863448414 0.0113293335467697 -0.0834588904825410
|
| 274 |
+
vn 0.3429662726583627 0.6340029067769393 0.6931193620273649
|
| 275 |
+
v -0.0335344794496575 0.0115605900416007 -0.0838566423961781
|
| 276 |
+
vn 0.6512281810261346 0.4470108185165294 0.6132562142910373
|
| 277 |
+
v -0.0342745462391349 0.0113293335467697 -0.0828401926488175
|
| 278 |
+
vn 0.2715647768134442 0.9240203007756418 -0.2691450459301767
|
| 279 |
+
v -0.0351432816585861 0.0124854156209292 0.0872928387195367
|
| 280 |
+
vn 0.2960695526313520 0.8317572789910691 -0.4695983910215664
|
| 281 |
+
v -0.0347130634520551 0.0122542545260961 0.0873560685546686
|
| 282 |
+
vn 0.2891261965226991 0.6493329448605979 -0.7034008595409743
|
| 283 |
+
v -0.0343319219833019 0.0115605900416007 0.0867486723715300
|
| 284 |
+
vn 0.4247806465952942 0.8404932808635102 -0.3363516717683687
|
| 285 |
+
v -0.0361403480096146 0.0122542545260961 0.0861055858513451
|
| 286 |
+
vn 0.2308919039322621 0.9236862349352447 -0.3057657078380228
|
| 287 |
+
v -0.0360529693385803 0.0124854156209292 0.0864958381011661
|
| 288 |
+
vn 0.6201341206198231 0.4631115867598685 -0.6332150745614287
|
| 289 |
+
v -0.0350624856524953 0.0113293335467697 0.0857950720443943
|
| 290 |
+
vn 0.6608351290362059 0.6652821794238781 -0.3474140958175360
|
| 291 |
+
v -0.0354927038590263 0.0115605900416007 0.0857318422092624
|
| 292 |
+
vn 0.5501347149082310 0.4592024602071003 -0.6974846922998280
|
| 293 |
+
v -0.0344193006543363 0.0113293335467697 0.0863584201217091
|
| 294 |
+
vn 0.9937917282200844 0.0680521542068319 0.0880165054358976
|
| 295 |
+
v 0.0422122036101321 0.0104049632674309 0.0886082820577516
|
| 296 |
+
vn 0.9944236585563189 0.0680980918252653 -0.0805247613670697
|
| 297 |
+
v 0.0430579967451626 0.0104049632674309 -0.0922417496087616
|
| 298 |
+
vn -0.0278272692099350 0.0632712497691536 0.9976083359921204
|
| 299 |
+
v -0.0411285271756103 0.0104045078674411 0.0939322485439308
|
| 300 |
+
vn 0.1114271596408951 0.0636381394236601 0.9917329153078753
|
| 301 |
+
v 0.0402662782277691 0.0104049632674309 0.0904641476653416
|
| 302 |
+
vn -0.9937851662160537 0.0682063166854329 -0.0879712553800223
|
| 303 |
+
v -0.0422129671081440 0.0104044148674432 -0.0886078875059010
|
| 304 |
+
vn -0.9944244623216568 0.0679286757674583 0.0806578188693654
|
| 305 |
+
v -0.0430580833032188 0.0104044148674432 0.0922421456048672
|
| 306 |
+
vn 0.0279119415198281 0.0632767841459020 -0.9976056195254449
|
| 307 |
+
v 0.0411279854678284 0.0104049632674309 -0.0939320957327244
|
| 308 |
+
vn -0.1112379077120933 0.0634821041775219 -0.9917641606435627
|
| 309 |
+
v -0.0402666636703066 0.0104045078674411 -0.0904634843019239
|
| 310 |
+
vn 0.5087656226193846 0.8588850033286253 0.0589414310811796
|
| 311 |
+
v -0.0336326944561999 -0.0039308881121378 -0.0818828395220111
|
| 312 |
+
vn 0.4873596276795609 0.8656729328476729 -0.1144157622137283
|
| 313 |
+
v -0.0344116401623717 -0.0039308881121378 0.0847829610069119
|
| 314 |
+
vn 0.4115536117378175 0.7562639493631271 -0.5086142581163483
|
| 315 |
+
v -0.0342967312345699 -0.0037253570167318 0.0857627084507199
|
| 316 |
+
vn -0.0263635592694426 0.8454249246404604 0.5334432111662107
|
| 317 |
+
v 0.0333397640889126 -0.0039305209121460 -0.0857217199747862
|
| 318 |
+
vn -0.4856374754942671 0.8683368124715553 -0.1007344156795199
|
| 319 |
+
v 0.0336330429968173 -0.0039305209121460 0.0818831086845444
|
| 320 |
+
vn 0.0693256029508833 0.8568272540878722 -0.5109217331722478
|
| 321 |
+
v -0.0333397096930909 -0.0039308881121378 0.0857216096364251
|
| 322 |
+
vn -0.1249005078579178 0.8476016359146114 -0.5157240831410814
|
| 323 |
+
v 0.0325512873955866 -0.0039305209121460 0.0829143399743891
|
| 324 |
+
vn -0.8637268019608084 0.0430820599417755 -0.5021154724619903
|
| 325 |
+
v 0.0342740582355842 -0.0020807742534911 0.0828408789381608
|
| 326 |
+
vn -0.8576903952549216 0.0939870924017015 0.5055033257549654
|
| 327 |
+
v 0.0350616744263943 -0.0020807742534911 -0.0857948571616785
|
| 328 |
+
vn 0.4293487389957625 0.0441286538053986 -0.9020600435869399
|
| 329 |
+
v -0.0344192131414583 -0.0020811414534829 0.0863583966727042
|
| 330 |
+
vn 0.8675737506413624 0.0908399103340646 0.4889416098969060
|
| 331 |
+
v -0.0342745462391349 -0.0020811414534829 -0.0828401926488175
|
| 332 |
+
vn -0.2154152428045333 0.8444232078155509 0.4904546046984972
|
| 333 |
+
v 0.0339374204792471 -0.0039305209121460 -0.0856377278749009
|
| 334 |
+
vn -0.3787313966438129 0.4294585236433979 0.8198340720330304
|
| 335 |
+
v 0.0342987801069920 -0.0032368564276506 -0.0861783426198409
|
| 336 |
+
vn -0.0436077094719079 0.4172997961616833 0.9077220101980734
|
| 337 |
+
v 0.0333420001382847 -0.0032368564276506 -0.0863125812023113
|
| 338 |
+
vn -0.4170330723064660 0.0898624457905780 0.9044380340516234
|
| 339 |
+
v 0.0344186231536384 -0.0020807742534911 -0.0863584433635682
|
| 340 |
+
vn -0.7731473413177066 0.4415133658759068 0.4553121307040803
|
| 341 |
+
v 0.0348702546875940 -0.0032368564276506 -0.0856774557324007
|
| 342 |
+
vn -0.8919611888970274 0.4425677301644883 0.0924069354456382
|
| 343 |
+
v 0.0350573540991643 -0.0032368564276506 -0.0848099919309965
|
| 344 |
+
vn -0.8629701374744150 0.2050878059925141 -0.4617591727952640
|
| 345 |
+
v 0.0342748673109344 -0.0027229880391365 0.0827311092241118
|
| 346 |
+
vn -0.4733401026994436 0.3758768311408043 -0.7966591209469880
|
| 347 |
+
v 0.0336258509077142 -0.0031084107305216 0.0832837280515962
|
| 348 |
+
vn -0.4651970852456222 0.0741344813680893 -0.8820973588846426
|
| 349 |
+
v 0.0336257068061930 -0.0020807742534911 0.0834594292160196
|
| 350 |
+
vn -0.1328567853214014 0.4222615554112754 -0.8966851473152176
|
| 351 |
+
v 0.0325490492414849 -0.0032368564276506 0.0835051972106599
|
| 352 |
+
vn -0.4839586251327607 0.7479765672034794 -0.4542192246857313
|
| 353 |
+
v 0.0336287446352059 -0.0037249946167399 0.0827588058198161
|
| 354 |
+
vn 0.4635518010588719 0.8461697013355999 0.2629002934131074
|
| 355 |
+
v -0.0335105925006091 -0.0039308881121378 -0.0824351762396058
|
| 356 |
+
vn 0.7859589045596967 0.4315673686558931 0.4427394342666462
|
| 357 |
+
v -0.0340831179943365 -0.0032372188276425 -0.0827390563932937
|
| 358 |
+
vn 0.8926442756379491 0.4399157883893250 0.0982868063200737
|
| 359 |
+
v -0.0342788432846632 -0.0032372188276425 -0.0818552397569012
|
| 360 |
+
vn 0.4305233413809222 0.4197267250548273 0.7990488901193440
|
| 361 |
+
v -0.0335069847539815 -0.0032372188276425 -0.0832887621078878
|
| 362 |
+
vn 0.4716224793013030 0.0867984533587031 0.8775182422674923
|
| 363 |
+
v -0.0336252863448414 -0.0020811414534829 -0.0834588904825410
|
| 364 |
+
vn 0.1187002080435140 0.4151344167873763 0.9019831908683396
|
| 365 |
+
v -0.0325486626667117 -0.0032372188276425 -0.0835047478520625
|
| 366 |
+
vn 0.3893771830365815 0.2058027898273680 -0.8977920811801410
|
| 367 |
+
v -0.0342994894431248 -0.0027234458391262 0.0863537050351614
|
| 368 |
+
vn 0.7672478265507725 0.3977119330882831 -0.5031460930309375
|
| 369 |
+
v -0.0348708991142047 -0.0031087779305134 0.0857871788442901
|
| 370 |
+
vn 0.8629832981204187 0.0808033947299893 -0.4987290231832455
|
| 371 |
+
v -0.0350623935997660 -0.0020811414534829 0.0857950473789399
|
| 372 |
+
vn 0.8856307241687958 0.4513016062009977 -0.1094763931112721
|
| 373 |
+
v -0.0350576711407826 -0.0032372188276425 0.0848106319971177
|
| 374 |
+
vn -0.1156309054808410 -0.0678706396614010 -0.9909707715011746
|
| 375 |
+
v -0.0402665807938725 -0.0104049632674309 -0.0904635065085975
|
| 376 |
+
vn -0.0265617442743284 -0.8454224182867445 0.5334373518973885
|
| 377 |
+
v -0.0411246511732320 -0.0122547147260858 0.0931444963733811
|
| 378 |
+
vn -0.2151847207709498 -0.8444477160648053 0.4905135989752603
|
| 379 |
+
v -0.0417224334548721 -0.0122547147260858 0.0930600545320042
|
| 380 |
+
vn -0.0815124750542495 -0.9921358690082100 0.0949849137382053
|
| 381 |
+
v -0.0411200731998224 -0.0124858710209190 0.0921591920989148
|
| 382 |
+
vn 0.0994679383633094 -0.9885771561625885 -0.1132313364367042
|
| 383 |
+
v 0.0411195669577794 -0.0124854180209292 -0.0921589598605027
|
| 384 |
+
vn 0.0882224404270834 -0.9915996216882637 0.0945885366880268
|
| 385 |
+
v 0.0402747276637057 -0.0124854180209292 0.0886910924367752
|
| 386 |
+
vn -0.1087586299017933 -0.9875279181535549 -0.1138427480746602
|
| 387 |
+
v -0.0402748650015142 -0.0124858710209190 -0.0886904980374821
|
| 388 |
+
vn 0.9936231109292299 -0.0733468614692497 -0.0856349889935767
|
| 389 |
+
v 0.0430580201941675 -0.0104045054674412 -0.0922416620958838
|
| 390 |
+
vn 0.8829686038110459 -0.4664692937805760 -0.0526577880642838
|
| 391 |
+
v 0.0428423398766247 -0.0115605876416007 -0.0922324170020691
|
| 392 |
+
vn 0.8686995097892156 -0.4212696057732165 -0.2605630076270525
|
| 393 |
+
v 0.0428449330206334 -0.0114321467444716 -0.0927796457114279
|
| 394 |
+
vn 0.5087522814202374 -0.8588928929895967 0.0589416196050371
|
| 395 |
+
v 0.0413513767939005 -0.0122542521260961 0.0886453277374321
|
| 396 |
+
vn 0.4634296783202135 -0.8461056354591953 0.2633214516445916
|
| 397 |
+
v 0.0412292264081907 -0.0122542521260961 0.0891974848704729
|
| 398 |
+
vn -0.0852455919724631 -0.4356251942316021 -0.8960825180751734
|
| 399 |
+
v -0.0402675398631823 -0.0115610453415905 -0.0902665267654565
|
| 400 |
+
vn -0.2570801791807986 -0.3927111020109432 -0.8829993045465661
|
| 401 |
+
v -0.0408656098947758 -0.0114325997444615 -0.0902410406290255
|
| 402 |
+
vn -0.1105045495807963 -0.8535974644521480 -0.5090777084127818
|
| 403 |
+
v -0.0402703014727847 -0.0122547147260858 -0.0896755247144920
|
| 404 |
+
vn 0.0829862057301893 -0.8512463915222429 -0.5181629768507851
|
| 405 |
+
v 0.0411247485981596 -0.0122542521260961 -0.0931441497788951
|
| 406 |
+
vn -0.5064663642299024 -0.8605825772760961 0.0537536007405615
|
| 407 |
+
v -0.0421968135443719 -0.0122547147260858 0.0922049822743468
|
| 408 |
+
vn -0.4936071478595618 -0.8618063412759421 -0.1167981751506551
|
| 409 |
+
v -0.0413514886796439 -0.0122547147260858 -0.0886446406679605
|
| 410 |
+
vn 0.0720083610539388 -0.8439296309866792 0.5315990724982628
|
| 411 |
+
v 0.0402702630189795 -0.0122542521260961 0.0896754190672284
|
| 412 |
+
vn 0.4796234743265886 -0.8719062595175018 -0.0986954785645785
|
| 413 |
+
v 0.0421961912154646 -0.0122542521260961 -0.0922048173853157
|
| 414 |
+
vn 0.8538610082310105 -0.2119887513163946 -0.4753757965421022
|
| 415 |
+
v 0.0428466311412865 -0.0110467240530865 -0.0931081019864849
|
| 416 |
+
vn 0.8536792623195484 -0.0452093792270855 -0.5188331418822949
|
| 417 |
+
v 0.0428475215170048 -0.0104045054674412 -0.0932176069204615
|
| 418 |
+
vn 0.4261357731188992 -0.3858914924293920 -0.8182273882845617
|
| 419 |
+
v 0.0422032665171217 -0.0114321467444716 -0.0936058687453461
|
| 420 |
+
vn 0.4094802428996639 -0.0761991317894071 -0.9091312462947102
|
| 421 |
+
v 0.0422036089052169 -0.0104045054674412 -0.0937808685312334
|
| 422 |
+
vn 0.0589696763293743 -0.4254291283900562 -0.9030684547645799
|
| 423 |
+
v 0.0411269672608672 -0.0115605876416007 -0.0937350063476776
|
| 424 |
+
vn 0.0481509224442650 -0.0838461280075198 -0.9953146816388840
|
| 425 |
+
v 0.0411279854678284 -0.0104045054674412 -0.0939320957327244
|
| 426 |
+
vn 0.4581350242373831 -0.7586585192682779 -0.4631949381293761
|
| 427 |
+
v 0.0422005020750481 -0.0120487306306899 -0.0930805026508494
|
| 428 |
+
vn 0.2519370727606195 -0.8388916894794551 0.4824815485499067
|
| 429 |
+
v 0.0408687748652134 -0.0122542521260961 0.0895405606117132
|
| 430 |
+
vn 0.4303177636737124 -0.4197549436138667 0.7991447988810130
|
| 431 |
+
v 0.0412256648538266 -0.0115605876416007 0.0900512427442588
|
| 432 |
+
vn 0.1185254792411487 -0.4152856698721498 0.9019365405445640
|
| 433 |
+
v 0.0402671459603282 -0.0115605876416007 0.0902665314755105
|
| 434 |
+
vn 0.4717324456789745 -0.0866201576907639 0.8774767506751167
|
| 435 |
+
v 0.0413438035250362 -0.0104045054674412 0.0902207634808701
|
| 436 |
+
vn 0.1308897513286351 -0.0833929412768034 0.9878833384273327
|
| 437 |
+
v 0.0402662782277691 -0.0104045054674412 0.0904641476653416
|
| 438 |
+
vn 0.7860174989875791 -0.4315569023701400 0.4426456046342274
|
| 439 |
+
v 0.0418017017048945 -0.0115605876416007 0.0895011784590590
|
| 440 |
+
vn 0.8676370772678823 -0.0906653907157532 0.4888616256942314
|
| 441 |
+
v 0.0419930397424645 -0.0104045054674412 0.0896019761247714
|
| 442 |
+
vn 0.8926885004519001 -0.4398076877313298 0.0983688923052370
|
| 443 |
+
v 0.0419975043871908 -0.0115605876416007 0.0886176494943181
|
| 444 |
+
vn 0.9898336744411661 -0.0905443538674642 0.1096859923829070
|
| 445 |
+
v 0.0422130883981692 -0.0104045054674412 0.0886080449795116
|
| 446 |
+
vn -0.4460476462208008 -0.2000601818400937 -0.8723631244745459
|
| 447 |
+
v -0.0412245383013240 -0.0110472724530742 -0.0902257099392505
|
| 448 |
+
vn -0.4836238264921319 -0.0423798719283565 -0.8742493585381944
|
| 449 |
+
v -0.0413441629460282 -0.0104049632674309 -0.0902206671743056
|
| 450 |
+
vn -0.7830242733559444 -0.3874117212050756 -0.4866057393910558
|
| 451 |
+
v -0.0418014650245496 -0.0114325997444615 -0.0896102461039652
|
| 452 |
+
vn -0.8724793634240922 -0.0781325994894653 -0.4823640298530871
|
| 453 |
+
v -0.0419928983583381 -0.0104049632674309 -0.0896021122562412
|
| 454 |
+
vn -0.8869668824131589 -0.4475560073124383 -0.1139445910117290
|
| 455 |
+
v -0.0419975355872065 -0.0115610453415905 -0.0886170658313385
|
| 456 |
+
vn -0.9898504199612803 -0.0904433436353018 -0.1096181905275938
|
| 457 |
+
v -0.0422128749588222 -0.0104049632674309 -0.0886079121972374
|
| 458 |
+
vn -0.4410451425524933 -0.7459034448435675 -0.4991064347424807
|
| 459 |
+
v -0.0412272999109265 -0.0120491835306798 -0.0896347078882861
|
| 460 |
+
vn -0.4514099446839046 -0.8521423841500452 0.2647308425090499
|
| 461 |
+
v -0.0420795211388999 -0.0122547147260858 0.0927477563310619
|
| 462 |
+
vn -0.7729999110242277 -0.4415536787393233 0.4555233104335130
|
| 463 |
+
v -0.0426553911245128 -0.0115610453415905 0.0931003725529580
|
| 464 |
+
vn -0.8920693958198482 -0.4423269674320114 0.0925151172728622
|
| 465 |
+
v -0.0428427619274666 -0.0115610453415905 0.0922326114629574
|
| 466 |
+
vn -0.8577660706997038 -0.0941756050056826 0.5053398098094039
|
| 467 |
+
v -0.0428472519446540 -0.0104049632674309 0.0932179128751482
|
| 468 |
+
vn -0.9904826144136566 -0.0912603083830398 0.1030327455623711
|
| 469 |
+
v -0.0430579957903409 -0.0104049632674309 0.0922421221558622
|
| 470 |
+
vn -0.3785511411919018 -0.4296478365333607 0.8198181323101554
|
| 471 |
+
v -0.0420837615512919 -0.0115610453415905 0.0936007498619004
|
| 472 |
+
vn -0.4168235863995420 -0.0900374392508912 0.9045171957205489
|
| 473 |
+
v -0.0422040671087214 -0.0104049632674309 0.0937812599606552
|
| 474 |
+
vn -0.0438760060533519 -0.4172797271265012 0.9077183073079660
|
| 475 |
+
v -0.0411274139216382 -0.0115610453415905 0.0937354941742721
|
| 476 |
+
vn -0.0480926232550344 -0.0837583678264512 0.9953248893740668
|
| 477 |
+
v -0.0411284396627324 -0.0104049632674309 0.0939322250949258
|
| 478 |
+
# 232 vertices, 0 vertices normals
|
| 479 |
+
|
| 480 |
+
|
| 481 |
+
usemtl material_0
|
| 482 |
+
vt 0.0620109997689724 0.3611109852790833
|
| 483 |
+
vt 0.0620109997689724 0.6388890147209167
|
| 484 |
+
vt 0.0227272994816303 0.6388890147209167
|
| 485 |
+
f 1/1/1 2/2/2 3/3/3
|
| 486 |
+
vt 0.0227272994816303 0.3611109852790833
|
| 487 |
+
f 3/3/3 4/4/4 1/1/1
|
| 488 |
+
vt 0.1012950018048286 0.3611109852790833
|
| 489 |
+
vt 0.1012950018048286 0.6388890147209167
|
| 490 |
+
f 5/5/5 6/6/6 2/2/2
|
| 491 |
+
f 2/2/2 1/1/1 5/5/5
|
| 492 |
+
vt 0.0488990992307663 0.3611109852790833
|
| 493 |
+
vt 0.0488990992307663 0.6388890147209167
|
| 494 |
+
vt 0.0096153803169727 0.6388890147209167
|
| 495 |
+
f 7/7/7 8/8/8 9/9/9
|
| 496 |
+
vt 0.0096153803169727 0.3611109852790833
|
| 497 |
+
f 9/9/9 10/10/10 7/7/7
|
| 498 |
+
vt 0.0881827995181084 0.3611109852790833
|
| 499 |
+
vt 0.0881827995181084 0.6388890147209167
|
| 500 |
+
f 11/11/11 12/12/12 8/8/8
|
| 501 |
+
f 8/8/8 7/7/7 11/11/11
|
| 502 |
+
vt 0.9379889965057373 0.3611109852790833
|
| 503 |
+
vt 0.9772729873657227 0.3611109852790833
|
| 504 |
+
vt 0.9772729873657227 0.6388890147209167
|
| 505 |
+
f 13/13/13 14/14/14 15/15/15
|
| 506 |
+
vt 0.9379889965057373 0.6388890147209167
|
| 507 |
+
f 15/15/15 16/16/16 13/13/13
|
| 508 |
+
vt 0.8987050056457520 0.6388890147209167
|
| 509 |
+
vt 0.8987050056457520 0.3611109852790833
|
| 510 |
+
f 17/17/17 18/18/18 13/13/13
|
| 511 |
+
f 13/13/13 16/16/16 17/17/17
|
| 512 |
+
f 19/1/19 20/2/20 21/3/21
|
| 513 |
+
f 21/3/21 22/4/22 19/1/19
|
| 514 |
+
f 23/5/23 24/6/24 20/2/20
|
| 515 |
+
f 20/2/20 19/1/19 23/5/23
|
| 516 |
+
vt 0.1405780017375946 0.6388890147209167
|
| 517 |
+
f 25/19/25 6/6/6 5/5/5
|
| 518 |
+
vt 0.1405780017375946 0.3611109852790833
|
| 519 |
+
f 5/5/5 26/20/26 25/19/25
|
| 520 |
+
vt 0.1274659931659698 0.6388890147209167
|
| 521 |
+
f 27/21/27 12/12/12 11/11/11
|
| 522 |
+
vt 0.1274659931659698 0.3611109852790833
|
| 523 |
+
f 11/11/11 28/22/28 27/21/27
|
| 524 |
+
vt 0.8594220280647278 0.6388890147209167
|
| 525 |
+
vt 0.8594220280647278 0.3611109852790833
|
| 526 |
+
f 29/23/29 30/24/30 18/18/18
|
| 527 |
+
f 18/18/18 17/17/17 29/23/29
|
| 528 |
+
f 31/19/31 24/6/24 23/5/23
|
| 529 |
+
f 23/5/23 32/20/32 31/19/31
|
| 530 |
+
f 4/4/4 3/3/3 15/15/15
|
| 531 |
+
f 15/15/15 14/14/14 4/4/4
|
| 532 |
+
vt 0.9903849959373474 0.6388890147209167
|
| 533 |
+
f 10/10/10 9/9/9 25/25/25
|
| 534 |
+
vt 0.9903849959373474 0.3611109852790833
|
| 535 |
+
f 25/25/25 26/26/26 10/10/10
|
| 536 |
+
f 22/4/22 21/3/21 27/15/27
|
| 537 |
+
f 27/15/27 28/14/28 22/4/22
|
| 538 |
+
f 30/10/30 29/9/29 31/25/31
|
| 539 |
+
f 31/25/31 32/26/32 30/10/30
|
| 540 |
+
vt 0.0187548995018005 0.9284269809722900
|
| 541 |
+
vt 0.0061405398882926 0.9444440007209778
|
| 542 |
+
vt 0.0072010499425232 0.9861109852790833
|
| 543 |
+
f 33/27/33 34/28/34 35/29/35
|
| 544 |
+
vt 0.0000000000000000 1.0000000000000000
|
| 545 |
+
vt 0.0763515979051590 0.9329199790954590
|
| 546 |
+
f 33/27/33 36/30/36 37/31/37
|
| 547 |
+
f 33/27/33 35/29/35 36/30/36
|
| 548 |
+
f 35/29/35 38/30/38 36/30/36
|
| 549 |
+
vt 0.0935266017913818 0.9719409942626953
|
| 550 |
+
f 36/30/36 39/32/39 37/31/37
|
| 551 |
+
vt 0.0488990992307663 0.9166669845581055
|
| 552 |
+
f 40/33/40 8/8/8 12/12/12
|
| 553 |
+
vt -0.0076360898092389 1.0058200359344482
|
| 554 |
+
vt 0.0076156598515809 0.9907410144805908
|
| 555 |
+
vt 0.0059103202074766 0.9629629850387573
|
| 556 |
+
f 41/34/41 42/35/42 43/36/43
|
| 557 |
+
vt -0.0550967007875443 1.0233000516891479
|
| 558 |
+
vt -0.0668516978621483 1.0181599855422974
|
| 559 |
+
f 44/37/44 41/34/41 45/38/45
|
| 560 |
+
vt 0.0881827995181084 0.9166669845581055
|
| 561 |
+
f 12/12/12 46/39/46 40/33/40
|
| 562 |
+
f 41/34/41 46/30/46 45/38/45
|
| 563 |
+
f 41/34/41 43/36/43 46/30/46
|
| 564 |
+
f 43/36/43 40/30/40 46/30/46
|
| 565 |
+
vt -0.0546560995280743 0.9852629899978638
|
| 566 |
+
f 46/30/46 47/40/47 45/38/45
|
| 567 |
+
vt 0.0620109997689724 0.9166669845581055
|
| 568 |
+
f 48/41/48 2/2/2 6/6/6
|
| 569 |
+
vt 0.0054368497803807 1.0045599937438965
|
| 570 |
+
vt 0.0199846997857094 0.9907410144805908
|
| 571 |
+
vt 0.0144659001380205 0.9629629850387573
|
| 572 |
+
f 49/42/49 50/43/50 51/44/51
|
| 573 |
+
vt -0.0437254011631012 1.0182600021362305
|
| 574 |
+
vt -0.0571526996791363 1.0122300386428833
|
| 575 |
+
f 52/45/52 49/42/49 53/46/53
|
| 576 |
+
vt 0.9886789917945862 0.9444440007209778
|
| 577 |
+
f 54/47/54 43/36/43 42/35/42
|
| 578 |
+
vt 0.9869740009307861 0.9722219705581665
|
| 579 |
+
f 42/35/42 53/48/53 54/47/54
|
| 580 |
+
vt 0.1012950018048286 0.9166669845581055
|
| 581 |
+
f 6/6/6 55/49/55 48/41/48
|
| 582 |
+
f 49/42/49 55/30/55 53/46/53
|
| 583 |
+
f 49/42/49 51/44/51 55/30/55
|
| 584 |
+
f 51/44/51 48/30/48 55/30/55
|
| 585 |
+
vt -0.0482721999287605 0.9804379940032959
|
| 586 |
+
f 55/30/55 54/50/54 53/46/53
|
| 587 |
+
vt 0.9662349820137024 0.9722219705581665
|
| 588 |
+
vt 0.9717540144920349 0.9444440007209778
|
| 589 |
+
f 56/43/56 45/51/45 47/52/47
|
| 590 |
+
f 57/41/57 20/2/20 24/6/24
|
| 591 |
+
f 47/52/47 58/44/58 56/43/56
|
| 592 |
+
f 59/42/59 56/43/56 58/44/58
|
| 593 |
+
f 60/45/60 59/42/59 61/46/61
|
| 594 |
+
f 24/6/24 62/49/62 57/41/57
|
| 595 |
+
f 59/42/59 62/30/62 61/46/61
|
| 596 |
+
f 59/42/59 58/44/58 62/30/62
|
| 597 |
+
f 58/44/58 57/30/57 62/30/62
|
| 598 |
+
f 62/30/62 63/50/63 61/46/61
|
| 599 |
+
vt 0.9743890166282654 1.0077500343322754
|
| 600 |
+
vt 0.9815319776535034 1.0077500343322754
|
| 601 |
+
vt 0.9952049851417542 1.0154900550842285
|
| 602 |
+
f 64/53/64 36/54/36 38/55/38
|
| 603 |
+
f 65/35/65 61/48/61 63/47/63
|
| 604 |
+
vt 0.9880629777908325 1.0154900550842285
|
| 605 |
+
f 38/55/38 66/56/66 64/53/64
|
| 606 |
+
vt 0.8987050056457520 0.9166669845581055
|
| 607 |
+
f 67/57/67 17/17/17 16/16/16
|
| 608 |
+
f 63/47/63 68/36/68 65/35/65
|
| 609 |
+
f 66/34/66 65/35/65 68/36/68
|
| 610 |
+
f 64/37/64 66/34/66 69/38/69
|
| 611 |
+
f 70/52/70 51/44/51 50/43/50
|
| 612 |
+
f 50/43/50 69/51/69 70/52/70
|
| 613 |
+
vt 0.9379889965057373 0.9166669845581055
|
| 614 |
+
f 16/16/16 71/58/71 67/57/67
|
| 615 |
+
f 66/34/66 71/30/71 69/38/69
|
| 616 |
+
f 66/34/66 68/36/68 71/30/71
|
| 617 |
+
f 68/36/68 67/30/67 71/30/71
|
| 618 |
+
f 71/30/71 70/40/70 69/38/69
|
| 619 |
+
vt 0.0277778003364801 0.1250000000000000
|
| 620 |
+
vt 0.9722219705581665 0.1250000000000000
|
| 621 |
+
vt 0.9722219705581665 0.8750000000000000
|
| 622 |
+
f 72/59/72 73/60/73 74/61/74
|
| 623 |
+
vt 0.9895830154418945 0.8750000000000000
|
| 624 |
+
vt 0.0104166995733976 0.8750000000000000
|
| 625 |
+
vt 0.0104166995733976 0.1250000000000000
|
| 626 |
+
f 75/62/75 76/63/76 77/64/77
|
| 627 |
+
vt 0.9895830154418945 0.1250000000000000
|
| 628 |
+
f 77/64/77 78/65/78 75/62/75
|
| 629 |
+
vt 1.0000000000000000 0.0000000000000000
|
| 630 |
+
f 79/66/79 80/66/80 81/60/81
|
| 631 |
+
vt 0.0277778003364801 0.8750000000000000
|
| 632 |
+
f 82/61/82 83/67/83 84/59/84
|
| 633 |
+
f 84/59/84 81/60/81 82/61/82
|
| 634 |
+
f 33/27/33 85/63/85 34/28/34
|
| 635 |
+
vt 0.9895830154418945 0.0277778003364801
|
| 636 |
+
f 86/66/86 87/66/87 88/68/88
|
| 637 |
+
vt 1.0000000000000000 1.0000000000000000
|
| 638 |
+
vt 0.9895830154418945 0.9722219705581665
|
| 639 |
+
f 89/69/89 90/69/90 91/70/91
|
| 640 |
+
vt 0.0104166995733976 0.9722219705581665
|
| 641 |
+
f 88/68/88 91/70/91 92/71/92
|
| 642 |
+
vt 0.0104166995733976 0.0277778003364801
|
| 643 |
+
f 92/71/92 93/72/93 88/68/88
|
| 644 |
+
vt 1.1490000486373901 0.1250000000000000
|
| 645 |
+
vt 1.1490000486373901 0.8750000000000000
|
| 646 |
+
vt 1.0900700092315674 0.8750000000000000
|
| 647 |
+
f 94/73/94 85/74/85 33/75/33
|
| 648 |
+
f 95/66/95 96/66/96 97/65/97
|
| 649 |
+
f 98/62/98 85/63/85 94/64/94
|
| 650 |
+
f 94/64/94 97/65/97 98/62/98
|
| 651 |
+
vt 0.9707679748535156 0.9166669845581055
|
| 652 |
+
f 99/67/99 74/61/74 37/76/37
|
| 653 |
+
f 74/61/74 99/67/99 72/59/72
|
| 654 |
+
vt -0.1082030013203621 1.0410799980163574
|
| 655 |
+
f 61/46/61 100/77/100 60/45/60
|
| 656 |
+
vt 0.0147313997149467 1.0000000000000000
|
| 657 |
+
f 61/48/61 65/35/65 101/78/101
|
| 658 |
+
vt 0.9852690100669861 1.0000000000000000
|
| 659 |
+
f 101/78/101 100/79/100 61/48/61
|
| 660 |
+
f 66/34/66 101/78/101 65/35/65
|
| 661 |
+
vt 0.9864019751548767 1.0000000000000000
|
| 662 |
+
f 102/80/102 100/79/100 101/78/101
|
| 663 |
+
vt 0.0135981999337673 1.0000000000000000
|
| 664 |
+
f 102/80/102 103/81/103 35/29/35
|
| 665 |
+
f 35/29/35 103/81/103 38/30/38
|
| 666 |
+
vt 1.0088800191879272 1.0232399702072144
|
| 667 |
+
vt 1.0017399787902832 1.0232399702072144
|
| 668 |
+
f 103/82/103 101/83/101 66/56/66
|
| 669 |
+
f 66/56/66 38/55/38 103/82/103
|
| 670 |
+
f 101/78/101 103/81/103 102/80/102
|
| 671 |
+
vt -0.1276499927043915 1.0524200201034546
|
| 672 |
+
f 45/38/45 104/84/104 44/37/44
|
| 673 |
+
vt 0.0392837002873421 1.0000000000000000
|
| 674 |
+
f 45/51/45 56/43/56 105/85/105
|
| 675 |
+
vt 0.9607160091400146 1.0000000000000000
|
| 676 |
+
f 105/85/105 104/86/104 45/51/45
|
| 677 |
+
f 59/42/59 105/85/105 56/43/56
|
| 678 |
+
vt 0.9678590297698975 1.0000000000000000
|
| 679 |
+
f 106/87/106 104/86/104 105/85/105
|
| 680 |
+
vt 0.0321412011981010 1.0000000000000000
|
| 681 |
+
vt 0.0256105996668339 1.0077500343322754
|
| 682 |
+
f 107/88/107 105/85/105 59/89/59
|
| 683 |
+
f 105/85/105 107/88/107 106/87/106
|
| 684 |
+
f 53/46/53 108/77/108 52/45/52
|
| 685 |
+
f 53/48/53 42/35/42 109/78/109
|
| 686 |
+
f 109/78/109 108/79/108 53/48/53
|
| 687 |
+
f 41/34/41 109/78/109 42/35/42
|
| 688 |
+
f 110/80/110 108/79/108 109/78/109
|
| 689 |
+
vt 0.0082725603133440 1.0036599636077881
|
| 690 |
+
f 111/81/111 109/78/109 41/90/41
|
| 691 |
+
f 109/78/109 111/81/111 110/80/110
|
| 692 |
+
vt 0.1786530017852783 0.9729070067405701
|
| 693 |
+
f 36/30/36 112/91/112 39/32/39
|
| 694 |
+
f 36/54/36 64/53/64 113/86/113
|
| 695 |
+
f 113/86/113 112/87/112 36/54/36
|
| 696 |
+
f 69/38/69 113/84/113 64/37/64
|
| 697 |
+
f 69/51/69 50/43/50 114/85/114
|
| 698 |
+
f 114/85/114 113/86/113 69/51/69
|
| 699 |
+
f 49/42/49 114/85/114 50/43/50
|
| 700 |
+
f 112/87/112 113/86/113 114/85/114
|
| 701 |
+
f 115/88/115 114/85/114 49/89/49
|
| 702 |
+
f 114/85/114 115/88/115 112/87/112
|
| 703 |
+
vt 0.1271280050277710 0.8558419942855835
|
| 704 |
+
vt 0.0576586984097958 0.9220409989356995
|
| 705 |
+
f 37/31/37 74/92/74 116/93/116
|
| 706 |
+
f 116/93/116 33/27/33 37/31/37
|
| 707 |
+
vt -0.0017357600154355 1.0232399702072144
|
| 708 |
+
vt -0.0088782403618097 1.0232399702072144
|
| 709 |
+
vt 0.0047949100844562 1.0154900550842285
|
| 710 |
+
f 100/94/100 102/95/102 117/96/117
|
| 711 |
+
vt 0.0119374003261328 1.0154900550842285
|
| 712 |
+
f 117/96/117 60/97/60 100/94/100
|
| 713 |
+
vt 0.9874619841575623 0.9583330154418945
|
| 714 |
+
f 35/29/35 118/98/118 102/80/102
|
| 715 |
+
f 118/98/118 35/29/35 34/28/34
|
| 716 |
+
vt 0.1972399950027466 0.9732109904289246
|
| 717 |
+
vt 0.1037200018763542 0.9721000194549561
|
| 718 |
+
f 117/30/117 102/99/102 118/100/118
|
| 719 |
+
vt 0.9885230064392090 0.9166669845581055
|
| 720 |
+
f 34/28/34 119/101/119 118/98/118
|
| 721 |
+
f 85/63/85 98/62/98 119/101/119
|
| 722 |
+
f 119/101/119 34/28/34 85/63/85
|
| 723 |
+
vt 0.0861468985676765 0.9330490231513977
|
| 724 |
+
f 117/30/117 118/100/118 119/102/119
|
| 725 |
+
vt 0.0173713993281126 0.9861109852790833
|
| 726 |
+
f 106/87/106 107/88/107 120/103/120
|
| 727 |
+
vt 0.0184681005775928 1.0077500343322754
|
| 728 |
+
f 59/89/59 121/104/121 107/88/107
|
| 729 |
+
f 60/97/60 117/96/117 121/104/121
|
| 730 |
+
f 121/104/121 59/89/59 60/97/60
|
| 731 |
+
f 120/103/120 107/88/107 121/30/121
|
| 732 |
+
f 120/103/120 121/30/121 117/30/117
|
| 733 |
+
vt -0.0311478003859520 0.8750000000000000
|
| 734 |
+
f 84/59/84 83/67/83 122/105/122
|
| 735 |
+
vt 0.0284035000950098 0.9284510016441345
|
| 736 |
+
f 122/106/122 117/30/117 119/102/119
|
| 737 |
+
f 122/106/122 120/103/120 117/30/117
|
| 738 |
+
vt 0.0159169007092714 0.9444440007209778
|
| 739 |
+
f 122/106/122 83/67/83 123/107/123
|
| 740 |
+
f 122/106/122 123/107/123 120/103/120
|
| 741 |
+
vt 0.1445199996232986 0.8560569882392883
|
| 742 |
+
vt 0.0673177987337112 0.9221370220184326
|
| 743 |
+
f 119/102/119 98/108/98 124/109/124
|
| 744 |
+
f 124/109/124 122/106/122 119/102/119
|
| 745 |
+
f 108/94/108 110/95/110 125/96/125
|
| 746 |
+
f 125/96/125 52/97/52 108/94/108
|
| 747 |
+
f 125/30/125 110/99/110 126/100/126
|
| 748 |
+
f 76/63/76 75/62/75 127/101/127
|
| 749 |
+
f 125/30/125 126/100/126 127/102/127
|
| 750 |
+
vt 0.9693130254745483 0.9583330154418945
|
| 751 |
+
f 128/103/128 39/110/39 112/87/112
|
| 752 |
+
f 112/87/112 115/88/115 128/103/128
|
| 753 |
+
f 49/89/49 129/104/129 115/88/115
|
| 754 |
+
f 52/97/52 125/96/125 129/104/129
|
| 755 |
+
f 129/104/129 49/89/49 52/97/52
|
| 756 |
+
f 128/103/128 115/88/115 129/30/129
|
| 757 |
+
f 128/103/128 129/30/129 125/30/125
|
| 758 |
+
f 72/59/72 99/67/99 130/105/130
|
| 759 |
+
f 130/106/130 125/30/125 127/102/127
|
| 760 |
+
f 130/106/130 128/103/128 125/30/125
|
| 761 |
+
f 131/107/131 37/76/37 39/110/39
|
| 762 |
+
f 39/110/39 128/103/128 131/107/131
|
| 763 |
+
f 130/106/130 99/67/99 131/107/131
|
| 764 |
+
f 37/76/37 131/107/131 99/67/99
|
| 765 |
+
f 130/106/130 131/107/131 128/103/128
|
| 766 |
+
f 127/102/127 75/108/75 132/109/132
|
| 767 |
+
f 132/109/132 130/106/130 127/102/127
|
| 768 |
+
vt -0.0046450998634100 1.0109800100326538
|
| 769 |
+
vt -0.0057782800868154 1.0109800100326538
|
| 770 |
+
vt 0.0006805490120314 1.0073200464248657
|
| 771 |
+
f 104/111/104 106/112/106 133/113/133
|
| 772 |
+
vt 0.0018137299921364 1.0073200464248657
|
| 773 |
+
f 133/113/133 44/114/44 104/111/104
|
| 774 |
+
f 120/103/120 134/110/134 106/87/106
|
| 775 |
+
f 134/110/134 120/103/120 123/107/123
|
| 776 |
+
f 133/30/133 106/91/106 134/32/134
|
| 777 |
+
f 123/107/123 135/76/135 134/110/134
|
| 778 |
+
f 83/67/83 82/61/82 135/76/135
|
| 779 |
+
f 135/76/135 123/107/123 83/67/83
|
| 780 |
+
f 133/30/133 134/32/134 135/31/135
|
| 781 |
+
f 136/29/136 126/98/126 110/80/110
|
| 782 |
+
f 110/80/110 111/81/111 136/29/136
|
| 783 |
+
vt 0.0071393800899386 1.0036599636077881
|
| 784 |
+
f 41/90/41 137/115/137 111/81/111
|
| 785 |
+
f 44/114/44 133/113/133 137/115/137
|
| 786 |
+
f 137/115/137 41/90/41 44/114/44
|
| 787 |
+
f 136/29/136 111/81/111 137/30/137
|
| 788 |
+
f 136/29/136 137/30/137 133/30/133
|
| 789 |
+
vt -0.0485089011490345 0.8750000000000000
|
| 790 |
+
f 77/64/77 76/63/76 138/116/138
|
| 791 |
+
f 138/27/138 133/30/133 135/31/135
|
| 792 |
+
f 138/27/138 136/29/136 133/30/133
|
| 793 |
+
f 139/28/139 127/101/127 126/98/126
|
| 794 |
+
f 126/98/126 136/29/136 139/28/139
|
| 795 |
+
f 138/27/138 76/63/76 139/28/139
|
| 796 |
+
f 127/101/127 139/28/139 76/63/76
|
| 797 |
+
f 138/27/138 139/28/139 136/29/136
|
| 798 |
+
f 135/31/135 82/92/82 140/93/140
|
| 799 |
+
f 140/93/140 138/27/138 135/31/135
|
| 800 |
+
vt 0.1405780017375946 0.9166669845581055
|
| 801 |
+
f 141/117/141 62/49/62 24/6/24
|
| 802 |
+
f 24/6/24 31/19/31 141/117/141
|
| 803 |
+
vt 0.9903849959373474 0.9166669845581055
|
| 804 |
+
f 141/118/141 31/25/31 29/9/29
|
| 805 |
+
vt -0.0815616026520729 0.9457150101661682
|
| 806 |
+
f 62/30/62 141/119/141 63/50/63
|
| 807 |
+
f 68/36/68 63/47/63 141/118/141
|
| 808 |
+
vt 0.8594220280647278 0.9166669845581055
|
| 809 |
+
f 17/17/17 67/57/67 142/120/142
|
| 810 |
+
f 142/120/142 29/23/29 17/17/17
|
| 811 |
+
vt 0.0096153803169727 0.9166669845581055
|
| 812 |
+
f 29/9/29 142/121/142 141/118/141
|
| 813 |
+
f 68/36/68 142/121/142 67/30/67
|
| 814 |
+
f 141/118/141 142/121/142 68/36/68
|
| 815 |
+
vt 0.1274659931659698 0.9166669845581055
|
| 816 |
+
f 143/122/143 46/39/46 12/12/12
|
| 817 |
+
f 12/12/12 27/21/27 143/122/143
|
| 818 |
+
vt 0.9772729873657227 0.9166669845581055
|
| 819 |
+
f 143/123/143 27/15/27 21/3/21
|
| 820 |
+
vt -0.0910637006163597 0.9537349939346313
|
| 821 |
+
f 46/30/46 143/124/143 47/40/47
|
| 822 |
+
f 58/44/58 47/52/47 143/123/143
|
| 823 |
+
vt 0.0227272994816303 0.9166669845581055
|
| 824 |
+
f 20/2/20 57/41/57 144/125/144
|
| 825 |
+
f 144/125/144 21/3/21 20/2/20
|
| 826 |
+
f 21/3/21 144/125/144 143/123/143
|
| 827 |
+
f 58/44/58 144/125/144 57/30/57
|
| 828 |
+
f 143/123/143 144/125/144 58/44/58
|
| 829 |
+
f 145/117/145 55/49/55 6/6/6
|
| 830 |
+
f 6/6/6 25/19/25 145/117/145
|
| 831 |
+
f 145/118/145 25/25/25 9/9/9
|
| 832 |
+
f 55/30/55 145/119/145 54/50/54
|
| 833 |
+
f 43/36/43 54/47/54 145/118/145
|
| 834 |
+
f 8/8/8 40/33/40 146/121/146
|
| 835 |
+
f 146/121/146 9/9/9 8/8/8
|
| 836 |
+
f 9/9/9 146/121/146 145/118/145
|
| 837 |
+
f 43/36/43 146/121/146 40/30/40
|
| 838 |
+
f 145/118/145 146/121/146 43/36/43
|
| 839 |
+
f 147/123/147 71/58/71 16/16/16
|
| 840 |
+
f 16/16/16 15/15/15 147/123/147
|
| 841 |
+
f 147/123/147 15/15/15 3/3/3
|
| 842 |
+
f 71/30/71 147/124/147 70/40/70
|
| 843 |
+
f 51/44/51 70/52/70 147/123/147
|
| 844 |
+
f 2/2/2 48/41/48 148/125/148
|
| 845 |
+
f 148/125/148 3/3/3 2/2/2
|
| 846 |
+
f 3/3/3 148/125/148 147/123/147
|
| 847 |
+
f 51/44/51 148/125/148 48/30/48
|
| 848 |
+
f 147/123/147 148/125/148 51/44/51
|
| 849 |
+
vt 0.0104166995733976 0.0384485013782978
|
| 850 |
+
vt 0.9895830154418945 0.0384485013782978
|
| 851 |
+
vt 0.9895830154418945 0.0672990009188652
|
| 852 |
+
f 92/126/92 91/127/91 149/128/149
|
| 853 |
+
vt 0.9257230162620544 0.0117405997589231
|
| 854 |
+
vt 0.9609400033950806 0.0271255001425743
|
| 855 |
+
f 92/129/92 150/130/150 151/66/151
|
| 856 |
+
vt 0.0104166995733976 0.0672990009188652
|
| 857 |
+
f 149/128/149 150/131/150 92/126/92
|
| 858 |
+
vt 0.0277778003364801 0.0562332011759281
|
| 859 |
+
vt 0.9722219705581665 0.0562332011759281
|
| 860 |
+
vt 0.9722219705581665 0.0791554003953934
|
| 861 |
+
f 91/132/91 88/133/88 152/134/152
|
| 862 |
+
vt 0.0277778003364801 0.0791554003953934
|
| 863 |
+
f 152/134/152 89/135/89 91/132/91
|
| 864 |
+
vt 0.9895830154418945 0.0961494967341423
|
| 865 |
+
f 86/131/86 153/128/153 95/136/95
|
| 866 |
+
f 96/66/96 95/66/95 153/66/153
|
| 867 |
+
f 88/126/88 93/127/93 153/128/153
|
| 868 |
+
f 153/128/153 86/131/86 88/126/88
|
| 869 |
+
f 151/66/151 154/66/154 92/129/92
|
| 870 |
+
f 80/66/80 79/66/79 154/66/154
|
| 871 |
+
f 154/66/154 151/66/151 80/66/80
|
| 872 |
+
f 93/132/93 92/133/92 154/134/154
|
| 873 |
+
vt 0.9722219705581665 0.1020779982209206
|
| 874 |
+
f 155/135/155 154/134/154 79/137/79
|
| 875 |
+
f 154/134/154 155/135/155 93/132/93
|
| 876 |
+
vt -0.1489990055561066 0.8750000000000000
|
| 877 |
+
vt -0.1489990055561066 0.1250000000000000
|
| 878 |
+
vt -0.0900733992457390 0.1250000000000000
|
| 879 |
+
f 98/138/98 97/139/97 156/140/156
|
| 880 |
+
vt -0.0900733023881912 0.8750000000000000
|
| 881 |
+
f 156/140/156 124/141/124 98/138/98
|
| 882 |
+
vt 1.0900700092315674 0.1250000000000000
|
| 883 |
+
vt 1.0311499834060669 0.8750000000000000
|
| 884 |
+
f 157/142/157 33/75/33 116/143/116
|
| 885 |
+
f 33/75/33 157/142/157 94/73/94
|
| 886 |
+
vt -0.1663600057363510 0.8750000000000000
|
| 887 |
+
vt -0.1663600057363510 0.1250000000000000
|
| 888 |
+
vt -0.1074339970946312 0.1250000000000000
|
| 889 |
+
f 82/144/82 81/145/81 158/146/158
|
| 890 |
+
vt -0.1074339970946312 0.8750000000000000
|
| 891 |
+
f 158/146/158 140/147/140 82/144/82
|
| 892 |
+
f 75/138/75 78/139/78 159/140/159
|
| 893 |
+
f 159/140/159 132/141/132 75/138/75
|
| 894 |
+
f 87/66/87 160/66/160 88/68/88
|
| 895 |
+
vt 0.9554409980773926 0.0305084995925426
|
| 896 |
+
f 160/66/160 152/148/152 88/68/88
|
| 897 |
+
f 152/148/152 160/66/160 161/66/161
|
| 898 |
+
f 89/135/89 152/134/152 162/137/162
|
| 899 |
+
vt 0.8391230106353760 0.0757376998662949
|
| 900 |
+
f 161/66/161 162/149/162 152/148/152
|
| 901 |
+
vt 1.0311499834060669 0.1250000000000000
|
| 902 |
+
f 163/150/163 116/143/116 74/61/74
|
| 903 |
+
f 74/61/74 73/60/73 163/150/163
|
| 904 |
+
f 116/143/116 163/150/163 157/142/157
|
| 905 |
+
vt 0.8003510236740112 0.0566226989030838
|
| 906 |
+
vt 0.8003510236740112 0.0822661966085434
|
| 907 |
+
f 157/151/157 163/152/163 161/66/161
|
| 908 |
+
f 162/149/162 161/66/161 163/152/163
|
| 909 |
+
vt 0.6406319737434387 0.1634649932384491
|
| 910 |
+
f 163/152/163 73/153/73 162/149/162
|
| 911 |
+
vt 0.6406319737434387 0.0865347012877464
|
| 912 |
+
f 94/154/94 157/151/157 164/66/164
|
| 913 |
+
f 161/66/161 164/66/164 157/151/157
|
| 914 |
+
f 160/66/160 87/66/87 164/66/164
|
| 915 |
+
f 164/66/164 161/66/161 160/66/160
|
| 916 |
+
vt 0.0104166995733976 0.0961494967341423
|
| 917 |
+
f 165/155/165 95/136/95 97/65/97
|
| 918 |
+
f 97/65/97 94/64/94 165/155/165
|
| 919 |
+
f 95/136/95 165/155/165 86/131/86
|
| 920 |
+
f 164/66/164 165/66/165 94/154/94
|
| 921 |
+
f 87/66/87 86/66/86 165/66/165
|
| 922 |
+
f 165/66/165 164/66/164 87/66/87
|
| 923 |
+
f 96/66/96 166/66/166 97/65/97
|
| 924 |
+
vt 0.9912520051002502 0.0774630010128021
|
| 925 |
+
f 166/66/166 156/156/156 97/65/97
|
| 926 |
+
f 156/156/156 166/66/166 167/66/167
|
| 927 |
+
vt -0.0311478003859520 0.1250000000000000
|
| 928 |
+
f 122/105/122 168/157/168 84/59/84
|
| 929 |
+
f 124/141/124 156/140/156 168/157/168
|
| 930 |
+
f 168/157/168 122/105/122 124/141/124
|
| 931 |
+
vt 0.9823690056800842 0.1015190035104752
|
| 932 |
+
f 167/66/167 168/158/168 156/156/156
|
| 933 |
+
vt 0.0277778003364801 0.1020779982209206
|
| 934 |
+
f 169/159/169 79/137/79 81/60/81
|
| 935 |
+
f 81/60/81 84/59/84 169/159/169
|
| 936 |
+
f 79/137/79 169/159/169 155/135/155
|
| 937 |
+
vt 0.9645839929580688 0.0271255001425743
|
| 938 |
+
vt 0.9757019877433777 0.0889343991875648
|
| 939 |
+
f 155/160/155 169/161/169 167/66/167
|
| 940 |
+
f 168/158/168 167/66/167 169/161/169
|
| 941 |
+
vt 0.9629340171813965 0.1971669942140579
|
| 942 |
+
f 169/161/169 84/162/84 168/158/168
|
| 943 |
+
vt 0.9295809864997864 0.0117405997589231
|
| 944 |
+
f 170/66/170 153/66/153 93/163/93
|
| 945 |
+
f 93/163/93 155/160/155 170/66/170
|
| 946 |
+
f 153/66/153 170/66/170 96/66/96
|
| 947 |
+
f 167/66/167 170/66/170 155/160/155
|
| 948 |
+
f 166/66/166 96/66/96 170/66/170
|
| 949 |
+
f 170/66/170 167/66/167 166/66/166
|
| 950 |
+
f 90/69/90 171/69/171 91/70/91
|
| 951 |
+
vt 0.9554409980773926 0.9780390262603760
|
| 952 |
+
f 171/69/171 149/164/149 91/70/91
|
| 953 |
+
f 149/164/149 171/69/171 172/69/172
|
| 954 |
+
f 150/131/150 149/128/149 173/136/173
|
| 955 |
+
vt 0.8391230106353760 0.9584540128707886
|
| 956 |
+
vt 0.8003510236740112 0.9433770179748535
|
| 957 |
+
f 173/165/173 172/69/172 159/166/159
|
| 958 |
+
vt 0.6406310200691223 0.9134650230407715
|
| 959 |
+
f 159/166/159 78/167/78 173/165/173
|
| 960 |
+
f 172/69/172 173/165/173 149/164/149
|
| 961 |
+
f 171/69/171 90/69/90 174/69/174
|
| 962 |
+
f 174/69/174 172/69/172 171/69/171
|
| 963 |
+
f 130/105/130 175/157/175 72/59/72
|
| 964 |
+
f 132/141/132 159/140/159 175/157/175
|
| 965 |
+
f 175/157/175 130/105/130 132/141/132
|
| 966 |
+
vt 0.6406310200691223 0.8365349769592285
|
| 967 |
+
vt 0.8003510236740112 0.9177340269088745
|
| 968 |
+
f 72/168/72 175/169/175 174/69/174
|
| 969 |
+
f 172/69/172 174/69/174 175/169/175
|
| 970 |
+
f 175/169/175 159/166/159 172/69/172
|
| 971 |
+
f 176/159/176 162/137/162 73/60/73
|
| 972 |
+
f 73/60/73 72/59/72 176/159/176
|
| 973 |
+
f 162/137/162 176/159/176 89/135/89
|
| 974 |
+
f 174/69/174 176/69/176 72/168/72
|
| 975 |
+
f 90/69/90 89/69/89 176/69/176
|
| 976 |
+
f 176/69/176 174/69/174 90/69/90
|
| 977 |
+
f 177/66/177 80/66/80 151/66/151
|
| 978 |
+
f 80/66/80 177/66/177 81/60/81
|
| 979 |
+
vt 0.9816070199012756 0.0774630010128021
|
| 980 |
+
f 177/66/177 158/170/158 81/60/81
|
| 981 |
+
f 178/66/178 151/66/151 150/130/150
|
| 982 |
+
f 151/66/151 178/66/178 177/66/177
|
| 983 |
+
f 158/170/158 177/66/177 178/66/178
|
| 984 |
+
vt -0.0485089011490345 0.1250000000000000
|
| 985 |
+
f 138/116/138 179/171/179 77/64/77
|
| 986 |
+
f 140/147/140 158/146/158 179/171/179
|
| 987 |
+
f 179/171/179 138/116/138 140/147/140
|
| 988 |
+
vt 0.9727240204811096 0.1015190035104752
|
| 989 |
+
f 178/66/178 179/172/179 158/170/158
|
| 990 |
+
f 180/155/180 173/136/173 78/65/78
|
| 991 |
+
f 78/65/78 77/64/77 180/155/180
|
| 992 |
+
f 173/136/173 180/155/180 150/131/150
|
| 993 |
+
vt 0.9675570130348206 0.0889343991875648
|
| 994 |
+
f 150/130/150 180/173/180 178/66/178
|
| 995 |
+
f 179/172/179 178/66/178 180/173/180
|
| 996 |
+
vt 0.9455729722976685 0.1971669942140579
|
| 997 |
+
f 180/173/180 77/174/77 179/172/179
|
| 998 |
+
vt 0.0227272994816303 0.0833332985639572
|
| 999 |
+
f 181/175/181 4/4/4 14/14/14
|
| 1000 |
+
vt 0.0096153803169727 0.9772729873657227
|
| 1001 |
+
f 182/30/182 183/30/183 184/176/184
|
| 1002 |
+
vt 0.9903849959373474 0.0227272994816303
|
| 1003 |
+
vt 0.0096153803169727 0.0227272994816303
|
| 1004 |
+
f 185/177/185 186/178/186 184/176/184
|
| 1005 |
+
vt 0.9903849959373474 0.9772729873657227
|
| 1006 |
+
f 184/176/184 187/179/187 185/177/185
|
| 1007 |
+
vt 0.0096153803169727 0.0833332985639572
|
| 1008 |
+
f 188/180/188 30/10/30 32/26/32
|
| 1009 |
+
vt 0.0000000000000000 0.0000000000000000
|
| 1010 |
+
f 189/181/189 190/181/190 188/180/188
|
| 1011 |
+
f 191/181/191 192/181/192 186/178/186
|
| 1012 |
+
f 193/181/193 194/181/194 181/175/181
|
| 1013 |
+
f 194/181/194 193/181/193 195/181/195
|
| 1014 |
+
vt 0.9772729873657227 -0.0008300719782710
|
| 1015 |
+
vt 0.0227272994816303 -0.0008300699992105
|
| 1016 |
+
vt 0.0227272994816303 0.0272243991494179
|
| 1017 |
+
f 185/182/185 187/183/187 195/184/195
|
| 1018 |
+
vt 0.9772729873657227 0.0272243991494179
|
| 1019 |
+
vt 0.0227272994816303 0.0552789010107517
|
| 1020 |
+
f 196/185/196 195/184/195 193/186/193
|
| 1021 |
+
f 195/184/195 196/185/196 185/182/185
|
| 1022 |
+
vt 0.9903849959373474 0.0127606997266412
|
| 1023 |
+
vt 0.0096153803169727 0.0127606997266412
|
| 1024 |
+
vt 0.0096153803169727 0.0362849012017250
|
| 1025 |
+
f 187/187/187 184/188/184 197/189/197
|
| 1026 |
+
vt 0.9903849959373474 0.0362849012017250
|
| 1027 |
+
f 197/189/197 198/190/198 187/187/187
|
| 1028 |
+
f 184/182/184 186/183/186 199/184/199
|
| 1029 |
+
f 199/184/199 182/185/182 184/182/184
|
| 1030 |
+
vt 0.0096153803169727 0.0598090998828411
|
| 1031 |
+
f 191/190/191 200/189/200 189/191/189
|
| 1032 |
+
f 190/181/190 189/181/189 200/181/200
|
| 1033 |
+
f 186/187/186 185/188/185 200/189/200
|
| 1034 |
+
f 200/189/200 191/190/191 186/187/186
|
| 1035 |
+
f 190/181/190 201/181/201 188/180/188
|
| 1036 |
+
vt 0.8594220280647278 0.0833332017064095
|
| 1037 |
+
vt 0.8987050056457520 0.0833332985639572
|
| 1038 |
+
f 30/24/30 188/192/188 202/193/202
|
| 1039 |
+
f 202/193/202 18/18/18 30/24/30
|
| 1040 |
+
vt 0.0027993998955935 0.0517958998680115
|
| 1041 |
+
f 201/181/201 202/194/202 188/180/188
|
| 1042 |
+
f 202/194/202 201/181/201 203/181/203
|
| 1043 |
+
vt 0.9379889965057373 0.0833332985639572
|
| 1044 |
+
f 14/14/14 13/13/13 204/195/204
|
| 1045 |
+
f 18/18/18 202/193/202 204/195/204
|
| 1046 |
+
f 204/195/204 13/13/13 18/18/18
|
| 1047 |
+
vt -0.0048280600458384 0.0682948976755142
|
| 1048 |
+
f 203/181/203 204/196/204 202/194/202
|
| 1049 |
+
vt 0.9772729873657227 0.0552789010107517
|
| 1050 |
+
f 205/197/205 193/186/193 181/175/181
|
| 1051 |
+
f 193/186/193 205/197/205 196/185/196
|
| 1052 |
+
vt -0.0211621001362801 0.0188602991402149
|
| 1053 |
+
vt -0.0108184004202485 0.0600610002875328
|
| 1054 |
+
f 196/198/196 205/199/205 203/181/203
|
| 1055 |
+
f 204/196/204 203/181/203 205/199/205
|
| 1056 |
+
vt 0.9772729873657227 0.0833332985639572
|
| 1057 |
+
f 204/195/204 206/200/206 14/14/14
|
| 1058 |
+
f 14/14/14 206/200/206 181/175/181
|
| 1059 |
+
f 181/175/181 206/200/206 205/197/205
|
| 1060 |
+
vt -0.0132670002058148 0.1328299939632416
|
| 1061 |
+
f 205/199/205 206/201/206 204/196/204
|
| 1062 |
+
vt -0.0442980006337166 0.0092281196266413
|
| 1063 |
+
f 207/181/207 200/181/200 185/202/185
|
| 1064 |
+
f 185/202/185 196/198/196 207/181/207
|
| 1065 |
+
f 200/181/200 207/181/207 190/181/190
|
| 1066 |
+
f 203/181/203 207/181/207 196/198/196
|
| 1067 |
+
f 201/181/201 190/181/190 207/181/207
|
| 1068 |
+
f 207/181/207 203/181/203 201/181/201
|
| 1069 |
+
f 192/181/192 208/181/208 186/178/186
|
| 1070 |
+
vt -0.0114682000130415 0.0223897006362677
|
| 1071 |
+
f 208/181/208 199/203/199 186/178/186
|
| 1072 |
+
f 199/203/199 208/181/208 209/181/209
|
| 1073 |
+
f 182/185/182 199/184/199 210/186/210
|
| 1074 |
+
vt -0.0618983991444111 0.0516800992190838
|
| 1075 |
+
f 209/181/209 210/204/210 199/203/199
|
| 1076 |
+
vt 0.0620109997689724 0.0833332985639572
|
| 1077 |
+
f 211/205/211 19/1/19 22/4/22
|
| 1078 |
+
vt -0.0787084028124809 0.0553846992552280
|
| 1079 |
+
f 210/204/210 209/181/209 211/206/211
|
| 1080 |
+
f 22/4/22 212/175/212 211/205/211
|
| 1081 |
+
f 212/175/212 22/4/22 28/14/28
|
| 1082 |
+
vt -0.1416749954223633 0.1105979979038239
|
| 1083 |
+
f 211/206/211 212/207/212 210/204/210
|
| 1084 |
+
f 208/181/208 192/181/192 213/181/213
|
| 1085 |
+
f 213/181/213 209/181/209 208/181/208
|
| 1086 |
+
vt 0.1012950018048286 0.0833332985639572
|
| 1087 |
+
f 19/1/19 211/205/211 214/208/214
|
| 1088 |
+
f 214/208/214 23/5/23 19/1/19
|
| 1089 |
+
f 32/20/32 23/5/23 214/208/214
|
| 1090 |
+
vt -0.0787084028124809 0.0372079014778137
|
| 1091 |
+
f 209/181/209 213/181/213 214/209/214
|
| 1092 |
+
f 214/209/214 211/206/211 209/181/209
|
| 1093 |
+
vt 0.9903849959373474 0.0598090998828411
|
| 1094 |
+
f 215/210/215 189/191/189 188/180/188
|
| 1095 |
+
f 189/191/189 215/210/215 191/190/191
|
| 1096 |
+
f 192/181/192 191/181/191 215/181/215
|
| 1097 |
+
f 215/181/215 213/181/213 192/181/192
|
| 1098 |
+
vt 0.1405780017375946 0.0833332985639572
|
| 1099 |
+
f 214/208/214 216/211/216 32/20/32
|
| 1100 |
+
vt 0.9903849959373474 0.0833332985639572
|
| 1101 |
+
f 32/26/32 216/212/216 188/180/188
|
| 1102 |
+
f 188/180/188 216/212/216 215/210/215
|
| 1103 |
+
vt -0.1416749954223633 0.0560683012008667
|
| 1104 |
+
f 213/181/213 215/181/215 216/213/216
|
| 1105 |
+
f 216/213/216 214/209/214 213/181/213
|
| 1106 |
+
f 194/181/194 217/181/217 181/175/181
|
| 1107 |
+
f 4/4/4 181/175/181 218/205/218
|
| 1108 |
+
f 218/205/218 1/1/1 4/4/4
|
| 1109 |
+
vt 0.0100838001817465 0.0517958998680115
|
| 1110 |
+
f 217/181/217 218/214/218 181/175/181
|
| 1111 |
+
f 218/214/218 217/181/217 219/181/219
|
| 1112 |
+
f 1/1/1 218/205/218 220/208/220
|
| 1113 |
+
f 220/208/220 5/5/5 1/1/1
|
| 1114 |
+
f 26/20/26 5/5/5 220/208/220
|
| 1115 |
+
vt 0.0024563400074840 0.0682948976755142
|
| 1116 |
+
f 219/181/219 220/215/220 218/214/218
|
| 1117 |
+
vt -0.0181159004569054 0.0188602991402149
|
| 1118 |
+
vt -0.0045935898087919 0.0600610002875328
|
| 1119 |
+
f 198/216/198 221/217/221 219/181/219
|
| 1120 |
+
f 220/215/220 219/181/219 221/217/221
|
| 1121 |
+
f 220/208/220 222/211/222 26/20/26
|
| 1122 |
+
vt -0.0001550620072521 0.1328299939632416
|
| 1123 |
+
f 221/217/221 222/218/222 220/215/220
|
| 1124 |
+
vt -0.0407220013439655 0.0092281298711896
|
| 1125 |
+
f 223/181/223 195/181/195 187/219/187
|
| 1126 |
+
f 187/219/187 198/216/198 223/181/223
|
| 1127 |
+
f 195/181/195 223/181/223 194/181/194
|
| 1128 |
+
f 219/181/219 223/181/223 198/216/198
|
| 1129 |
+
f 217/181/217 194/181/194 223/181/223
|
| 1130 |
+
f 223/181/223 219/181/219 217/181/217
|
| 1131 |
+
f 183/30/183 224/30/224 184/176/184
|
| 1132 |
+
vt -0.0114682000130415 0.9836689829826355
|
| 1133 |
+
f 224/30/224 197/220/197 184/176/184
|
| 1134 |
+
f 197/220/197 224/30/224 225/30/225
|
| 1135 |
+
f 198/190/198 197/189/197 226/191/226
|
| 1136 |
+
f 226/191/226 221/210/221 198/190/198
|
| 1137 |
+
vt -0.0618983991444111 0.9725559949874878
|
| 1138 |
+
f 225/30/225 226/221/226 197/220/197
|
| 1139 |
+
vt 0.0488990992307663 0.0833332985639572
|
| 1140 |
+
f 227/222/227 7/7/7 10/10/10
|
| 1141 |
+
vt -0.0787084028124809 0.9627919793128967
|
| 1142 |
+
f 226/221/226 225/30/225 227/223/227
|
| 1143 |
+
f 10/10/10 228/180/228 227/222/227
|
| 1144 |
+
f 26/26/26 222/212/222 228/180/228
|
| 1145 |
+
f 228/180/228 10/10/10 26/26/26
|
| 1146 |
+
f 221/210/221 226/191/226 228/180/228
|
| 1147 |
+
f 228/180/228 222/212/222 221/210/221
|
| 1148 |
+
vt -0.1416749954223633 0.9439319968223572
|
| 1149 |
+
f 227/223/227 228/224/228 226/221/226
|
| 1150 |
+
f 224/30/224 183/30/183 229/30/229
|
| 1151 |
+
f 229/30/229 225/30/225 224/30/224
|
| 1152 |
+
vt 0.0881827995181084 0.0833332985639572
|
| 1153 |
+
f 7/7/7 227/222/227 230/225/230
|
| 1154 |
+
f 230/225/230 11/11/11 7/7/7
|
| 1155 |
+
f 28/22/28 11/11/11 230/225/230
|
| 1156 |
+
vt -0.0787084028124809 0.9446150064468384
|
| 1157 |
+
f 225/30/225 229/30/229 230/226/230
|
| 1158 |
+
f 230/226/230 227/223/227 225/30/225
|
| 1159 |
+
f 231/197/231 210/186/210 212/175/212
|
| 1160 |
+
f 210/186/210 231/197/231 182/185/182
|
| 1161 |
+
f 183/30/183 182/30/182 231/30/231
|
| 1162 |
+
f 231/30/231 229/30/229 183/30/183
|
| 1163 |
+
vt 0.1274659931659698 0.0833332985639572
|
| 1164 |
+
f 230/225/230 232/227/232 28/22/28
|
| 1165 |
+
f 28/14/28 232/200/232 212/175/212
|
| 1166 |
+
f 212/175/212 232/200/232 231/197/231
|
| 1167 |
+
vt -0.1416749954223633 0.8894019722938538
|
| 1168 |
+
f 229/30/229 231/30/231 232/228/232
|
| 1169 |
+
f 232/228/232 230/226/230 229/30/229
|
| 1170 |
+
# 460 faces, 228 coords texture
|
| 1171 |
+
|
| 1172 |
+
# End of File
|
assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 1.000000 1.000000 1.000000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
|
assets/basic/arrange_the_tableware/tray/tray_0/Aligned_obj.usd
ADDED
|
Binary file (39.8 kB). View file
|
|
|
assets/basic/arrange_the_tableware/tray/tray_0/Looks.usd
ADDED
|
Binary file (6.85 kB). View file
|
|
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/DayMaterial.mdl
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material DayMaterial(
|
| 20 |
+
float Flat = 1.0
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Flat"),
|
| 23 |
+
anno::ui_order(32)
|
| 24 |
+
]],
|
| 25 |
+
uniform texture_2d img = texture_2d("./Textures/white.png",::tex::gamma_srgb)
|
| 26 |
+
[[
|
| 27 |
+
anno::display_name("img"),
|
| 28 |
+
anno::ui_order(32),
|
| 29 |
+
sampler_color()
|
| 30 |
+
]],
|
| 31 |
+
int MaxTexCoordIndex = 3
|
| 32 |
+
[[
|
| 33 |
+
anno::hidden()
|
| 34 |
+
]])
|
| 35 |
+
=
|
| 36 |
+
let {
|
| 37 |
+
float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0);
|
| 38 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
float3 Normal_mdl = float3(0.0,0.0,1.0);
|
| 42 |
+
|
| 43 |
+
float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 44 |
+
float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z));
|
| 45 |
+
|
| 46 |
+
float3 EmissiveColor_mdl = Local1;
|
| 47 |
+
float Opacity_mdl = Local0.w;
|
| 48 |
+
float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 49 |
+
float3 BaseColor_mdl = float3(0.0,0.0,0.0);
|
| 50 |
+
float Metallic_mdl = 0.0;
|
| 51 |
+
float Specular_mdl = 0.5;
|
| 52 |
+
float Roughness_mdl = 0.5;
|
| 53 |
+
float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x);
|
| 54 |
+
|
| 55 |
+
} in
|
| 56 |
+
::OmniUe4Translucent(
|
| 57 |
+
base_color: BaseColor_mdl,
|
| 58 |
+
metallic: Metallic_mdl,
|
| 59 |
+
roughness: Roughness_mdl,
|
| 60 |
+
specular: Specular_mdl,
|
| 61 |
+
normal: Normal_mdl,
|
| 62 |
+
opacity: Opacity_mdl,
|
| 63 |
+
opacity_mask: OpacityMask_mdl,
|
| 64 |
+
emissive_color: EmissiveColor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;
|
| 9 |
+
import ::state::*;
|
| 10 |
+
|
| 11 |
+
export material KooMtl2Sided(
|
| 12 |
+
material frontMtl = material() [[
|
| 13 |
+
anno::in_group("Parameters"),
|
| 14 |
+
anno::display_name("Front material")
|
| 15 |
+
]],
|
| 16 |
+
material backMtl = frontMtl [[
|
| 17 |
+
anno::in_group("Parameters"),
|
| 18 |
+
anno::display_name("Back material")
|
| 19 |
+
]],
|
| 20 |
+
uniform bool use_backMtl = false [[
|
| 21 |
+
anno::in_group("Parameters"),
|
| 22 |
+
anno::display_name("Use back material")
|
| 23 |
+
]],
|
| 24 |
+
color translucency = color(0.5f, 0.5f, 0.5f) [[
|
| 25 |
+
anno::in_group("Basic parameters"),
|
| 26 |
+
anno::display_name("Translucency")
|
| 27 |
+
]],
|
| 28 |
+
color front_tint = color(1.f, 1.f, 1.f) [[
|
| 29 |
+
anno::in_group("Parameters"),
|
| 30 |
+
anno::display_name("Front tint"),
|
| 31 |
+
anno::hidden()
|
| 32 |
+
]],
|
| 33 |
+
color back_tint = color(1.f, 1.f, 1.f) [[
|
| 34 |
+
anno::in_group("Parameters"),
|
| 35 |
+
anno::display_name("Back tint"),
|
| 36 |
+
anno::hidden()
|
| 37 |
+
]],
|
| 38 |
+
uniform bool multiply_by_front_diffuse = false [[
|
| 39 |
+
anno::in_group("Basic parameters"),
|
| 40 |
+
anno::display_name("Multiply by front diffuse"),
|
| 41 |
+
anno::unused(),
|
| 42 |
+
anno::hidden()
|
| 43 |
+
]])
|
| 44 |
+
[[
|
| 45 |
+
anno::author("KooLab")
|
| 46 |
+
]]
|
| 47 |
+
=
|
| 48 |
+
let {
|
| 49 |
+
bsdf transmission_bsdf =
|
| 50 |
+
df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f);
|
| 51 |
+
|
| 52 |
+
bsdf front_bsdf =
|
| 53 |
+
df::color_weighted_layer
|
| 54 |
+
(
|
| 55 |
+
weight : translucency,
|
| 56 |
+
layer : transmission_bsdf,
|
| 57 |
+
base : frontMtl.surface.scattering
|
| 58 |
+
);
|
| 59 |
+
|
| 60 |
+
bsdf back_bsdf =
|
| 61 |
+
df::color_weighted_layer
|
| 62 |
+
(
|
| 63 |
+
weight : translucency,
|
| 64 |
+
layer : transmission_bsdf,
|
| 65 |
+
base : backMtl.surface.scattering
|
| 66 |
+
);
|
| 67 |
+
} in
|
| 68 |
+
material(
|
| 69 |
+
thin_walled: true,
|
| 70 |
+
ior: frontMtl.ior,
|
| 71 |
+
surface: material_surface(scattering: front_bsdf),
|
| 72 |
+
backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf),
|
| 73 |
+
volume: frontMtl.volume,
|
| 74 |
+
geometry: frontMtl.geometry
|
| 75 |
+
);
|
| 76 |
+
|
| 77 |
+
float emissive_multiplier() uniform
|
| 78 |
+
[[
|
| 79 |
+
anno::description("unit conversion from pbrjson emission to mdl"),
|
| 80 |
+
anno::noinline()
|
| 81 |
+
]]
|
| 82 |
+
{
|
| 83 |
+
return 2560.f;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
export material KooLightMtl(
|
| 87 |
+
color emission = color(1.f, 1.f, 1.f) [[
|
| 88 |
+
anno::in_group("Parameters"),
|
| 89 |
+
anno::display_name("Emission")
|
| 90 |
+
]],
|
| 91 |
+
uniform float emission_mult = 1.f [[
|
| 92 |
+
anno::in_group("Parameters"),
|
| 93 |
+
anno::display_name("Mutliplier")
|
| 94 |
+
]],
|
| 95 |
+
color opacity = color(1.f, 1.f, 1.f) [[
|
| 96 |
+
anno::in_group("Parameters"),
|
| 97 |
+
anno::display_name("Opacity")
|
| 98 |
+
]],
|
| 99 |
+
uniform bool emit_on_backside = false [[
|
| 100 |
+
anno::in_group("Parameters"),
|
| 101 |
+
anno::display_name("Emit light on back side")
|
| 102 |
+
]])
|
| 103 |
+
[[
|
| 104 |
+
anno::author("KooLab")
|
| 105 |
+
]]
|
| 106 |
+
=
|
| 107 |
+
let {
|
| 108 |
+
color emission_color = (emission*opacity)*emission_mult * emissive_multiplier();
|
| 109 |
+
|
| 110 |
+
bsdf surface_bsdf =
|
| 111 |
+
df::simple_glossy_bsdf
|
| 112 |
+
(
|
| 113 |
+
mode: df::scatter_transmit,
|
| 114 |
+
tint: color(1.f) - opacity,
|
| 115 |
+
roughness_u: 0
|
| 116 |
+
);
|
| 117 |
+
|
| 118 |
+
material_surface emit_surface = material_surface(
|
| 119 |
+
scattering: surface_bsdf,
|
| 120 |
+
emission: material_emission(
|
| 121 |
+
emission: df::diffuse_edf(),
|
| 122 |
+
intensity: emission_color)
|
| 123 |
+
);
|
| 124 |
+
} in
|
| 125 |
+
material(
|
| 126 |
+
thin_walled: emit_on_backside,
|
| 127 |
+
ior: color(1.f),
|
| 128 |
+
surface: emit_surface,
|
| 129 |
+
backface: emit_on_backside ? emit_surface : material_surface()
|
| 130 |
+
);
|
| 131 |
+
|
| 132 |
+
export material KooMtl(
|
| 133 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 134 |
+
anno::in_group("Diffuse Parameters"),
|
| 135 |
+
anno::display_name("diffuse")
|
| 136 |
+
]],
|
| 137 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 138 |
+
anno::in_group("Reflections"),
|
| 139 |
+
anno::display_name("reflect")
|
| 140 |
+
]],
|
| 141 |
+
float reflect_glossiness = 1.f [[
|
| 142 |
+
anno::in_group("Reflections"),
|
| 143 |
+
anno::display_name("Glossiness"),
|
| 144 |
+
anno::hard_range(0.f, 1.f)
|
| 145 |
+
]],
|
| 146 |
+
uniform bool fresnel = true [[
|
| 147 |
+
anno::in_group("Reflections"),
|
| 148 |
+
anno::display_name("Fresnel reflections")
|
| 149 |
+
]],
|
| 150 |
+
float fresnel_ior = 1.6f [[
|
| 151 |
+
anno::in_group("Reflections"),
|
| 152 |
+
anno::display_name("Fresnel IOR"),
|
| 153 |
+
anno::hard_range(0.2f, 5.f)
|
| 154 |
+
]],
|
| 155 |
+
uniform bool fresnel_ior_lock = true [[
|
| 156 |
+
anno::in_group("Reflections"),
|
| 157 |
+
anno::display_name("Lock IOR")
|
| 158 |
+
]],
|
| 159 |
+
uniform bool invert_reflection_ior = false [[
|
| 160 |
+
anno::in_group("Reflections"),
|
| 161 |
+
anno::hidden()
|
| 162 |
+
]],
|
| 163 |
+
float reflection_metalness = 0.f [[
|
| 164 |
+
anno::in_group("Reflections"),
|
| 165 |
+
anno::display_name("Metalness"),
|
| 166 |
+
anno::hard_range(0.f, 1.f)
|
| 167 |
+
]],
|
| 168 |
+
uniform float refract_ior = 1.6f [[
|
| 169 |
+
anno::in_group("Refractions"),
|
| 170 |
+
anno::display_name("IOR"),
|
| 171 |
+
anno::soft_range(0.2f, 5.f),
|
| 172 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 173 |
+
]],
|
| 174 |
+
uniform bool invert_refraction_ior = false [[
|
| 175 |
+
anno::in_group("Refractions"),
|
| 176 |
+
anno::hidden()
|
| 177 |
+
]],
|
| 178 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 179 |
+
anno::in_group("Self-Illumination"),
|
| 180 |
+
anno::display_name("Self-illumination")
|
| 181 |
+
]],
|
| 182 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 183 |
+
anno::in_group("Self-Illumination"),
|
| 184 |
+
anno::display_name("Self-Illumination Intensity")
|
| 185 |
+
]],
|
| 186 |
+
float anisotropy = 0.f [[
|
| 187 |
+
anno::in_group("BRDF"),
|
| 188 |
+
anno::display_name("Anisotropy"),
|
| 189 |
+
anno::hard_range(-1.f, 1.f),
|
| 190 |
+
anno::unused(),
|
| 191 |
+
anno::hidden()
|
| 192 |
+
]],
|
| 193 |
+
float anisotropy_rotation = 0.f [[
|
| 194 |
+
anno::in_group("BRDF"),
|
| 195 |
+
anno::display_name("Rotation"),
|
| 196 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 197 |
+
anno::unused(),
|
| 198 |
+
anno::hidden()
|
| 199 |
+
]],
|
| 200 |
+
float3 texmap_bump = state::normal() [[
|
| 201 |
+
anno::in_group("Maps"),
|
| 202 |
+
anno::display_name("Bump Map")
|
| 203 |
+
]],
|
| 204 |
+
float opacity = 1.f [[
|
| 205 |
+
anno::in_group("Maps"),
|
| 206 |
+
anno::display_name("Opacity Map")
|
| 207 |
+
]],
|
| 208 |
+
uniform bool thin_walled = false [[
|
| 209 |
+
anno::in_group("Options"),
|
| 210 |
+
anno::hidden()
|
| 211 |
+
]])
|
| 212 |
+
[[
|
| 213 |
+
anno::author("KooLab")
|
| 214 |
+
]]
|
| 215 |
+
=
|
| 216 |
+
let {
|
| 217 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 218 |
+
|
| 219 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 220 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 221 |
+
|
| 222 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 223 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 224 |
+
|
| 225 |
+
bsdf diffuse_bsdf =
|
| 226 |
+
df::weighted_layer
|
| 227 |
+
(
|
| 228 |
+
weight : 1.f,
|
| 229 |
+
layer : df::diffuse_reflection_bsdf
|
| 230 |
+
(
|
| 231 |
+
tint : diffuse,
|
| 232 |
+
roughness : 0.0f
|
| 233 |
+
),
|
| 234 |
+
normal : texmap_bump
|
| 235 |
+
);
|
| 236 |
+
|
| 237 |
+
bsdf glossy_reflection_bsdf =
|
| 238 |
+
df::simple_glossy_bsdf(
|
| 239 |
+
mode: df::scatter_reflect,
|
| 240 |
+
tint: fresnel ? reflect : color(1.f),
|
| 241 |
+
roughness_u: reflection_roughness
|
| 242 |
+
);
|
| 243 |
+
|
| 244 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 245 |
+
df::simple_glossy_bsdf(
|
| 246 |
+
mode: df::scatter_reflect,
|
| 247 |
+
tint: diffuse,
|
| 248 |
+
roughness_u: reflection_roughness
|
| 249 |
+
);
|
| 250 |
+
|
| 251 |
+
bsdf surface_bsdf =
|
| 252 |
+
df::color_custom_curve_layer
|
| 253 |
+
(
|
| 254 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 255 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 256 |
+
layer : glossy_reflection_bsdf,
|
| 257 |
+
base :
|
| 258 |
+
df::weighted_layer
|
| 259 |
+
(
|
| 260 |
+
weight : reflection_metalness,
|
| 261 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 262 |
+
base : diffuse_bsdf,
|
| 263 |
+
normal : texmap_bump
|
| 264 |
+
),
|
| 265 |
+
normal : texmap_bump
|
| 266 |
+
);
|
| 267 |
+
} in
|
| 268 |
+
material
|
| 269 |
+
(
|
| 270 |
+
ior : color(refr_ior),
|
| 271 |
+
thin_walled : thin_walled,
|
| 272 |
+
surface : material_surface
|
| 273 |
+
(
|
| 274 |
+
scattering : surface_bsdf,
|
| 275 |
+
emission : material_emission
|
| 276 |
+
(
|
| 277 |
+
emission : df::diffuse_edf(),
|
| 278 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 279 |
+
)
|
| 280 |
+
),
|
| 281 |
+
geometry : material_geometry
|
| 282 |
+
(
|
| 283 |
+
cutout_opacity: opacity
|
| 284 |
+
)
|
| 285 |
+
);
|
| 286 |
+
|
| 287 |
+
export material KooTranslucentMtl(
|
| 288 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 289 |
+
anno::in_group("Diffuse Parameters"),
|
| 290 |
+
anno::display_name("Diffuse")
|
| 291 |
+
]],
|
| 292 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 293 |
+
anno::in_group("Reflections"),
|
| 294 |
+
anno::display_name("Reflect")
|
| 295 |
+
]],
|
| 296 |
+
float reflect_glossiness = 1.f [[
|
| 297 |
+
anno::in_group("Reflections"),
|
| 298 |
+
anno::display_name("Glossiness"),
|
| 299 |
+
anno::hard_range(0.f, 1.f)
|
| 300 |
+
]],
|
| 301 |
+
uniform bool fresnel = true [[
|
| 302 |
+
anno::in_group("Reflections"),
|
| 303 |
+
anno::display_name("Fresnel reflections")
|
| 304 |
+
]],
|
| 305 |
+
float fresnel_ior = 1.6f [[
|
| 306 |
+
anno::in_group("Reflections"),
|
| 307 |
+
anno::display_name("Fresnel IOR"),
|
| 308 |
+
anno::soft_range(0.2, 5.f),
|
| 309 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 310 |
+
]],
|
| 311 |
+
uniform bool fresnel_ior_lock = true [[
|
| 312 |
+
anno::in_group("Reflections"),
|
| 313 |
+
anno::display_name("Lock IOR")
|
| 314 |
+
]],
|
| 315 |
+
uniform bool invert_reflection_ior = false [[
|
| 316 |
+
anno::in_group("Reflections"),
|
| 317 |
+
anno::hidden()
|
| 318 |
+
]],
|
| 319 |
+
float reflection_metalness = 0.f [[
|
| 320 |
+
anno::in_group("Reflections"),
|
| 321 |
+
anno::display_name("Metalness"),
|
| 322 |
+
anno::hard_range(0.f, 1.f)
|
| 323 |
+
]],
|
| 324 |
+
color refract = color(0.f, 0.f, 0.f) [[
|
| 325 |
+
anno::in_group("Refractions"),
|
| 326 |
+
anno::display_name("Refract")
|
| 327 |
+
]],
|
| 328 |
+
float refract_glossiness = 1.f [[
|
| 329 |
+
anno::in_group("Refractions"),
|
| 330 |
+
anno::display_name("Glossiness"),
|
| 331 |
+
anno::hard_range(0.f, 1.f)
|
| 332 |
+
]],
|
| 333 |
+
uniform float refract_ior = 1.6f [[
|
| 334 |
+
anno::in_group("Refractions"),
|
| 335 |
+
anno::display_name("IOR"),
|
| 336 |
+
anno::soft_range(0.2f, 5.f),
|
| 337 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 338 |
+
]],
|
| 339 |
+
uniform bool invert_refraction_ior = false [[
|
| 340 |
+
anno::in_group("Refractions"),
|
| 341 |
+
anno::hidden()
|
| 342 |
+
]],
|
| 343 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 344 |
+
anno::in_group("Self-Illumination"),
|
| 345 |
+
anno::display_name("Self-illumination")
|
| 346 |
+
]],
|
| 347 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 348 |
+
anno::in_group("Self-Illumination"),
|
| 349 |
+
anno::display_name("Multiplier")
|
| 350 |
+
]],
|
| 351 |
+
float anisotropy = 0.f [[
|
| 352 |
+
anno::in_group("BRDF"),
|
| 353 |
+
anno::display_name("Anisotropy"),
|
| 354 |
+
anno::hard_range(-1.f, 1.f),
|
| 355 |
+
anno::unused(),
|
| 356 |
+
anno::hidden()
|
| 357 |
+
]],
|
| 358 |
+
float anisotropy_rotation = 0.f [[
|
| 359 |
+
anno::in_group("BRDF"),
|
| 360 |
+
anno::display_name("Rotation"),
|
| 361 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 362 |
+
anno::unused(),
|
| 363 |
+
anno::hidden()
|
| 364 |
+
]],
|
| 365 |
+
float3 texmap_bump = state::normal() [[
|
| 366 |
+
anno::in_group("Maps"),
|
| 367 |
+
anno::display_name("Bump Map")
|
| 368 |
+
]],
|
| 369 |
+
float texmap_opacity = 1.f [[
|
| 370 |
+
anno::in_group("Maps"),
|
| 371 |
+
anno::display_name("Opacity Map")
|
| 372 |
+
]],
|
| 373 |
+
uniform bool thin_walled = false [[
|
| 374 |
+
anno::in_group("Options"),
|
| 375 |
+
anno::hidden()
|
| 376 |
+
]])
|
| 377 |
+
[[
|
| 378 |
+
anno::author("KooLab")
|
| 379 |
+
]]
|
| 380 |
+
=
|
| 381 |
+
let {
|
| 382 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 383 |
+
|
| 384 |
+
float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f);
|
| 385 |
+
|
| 386 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 387 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 388 |
+
|
| 389 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 390 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 391 |
+
|
| 392 |
+
bsdf diffuse_bsdf =
|
| 393 |
+
df::weighted_layer
|
| 394 |
+
(
|
| 395 |
+
weight : 1.f,
|
| 396 |
+
layer : df::diffuse_reflection_bsdf
|
| 397 |
+
(
|
| 398 |
+
tint : diffuse,
|
| 399 |
+
roughness : 0.f
|
| 400 |
+
),
|
| 401 |
+
normal : texmap_bump
|
| 402 |
+
);
|
| 403 |
+
|
| 404 |
+
bsdf glossy_transmission_bsdf =
|
| 405 |
+
df::simple_glossy_bsdf(
|
| 406 |
+
mode: df::scatter_transmit,
|
| 407 |
+
tint: color(1.f),
|
| 408 |
+
roughness_u: refraction_roughness
|
| 409 |
+
);
|
| 410 |
+
|
| 411 |
+
bsdf glossy_reflection_bsdf =
|
| 412 |
+
df::simple_glossy_bsdf(
|
| 413 |
+
mode: df::scatter_reflect,
|
| 414 |
+
tint: fresnel ? reflect : color(1.f),
|
| 415 |
+
roughness_u: reflection_roughness
|
| 416 |
+
);
|
| 417 |
+
|
| 418 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 419 |
+
df::simple_glossy_bsdf(
|
| 420 |
+
mode: df::scatter_reflect,
|
| 421 |
+
tint: diffuse,
|
| 422 |
+
roughness_u: reflection_roughness
|
| 423 |
+
);
|
| 424 |
+
|
| 425 |
+
bsdf surface_bsdf =
|
| 426 |
+
df::color_custom_curve_layer
|
| 427 |
+
(
|
| 428 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 429 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 430 |
+
layer : glossy_reflection_bsdf,
|
| 431 |
+
base :
|
| 432 |
+
df::weighted_layer
|
| 433 |
+
(
|
| 434 |
+
weight : reflection_metalness,
|
| 435 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 436 |
+
base :
|
| 437 |
+
df::color_weighted_layer
|
| 438 |
+
(
|
| 439 |
+
weight : refract,
|
| 440 |
+
layer : glossy_transmission_bsdf,
|
| 441 |
+
base : diffuse_bsdf,
|
| 442 |
+
normal : texmap_bump
|
| 443 |
+
),
|
| 444 |
+
normal : texmap_bump
|
| 445 |
+
),
|
| 446 |
+
normal : texmap_bump
|
| 447 |
+
);
|
| 448 |
+
} in
|
| 449 |
+
material(
|
| 450 |
+
thin_walled : thin_walled,
|
| 451 |
+
ior : color(refr_ior),
|
| 452 |
+
surface : material_surface
|
| 453 |
+
(
|
| 454 |
+
scattering : surface_bsdf,
|
| 455 |
+
emission : material_emission
|
| 456 |
+
(
|
| 457 |
+
emission : df::diffuse_edf(),
|
| 458 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 459 |
+
)
|
| 460 |
+
),
|
| 461 |
+
geometry : material_geometry(cutout_opacity: texmap_opacity)
|
| 462 |
+
);
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/KooPbr_maps.mdl
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::anno::*;
|
| 6 |
+
import ::base::*;
|
| 7 |
+
import ::math::*;
|
| 8 |
+
import ::state::*;
|
| 9 |
+
import ::tex::*;
|
| 10 |
+
export using ::base import texture_return;
|
| 11 |
+
|
| 12 |
+
uniform float4x4 rotation_translation_scale_2_matrix(
|
| 13 |
+
uniform float3 rotation = float3(0.f) [[
|
| 14 |
+
anno::description("Rotation applied to every UVW coordinate")
|
| 15 |
+
]],
|
| 16 |
+
uniform float3 translation = float3(0.f) [[
|
| 17 |
+
anno::description("Offset applied to every UVW coordinate")
|
| 18 |
+
]],
|
| 19 |
+
uniform float3 scaling = float3(1.f) [[
|
| 20 |
+
anno::description("Scale applied to every UVW coordinate")
|
| 21 |
+
]],
|
| 22 |
+
uniform bool u_mirror = false [[
|
| 23 |
+
anno::description("Mirror repeat has twice the number of textures in the same space")
|
| 24 |
+
]],
|
| 25 |
+
uniform bool v_mirror = false [[
|
| 26 |
+
anno::description("Mirror repeat has twice the number of textures in the same space")
|
| 27 |
+
]]) uniform
|
| 28 |
+
[[
|
| 29 |
+
anno::description("Construct transformation matrix from Euler rotation, translation and scale")
|
| 30 |
+
]]
|
| 31 |
+
{
|
| 32 |
+
float4x4 scale =
|
| 33 |
+
float4x4(u_mirror?scaling.x*2.:scaling.x , 0. , 0. , 0.,
|
| 34 |
+
0. , v_mirror?scaling.y*2.:scaling.y , 0. , 0.,
|
| 35 |
+
0. , 0. , scaling.z , 0.,
|
| 36 |
+
u_mirror?1.:.5 , v_mirror?1.:.5 , .5 , 1.);
|
| 37 |
+
|
| 38 |
+
float4x4 translate =
|
| 39 |
+
float4x4(1. , 0. , 0. , 0.,
|
| 40 |
+
0. , 1. , 0. , 0.,
|
| 41 |
+
0. , 0. , 1. , 0.,
|
| 42 |
+
-0.5-translation.x, -0.5-translation.y, -0.5-translation.z, 1.);
|
| 43 |
+
|
| 44 |
+
float3 s = math::sin(rotation);
|
| 45 |
+
float3 c = math::cos(rotation);
|
| 46 |
+
float4x4 rotate =
|
| 47 |
+
float4x4( c.y*c.z , c.y*s.z , -s.y , 0.0,
|
| 48 |
+
-c.x*s.z + s.x*s.y*c.z, c.x*c.z + s.x*s.y*s.z , s.x*c.y , 0.0,
|
| 49 |
+
s.x*s.z + c.x*s.y*c.z , -s.x*c.z + c.x*s.y*s.z, c.x*c.y , 0.0,
|
| 50 |
+
0. , 0. , 0. , 1.);
|
| 51 |
+
return scale * rotate * translate;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
export enum KooPbr_mono_output [[
|
| 55 |
+
anno::hidden()
|
| 56 |
+
]] {
|
| 57 |
+
mono_output_rgb_intensity,
|
| 58 |
+
mono_output_alpha
|
| 59 |
+
};
|
| 60 |
+
|
| 61 |
+
export enum KooPbr_rgb_output [[
|
| 62 |
+
anno::hidden()
|
| 63 |
+
]] {
|
| 64 |
+
rgb_output_rgb,
|
| 65 |
+
rgb_output_alpha
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
export enum KooPbr_alpha_source [[
|
| 69 |
+
anno::hidden()
|
| 70 |
+
]] {
|
| 71 |
+
alpha_source_alpha,
|
| 72 |
+
alpha_source_rgb_intensity,
|
| 73 |
+
alpha_source_none
|
| 74 |
+
};
|
| 75 |
+
|
| 76 |
+
export ::texture_return KooPbr_bitmap(
|
| 77 |
+
uniform int mapChannel = 1 [[
|
| 78 |
+
anno::in_group("Coordinates"),
|
| 79 |
+
anno::display_name("Map channel")
|
| 80 |
+
]],
|
| 81 |
+
uniform float U_Offset = 0.f [[
|
| 82 |
+
anno::in_group("Coordinates"),
|
| 83 |
+
anno::display_name("U Offset")
|
| 84 |
+
]],
|
| 85 |
+
uniform float V_Offset = 0.f [[
|
| 86 |
+
anno::in_group("Coordinates"),
|
| 87 |
+
anno::display_name("V Offset")
|
| 88 |
+
]],
|
| 89 |
+
uniform float U_Tiling = 1.f [[
|
| 90 |
+
anno::in_group("Coordinates"),
|
| 91 |
+
anno::display_name("U Tiling")
|
| 92 |
+
]],
|
| 93 |
+
uniform float V_Tiling = 1.f [[
|
| 94 |
+
anno::in_group("Coordinates"),
|
| 95 |
+
anno::display_name("V Tiling")
|
| 96 |
+
]],
|
| 97 |
+
uniform bool U_Tile = true [[
|
| 98 |
+
anno::in_group("Coordinates"),
|
| 99 |
+
anno::display_name("U Tile")
|
| 100 |
+
]],
|
| 101 |
+
uniform bool U_Mirror = false [[
|
| 102 |
+
anno::in_group("Coordinates"),
|
| 103 |
+
anno::display_name("U Mirror")
|
| 104 |
+
]],
|
| 105 |
+
uniform bool V_Tile = true [[
|
| 106 |
+
anno::in_group("Coordinates"),
|
| 107 |
+
anno::display_name("V Tile")
|
| 108 |
+
]],
|
| 109 |
+
uniform bool V_Mirror = false [[
|
| 110 |
+
anno::in_group("Coordinates"),
|
| 111 |
+
anno::display_name("V Mirror")
|
| 112 |
+
]],
|
| 113 |
+
uniform float U_angle = 0.f [[
|
| 114 |
+
anno::in_group("Coordinates"),
|
| 115 |
+
anno::display_name("U Angle")
|
| 116 |
+
]],
|
| 117 |
+
uniform float V_angle = 0.f [[
|
| 118 |
+
anno::in_group("Coordinates"),
|
| 119 |
+
anno::display_name("V Angle")
|
| 120 |
+
]],
|
| 121 |
+
uniform float W_angle = 0.f [[
|
| 122 |
+
anno::in_group("Coordinates"),
|
| 123 |
+
anno::display_name("W Angle")
|
| 124 |
+
]],
|
| 125 |
+
uniform int UVW_Type = 0 [[
|
| 126 |
+
anno::in_group("Coordinates"),
|
| 127 |
+
anno::display_name("UVW Type"),
|
| 128 |
+
anno::unused(),
|
| 129 |
+
anno::hidden()
|
| 130 |
+
]],
|
| 131 |
+
uniform texture_2d filename = texture_2d() [[
|
| 132 |
+
anno::in_group("Bitmap parameters"),
|
| 133 |
+
anno::display_name("Bitmap")
|
| 134 |
+
]],
|
| 135 |
+
uniform float clipu = 0.f [[
|
| 136 |
+
anno::in_group("Bitmap parameters"),
|
| 137 |
+
anno::display_name("U Clip"),
|
| 138 |
+
anno::hard_range(0.f, 1.f)
|
| 139 |
+
]],
|
| 140 |
+
uniform float clipw = 1.f [[
|
| 141 |
+
anno::in_group("Bitmap parameters"),
|
| 142 |
+
anno::display_name("W Clip"),
|
| 143 |
+
anno::hard_range(0.f, 1.f)
|
| 144 |
+
]],
|
| 145 |
+
uniform float clipv = 0.f [[
|
| 146 |
+
anno::in_group("Bitmap parameters"),
|
| 147 |
+
anno::display_name("V Clip"),
|
| 148 |
+
anno::hard_range(0.f, 1.f)
|
| 149 |
+
]],
|
| 150 |
+
uniform float cliph = 1.f [[
|
| 151 |
+
anno::in_group("Bitmap parameters"),
|
| 152 |
+
anno::display_name("H Clip"),
|
| 153 |
+
anno::hard_range(0.f, 1.f)
|
| 154 |
+
]],
|
| 155 |
+
uniform ::KooPbr_mono_output mono_output = ::mono_output_rgb_intensity [[
|
| 156 |
+
anno::in_group("Mono Output"),
|
| 157 |
+
anno::display_name("Mono Output")
|
| 158 |
+
]],
|
| 159 |
+
uniform ::KooPbr_rgb_output rgb_output = ::rgb_output_rgb [[
|
| 160 |
+
anno::in_group("RGB Output"),
|
| 161 |
+
anno::display_name("RGB Output")
|
| 162 |
+
]],
|
| 163 |
+
uniform ::KooPbr_alpha_source alpha_source = ::alpha_source_none [[
|
| 164 |
+
anno::in_group("Alpha Source"),
|
| 165 |
+
anno::display_name("Alpha Source")
|
| 166 |
+
]],
|
| 167 |
+
uniform float bump_amount = 1.f [[
|
| 168 |
+
anno::in_group("Output"),
|
| 169 |
+
anno::display_name("Bump amount"),
|
| 170 |
+
anno::unused(),
|
| 171 |
+
anno::hidden()
|
| 172 |
+
]],
|
| 173 |
+
uniform bool clamp = false [[
|
| 174 |
+
anno::in_group("Output"),
|
| 175 |
+
anno::display_name("Clamp"),
|
| 176 |
+
anno::unused(),
|
| 177 |
+
anno::hidden()
|
| 178 |
+
]],
|
| 179 |
+
uniform bool invert = false [[
|
| 180 |
+
anno::in_group("Output"),
|
| 181 |
+
anno::display_name("Invert")
|
| 182 |
+
]],
|
| 183 |
+
uniform bool alphaFromRGB = false [[
|
| 184 |
+
anno::in_group("Output"),
|
| 185 |
+
anno::display_name("Alpha from RGB intensity"),
|
| 186 |
+
anno::unused(),
|
| 187 |
+
anno::hidden()
|
| 188 |
+
]],
|
| 189 |
+
uniform float output_amount = 1.f [[
|
| 190 |
+
anno::in_group("Output"),
|
| 191 |
+
anno::display_name("Output amount")
|
| 192 |
+
]],
|
| 193 |
+
uniform float rgb_level = 1.f [[
|
| 194 |
+
anno::in_group("Output"),
|
| 195 |
+
anno::display_name("RGB level")
|
| 196 |
+
]],
|
| 197 |
+
uniform float rgb_offset = 0.f [[
|
| 198 |
+
anno::in_group("Output"),
|
| 199 |
+
anno::display_name("RGB Offset")
|
| 200 |
+
]]) varying
|
| 201 |
+
[[
|
| 202 |
+
anno::author("KooLab")
|
| 203 |
+
]]
|
| 204 |
+
{
|
| 205 |
+
texture_return result = base::file_texture
|
| 206 |
+
(
|
| 207 |
+
texture: filename,
|
| 208 |
+
mono_source: (alpha_source == alpha_source_alpha) ? base::mono_alpha : base::mono_average,
|
| 209 |
+
crop_u: float2(clipu, clipw+clipu),
|
| 210 |
+
crop_v: float2(1.-clipv-cliph, 1.-clipv),
|
| 211 |
+
uvw: base::transform_coordinate(
|
| 212 |
+
transform: rotation_translation_scale_2_matrix(
|
| 213 |
+
scaling: float3(U_Tiling,V_Tiling,1.0),
|
| 214 |
+
rotation: float3(U_angle,V_angle,W_angle)/180.*math::PI,
|
| 215 |
+
translation: float3(U_Offset,V_Offset,0.0),u_mirror: U_Mirror,v_mirror: V_Mirror
|
| 216 |
+
),
|
| 217 |
+
coordinate: base::coordinate_source(texture_space: mapChannel-1)
|
| 218 |
+
),
|
| 219 |
+
wrap_u: U_Tile?tex::wrap_repeat:U_Mirror?tex::wrap_mirrored_repeat:tex::wrap_clip,
|
| 220 |
+
wrap_v: V_Tile?tex::wrap_repeat:V_Mirror?tex::wrap_mirrored_repeat:tex::wrap_clip
|
| 221 |
+
);
|
| 222 |
+
|
| 223 |
+
result.tint = invert ? result.tint * (-rgb_level * output_amount ) + (1.f - rgb_offset) : result.tint * (rgb_level * output_amount ) + rgb_offset;
|
| 224 |
+
|
| 225 |
+
float alpha = (alpha_source != alpha_source_none) ? result.mono : 1.f;
|
| 226 |
+
result.tint = result.tint*alpha;
|
| 227 |
+
|
| 228 |
+
if(mono_output == mono_output_alpha)
|
| 229 |
+
result.mono = alpha;
|
| 230 |
+
else
|
| 231 |
+
result.mono = math::average(result.tint);
|
| 232 |
+
if (int(rgb_output) == 1)
|
| 233 |
+
result.tint = color(alpha);
|
| 234 |
+
return result;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
export float3 KooPbr_bitmap_bump(
|
| 238 |
+
uniform int mapChannel = 1 [[
|
| 239 |
+
anno::in_group("Coordinates"),
|
| 240 |
+
anno::display_name("Map channel")
|
| 241 |
+
]],
|
| 242 |
+
uniform bool U_Tile = true [[
|
| 243 |
+
anno::in_group("Coordinates"),
|
| 244 |
+
anno::display_name("U Tile")
|
| 245 |
+
]],
|
| 246 |
+
uniform bool U_Mirror = false [[
|
| 247 |
+
anno::in_group("Coordinates"),
|
| 248 |
+
anno::display_name("U Mirror")
|
| 249 |
+
]],
|
| 250 |
+
uniform bool V_Tile = true [[
|
| 251 |
+
anno::in_group("Coordinates"),
|
| 252 |
+
anno::display_name("V Tile")
|
| 253 |
+
]],
|
| 254 |
+
uniform bool V_Mirror = false [[
|
| 255 |
+
anno::in_group("Coordinates"),
|
| 256 |
+
anno::display_name("V Mirror")
|
| 257 |
+
]],
|
| 258 |
+
uniform float U_angle = 0.f [[
|
| 259 |
+
anno::in_group("Coordinates"),
|
| 260 |
+
anno::display_name("U Angle")
|
| 261 |
+
]],
|
| 262 |
+
uniform float V_angle = 0.f [[
|
| 263 |
+
anno::in_group("Coordinates"),
|
| 264 |
+
anno::display_name("V Angle")
|
| 265 |
+
]],
|
| 266 |
+
uniform float W_angle = 0.f [[
|
| 267 |
+
anno::in_group("Coordinates"),
|
| 268 |
+
anno::display_name("W Angle")
|
| 269 |
+
]],
|
| 270 |
+
uniform float U_Offset = 0.f [[
|
| 271 |
+
anno::in_group("Coordinates"),
|
| 272 |
+
anno::display_name("U Offset")
|
| 273 |
+
]],
|
| 274 |
+
uniform float V_Offset = 0.f [[
|
| 275 |
+
anno::in_group("Coordinates"),
|
| 276 |
+
anno::display_name("V Offset")
|
| 277 |
+
]],
|
| 278 |
+
uniform float U_Tiling = 1.f [[
|
| 279 |
+
anno::in_group("Coordinates"),
|
| 280 |
+
anno::display_name("U Tiling")
|
| 281 |
+
]],
|
| 282 |
+
uniform float V_Tiling = 1.f [[
|
| 283 |
+
anno::in_group("Coordinates"),
|
| 284 |
+
anno::display_name("V Tiling")
|
| 285 |
+
]],
|
| 286 |
+
uniform int UVW_Type = 0 [[
|
| 287 |
+
anno::in_group("Coordinates"),
|
| 288 |
+
anno::display_name("UVW Type"),
|
| 289 |
+
anno::unused()
|
| 290 |
+
]],
|
| 291 |
+
uniform texture_2d filename = texture_2d() [[
|
| 292 |
+
anno::in_group("Bitmap parameters"),
|
| 293 |
+
anno::display_name("Bitmap")
|
| 294 |
+
]],
|
| 295 |
+
uniform float clipu = 0.f [[
|
| 296 |
+
anno::in_group("Bitmap parameters"),
|
| 297 |
+
anno::display_name("U Clip"),
|
| 298 |
+
anno::hard_range(0.f, 1.f)
|
| 299 |
+
]],
|
| 300 |
+
uniform float clipw = 1.f [[
|
| 301 |
+
anno::in_group("Bitmap parameters"),
|
| 302 |
+
anno::display_name("W Clip"),
|
| 303 |
+
anno::hard_range(0.f, 1.f)
|
| 304 |
+
]],
|
| 305 |
+
uniform float clipv = 0.f [[
|
| 306 |
+
anno::in_group("Bitmap parameters"),
|
| 307 |
+
anno::display_name("V Clip"),
|
| 308 |
+
anno::hard_range(0.f, 1.f)
|
| 309 |
+
]],
|
| 310 |
+
uniform float cliph = 1.f [[
|
| 311 |
+
anno::in_group("Bitmap parameters"),
|
| 312 |
+
anno::display_name("H Clip"),
|
| 313 |
+
anno::hard_range(0.f, 1.f)
|
| 314 |
+
]],
|
| 315 |
+
uniform float factor = 1.f [[
|
| 316 |
+
anno::in_group("Bitmap parameters"),
|
| 317 |
+
anno::display_name("Bump amount")
|
| 318 |
+
]],
|
| 319 |
+
uniform float bump_amount = 1.f [[
|
| 320 |
+
anno::in_group("Output"),
|
| 321 |
+
anno::display_name("Bump output")
|
| 322 |
+
]],
|
| 323 |
+
uniform bool clamp = false [[
|
| 324 |
+
anno::in_group("Output"),
|
| 325 |
+
anno::display_name("Clamp"),
|
| 326 |
+
anno::unused()
|
| 327 |
+
]],
|
| 328 |
+
uniform bool invert = false [[
|
| 329 |
+
anno::in_group("Output"),
|
| 330 |
+
anno::display_name("Invert")
|
| 331 |
+
]],
|
| 332 |
+
uniform bool alphaFromRGB = false [[
|
| 333 |
+
anno::in_group("Output"),
|
| 334 |
+
anno::display_name("Alpha from RGB intensity"),
|
| 335 |
+
anno::unused()
|
| 336 |
+
]],
|
| 337 |
+
uniform float output_amount = 1.f [[
|
| 338 |
+
anno::in_group("Output"),
|
| 339 |
+
anno::display_name("Output amount"),
|
| 340 |
+
anno::unused()
|
| 341 |
+
]],
|
| 342 |
+
uniform float rgb_level = 1.f [[
|
| 343 |
+
anno::in_group("Output"),
|
| 344 |
+
anno::display_name("RGB level"),
|
| 345 |
+
anno::unused()
|
| 346 |
+
]],
|
| 347 |
+
uniform float rgb_offset = 0.f [[
|
| 348 |
+
anno::in_group("Output"),
|
| 349 |
+
anno::display_name("RGB Offset"),
|
| 350 |
+
anno::unused()
|
| 351 |
+
]]) varying
|
| 352 |
+
[[
|
| 353 |
+
anno::author("KooLab")
|
| 354 |
+
]]
|
| 355 |
+
{
|
| 356 |
+
return base::file_bump_texture
|
| 357 |
+
(
|
| 358 |
+
texture : filename,
|
| 359 |
+
crop_u : float2(clipu, clipw + clipu),
|
| 360 |
+
crop_v : float2(1.f - clipv - cliph, 1.f - clipv),
|
| 361 |
+
uvw : base::transform_coordinate
|
| 362 |
+
(
|
| 363 |
+
transform: rotation_translation_scale_2_matrix
|
| 364 |
+
(
|
| 365 |
+
scaling : float3(U_Tiling, V_Tiling, 1.f),
|
| 366 |
+
rotation : float3(U_angle, V_angle, W_angle)/(180.f*math::PI),
|
| 367 |
+
translation : float3(U_Offset, V_Offset, 0.f),
|
| 368 |
+
u_mirror : U_Mirror,
|
| 369 |
+
v_mirror : V_Mirror
|
| 370 |
+
),
|
| 371 |
+
coordinate: base::coordinate_source(texture_space: mapChannel - 1)
|
| 372 |
+
),
|
| 373 |
+
wrap_u : U_Tile ? tex::wrap_repeat : U_Mirror ? tex::wrap_mirrored_repeat : tex::wrap_clip,
|
| 374 |
+
wrap_v : V_Tile ? tex::wrap_repeat : V_Mirror ? tex::wrap_mirrored_repeat : tex::wrap_clip,
|
| 375 |
+
factor : invert ? -10.f*factor*bump_amount : 10.f*factor*bump_amount
|
| 376 |
+
);
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
export float3 NormalMap_bump(
|
| 380 |
+
::texture_return normal_map = ::texture_return() [[
|
| 381 |
+
anno::in_group("NormalMap Parameters"),
|
| 382 |
+
anno::display_name("Normal map")
|
| 383 |
+
]],
|
| 384 |
+
float3 bump_map = state::normal() [[
|
| 385 |
+
anno::in_group("NormalMap Parameters"),
|
| 386 |
+
anno::display_name("Bump map")
|
| 387 |
+
]],
|
| 388 |
+
uniform float normal_amount = 1.f [[
|
| 389 |
+
anno::in_group("NormalMap Parameters"),
|
| 390 |
+
anno::display_name("Normal amount"),
|
| 391 |
+
anno::hard_range(-1000.f, 1000.f)
|
| 392 |
+
]],
|
| 393 |
+
uniform float bump_amount = 1.f [[
|
| 394 |
+
anno::in_group("NormalMap Parameters"),
|
| 395 |
+
anno::display_name("Bump amount"),
|
| 396 |
+
anno::hard_range(-1000.f, 1000.f)
|
| 397 |
+
]],
|
| 398 |
+
uniform bool flip_red = false [[
|
| 399 |
+
anno::in_group("NormalMap Parameters"),
|
| 400 |
+
anno::display_name("Flip red")
|
| 401 |
+
]],
|
| 402 |
+
uniform bool flip_green = false [[
|
| 403 |
+
anno::in_group("NormalMap Parameters"),
|
| 404 |
+
anno::display_name("Flip green")
|
| 405 |
+
]],
|
| 406 |
+
uniform bool swap_rg = false [[
|
| 407 |
+
anno::in_group("NormalMap Parameters"),
|
| 408 |
+
anno::display_name("Swap red and green")
|
| 409 |
+
]],
|
| 410 |
+
uniform int map_channel = 1 [[
|
| 411 |
+
anno::in_group("NormalMap Parameters"),
|
| 412 |
+
anno::display_name("Map channel"),
|
| 413 |
+
anno::hidden(),
|
| 414 |
+
anno::unused()
|
| 415 |
+
]],
|
| 416 |
+
uniform float map_rotation = 0.f [[
|
| 417 |
+
anno::in_group("NormalMap Parameters"),
|
| 418 |
+
anno::display_name("Map rotation"),
|
| 419 |
+
anno::hard_range(0.f, 360.f),
|
| 420 |
+
anno::hidden(),
|
| 421 |
+
anno::unused()
|
| 422 |
+
]],
|
| 423 |
+
uniform float normal_map_amount = 1.f [[
|
| 424 |
+
anno::in_group("NormalMap Parameters"),
|
| 425 |
+
anno::display_name("Map amount"),
|
| 426 |
+
anno::hard_range(-10.f, 10.f)
|
| 427 |
+
]]) varying
|
| 428 |
+
[[
|
| 429 |
+
anno::author("KooLab")
|
| 430 |
+
]]
|
| 431 |
+
{
|
| 432 |
+
float3 tangent_space_normal = float3(normal_map.tint);
|
| 433 |
+
|
| 434 |
+
if(flip_red)
|
| 435 |
+
tangent_space_normal.x = 1.f - tangent_space_normal.x;
|
| 436 |
+
|
| 437 |
+
if(flip_green)
|
| 438 |
+
tangent_space_normal.y = 1.f - tangent_space_normal.y;
|
| 439 |
+
|
| 440 |
+
if(swap_rg)
|
| 441 |
+
{
|
| 442 |
+
float tmp = tangent_space_normal.x;
|
| 443 |
+
tangent_space_normal.x = tangent_space_normal.y;
|
| 444 |
+
tangent_space_normal.y = tmp;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
float normal_factor = normal_amount*(normal_map_amount);
|
| 448 |
+
tangent_space_normal = (tangent_space_normal - float3(0.5f))*(2.f*normal_factor);
|
| 449 |
+
|
| 450 |
+
float3 mapped_normal = math::normalize(
|
| 451 |
+
state::texture_tangent_u(0) * tangent_space_normal.x +
|
| 452 |
+
state::texture_tangent_v(0) * tangent_space_normal.y +
|
| 453 |
+
state::normal() * (tangent_space_normal.z + (1.f - normal_factor)));
|
| 454 |
+
|
| 455 |
+
float3 bumped_normal = math::normalize(math::lerp(state::normal(), bump_map, bump_amount*normal_map_amount));
|
| 456 |
+
|
| 457 |
+
return math::normalize(mapped_normal + bumped_normal);
|
| 458 |
+
}
|
| 459 |
+
|
| 460 |
+
export ::texture_return KooPbr_mix(
|
| 461 |
+
::texture_return color1 = ::texture_return() [[
|
| 462 |
+
anno::in_group("Mix parameters"),
|
| 463 |
+
anno::display_name("Color #1")
|
| 464 |
+
]],
|
| 465 |
+
::texture_return color2 = ::texture_return() [[
|
| 466 |
+
anno::in_group("Mix parameters"),
|
| 467 |
+
anno::display_name("Color #2")
|
| 468 |
+
]],
|
| 469 |
+
float mixAmount = 0.f [[
|
| 470 |
+
anno::in_group("Mix parameters"),
|
| 471 |
+
anno::display_name("Mix amount"),
|
| 472 |
+
anno::hard_range(0.f, 1.f)
|
| 473 |
+
]],
|
| 474 |
+
uniform bool useCurve = false [[
|
| 475 |
+
anno::in_group("Mix parameters"),
|
| 476 |
+
anno::display_name("Use curve")
|
| 477 |
+
]],
|
| 478 |
+
uniform float lower = 0.3f [[
|
| 479 |
+
anno::in_group("Mix parameters"),
|
| 480 |
+
anno::display_name("Lower"),
|
| 481 |
+
anno::hard_range(0.f, 1.f)
|
| 482 |
+
]],
|
| 483 |
+
uniform float upper = 0.7f [[
|
| 484 |
+
anno::in_group("Mix parameters"),
|
| 485 |
+
anno::display_name("Upper"),
|
| 486 |
+
anno::hard_range(0.f, 1.f)
|
| 487 |
+
]])
|
| 488 |
+
[[
|
| 489 |
+
anno::author("KooLab")
|
| 490 |
+
]]
|
| 491 |
+
{
|
| 492 |
+
float t = useCurve ? math::smoothstep(lower, upper, mixAmount) : math::smoothstep(0.0, 1.0, mixAmount);
|
| 493 |
+
|
| 494 |
+
return texture_return(
|
| 495 |
+
math::lerp(color1.tint,color2.tint, t),
|
| 496 |
+
math::lerp(color1.mono,color2.mono, t));
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
export ::texture_return KooPbr_falloff(
|
| 500 |
+
::texture_return color1 = ::texture_return() [[
|
| 501 |
+
anno::in_group("Falloff"),
|
| 502 |
+
anno::display_name("Color #1")
|
| 503 |
+
]],
|
| 504 |
+
::texture_return color2 = ::texture_return() [[
|
| 505 |
+
anno::in_group("Falloff"),
|
| 506 |
+
anno::display_name("Color #1"),
|
| 507 |
+
anno::hidden()
|
| 508 |
+
]])
|
| 509 |
+
[[
|
| 510 |
+
anno::author("KooLab")
|
| 511 |
+
]]
|
| 512 |
+
{
|
| 513 |
+
return ::KooPbr_mix(color1, color2, 0.5f);
|
| 514 |
+
//return color1;
|
| 515 |
+
}
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/Num5bed78cdc3f62601a28ea512.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5bed78cdc3f62601a28ea512(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("./Textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("./Textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("./Textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("./Textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("./Textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("./Textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Base.mdl
ADDED
|
@@ -0,0 +1,224 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 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 |
+
//* 1.0.0 - first version
|
| 30 |
+
//* 1.0.1 - merge unlit template
|
| 31 |
+
//* 1.0.2 - Fix EDF in the back side: the EDF contained in surface is only used for the front side and not for the back side
|
| 32 |
+
//* 1.0.3 - UE4 normal mapping: Geometry normal shouldn't be changed
|
| 33 |
+
//* 1.0.4 - using absolute import paths when importing standard modules
|
| 34 |
+
|
| 35 |
+
mdl 1.3;
|
| 36 |
+
|
| 37 |
+
import ::df::*;
|
| 38 |
+
import ::state::*;
|
| 39 |
+
import ::math::*;
|
| 40 |
+
import ::tex::*;
|
| 41 |
+
import ::anno::*;
|
| 42 |
+
|
| 43 |
+
float emissive_multiplier()
|
| 44 |
+
[[
|
| 45 |
+
anno::description("the multiplier to convert UE4 emissive to raw data"),
|
| 46 |
+
anno::noinline()
|
| 47 |
+
]]
|
| 48 |
+
{
|
| 49 |
+
return 20.0f * 128.0f;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
float3 tangent_space_normal(
|
| 53 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 54 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 55 |
+
float3 tangent_v = state::texture_tangent_v(0)
|
| 56 |
+
)
|
| 57 |
+
[[
|
| 58 |
+
anno::description("Interprets the vector in tangent space"),
|
| 59 |
+
anno::noinline()
|
| 60 |
+
]]
|
| 61 |
+
{
|
| 62 |
+
return math::normalize(
|
| 63 |
+
tangent_u * normal.x - /* flip_tangent_v */
|
| 64 |
+
tangent_v * normal.y +
|
| 65 |
+
state::normal() * (normal.z));
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
float3 world_space_normal(
|
| 69 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 70 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 71 |
+
float3 tangent_v = state::texture_tangent_v(0)
|
| 72 |
+
)
|
| 73 |
+
[[
|
| 74 |
+
anno::description("Interprets the vector in world space"),
|
| 75 |
+
anno::noinline()
|
| 76 |
+
]]
|
| 77 |
+
{
|
| 78 |
+
return tangent_space_normal(
|
| 79 |
+
math::normalize(
|
| 80 |
+
normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) -
|
| 81 |
+
normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) +
|
| 82 |
+
normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)),
|
| 83 |
+
tangent_u,
|
| 84 |
+
tangent_v
|
| 85 |
+
);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
export material OmniUe4Base(
|
| 89 |
+
float3 base_color = float3(0.0, 0.0, 0.0),
|
| 90 |
+
float metallic = 0.0,
|
| 91 |
+
float roughness = 0.5,
|
| 92 |
+
float specular = 0.5,
|
| 93 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 94 |
+
float clearcoat_weight = 0.0,
|
| 95 |
+
float clearcoat_roughness = 0.0,
|
| 96 |
+
float3 clearcoat_normal = float3(0.0,0.0,1.0),
|
| 97 |
+
uniform bool enable_opacity = true,
|
| 98 |
+
float opacity = 1.0,
|
| 99 |
+
float3 emissive_color = float3(0.0, 0.0, 0.0),
|
| 100 |
+
float3 displacement = float3(0.0),
|
| 101 |
+
uniform bool is_tangent_space_normal = true,
|
| 102 |
+
uniform bool two_sided = false,
|
| 103 |
+
uniform bool is_unlit = false
|
| 104 |
+
)
|
| 105 |
+
[[
|
| 106 |
+
anno::display_name("Omni UE4 Base"),
|
| 107 |
+
anno::description("Omni UE4 Base, supports UE4 default lit and clearcoat shading model"),
|
| 108 |
+
anno::version( 1, 0, 0),
|
| 109 |
+
anno::author("NVIDIA CORPORATION"),
|
| 110 |
+
anno::key_words(string[]("omni", "UE4", "omniverse", "lit", "clearcoat", "generic"))
|
| 111 |
+
]]
|
| 112 |
+
= let {
|
| 113 |
+
color final_base_color = math::saturate(base_color);
|
| 114 |
+
float final_metallic = math::saturate(metallic);
|
| 115 |
+
float final_roughness = math::saturate(roughness);
|
| 116 |
+
float final_specular = math::saturate(specular);
|
| 117 |
+
color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/
|
| 118 |
+
float final_clearcoat_weight = math::saturate(clearcoat_weight);
|
| 119 |
+
float final_clearcoat_roughness = math::saturate(clearcoat_roughness);
|
| 120 |
+
float3 final_normal = math::normalize(normal);
|
| 121 |
+
float3 final_clearcoat_normal = math::normalize(clearcoat_normal);
|
| 122 |
+
|
| 123 |
+
// - compute final roughness by squaring the "roughness" parameter
|
| 124 |
+
float alpha = final_roughness * final_roughness;
|
| 125 |
+
// reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering
|
| 126 |
+
float grazing_refl = math::max((1.0 - final_roughness), 0.0);
|
| 127 |
+
|
| 128 |
+
float3 the_normal = is_unlit ? state::normal() :
|
| 129 |
+
(is_tangent_space_normal ?
|
| 130 |
+
tangent_space_normal(
|
| 131 |
+
normal: final_normal,
|
| 132 |
+
tangent_u: state::texture_tangent_u(0),
|
| 133 |
+
tangent_v: state::texture_tangent_v(0)
|
| 134 |
+
) : world_space_normal(
|
| 135 |
+
normal: final_normal,
|
| 136 |
+
tangent_u: state::texture_tangent_u(0),
|
| 137 |
+
tangent_v: state::texture_tangent_v(0)
|
| 138 |
+
));
|
| 139 |
+
|
| 140 |
+
// for the dielectric component we layer the glossy component on top of the diffuse one,
|
| 141 |
+
// the glossy layer has no color tint
|
| 142 |
+
|
| 143 |
+
bsdf dielectric_component = df::custom_curve_layer(
|
| 144 |
+
weight: final_specular,
|
| 145 |
+
normal_reflectivity: 0.08,
|
| 146 |
+
grazing_reflectivity: grazing_refl,
|
| 147 |
+
layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha),
|
| 148 |
+
base: df::diffuse_reflection_bsdf(tint: final_base_color),
|
| 149 |
+
normal: the_normal);
|
| 150 |
+
|
| 151 |
+
// the metallic component doesn't have a diffuse component, it's only glossy
|
| 152 |
+
// base_color is applied to tint it
|
| 153 |
+
bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha);
|
| 154 |
+
|
| 155 |
+
// final BSDF is a linear blend between dielectric and metallic component
|
| 156 |
+
bsdf dielectric_metal_mix =
|
| 157 |
+
df::normalized_mix(
|
| 158 |
+
components:
|
| 159 |
+
df::bsdf_component[](
|
| 160 |
+
df::bsdf_component(
|
| 161 |
+
component: metallic_component,
|
| 162 |
+
weight: final_metallic),
|
| 163 |
+
df::bsdf_component(
|
| 164 |
+
component: dielectric_component,
|
| 165 |
+
weight: 1.0-final_metallic)
|
| 166 |
+
)
|
| 167 |
+
);
|
| 168 |
+
|
| 169 |
+
// clearcoat layer
|
| 170 |
+
float clearcoat_grazing_refl = math::max((1.0 - final_clearcoat_roughness), 0.0);
|
| 171 |
+
float clearcoat_alpha = final_clearcoat_roughness * final_clearcoat_roughness;
|
| 172 |
+
|
| 173 |
+
float3 the_clearcoat_normal = is_tangent_space_normal ? tangent_space_normal(
|
| 174 |
+
normal: final_clearcoat_normal,
|
| 175 |
+
tangent_u: state::texture_tangent_u(0),
|
| 176 |
+
tangent_v: state::texture_tangent_v(0)
|
| 177 |
+
) : world_space_normal(
|
| 178 |
+
normal: final_clearcoat_normal,
|
| 179 |
+
tangent_u: state::texture_tangent_u(0),
|
| 180 |
+
tangent_v: state::texture_tangent_v(0)
|
| 181 |
+
);
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
bsdf clearcoat =
|
| 185 |
+
df::custom_curve_layer(
|
| 186 |
+
base: df::weighted_layer(
|
| 187 |
+
layer: dielectric_metal_mix,
|
| 188 |
+
weight: 1.0,
|
| 189 |
+
normal: final_clearcoat_weight == 0.0 ? state::normal() : the_normal
|
| 190 |
+
),
|
| 191 |
+
layer: df::microfacet_ggx_smith_bsdf(
|
| 192 |
+
roughness_u: clearcoat_alpha,
|
| 193 |
+
tint: color(1.0)
|
| 194 |
+
),
|
| 195 |
+
normal_reflectivity: 0.04,
|
| 196 |
+
grazing_reflectivity: clearcoat_grazing_refl,
|
| 197 |
+
normal: the_clearcoat_normal,
|
| 198 |
+
weight: final_clearcoat_weight
|
| 199 |
+
);
|
| 200 |
+
bsdf surface = is_unlit ? bsdf() : clearcoat;
|
| 201 |
+
}
|
| 202 |
+
in material(
|
| 203 |
+
thin_walled: two_sided, // Graphene?
|
| 204 |
+
surface: material_surface(
|
| 205 |
+
scattering: surface,
|
| 206 |
+
emission:
|
| 207 |
+
material_emission (
|
| 208 |
+
emission: df::diffuse_edf (),
|
| 209 |
+
intensity: final_emissive_color
|
| 210 |
+
)
|
| 211 |
+
),
|
| 212 |
+
backface: material_surface(
|
| 213 |
+
emission:
|
| 214 |
+
material_emission (
|
| 215 |
+
emission: df::diffuse_edf (),
|
| 216 |
+
intensity: final_emissive_color
|
| 217 |
+
)
|
| 218 |
+
),
|
| 219 |
+
geometry: material_geometry(
|
| 220 |
+
displacement: displacement,
|
| 221 |
+
normal: final_clearcoat_weight == 0.0 ? the_normal : state::normal(),
|
| 222 |
+
cutout_opacity: enable_opacity ? opacity : 1.0
|
| 223 |
+
)
|
| 224 |
+
);
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Function.mdl
ADDED
|
@@ -0,0 +1,1413 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 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 |
+
//* 1.0.1 - using absolute import paths when importing standard modules
|
| 30 |
+
|
| 31 |
+
mdl 1.6;
|
| 32 |
+
|
| 33 |
+
import ::df::*;
|
| 34 |
+
import ::state::*;
|
| 35 |
+
import ::math::*;
|
| 36 |
+
import ::tex::*;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
export float3 convert_to_left_hand(float3 vec3, uniform bool up_z = true, uniform bool is_position = true)
|
| 41 |
+
[[
|
| 42 |
+
anno::description("convert from RH to LH"),
|
| 43 |
+
anno::noinline()
|
| 44 |
+
]]
|
| 45 |
+
{
|
| 46 |
+
float4x4 ZupConversion = float4x4(
|
| 47 |
+
1.0f, 0.0f, 0.0f, 0.0f,
|
| 48 |
+
0.0f, -1.0f, 0.0f, 0.0f,
|
| 49 |
+
0.0f, 0.0f, 1.0f, 0.0f,
|
| 50 |
+
0.0f, 0.0f, 0.0f, 1.0f
|
| 51 |
+
);
|
| 52 |
+
|
| 53 |
+
float4x4 YupConversion = float4x4(
|
| 54 |
+
1.0f, 0.0f, 0.0f, 0.0f,
|
| 55 |
+
0.0f, 0.0f, 1.0f, 0.0f,
|
| 56 |
+
0.0f, 1.0f, 0.0f, 0.0f,
|
| 57 |
+
0.0f, 0.0f, 0.0f, 1.0f
|
| 58 |
+
);
|
| 59 |
+
|
| 60 |
+
float4 vec4 = float4(vec3.x, vec3.y, vec3.z, is_position ? 1.0f : 0.0f);
|
| 61 |
+
|
| 62 |
+
vec4 = vec4 * (up_z ? ZupConversion : YupConversion);
|
| 63 |
+
|
| 64 |
+
return float3(vec4.x, vec4.y, vec4.z);
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
export float3 transform_vector_from_tangent_to_world(float3 vector,
|
| 68 |
+
uniform bool up_z = true,
|
| 69 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 70 |
+
float3 tangent_v = state::texture_tangent_v(0))
|
| 71 |
+
[[
|
| 72 |
+
anno::description("Transform vector from tangent space to world space"),
|
| 73 |
+
anno::noinline()
|
| 74 |
+
]]
|
| 75 |
+
{
|
| 76 |
+
/* flip_tangent_v */
|
| 77 |
+
return convert_to_left_hand(
|
| 78 |
+
tangent_u * vector.x - tangent_v * vector.y + state::normal() * vector.z,
|
| 79 |
+
up_z, false);
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
export float3 transform_vector_from_world_to_tangent(float3 vector,
|
| 83 |
+
uniform bool up_z = true,
|
| 84 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 85 |
+
float3 tangent_v = state::texture_tangent_v(0))
|
| 86 |
+
[[
|
| 87 |
+
anno::description("Transform vector from world space to tangent space"),
|
| 88 |
+
anno::noinline()
|
| 89 |
+
]]
|
| 90 |
+
{
|
| 91 |
+
float3 vecRH = convert_to_left_hand(vector, up_z, false);
|
| 92 |
+
/* flip_tangent_v */
|
| 93 |
+
return vecRH.x * float3(tangent_u.x, -tangent_v.x, state::normal().x) +
|
| 94 |
+
vecRH.y * float3(tangent_u.y, -tangent_v.y, state::normal().y) +
|
| 95 |
+
vecRH.z * float3(tangent_u.z, -tangent_v.z, state::normal().z);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
export float4 unpack_normal_map(
|
| 99 |
+
float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0)
|
| 100 |
+
)
|
| 101 |
+
[[
|
| 102 |
+
anno::description("Unpack a normal stored in a normal map"),
|
| 103 |
+
anno::noinline()
|
| 104 |
+
]]
|
| 105 |
+
{
|
| 106 |
+
float2 normal_xy = float2(texture_sample.x, texture_sample.y);
|
| 107 |
+
|
| 108 |
+
normal_xy = normal_xy * float2(2.0,2.0) - float2(1.0,1.0);
|
| 109 |
+
float normal_z = math::sqrt( math::saturate( 1.0 - math::dot( normal_xy, normal_xy ) ) );
|
| 110 |
+
return float4( normal_xy.x, normal_xy.y, normal_z, 1.0 );
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
// for get color value from normal.
|
| 114 |
+
export float4 pack_normal_map(
|
| 115 |
+
float4 texture_sample = float4(0.0, 0.0, 1.0, 1.0)
|
| 116 |
+
)
|
| 117 |
+
[[
|
| 118 |
+
anno::description("Pack to color from a normal")
|
| 119 |
+
]]
|
| 120 |
+
{
|
| 121 |
+
float2 return_xy = float2(texture_sample.x, texture_sample.y);
|
| 122 |
+
|
| 123 |
+
return_xy = (return_xy + float2(1.0,1.0)) / float2(2.0,2.0);
|
| 124 |
+
|
| 125 |
+
return float4( return_xy.x, return_xy.y, 0.0, 1.0 );
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
export float4 greyscale_texture_lookup(
|
| 129 |
+
float4 texture_sample = float4(0.0, 0.0, 0.0, 1.0)
|
| 130 |
+
)
|
| 131 |
+
[[
|
| 132 |
+
anno::description("Sampling a greyscale texture"),
|
| 133 |
+
anno::noinline()
|
| 134 |
+
]]
|
| 135 |
+
{
|
| 136 |
+
return float4(texture_sample.x, texture_sample.x, texture_sample.x, texture_sample.x);
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
export float3 pixel_normal_world_space(uniform bool up_z = true)
|
| 140 |
+
[[
|
| 141 |
+
anno::description("Pixel normal in world space"),
|
| 142 |
+
anno::noinline()
|
| 143 |
+
]]
|
| 144 |
+
{
|
| 145 |
+
return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
export float3 vertex_normal_world_space(uniform bool up_z = true)
|
| 149 |
+
[[
|
| 150 |
+
anno::description("Vertex normal in world space"),
|
| 151 |
+
anno::noinline()
|
| 152 |
+
]]
|
| 153 |
+
{
|
| 154 |
+
return convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false);
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
export float3 landscape_normal_world_space(uniform bool up_z = true)
|
| 158 |
+
[[
|
| 159 |
+
anno::description("Landscape normal in world space")
|
| 160 |
+
]]
|
| 161 |
+
{
|
| 162 |
+
float3 normalFromNormalmap = math::floor((::vertex_normal_world_space(up_z) * 0.5 + 0.5) * 255.0) / 255.0 * 2.0 - 1.0;
|
| 163 |
+
|
| 164 |
+
float2 normalXY = float2(normalFromNormalmap.x, normalFromNormalmap.y);
|
| 165 |
+
return float3(normalXY.x, normalXY.y, math::sqrt(math::saturate(1.0 - math::dot(normalXY, normalXY))));
|
| 166 |
+
}
|
| 167 |
+
|
| 168 |
+
// Different implementation specific between mdl and hlsl for smoothstep
|
| 169 |
+
export float smoothstep(float a, float b, float l)
|
| 170 |
+
{
|
| 171 |
+
if (a < b)
|
| 172 |
+
{
|
| 173 |
+
return math::smoothstep(a, b, l);
|
| 174 |
+
}
|
| 175 |
+
else if (a > b)
|
| 176 |
+
{
|
| 177 |
+
return 1.0 - math::smoothstep(b, a, l);
|
| 178 |
+
}
|
| 179 |
+
else
|
| 180 |
+
{
|
| 181 |
+
return l <= a ? 0.0 : 1.0;
|
| 182 |
+
}
|
| 183 |
+
}
|
| 184 |
+
|
| 185 |
+
export float2 smoothstep(float2 a, float2 b, float2 l)
|
| 186 |
+
{
|
| 187 |
+
return float2(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y));
|
| 188 |
+
}
|
| 189 |
+
|
| 190 |
+
export float3 smoothstep(float3 a, float3 b, float3 l)
|
| 191 |
+
{
|
| 192 |
+
return float3(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z));
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
export float4 smoothstep(float4 a, float4 b, float4 l)
|
| 196 |
+
{
|
| 197 |
+
return float4(smoothstep(a.x, b.x, l.x), smoothstep(a.y, b.y, l.y), smoothstep(a.z, b.z, l.z), smoothstep(a.w, b.w, l.w));
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
export float2 smoothstep(float2 a, float2 b, float l)
|
| 201 |
+
{
|
| 202 |
+
return float2(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l));
|
| 203 |
+
}
|
| 204 |
+
|
| 205 |
+
export float3 smoothstep(float3 a, float3 b, float l)
|
| 206 |
+
{
|
| 207 |
+
return float3(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l));
|
| 208 |
+
}
|
| 209 |
+
|
| 210 |
+
export float4 smoothstep(float4 a, float4 b, float l)
|
| 211 |
+
{
|
| 212 |
+
return float4(smoothstep(a.x, b.x, l), smoothstep(a.y, b.y, l), smoothstep(a.z, b.z, l), smoothstep(a.w, b.w, l));
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
export float2 smoothstep(float a, float b, float2 l)
|
| 216 |
+
{
|
| 217 |
+
return float2(smoothstep(a, b, l.x), smoothstep(a, b, l.y));
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
export float3 smoothstep(float a, float b, float3 l)
|
| 221 |
+
{
|
| 222 |
+
return float3(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z));
|
| 223 |
+
}
|
| 224 |
+
|
| 225 |
+
export float4 smoothstep(float a, float b, float4 l)
|
| 226 |
+
{
|
| 227 |
+
return float4(smoothstep(a, b, l.x), smoothstep(a, b, l.y), smoothstep(a, b, l.z), smoothstep(a, b, l.w));
|
| 228 |
+
}
|
| 229 |
+
|
| 230 |
+
//------------------ Random from UE4 -----------------------
|
| 231 |
+
float length2(float3 v)
|
| 232 |
+
{
|
| 233 |
+
return math::dot(v, v);
|
| 234 |
+
}
|
| 235 |
+
|
| 236 |
+
float3 GetPerlinNoiseGradientTextureAt(uniform texture_2d PerlinNoiseGradientTexture, float3 v)
|
| 237 |
+
{
|
| 238 |
+
const float2 ZShear = float2(17.0f, 89.0f);
|
| 239 |
+
|
| 240 |
+
float2 OffsetA = v.z * ZShear;
|
| 241 |
+
float2 TexA = (float2(v.x, v.y) + OffsetA + 0.5f) / 128.0f;
|
| 242 |
+
float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA.x,1.0-TexA.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
return float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z) * 2.0 - 1.0;
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
float3 SkewSimplex(float3 In)
|
| 247 |
+
{
|
| 248 |
+
return In + math::dot(In, float3(1.0 / 3.0f) );
|
| 249 |
+
}
|
| 250 |
+
float3 UnSkewSimplex(float3 In)
|
| 251 |
+
{
|
| 252 |
+
return In - math::dot(In, float3(1.0 / 6.0f) );
|
| 253 |
+
}
|
| 254 |
+
|
| 255 |
+
// 3D random number generator inspired by PCGs (permuted congruential generator)
|
| 256 |
+
// Using a **simple** Feistel cipher in place of the usual xor shift permutation step
|
| 257 |
+
// @param v = 3D integer coordinate
|
| 258 |
+
// @return three elements w/ 16 random bits each (0-0xffff).
|
| 259 |
+
// ~8 ALU operations for result.x (7 mad, 1 >>)
|
| 260 |
+
// ~10 ALU operations for result.xy (8 mad, 2 >>)
|
| 261 |
+
// ~12 ALU operations for result.xyz (9 mad, 3 >>)
|
| 262 |
+
|
| 263 |
+
//TODO: uint3
|
| 264 |
+
int3 Rand3DPCG16(int3 p)
|
| 265 |
+
{
|
| 266 |
+
// taking a signed int then reinterpreting as unsigned gives good behavior for negatives
|
| 267 |
+
//TODO: uint3
|
| 268 |
+
int3 v = int3(p);
|
| 269 |
+
|
| 270 |
+
// Linear congruential step. These LCG constants are from Numerical Recipies
|
| 271 |
+
// For additional #'s, PCG would do multiple LCG steps and scramble each on output
|
| 272 |
+
// So v here is the RNG state
|
| 273 |
+
v = v * 1664525 + 1013904223;
|
| 274 |
+
|
| 275 |
+
// PCG uses xorshift for the final shuffle, but it is expensive (and cheap
|
| 276 |
+
// versions of xorshift have visible artifacts). Instead, use simple MAD Feistel steps
|
| 277 |
+
//
|
| 278 |
+
// Feistel ciphers divide the state into separate parts (usually by bits)
|
| 279 |
+
// then apply a series of permutation steps one part at a time. The permutations
|
| 280 |
+
// use a reversible operation (usually ^) to part being updated with the result of
|
| 281 |
+
// a permutation function on the other parts and the key.
|
| 282 |
+
//
|
| 283 |
+
// In this case, I'm using v.x, v.y and v.z as the parts, using + instead of ^ for
|
| 284 |
+
// the combination function, and just multiplying the other two parts (no key) for
|
| 285 |
+
// the permutation function.
|
| 286 |
+
//
|
| 287 |
+
// That gives a simple mad per round.
|
| 288 |
+
v.x += v.y*v.z;
|
| 289 |
+
v.y += v.z*v.x;
|
| 290 |
+
v.z += v.x*v.y;
|
| 291 |
+
v.x += v.y*v.z;
|
| 292 |
+
v.y += v.z*v.x;
|
| 293 |
+
v.z += v.x*v.y;
|
| 294 |
+
|
| 295 |
+
// only top 16 bits are well shuffled
|
| 296 |
+
return v >> 16;
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
// Wraps noise for tiling texture creation
|
| 300 |
+
// @param v = unwrapped texture parameter
|
| 301 |
+
// @param bTiling = true to tile, false to not tile
|
| 302 |
+
// @param RepeatSize = number of units before repeating
|
| 303 |
+
// @return either original or wrapped coord
|
| 304 |
+
float3 NoiseTileWrap(float3 v, bool bTiling, float RepeatSize)
|
| 305 |
+
{
|
| 306 |
+
return bTiling ? (math::frac(v / RepeatSize) * RepeatSize) : v;
|
| 307 |
+
}
|
| 308 |
+
|
| 309 |
+
// Evaluate polynomial to get smooth transitions for Perlin noise
|
| 310 |
+
// only needed by Perlin functions in this file
|
| 311 |
+
// scalar(per component): 2 add, 5 mul
|
| 312 |
+
float4 PerlinRamp(float4 t)
|
| 313 |
+
{
|
| 314 |
+
return t * t * t * (t * (t * 6 - 15) + 10);
|
| 315 |
+
}
|
| 316 |
+
|
| 317 |
+
// Blum-Blum-Shub-inspired pseudo random number generator
|
| 318 |
+
// http://www.umbc.edu/~olano/papers/mNoise.pdf
|
| 319 |
+
// real BBS uses ((s*s) mod M) with bignums and M as the product of two huge Blum primes
|
| 320 |
+
// instead, we use a single prime M just small enough not to overflow
|
| 321 |
+
// note that the above paper used 61, which fits in a half, but is unusably bad
|
| 322 |
+
// @param Integer valued floating point seed
|
| 323 |
+
// @return random number in range [0,1)
|
| 324 |
+
// ~8 ALU operations (5 *, 3 frac)
|
| 325 |
+
float RandBBSfloat(float seed)
|
| 326 |
+
{
|
| 327 |
+
float BBS_PRIME24 = 4093.0;
|
| 328 |
+
float s = math::frac(seed / BBS_PRIME24);
|
| 329 |
+
s = math::frac(s * s * BBS_PRIME24);
|
| 330 |
+
s = math::frac(s * s * BBS_PRIME24);
|
| 331 |
+
return s;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
// Modified noise gradient term
|
| 335 |
+
// @param seed - random seed for integer lattice position
|
| 336 |
+
// @param offset - [-1,1] offset of evaluation point from lattice point
|
| 337 |
+
// @return gradient direction (xyz) and contribution (w) from this lattice point
|
| 338 |
+
float4 MGradient(int seed, float3 offset)
|
| 339 |
+
{
|
| 340 |
+
//TODO uint
|
| 341 |
+
int rand = Rand3DPCG16(int3(seed,0,0)).x;
|
| 342 |
+
int3 MGradientMask = int3(0x8000, 0x4000, 0x2000);
|
| 343 |
+
float3 MGradientScale = float3(1.0 / 0x4000, 1.0 / 0x2000, 1.0 / 0x1000);
|
| 344 |
+
float3 direction = float3(int3(rand, rand, rand) & MGradientMask) * MGradientScale - 1;
|
| 345 |
+
return float4(direction.x, direction.y, direction.z, math::dot(direction, offset));
|
| 346 |
+
}
|
| 347 |
+
|
| 348 |
+
// compute Perlin and related noise corner seed values
|
| 349 |
+
// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D
|
| 350 |
+
// @param bTiling = true to return seed values for a repeating noise pattern
|
| 351 |
+
// @param RepeatSize = integer units before tiling in each dimension
|
| 352 |
+
// @param seed000-seed111 = hash function seeds for the eight corners
|
| 353 |
+
// @return fractional part of v
|
| 354 |
+
struct SeedValue
|
| 355 |
+
{
|
| 356 |
+
float3 fv = float3(0);
|
| 357 |
+
float seed000 = 0;
|
| 358 |
+
float seed001 = 0;
|
| 359 |
+
float seed010 = 0;
|
| 360 |
+
float seed011 = 0;
|
| 361 |
+
float seed100 = 0;
|
| 362 |
+
float seed101 = 0;
|
| 363 |
+
float seed110 = 0;
|
| 364 |
+
float seed111 = 0;
|
| 365 |
+
};
|
| 366 |
+
|
| 367 |
+
SeedValue NoiseSeeds(float3 v, bool bTiling, float RepeatSize)
|
| 368 |
+
{
|
| 369 |
+
SeedValue seeds;
|
| 370 |
+
seeds.fv = math::frac(v);
|
| 371 |
+
float3 iv = math::floor(v);
|
| 372 |
+
|
| 373 |
+
const float3 primes = float3(19, 47, 101);
|
| 374 |
+
|
| 375 |
+
if (bTiling)
|
| 376 |
+
{ // can't algebraically combine with primes
|
| 377 |
+
seeds.seed000 = math::dot(primes, NoiseTileWrap(iv, true, RepeatSize));
|
| 378 |
+
seeds.seed100 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 0), true, RepeatSize));
|
| 379 |
+
seeds.seed010 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 0), true, RepeatSize));
|
| 380 |
+
seeds.seed110 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 0), true, RepeatSize));
|
| 381 |
+
seeds.seed001 = math::dot(primes, NoiseTileWrap(iv + float3(0, 0, 1), true, RepeatSize));
|
| 382 |
+
seeds.seed101 = math::dot(primes, NoiseTileWrap(iv + float3(1, 0, 1), true, RepeatSize));
|
| 383 |
+
seeds.seed011 = math::dot(primes, NoiseTileWrap(iv + float3(0, 1, 1), true, RepeatSize));
|
| 384 |
+
seeds.seed111 = math::dot(primes, NoiseTileWrap(iv + float3(1, 1, 1), true, RepeatSize));
|
| 385 |
+
}
|
| 386 |
+
else
|
| 387 |
+
{ // get to combine offsets with multiplication by primes in this case
|
| 388 |
+
seeds.seed000 = math::dot(iv, primes);
|
| 389 |
+
seeds.seed100 = seeds.seed000 + primes.x;
|
| 390 |
+
seeds.seed010 = seeds.seed000 + primes.y;
|
| 391 |
+
seeds.seed110 = seeds.seed100 + primes.y;
|
| 392 |
+
seeds.seed001 = seeds.seed000 + primes.z;
|
| 393 |
+
seeds.seed101 = seeds.seed100 + primes.z;
|
| 394 |
+
seeds.seed011 = seeds.seed010 + primes.z;
|
| 395 |
+
seeds.seed111 = seeds.seed110 + primes.z;
|
| 396 |
+
}
|
| 397 |
+
|
| 398 |
+
return seeds;
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
struct SimplexWeights
|
| 402 |
+
{
|
| 403 |
+
float4 Result = float4(0);
|
| 404 |
+
float3 PosA = float3(0);
|
| 405 |
+
float3 PosB = float3(0);
|
| 406 |
+
float3 PosC = float3(0);
|
| 407 |
+
float3 PosD = float3(0);
|
| 408 |
+
};
|
| 409 |
+
|
| 410 |
+
// Computed weights and sample positions for simplex interpolation
|
| 411 |
+
// @return float4(a,b,c, d) Barycentric coordinate defined as Filtered = Tex(PosA) * a + Tex(PosB) * b + Tex(PosC) * c + Tex(PosD) * d
|
| 412 |
+
SimplexWeights ComputeSimplexWeights3D(float3 OrthogonalPos)
|
| 413 |
+
{
|
| 414 |
+
SimplexWeights weights;
|
| 415 |
+
float3 OrthogonalPosFloor = math::floor(OrthogonalPos);
|
| 416 |
+
|
| 417 |
+
weights.PosA = OrthogonalPosFloor;
|
| 418 |
+
weights.PosB = weights.PosA + float3(1, 1, 1);
|
| 419 |
+
|
| 420 |
+
OrthogonalPos -= OrthogonalPosFloor;
|
| 421 |
+
|
| 422 |
+
float Largest = math::max(OrthogonalPos.x, math::max(OrthogonalPos.y, OrthogonalPos.z));
|
| 423 |
+
float Smallest = math::min(OrthogonalPos.x, math::min(OrthogonalPos.y, OrthogonalPos.z));
|
| 424 |
+
|
| 425 |
+
weights.PosC = weights.PosA + float3(Largest == OrthogonalPos.x, Largest == OrthogonalPos.y, Largest == OrthogonalPos.z);
|
| 426 |
+
weights.PosD = weights.PosA + float3(Smallest != OrthogonalPos.x, Smallest != OrthogonalPos.y, Smallest != OrthogonalPos.z);
|
| 427 |
+
|
| 428 |
+
float RG = OrthogonalPos.x - OrthogonalPos.y;
|
| 429 |
+
float RB = OrthogonalPos.x - OrthogonalPos.z;
|
| 430 |
+
float GB = OrthogonalPos.y - OrthogonalPos.z;
|
| 431 |
+
|
| 432 |
+
weights.Result.z =
|
| 433 |
+
math::min(math::max(0, RG), math::max(0, RB)) // X
|
| 434 |
+
+ math::min(math::max(0, -RG), math::max(0, GB)) // Y
|
| 435 |
+
+ math::min(math::max(0, -RB), math::max(0, -GB)); // Z
|
| 436 |
+
|
| 437 |
+
weights.Result.w =
|
| 438 |
+
math::min(math::max(0, -RG), math::max(0, -RB)) // X
|
| 439 |
+
+ math::min(math::max(0, RG), math::max(0, -GB)) // Y
|
| 440 |
+
+ math::min(math::max(0, RB), math::max(0, GB)); // Z
|
| 441 |
+
|
| 442 |
+
weights.Result.y = Smallest;
|
| 443 |
+
weights.Result.x = 1.0f - weights.Result.y - weights.Result.z - weights.Result.w;
|
| 444 |
+
|
| 445 |
+
return weights;
|
| 446 |
+
}
|
| 447 |
+
|
| 448 |
+
// filtered 3D gradient simple noise (few texture lookups, high quality)
|
| 449 |
+
// @param v >0
|
| 450 |
+
// @return random number in the range -1 .. 1
|
| 451 |
+
float SimplexNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 EvalPos)
|
| 452 |
+
{
|
| 453 |
+
float3 OrthogonalPos = SkewSimplex(EvalPos);
|
| 454 |
+
|
| 455 |
+
SimplexWeights Weights = ComputeSimplexWeights3D(OrthogonalPos);
|
| 456 |
+
|
| 457 |
+
// can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 32 bit)
|
| 458 |
+
float3 A = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosA);
|
| 459 |
+
float3 B = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosB);
|
| 460 |
+
float3 C = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosC);
|
| 461 |
+
float3 D = GetPerlinNoiseGradientTextureAt(PerlinNoiseGradientTexture, Weights.PosD);
|
| 462 |
+
|
| 463 |
+
Weights.PosA = UnSkewSimplex(Weights.PosA);
|
| 464 |
+
Weights.PosB = UnSkewSimplex(Weights.PosB);
|
| 465 |
+
Weights.PosC = UnSkewSimplex(Weights.PosC);
|
| 466 |
+
Weights.PosD = UnSkewSimplex(Weights.PosD);
|
| 467 |
+
|
| 468 |
+
float DistanceWeight;
|
| 469 |
+
|
| 470 |
+
DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosA)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight;
|
| 471 |
+
float a = math::dot(A, EvalPos - Weights.PosA) * DistanceWeight;
|
| 472 |
+
DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosB)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight;
|
| 473 |
+
float b = math::dot(B, EvalPos - Weights.PosB) * DistanceWeight;
|
| 474 |
+
DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosC)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight;
|
| 475 |
+
float c = math::dot(C, EvalPos - Weights.PosC) * DistanceWeight;
|
| 476 |
+
DistanceWeight = math::saturate(0.6f - length2(EvalPos - Weights.PosD)); DistanceWeight *= DistanceWeight; DistanceWeight *= DistanceWeight;
|
| 477 |
+
float d = math::dot(D, EvalPos - Weights.PosD) * DistanceWeight;
|
| 478 |
+
|
| 479 |
+
return 32 * (a + b + c + d);
|
| 480 |
+
}
|
| 481 |
+
|
| 482 |
+
// filtered 3D noise, can be optimized
|
| 483 |
+
// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D
|
| 484 |
+
// @param bTiling = repeat noise pattern
|
| 485 |
+
// @param RepeatSize = integer units before tiling in each dimension
|
| 486 |
+
// @return random number in the range -1 .. 1
|
| 487 |
+
float GradientNoise3D_TEX(uniform texture_2d PerlinNoiseGradientTexture, float3 v, bool bTiling, float RepeatSize)
|
| 488 |
+
{
|
| 489 |
+
bTiling = true;
|
| 490 |
+
float3 fv = math::frac(v);
|
| 491 |
+
float3 iv0 = NoiseTileWrap(math::floor(v), bTiling, RepeatSize);
|
| 492 |
+
float3 iv1 = NoiseTileWrap(iv0 + 1, bTiling, RepeatSize);
|
| 493 |
+
|
| 494 |
+
const int2 ZShear = int2(17, 89);
|
| 495 |
+
|
| 496 |
+
float2 OffsetA = iv0.z * ZShear;
|
| 497 |
+
float2 OffsetB = OffsetA + ZShear; // non-tiling, use relative offset
|
| 498 |
+
if (bTiling) // tiling, have to compute from wrapped coordinates
|
| 499 |
+
{
|
| 500 |
+
OffsetB = iv1.z * ZShear;
|
| 501 |
+
}
|
| 502 |
+
|
| 503 |
+
// Texture size scale factor
|
| 504 |
+
float ts = 1 / 128.0f;
|
| 505 |
+
|
| 506 |
+
// texture coordinates for iv0.xy, as offset for both z slices
|
| 507 |
+
float2 TexA0 = (float2(iv0.x, iv0.y) + OffsetA + 0.5f) * ts;
|
| 508 |
+
float2 TexB0 = (float2(iv0.x, iv0.y) + OffsetB + 0.5f) * ts;
|
| 509 |
+
|
| 510 |
+
// texture coordinates for iv1.xy, as offset for both z slices
|
| 511 |
+
float2 TexA1 = TexA0 + ts; // for non-tiling, can compute relative to existing coordinates
|
| 512 |
+
float2 TexB1 = TexB0 + ts;
|
| 513 |
+
if (bTiling) // for tiling, need to compute from wrapped coordinates
|
| 514 |
+
{
|
| 515 |
+
TexA1 = (float2(iv1.x, iv1.y) + OffsetA + 0.5f) * ts;
|
| 516 |
+
TexB1 = (float2(iv1.x, iv1.y) + OffsetB + 0.5f) * ts;
|
| 517 |
+
}
|
| 518 |
+
|
| 519 |
+
|
| 520 |
+
// can be optimized to 1 or 2 texture lookups (4 or 8 channel encoded in 8, 16 or 32 bit)
|
| 521 |
+
float4 PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 522 |
+
float3 PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 523 |
+
float3 A = PerlinNoiseColor * 2 - 1;
|
| 524 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA0.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 525 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 526 |
+
float3 B = PerlinNoiseColor * 2 - 1;
|
| 527 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA0.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 528 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 529 |
+
float3 C = PerlinNoiseColor * 2 - 1;
|
| 530 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexA1.x,1.0-TexA1.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 531 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 532 |
+
float3 D = PerlinNoiseColor * 2 - 1;
|
| 533 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 534 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 535 |
+
float3 E = PerlinNoiseColor * 2 - 1;
|
| 536 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB0.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 537 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 538 |
+
float3 F = PerlinNoiseColor * 2 - 1;
|
| 539 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB0.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 540 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 541 |
+
float3 G = PerlinNoiseColor * 2 - 1;
|
| 542 |
+
PerlinNoise = tex::lookup_float4(PerlinNoiseGradientTexture,float2(TexB1.x,1.0-TexB1.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 543 |
+
PerlinNoiseColor = float3(PerlinNoise.x, PerlinNoise.y, PerlinNoise.z);
|
| 544 |
+
float3 H = PerlinNoiseColor * 2 - 1;
|
| 545 |
+
|
| 546 |
+
float a = math::dot(A, fv - float3(0, 0, 0));
|
| 547 |
+
float b = math::dot(B, fv - float3(1, 0, 0));
|
| 548 |
+
float c = math::dot(C, fv - float3(0, 1, 0));
|
| 549 |
+
float d = math::dot(D, fv - float3(1, 1, 0));
|
| 550 |
+
float e = math::dot(E, fv - float3(0, 0, 1));
|
| 551 |
+
float f = math::dot(F, fv - float3(1, 0, 1));
|
| 552 |
+
float g = math::dot(G, fv - float3(0, 1, 1));
|
| 553 |
+
float h = math::dot(H, fv - float3(1, 1, 1));
|
| 554 |
+
|
| 555 |
+
float4 Weights = PerlinRamp(math::frac(float4(fv.x, fv.y, fv.z, 0)));
|
| 556 |
+
|
| 557 |
+
float i = math::lerp(math::lerp(a, b, Weights.x), math::lerp(c, d, Weights.x), Weights.y);
|
| 558 |
+
float j = math::lerp(math::lerp(e, f, Weights.x), math::lerp(g, h, Weights.x), Weights.y);
|
| 559 |
+
|
| 560 |
+
return math::lerp(i, j, Weights.z);
|
| 561 |
+
}
|
| 562 |
+
|
| 563 |
+
// @return random number in the range -1 .. 1
|
| 564 |
+
// scalar: 6 frac, 31 mul/mad, 15 add,
|
| 565 |
+
float FastGradientPerlinNoise3D_TEX(uniform texture_3d PerlinNoise3DTexture, float3 xyz)
|
| 566 |
+
{
|
| 567 |
+
// needs to be the same value when creating the PerlinNoise3D texture
|
| 568 |
+
float Extent = 16;
|
| 569 |
+
|
| 570 |
+
// last texel replicated and needed for filtering
|
| 571 |
+
// scalar: 3 frac, 6 mul
|
| 572 |
+
xyz = math::frac(xyz / (Extent - 1)) * (Extent - 1);
|
| 573 |
+
|
| 574 |
+
// scalar: 3 frac
|
| 575 |
+
float3 uvw = math::frac(xyz);
|
| 576 |
+
// = floor(xyz);
|
| 577 |
+
// scalar: 3 add
|
| 578 |
+
float3 p0 = xyz - uvw;
|
| 579 |
+
// float3 f = math::pow(uvw, 2) * 3.0f - math::pow(uvw, 3) * 2.0f; // original perlin hermite (ok when used without bump mapping)
|
| 580 |
+
// scalar: 2*3 add 5*3 mul
|
| 581 |
+
float4 pr = PerlinRamp(float4(uvw.x, uvw.y, uvw.z, 0));
|
| 582 |
+
float3 f = float3(pr.x, pr.y, pr.z); // new, better with continues second derivative for bump mapping
|
| 583 |
+
// scalar: 3 add
|
| 584 |
+
float3 p = p0 + f;
|
| 585 |
+
// scalar: 3 mad
|
| 586 |
+
// TODO: need reverse???
|
| 587 |
+
float4 NoiseSample = tex::lookup_float4(PerlinNoise3DTexture, p / Extent + 0.5f / Extent); // +0.5f to get rid of bilinear offset
|
| 588 |
+
|
| 589 |
+
// reconstruct from 8bit (using mad with 2 constants and dot4 was same instruction count)
|
| 590 |
+
// scalar: 4 mad, 3 mul, 3 add
|
| 591 |
+
float3 n = float3(NoiseSample.x, NoiseSample.y, NoiseSample.z) * 255.0f / 127.0f - 1.0f;
|
| 592 |
+
float d = NoiseSample.w * 255.f - 127;
|
| 593 |
+
return math::dot(xyz, n) - d;
|
| 594 |
+
}
|
| 595 |
+
|
| 596 |
+
// Perlin-style "Modified Noise"
|
| 597 |
+
// http://www.umbc.edu/~olano/papers/index.html#mNoise
|
| 598 |
+
// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D
|
| 599 |
+
// @param bTiling = repeat noise pattern
|
| 600 |
+
// @param RepeatSize = integer units before tiling in each dimension
|
| 601 |
+
// @return random number in the range -1 .. 1
|
| 602 |
+
float GradientNoise3D_ALU(float3 v, bool bTiling, float RepeatSize)
|
| 603 |
+
{
|
| 604 |
+
SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize);
|
| 605 |
+
|
| 606 |
+
float rand000 = MGradient(int(seeds.seed000), seeds.fv - float3(0, 0, 0)).w;
|
| 607 |
+
float rand100 = MGradient(int(seeds.seed100), seeds.fv - float3(1, 0, 0)).w;
|
| 608 |
+
float rand010 = MGradient(int(seeds.seed010), seeds.fv - float3(0, 1, 0)).w;
|
| 609 |
+
float rand110 = MGradient(int(seeds.seed110), seeds.fv - float3(1, 1, 0)).w;
|
| 610 |
+
float rand001 = MGradient(int(seeds.seed001), seeds.fv - float3(0, 0, 1)).w;
|
| 611 |
+
float rand101 = MGradient(int(seeds.seed101), seeds.fv - float3(1, 0, 1)).w;
|
| 612 |
+
float rand011 = MGradient(int(seeds.seed011), seeds.fv - float3(0, 1, 1)).w;
|
| 613 |
+
float rand111 = MGradient(int(seeds.seed111), seeds.fv - float3(1, 1, 1)).w;
|
| 614 |
+
|
| 615 |
+
float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0));
|
| 616 |
+
|
| 617 |
+
float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y);
|
| 618 |
+
float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y);
|
| 619 |
+
return math::lerp(i, j, Weights.z);
|
| 620 |
+
}
|
| 621 |
+
|
| 622 |
+
// 3D value noise - used to be incorrectly called Perlin noise
|
| 623 |
+
// @param v = 3D noise argument, use float3(x,y,0) for 2D or float3(x,0,0) for 1D
|
| 624 |
+
// @param bTiling = repeat noise pattern
|
| 625 |
+
// @param RepeatSize = integer units before tiling in each dimension
|
| 626 |
+
// @return random number in the range -1 .. 1
|
| 627 |
+
float ValueNoise3D_ALU(float3 v, bool bTiling, float RepeatSize)
|
| 628 |
+
{
|
| 629 |
+
SeedValue seeds = NoiseSeeds(v, bTiling, RepeatSize);
|
| 630 |
+
|
| 631 |
+
float rand000 = RandBBSfloat(seeds.seed000) * 2 - 1;
|
| 632 |
+
float rand100 = RandBBSfloat(seeds.seed100) * 2 - 1;
|
| 633 |
+
float rand010 = RandBBSfloat(seeds.seed010) * 2 - 1;
|
| 634 |
+
float rand110 = RandBBSfloat(seeds.seed110) * 2 - 1;
|
| 635 |
+
float rand001 = RandBBSfloat(seeds.seed001) * 2 - 1;
|
| 636 |
+
float rand101 = RandBBSfloat(seeds.seed101) * 2 - 1;
|
| 637 |
+
float rand011 = RandBBSfloat(seeds.seed011) * 2 - 1;
|
| 638 |
+
float rand111 = RandBBSfloat(seeds.seed111) * 2 - 1;
|
| 639 |
+
|
| 640 |
+
float4 Weights = PerlinRamp(float4(seeds.fv.x, seeds.fv.y, seeds.fv.z, 0));
|
| 641 |
+
|
| 642 |
+
float i = math::lerp(math::lerp(rand000, rand100, Weights.x), math::lerp(rand010, rand110, Weights.x), Weights.y);
|
| 643 |
+
float j = math::lerp(math::lerp(rand001, rand101, Weights.x), math::lerp(rand011, rand111, Weights.x), Weights.y);
|
| 644 |
+
return math::lerp(i, j, Weights.z);
|
| 645 |
+
}
|
| 646 |
+
|
| 647 |
+
// 3D jitter offset within a voronoi noise cell
|
| 648 |
+
// @param pos - integer lattice corner
|
| 649 |
+
// @return random offsets vector
|
| 650 |
+
float3 VoronoiCornerSample(float3 pos, int Quality)
|
| 651 |
+
{
|
| 652 |
+
// random values in [-0.5, 0.5]
|
| 653 |
+
float3 noise = float3(Rand3DPCG16(int3(pos))) / 0xffff - 0.5;
|
| 654 |
+
|
| 655 |
+
// quality level 1 or 2: searches a 2x2x2 neighborhood with points distributed on a sphere
|
| 656 |
+
// scale factor to guarantee jittered points will be found within a 2x2x2 search
|
| 657 |
+
if (Quality <= 2)
|
| 658 |
+
{
|
| 659 |
+
return math::normalize(noise) * 0.2588;
|
| 660 |
+
}
|
| 661 |
+
|
| 662 |
+
// quality level 3: searches a 3x3x3 neighborhood with points distributed on a sphere
|
| 663 |
+
// scale factor to guarantee jittered points will be found within a 3x3x3 search
|
| 664 |
+
if (Quality == 3)
|
| 665 |
+
{
|
| 666 |
+
return math::normalize(noise) * 0.3090;
|
| 667 |
+
}
|
| 668 |
+
|
| 669 |
+
// quality level 4: jitter to anywhere in the cell, needs 4x4x4 search
|
| 670 |
+
return noise;
|
| 671 |
+
}
|
| 672 |
+
|
| 673 |
+
// compare previous best with a new candidate
|
| 674 |
+
// not producing point locations makes it easier for compiler to eliminate calculations when they're not needed
|
| 675 |
+
// @param minval = location and distance of best candidate seed point before the new one
|
| 676 |
+
// @param candidate = candidate seed point
|
| 677 |
+
// @param offset = 3D offset to new candidate seed point
|
| 678 |
+
// @param bDistanceOnly = if true, only set maxval.w with distance, otherwise maxval.w is distance and maxval.xyz is position
|
| 679 |
+
// @return position (if bDistanceOnly is false) and distance to closest seed point so far
|
| 680 |
+
float4 VoronoiCompare(float4 minval, float3 candidate, float3 offset, bool bDistanceOnly)
|
| 681 |
+
{
|
| 682 |
+
if (bDistanceOnly)
|
| 683 |
+
{
|
| 684 |
+
return float4(0, 0, 0, math::min(minval.w, math::dot(offset, offset)));
|
| 685 |
+
}
|
| 686 |
+
else
|
| 687 |
+
{
|
| 688 |
+
float newdist = math::dot(offset, offset);
|
| 689 |
+
return newdist > minval.w ? minval : float4(candidate.x, candidate.y, candidate.z, newdist);
|
| 690 |
+
}
|
| 691 |
+
}
|
| 692 |
+
|
| 693 |
+
// 220 instruction Worley noise
|
| 694 |
+
float4 VoronoiNoise3D_ALU(float3 v, int Quality, bool bTiling, float RepeatSize, bool bDistanceOnly)
|
| 695 |
+
{
|
| 696 |
+
float3 fv = math::frac(v), fv2 = math::frac(v + 0.5);
|
| 697 |
+
float3 iv = math::floor(v), iv2 = math::floor(v + 0.5);
|
| 698 |
+
|
| 699 |
+
// with initial minimum distance = infinity (or at least bigger than 4), first min is optimized away
|
| 700 |
+
float4 mindist = float4(0,0,0,100);
|
| 701 |
+
float3 p, offset;
|
| 702 |
+
|
| 703 |
+
// quality level 3: do a 3x3x3 search
|
| 704 |
+
if (Quality == 3)
|
| 705 |
+
{
|
| 706 |
+
int offset_x;
|
| 707 |
+
int offset_y;
|
| 708 |
+
int offset_z;
|
| 709 |
+
for (offset_x = -1; offset_x <= 1; ++offset_x)
|
| 710 |
+
{
|
| 711 |
+
for (offset_y = -1; offset_y <= 1; ++offset_y)
|
| 712 |
+
{
|
| 713 |
+
for (offset_z = -1; offset_z <= 1; ++offset_z)
|
| 714 |
+
{
|
| 715 |
+
offset = float3(offset_x, offset_y, offset_z);
|
| 716 |
+
p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize), Quality);
|
| 717 |
+
mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly);
|
| 718 |
+
}
|
| 719 |
+
}
|
| 720 |
+
}
|
| 721 |
+
}
|
| 722 |
+
|
| 723 |
+
// everybody else searches a base 2x2x2 neighborhood
|
| 724 |
+
else
|
| 725 |
+
{
|
| 726 |
+
int offset_x;
|
| 727 |
+
int offset_y;
|
| 728 |
+
int offset_z;
|
| 729 |
+
for (offset_x = 0; offset_x <= 1; ++offset_x)
|
| 730 |
+
{
|
| 731 |
+
for (offset_y = 0; offset_y <= 1; ++offset_y)
|
| 732 |
+
{
|
| 733 |
+
for (offset_z = 0; offset_z <= 1; ++offset_z)
|
| 734 |
+
{
|
| 735 |
+
offset = float3(offset_x, offset_y, offset_z);
|
| 736 |
+
p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality);
|
| 737 |
+
mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly);
|
| 738 |
+
|
| 739 |
+
// quality level 2, do extra set of points, offset by half a cell
|
| 740 |
+
if (Quality == 2)
|
| 741 |
+
{
|
| 742 |
+
// 467 is just an offset to a different area in the random number field to avoid similar neighbor artifacts
|
| 743 |
+
p = offset + VoronoiCornerSample(NoiseTileWrap(iv2 + offset, bTiling, RepeatSize) + 467, Quality);
|
| 744 |
+
mindist = VoronoiCompare(mindist, iv2 + p, fv2 - p, bDistanceOnly);
|
| 745 |
+
}
|
| 746 |
+
}
|
| 747 |
+
}
|
| 748 |
+
}
|
| 749 |
+
}
|
| 750 |
+
|
| 751 |
+
// quality level 4: add extra sets of four cells in each direction
|
| 752 |
+
if (Quality >= 4)
|
| 753 |
+
{
|
| 754 |
+
int offset_x;
|
| 755 |
+
int offset_y;
|
| 756 |
+
int offset_z;
|
| 757 |
+
for (offset_x = -1; offset_x <= 2; offset_x += 3)
|
| 758 |
+
{
|
| 759 |
+
for (offset_y = 0; offset_y <= 1; ++offset_y)
|
| 760 |
+
{
|
| 761 |
+
for (offset_z = 0; offset_z <= 1; ++offset_z)
|
| 762 |
+
{
|
| 763 |
+
offset = float3(offset_x, offset_y, offset_z);
|
| 764 |
+
// along x axis
|
| 765 |
+
p = offset + VoronoiCornerSample(NoiseTileWrap(iv + offset, bTiling, RepeatSize), Quality);
|
| 766 |
+
mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly);
|
| 767 |
+
|
| 768 |
+
// along y axis
|
| 769 |
+
p = float3(offset.y, offset.z, offset.x) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.y, offset.z, offset.x), bTiling, RepeatSize), Quality);
|
| 770 |
+
mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly);
|
| 771 |
+
|
| 772 |
+
// along z axis
|
| 773 |
+
p = float3(offset.z, offset.x, offset.y) + VoronoiCornerSample(NoiseTileWrap(iv + float3(offset.z, offset.x, offset.y), bTiling, RepeatSize), Quality);
|
| 774 |
+
mindist = VoronoiCompare(mindist, iv + p, fv - p, bDistanceOnly);
|
| 775 |
+
}
|
| 776 |
+
}
|
| 777 |
+
}
|
| 778 |
+
}
|
| 779 |
+
|
| 780 |
+
// transform squared distance to real distance
|
| 781 |
+
return float4(mindist.x, mindist.y, mindist.z, math::sqrt(mindist.w));
|
| 782 |
+
}
|
| 783 |
+
|
| 784 |
+
// Coordinates for corners of a Simplex tetrahedron
|
| 785 |
+
// Based on McEwan et al., Efficient computation of noise in GLSL, JGT 2011
|
| 786 |
+
// @param v = 3D noise argument
|
| 787 |
+
// @return 4 corner locations
|
| 788 |
+
float4x3 SimplexCorners(float3 v)
|
| 789 |
+
{
|
| 790 |
+
// find base corner by skewing to tetrahedral space and back
|
| 791 |
+
float3 tet = math::floor(v + v.x/3 + v.y/3 + v.z/3);
|
| 792 |
+
float3 base = tet - tet.x/6 - tet.y/6 - tet.z/6;
|
| 793 |
+
float3 f = v - base;
|
| 794 |
+
|
| 795 |
+
// Find offsets to other corners (McEwan did this in tetrahedral space,
|
| 796 |
+
// but since skew is along x=y=z axis, this works in Euclidean space too.)
|
| 797 |
+
float3 g = math::step(float3(f.y,f.z,f.x), float3(f.x,f.y,f.z)), h = 1 - float3(g.z, g.x, g.y);
|
| 798 |
+
float3 a1 = math::min(g, h) - 1.0 / 6.0, a2 = math::max(g, h) - 1.0 / 3.0;
|
| 799 |
+
|
| 800 |
+
// four corners
|
| 801 |
+
return float4x3(base, base + a1, base + a2, base + 0.5);
|
| 802 |
+
}
|
| 803 |
+
|
| 804 |
+
// Improved smoothing function for simplex noise
|
| 805 |
+
// @param f = fractional distance to four tetrahedral corners
|
| 806 |
+
// @return weight for each corner
|
| 807 |
+
float4 SimplexSmooth(float4x3 f)
|
| 808 |
+
{
|
| 809 |
+
const float scale = 1024. / 375.; // scale factor to make noise -1..1
|
| 810 |
+
float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3]));
|
| 811 |
+
float4 s = math::saturate(2 * d);
|
| 812 |
+
return (1 * scale + s*(-3 * scale + s*(3 * scale - s*scale)));
|
| 813 |
+
}
|
| 814 |
+
|
| 815 |
+
// Derivative of simplex noise smoothing function
|
| 816 |
+
// @param f = fractional distanc eto four tetrahedral corners
|
| 817 |
+
// @return derivative of smoothing function for each corner by x, y and z
|
| 818 |
+
float3x4 SimplexDSmooth(float4x3 f)
|
| 819 |
+
{
|
| 820 |
+
const float scale = 1024. / 375.; // scale factor to make noise -1..1
|
| 821 |
+
float4 d = float4(math::dot(f[0], f[0]), math::dot(f[1], f[1]), math::dot(f[2], f[2]), math::dot(f[3], f[3]));
|
| 822 |
+
float4 s = math::saturate(2 * d);
|
| 823 |
+
s = -12 * scale + s*(24 * scale - s * 12 * scale);
|
| 824 |
+
|
| 825 |
+
return float3x4(
|
| 826 |
+
s * float4(f[0][0], f[1][0], f[2][0], f[3][0]),
|
| 827 |
+
s * float4(f[0][1], f[1][1], f[2][1], f[3][1]),
|
| 828 |
+
s * float4(f[0][2], f[1][2], f[2][2], f[3][2]));
|
| 829 |
+
}
|
| 830 |
+
|
| 831 |
+
// Simplex noise and its Jacobian derivative
|
| 832 |
+
// @param v = 3D noise argument
|
| 833 |
+
// @param bTiling = whether to repeat noise pattern
|
| 834 |
+
// @param RepeatSize = integer units before tiling in each dimension, must be a multiple of 3
|
| 835 |
+
// @return float3x3 Jacobian in J[*].xyz, vector noise in J[*].w
|
| 836 |
+
// J[0].w, J[1].w, J[2].w is a Perlin-style simplex noise with vector output, e.g. (Nx, Ny, Nz)
|
| 837 |
+
// J[i].x is X derivative of the i'th component of the noise so J[2].x is dNz/dx
|
| 838 |
+
// You can use this to compute the noise, gradient, curl, or divergence:
|
| 839 |
+
// float3x4 J = JacobianSimplex_ALU(...);
|
| 840 |
+
// float3 VNoise = float3(J[0].w, J[1].w, J[2].w); // 3D noise
|
| 841 |
+
// float3 Grad = J[0].xyz; // gradient of J[0].w
|
| 842 |
+
// float3 Curl = float3(J[1][2]-J[2][1], J[2][0]-J[0][2], J[0][1]-J[1][2]);
|
| 843 |
+
// float Div = J[0][0]+J[1][1]+J[2][2];
|
| 844 |
+
// All of these are confirmed to compile out all unneeded terms.
|
| 845 |
+
// So Grad of X doesn't compute Y or Z components, and VNoise doesn't do any of the derivative computation.
|
| 846 |
+
float3x4 JacobianSimplex_ALU(float3 v, bool bTiling, float RepeatSize)
|
| 847 |
+
{
|
| 848 |
+
int3 MGradientMask = int3(0x8000, 0x4000, 0x2000);
|
| 849 |
+
float3 MGradientScale = float3(1. / 0x4000, 1. / 0x2000, 1. / 0x1000);
|
| 850 |
+
|
| 851 |
+
// corners of tetrahedron
|
| 852 |
+
float4x3 T = SimplexCorners(v);
|
| 853 |
+
// TODO: uint3
|
| 854 |
+
int3 rand = int3(0);
|
| 855 |
+
float4x3 gvec0 = float4x3(1.0);
|
| 856 |
+
float4x3 gvec1 = float4x3(1.0);
|
| 857 |
+
float4x3 gvec2 = float4x3(1.0);
|
| 858 |
+
float4x3 fv = float4x3(1.0);
|
| 859 |
+
float3x4 grad = float3x4(1.0);
|
| 860 |
+
|
| 861 |
+
// processing of tetrahedral vertices, unrolled
|
| 862 |
+
// to compute gradient at each corner
|
| 863 |
+
fv[0] = v - T[0];
|
| 864 |
+
rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[0] + 0.5, bTiling, RepeatSize))));
|
| 865 |
+
gvec0[0] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1;
|
| 866 |
+
gvec1[0] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1;
|
| 867 |
+
gvec2[0] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1;
|
| 868 |
+
grad[0][0] = math::dot(gvec0[0], fv[0]);
|
| 869 |
+
grad[1][0] = math::dot(gvec1[0], fv[0]);
|
| 870 |
+
grad[2][0] = math::dot(gvec2[0], fv[0]);
|
| 871 |
+
|
| 872 |
+
fv[1] = v - T[1];
|
| 873 |
+
rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[1] + 0.5, bTiling, RepeatSize))));
|
| 874 |
+
gvec0[1] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1;
|
| 875 |
+
gvec1[1] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1;
|
| 876 |
+
gvec1[1] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1;
|
| 877 |
+
grad[0][1] = math::dot(gvec0[1], fv[1]);
|
| 878 |
+
grad[1][1] = math::dot(gvec1[1], fv[1]);
|
| 879 |
+
grad[2][1] = math::dot(gvec2[1], fv[1]);
|
| 880 |
+
|
| 881 |
+
fv[2] = v - T[2];
|
| 882 |
+
rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[2] + 0.5, bTiling, RepeatSize))));
|
| 883 |
+
gvec0[2] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1;
|
| 884 |
+
gvec1[2] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1;
|
| 885 |
+
gvec2[2] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1;
|
| 886 |
+
grad[0][2] = math::dot(gvec0[2], fv[2]);
|
| 887 |
+
grad[1][2] = math::dot(gvec1[2], fv[2]);
|
| 888 |
+
grad[2][2] = math::dot(gvec2[2], fv[2]);
|
| 889 |
+
|
| 890 |
+
fv[3] = v - T[3];
|
| 891 |
+
rand = Rand3DPCG16(int3(math::floor(NoiseTileWrap(6 * T[3] + 0.5, bTiling, RepeatSize))));
|
| 892 |
+
gvec0[3] = float3(int3(rand.x,rand.x,rand.x) & MGradientMask) * MGradientScale - 1;
|
| 893 |
+
gvec1[3] = float3(int3(rand.y,rand.y,rand.y) & MGradientMask) * MGradientScale - 1;
|
| 894 |
+
gvec2[3] = float3(int3(rand.z,rand.z,rand.z) & MGradientMask) * MGradientScale - 1;
|
| 895 |
+
grad[0][3] = math::dot(gvec0[3], fv[3]);
|
| 896 |
+
grad[1][3] = math::dot(gvec1[3], fv[3]);
|
| 897 |
+
grad[2][3] = math::dot(gvec2[3], fv[3]);
|
| 898 |
+
|
| 899 |
+
// blend gradients
|
| 900 |
+
float4 sv = SimplexSmooth(fv);
|
| 901 |
+
float3x4 ds = SimplexDSmooth(fv);
|
| 902 |
+
|
| 903 |
+
float3x4 jacobian = float3x4(1.0);
|
| 904 |
+
float3 vec0 = gvec0*sv + grad[0]*ds; // NOTE: mdl is column major, convert from UE4 (row major)
|
| 905 |
+
jacobian[0] = float4(vec0.x, vec0.y, vec0.z, math::dot(sv, grad[0]));
|
| 906 |
+
float3 vec1 = gvec1*sv + grad[1]*ds;
|
| 907 |
+
jacobian[1] = float4(vec1.x, vec1.y, vec1.z, math::dot(sv, grad[1]));
|
| 908 |
+
float3 vec2 = gvec2*sv + grad[2]*ds;
|
| 909 |
+
jacobian[2] = float4(vec2.x, vec2.y, vec2.z, math::dot(sv, grad[2]));
|
| 910 |
+
|
| 911 |
+
return jacobian;
|
| 912 |
+
}
|
| 913 |
+
|
| 914 |
+
// While RepeatSize is a float here, the expectation is that it would be largely integer values coming in from the UI. The downstream logic assumes
|
| 915 |
+
// floats for all called functions (NoiseTileWrap) and this prevents any float-to-int conversion errors from automatic type conversion.
|
| 916 |
+
float Noise3D_Multiplexer(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, int Function, float3 Position, int Quality, bool bTiling, float RepeatSize)
|
| 917 |
+
{
|
| 918 |
+
// verified, HLSL compiled out the switch if Function is a constant
|
| 919 |
+
switch(Function)
|
| 920 |
+
{
|
| 921 |
+
case 0:
|
| 922 |
+
return SimplexNoise3D_TEX(PerlinNoiseGradientTexture, Position);
|
| 923 |
+
case 1:
|
| 924 |
+
return GradientNoise3D_TEX(PerlinNoiseGradientTexture, Position, bTiling, RepeatSize);
|
| 925 |
+
case 2:
|
| 926 |
+
return FastGradientPerlinNoise3D_TEX(PerlinNoise3DTexture, Position);
|
| 927 |
+
case 3:
|
| 928 |
+
return GradientNoise3D_ALU(Position, bTiling, RepeatSize);
|
| 929 |
+
case 4:
|
| 930 |
+
return ValueNoise3D_ALU(Position, bTiling, RepeatSize);
|
| 931 |
+
case 5:
|
| 932 |
+
return VoronoiNoise3D_ALU(Position, Quality, bTiling, RepeatSize, true).w * 2.0 - 1.0;
|
| 933 |
+
}
|
| 934 |
+
return 0;
|
| 935 |
+
}
|
| 936 |
+
//----------------------------------------------------------
|
| 937 |
+
|
| 938 |
+
export float noise(uniform texture_2d PerlinNoiseGradientTexture, uniform texture_3d PerlinNoise3DTexture, float3 Position, float Scale, float Quality, float Function, float Turbulence, float Levels, float OutputMin, float OutputMax, float LevelScale, float FilterWidth, float Tiling, float RepeatSize)
|
| 939 |
+
[[
|
| 940 |
+
anno::description("Noise"),
|
| 941 |
+
anno::noinline()
|
| 942 |
+
]]
|
| 943 |
+
{
|
| 944 |
+
Position *= Scale;
|
| 945 |
+
FilterWidth *= Scale;
|
| 946 |
+
|
| 947 |
+
float Out = 0.0f;
|
| 948 |
+
float OutScale = 1.0f;
|
| 949 |
+
float InvLevelScale = 1.0f / LevelScale;
|
| 950 |
+
|
| 951 |
+
int iFunction(Function);
|
| 952 |
+
int iQuality(Quality);
|
| 953 |
+
int iLevels(Levels);
|
| 954 |
+
bool bTurbulence(Turbulence);
|
| 955 |
+
bool bTiling(Tiling);
|
| 956 |
+
|
| 957 |
+
for(int i = 0; i < iLevels; ++i)
|
| 958 |
+
{
|
| 959 |
+
// fade out noise level that are too high frequent (not done through dynamic branching as it usually requires gradient instructions)
|
| 960 |
+
OutScale *= math::saturate(1.0 - FilterWidth);
|
| 961 |
+
|
| 962 |
+
if(bTurbulence)
|
| 963 |
+
{
|
| 964 |
+
Out += math::abs(Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize)) * OutScale;
|
| 965 |
+
}
|
| 966 |
+
else
|
| 967 |
+
{
|
| 968 |
+
Out += Noise3D_Multiplexer(PerlinNoiseGradientTexture, PerlinNoise3DTexture, iFunction, Position, iQuality, bTiling, RepeatSize) * OutScale;
|
| 969 |
+
}
|
| 970 |
+
|
| 971 |
+
Position *= LevelScale;
|
| 972 |
+
RepeatSize *= LevelScale;
|
| 973 |
+
OutScale *= InvLevelScale;
|
| 974 |
+
FilterWidth *= LevelScale;
|
| 975 |
+
}
|
| 976 |
+
|
| 977 |
+
if(!bTurbulence)
|
| 978 |
+
{
|
| 979 |
+
// bring -1..1 to 0..1 range
|
| 980 |
+
Out = Out * 0.5f + 0.5f;
|
| 981 |
+
}
|
| 982 |
+
|
| 983 |
+
// Out is in 0..1 range
|
| 984 |
+
return math::lerp(OutputMin, OutputMax, Out);
|
| 985 |
+
}
|
| 986 |
+
|
| 987 |
+
// Material node for noise functions returning a vector value
|
| 988 |
+
// @param LevelScale usually 2 but higher values allow efficient use of few levels
|
| 989 |
+
// @return in user defined range (OutputMin..OutputMax)
|
| 990 |
+
export float4 vector4_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize)
|
| 991 |
+
[[
|
| 992 |
+
anno::description("Vector Noise"),
|
| 993 |
+
anno::noinline()
|
| 994 |
+
]]
|
| 995 |
+
{
|
| 996 |
+
float4 result = float4(0,0,0,1);
|
| 997 |
+
float3 ret = float3(0);
|
| 998 |
+
int iQuality = int(Quality);
|
| 999 |
+
int iFunction = int(Function);
|
| 1000 |
+
bool bTiling = Tiling > 0.0;
|
| 1001 |
+
|
| 1002 |
+
float3x4 Jacobian = JacobianSimplex_ALU(Position, bTiling, TileSize); // compiled out if not used
|
| 1003 |
+
|
| 1004 |
+
// verified, HLSL compiled out the switch if Function is a constant
|
| 1005 |
+
switch (iFunction)
|
| 1006 |
+
{
|
| 1007 |
+
case 0: // Cellnoise
|
| 1008 |
+
ret = float3(Rand3DPCG16(int3(math::floor(NoiseTileWrap(Position, bTiling, TileSize))))) / 0xffff;
|
| 1009 |
+
result = float4(ret.x, ret.y, ret.z, 1);
|
| 1010 |
+
break;
|
| 1011 |
+
case 1: // Color noise
|
| 1012 |
+
ret = float3(Jacobian[0].w, Jacobian[1].w, Jacobian[2].w);
|
| 1013 |
+
result = float4(ret.x, ret.y, ret.z, 1);
|
| 1014 |
+
break;
|
| 1015 |
+
case 2: // Gradient
|
| 1016 |
+
result = Jacobian[0];
|
| 1017 |
+
break;
|
| 1018 |
+
case 3: // Curl
|
| 1019 |
+
ret = float3(Jacobian[2][1] - Jacobian[1][2], Jacobian[0][2] - Jacobian[2][0], Jacobian[1][0] - Jacobian[0][1]);
|
| 1020 |
+
result = float4(ret.x, ret.y, ret.z, 1);
|
| 1021 |
+
break;
|
| 1022 |
+
case 4: // Voronoi
|
| 1023 |
+
result = VoronoiNoise3D_ALU(Position, iQuality, bTiling, TileSize, false);
|
| 1024 |
+
break;
|
| 1025 |
+
}
|
| 1026 |
+
return result;
|
| 1027 |
+
}
|
| 1028 |
+
|
| 1029 |
+
export float3 vector3_noise(float3 Position, float Quality, float Function, float Tiling, float TileSize)
|
| 1030 |
+
[[
|
| 1031 |
+
anno::description("Vector Noise float3 version"),
|
| 1032 |
+
anno::noinline()
|
| 1033 |
+
]]
|
| 1034 |
+
{
|
| 1035 |
+
float4 noise = vector4_noise(Position, Quality, Function, Tiling, TileSize);
|
| 1036 |
+
return float3(noise.x, noise.y, noise.z);
|
| 1037 |
+
}
|
| 1038 |
+
|
| 1039 |
+
|
| 1040 |
+
// workaround for ue4 fresnel (without supporting for camera vector) : replacing it with 0.0, means facing to the view
|
| 1041 |
+
export float fresnel(float exponent [[anno::unused()]], float base_reflect_fraction [[anno::unused()]], float3 normal [[anno::unused()]])
|
| 1042 |
+
[[
|
| 1043 |
+
anno::description("Fresnel"),
|
| 1044 |
+
anno::noinline()
|
| 1045 |
+
]]
|
| 1046 |
+
{
|
| 1047 |
+
return 0.0;
|
| 1048 |
+
}
|
| 1049 |
+
|
| 1050 |
+
export float fresnel_function(float3 normal_vector [[anno::unused()]], float3 camera_vector [[anno::unused()]],
|
| 1051 |
+
bool invert_fresnel [[anno::unused()]], float power [[anno::unused()]],
|
| 1052 |
+
bool use_cheap_contrast [[anno::unused()]], float cheap_contrast_dark [[anno::unused()]], float cheap_contrast_bright [[anno::unused()]],
|
| 1053 |
+
bool clamp_fresnel_dot_product [[anno::unused()]])
|
| 1054 |
+
[[
|
| 1055 |
+
anno::description("Fresnel Function"),
|
| 1056 |
+
anno::noinline()
|
| 1057 |
+
]]
|
| 1058 |
+
{
|
| 1059 |
+
return 0.0;
|
| 1060 |
+
}
|
| 1061 |
+
|
| 1062 |
+
export float3 camera_vector(uniform bool up_z = true)
|
| 1063 |
+
[[
|
| 1064 |
+
anno::description("Camera Vector"),
|
| 1065 |
+
anno::noinline()
|
| 1066 |
+
]]
|
| 1067 |
+
{
|
| 1068 |
+
// assume camera postion is 0,0,0
|
| 1069 |
+
return math::normalize(float3(0) - convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z));
|
| 1070 |
+
}
|
| 1071 |
+
|
| 1072 |
+
export float pixel_depth()
|
| 1073 |
+
[[
|
| 1074 |
+
anno::description("Pixel Depth"),
|
| 1075 |
+
anno::noinline()
|
| 1076 |
+
]]
|
| 1077 |
+
{
|
| 1078 |
+
return 256.0f;
|
| 1079 |
+
}
|
| 1080 |
+
|
| 1081 |
+
export float scene_depth()
|
| 1082 |
+
[[
|
| 1083 |
+
anno::description("Scene Depth")
|
| 1084 |
+
]]
|
| 1085 |
+
{
|
| 1086 |
+
return 65500.0f;
|
| 1087 |
+
}
|
| 1088 |
+
|
| 1089 |
+
export float3 scene_color()
|
| 1090 |
+
[[
|
| 1091 |
+
anno::description("Scene Color")
|
| 1092 |
+
]]
|
| 1093 |
+
{
|
| 1094 |
+
return float3(1.0f);
|
| 1095 |
+
}
|
| 1096 |
+
|
| 1097 |
+
export float4 vertex_color()
|
| 1098 |
+
[[
|
| 1099 |
+
anno::description("Vertex Color"),
|
| 1100 |
+
anno::noinline()
|
| 1101 |
+
]]
|
| 1102 |
+
{
|
| 1103 |
+
return float4(1.0f);
|
| 1104 |
+
}
|
| 1105 |
+
|
| 1106 |
+
export float4 vertex_color_from_coordinate(int VertexColorCoordinateIndex)
|
| 1107 |
+
[[
|
| 1108 |
+
anno::description("Vertex Color for float2 PrimVar"),
|
| 1109 |
+
anno::noinline()
|
| 1110 |
+
]]
|
| 1111 |
+
{
|
| 1112 |
+
// Kit only supports 4 uv sets, 2 uvs are available to vertex color. if vertex color index is invalid, output the constant WHITE color intead
|
| 1113 |
+
return (VertexColorCoordinateIndex > 2) ? float4(1.0f) : float4(state::texture_coordinate(VertexColorCoordinateIndex).x, state::texture_coordinate(VertexColorCoordinateIndex).y, state::texture_coordinate(VertexColorCoordinateIndex+1).x, state::texture_coordinate(VertexColorCoordinateIndex+1).y);
|
| 1114 |
+
}
|
| 1115 |
+
|
| 1116 |
+
export float3 camera_position()
|
| 1117 |
+
[[
|
| 1118 |
+
anno::description("Camera Position"),
|
| 1119 |
+
anno::noinline()
|
| 1120 |
+
]]
|
| 1121 |
+
{
|
| 1122 |
+
return float3(1000.0f, 0, 0);
|
| 1123 |
+
}
|
| 1124 |
+
|
| 1125 |
+
export float3 rotate_about_axis(float4 NormalizedRotationAxisAndAngle, float3 PositionOnAxis, float3 Position)
|
| 1126 |
+
[[
|
| 1127 |
+
anno::description("Rotates Position about the given axis by the given angle")
|
| 1128 |
+
]]
|
| 1129 |
+
{
|
| 1130 |
+
// Project Position onto the rotation axis and find the closest point on the axis to Position
|
| 1131 |
+
float3 NormalizedRotationAxis = float3(NormalizedRotationAxisAndAngle.x,NormalizedRotationAxisAndAngle.y,NormalizedRotationAxisAndAngle.z);
|
| 1132 |
+
float3 ClosestPointOnAxis = PositionOnAxis + NormalizedRotationAxis * math::dot(NormalizedRotationAxis, Position - PositionOnAxis);
|
| 1133 |
+
// Construct orthogonal axes in the plane of the rotation
|
| 1134 |
+
float3 UAxis = Position - ClosestPointOnAxis;
|
| 1135 |
+
float3 VAxis = math::cross(NormalizedRotationAxis, UAxis);
|
| 1136 |
+
float[2] SinCosAngle = math::sincos(NormalizedRotationAxisAndAngle.w);
|
| 1137 |
+
// Rotate using the orthogonal axes
|
| 1138 |
+
float3 R = UAxis * SinCosAngle[1] + VAxis * SinCosAngle[0];
|
| 1139 |
+
// Reconstruct the rotated world space position
|
| 1140 |
+
float3 RotatedPosition = ClosestPointOnAxis + R;
|
| 1141 |
+
// Convert from position to a position offset
|
| 1142 |
+
return RotatedPosition - Position;
|
| 1143 |
+
}
|
| 1144 |
+
|
| 1145 |
+
export float2 rotate_scale_offset_texcoords(float2 InTexCoords, float4 InRotationScale, float2 InOffset)
|
| 1146 |
+
[[
|
| 1147 |
+
anno::description("Returns a float2 texture coordinate after 2x2 transform and offset applied")
|
| 1148 |
+
]]
|
| 1149 |
+
{
|
| 1150 |
+
return float2(math::dot(InTexCoords, float2(InRotationScale.x, InRotationScale.y)), math::dot(InTexCoords, float2(InRotationScale.z, InRotationScale.w))) + InOffset;
|
| 1151 |
+
}
|
| 1152 |
+
|
| 1153 |
+
export float3 reflection_custom_world_normal(float3 WorldNormal, bool bNormalizeInputNormal, uniform bool up_z = true)
|
| 1154 |
+
[[
|
| 1155 |
+
anno::description("Reflection vector about the specified world space normal")
|
| 1156 |
+
]]
|
| 1157 |
+
{
|
| 1158 |
+
if (bNormalizeInputNormal)
|
| 1159 |
+
{
|
| 1160 |
+
WorldNormal = math::normalize(WorldNormal);
|
| 1161 |
+
}
|
| 1162 |
+
|
| 1163 |
+
return -camera_vector(up_z) + WorldNormal * math::dot(WorldNormal, camera_vector(up_z)) * 2.0;
|
| 1164 |
+
}
|
| 1165 |
+
|
| 1166 |
+
export float3 reflection_vector(uniform bool up_z = true)
|
| 1167 |
+
[[
|
| 1168 |
+
anno::description("Reflection Vector"),
|
| 1169 |
+
anno::noinline()
|
| 1170 |
+
]]
|
| 1171 |
+
{
|
| 1172 |
+
float3 normal = convert_to_left_hand(state::transform_normal(state::coordinate_internal,state::coordinate_world,state::normal()), up_z, false);
|
| 1173 |
+
return reflection_custom_world_normal(normal, false, up_z);
|
| 1174 |
+
}
|
| 1175 |
+
|
| 1176 |
+
export float dither_temporalAA(float AlphaThreshold = 0.5f, float Random = 1.0f [[anno::unused()]])
|
| 1177 |
+
[[
|
| 1178 |
+
anno::description("Dither TemporalAA"),
|
| 1179 |
+
anno::noinline()
|
| 1180 |
+
]]
|
| 1181 |
+
{
|
| 1182 |
+
return AlphaThreshold;
|
| 1183 |
+
}
|
| 1184 |
+
|
| 1185 |
+
export float3 black_body( float Temp )
|
| 1186 |
+
[[
|
| 1187 |
+
anno::description("Black Body"),
|
| 1188 |
+
anno::noinline()
|
| 1189 |
+
]]
|
| 1190 |
+
{
|
| 1191 |
+
float u = ( 0.860117757f + 1.54118254e-4f * Temp + 1.28641212e-7f * Temp*Temp ) / ( 1.0f + 8.42420235e-4f * Temp + 7.08145163e-7f * Temp*Temp );
|
| 1192 |
+
float v = ( 0.317398726f + 4.22806245e-5f * Temp + 4.20481691e-8f * Temp*Temp ) / ( 1.0f - 2.89741816e-5f * Temp + 1.61456053e-7f * Temp*Temp );
|
| 1193 |
+
|
| 1194 |
+
float x = 3*u / ( 2*u - 8*v + 4 );
|
| 1195 |
+
float y = 2*v / ( 2*u - 8*v + 4 );
|
| 1196 |
+
float z = 1 - x - y;
|
| 1197 |
+
|
| 1198 |
+
float Y = 1;
|
| 1199 |
+
float X = Y/y * x;
|
| 1200 |
+
float Z = Y/y * z;
|
| 1201 |
+
|
| 1202 |
+
float3x3 XYZtoRGB = float3x3(
|
| 1203 |
+
float3(3.2404542, -1.5371385, -0.4985314),
|
| 1204 |
+
float3(-0.9692660, 1.8760108, 0.0415560),
|
| 1205 |
+
float3(0.0556434, -0.2040259, 1.0572252)
|
| 1206 |
+
);
|
| 1207 |
+
|
| 1208 |
+
return XYZtoRGB * float3( X, Y, Z ) * math::pow( 0.0004 * Temp, 4 );
|
| 1209 |
+
}
|
| 1210 |
+
|
| 1211 |
+
export float per_instance_random(uniform texture_2d PerlinNoiseGradientTexture, int NumberInstances)
|
| 1212 |
+
[[
|
| 1213 |
+
anno::description("Per Instance Random"),
|
| 1214 |
+
anno::noinline()
|
| 1215 |
+
]]
|
| 1216 |
+
{
|
| 1217 |
+
float weight = state::object_id() / float(NumberInstances);
|
| 1218 |
+
return NumberInstances == 0 ? 0.0 : tex::lookup_float4(PerlinNoiseGradientTexture, float2(weight, 1.0 - weight), tex::wrap_repeat, tex::wrap_repeat).x;
|
| 1219 |
+
}
|
| 1220 |
+
|
| 1221 |
+
//------------------ Hair from UE4 -----------------------
|
| 1222 |
+
float3 hair_absorption_to_color(float3 A)
|
| 1223 |
+
{
|
| 1224 |
+
const float B = 0.3f;
|
| 1225 |
+
float b2 = B * B;
|
| 1226 |
+
float b3 = B * b2;
|
| 1227 |
+
float b4 = b2 * b2;
|
| 1228 |
+
float b5 = B * b4;
|
| 1229 |
+
float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5);
|
| 1230 |
+
return math::exp(-math::sqrt(A) * D);
|
| 1231 |
+
}
|
| 1232 |
+
|
| 1233 |
+
float3 hair_color_to_absorption(float3 C)
|
| 1234 |
+
{
|
| 1235 |
+
const float B = 0.3f;
|
| 1236 |
+
float b2 = B * B;
|
| 1237 |
+
float b3 = B * b2;
|
| 1238 |
+
float b4 = b2 * b2;
|
| 1239 |
+
float b5 = B * b4;
|
| 1240 |
+
float D = (5.969f - 0.215f * B + 2.532f * b2 - 10.73f * b3 + 5.574f * b4 + 0.245f * b5);
|
| 1241 |
+
return math::pow(math::log(C) / D, 2.0f);
|
| 1242 |
+
}
|
| 1243 |
+
|
| 1244 |
+
export float3 get_hair_color_from_melanin(float InMelanin, float InRedness, float3 InDyeColor)
|
| 1245 |
+
[[
|
| 1246 |
+
anno::description("Hair Color")
|
| 1247 |
+
]]
|
| 1248 |
+
{
|
| 1249 |
+
InMelanin = math::saturate(InMelanin);
|
| 1250 |
+
InRedness = math::saturate(InRedness);
|
| 1251 |
+
float Melanin = -math::log(math::max(1 - InMelanin, 0.0001f));
|
| 1252 |
+
float Eumelanin = Melanin * (1 - InRedness);
|
| 1253 |
+
float Pheomelanin = Melanin * InRedness;
|
| 1254 |
+
|
| 1255 |
+
float3 DyeAbsorption = hair_color_to_absorption(math::saturate(InDyeColor));
|
| 1256 |
+
float3 Absorption = Eumelanin * float3(0.506f, 0.841f, 1.653f) + Pheomelanin * float3(0.343f, 0.733f, 1.924f);
|
| 1257 |
+
|
| 1258 |
+
return hair_absorption_to_color(Absorption + DyeAbsorption);
|
| 1259 |
+
}
|
| 1260 |
+
|
| 1261 |
+
export float3 local_object_bounds_min()
|
| 1262 |
+
[[
|
| 1263 |
+
anno::description("Local Object Bounds Min"),
|
| 1264 |
+
anno::noinline()
|
| 1265 |
+
]]
|
| 1266 |
+
{
|
| 1267 |
+
return float3(0.0);
|
| 1268 |
+
}
|
| 1269 |
+
|
| 1270 |
+
export float3 local_object_bounds_max()
|
| 1271 |
+
[[
|
| 1272 |
+
anno::description("Local Object Bounds Max"),
|
| 1273 |
+
anno::noinline()
|
| 1274 |
+
]]
|
| 1275 |
+
{
|
| 1276 |
+
return float3(100.0);
|
| 1277 |
+
}
|
| 1278 |
+
|
| 1279 |
+
export float3 object_bounds()
|
| 1280 |
+
[[
|
| 1281 |
+
anno::description("Object Bounds"),
|
| 1282 |
+
anno::noinline()
|
| 1283 |
+
]]
|
| 1284 |
+
{
|
| 1285 |
+
return float3(100.0);
|
| 1286 |
+
}
|
| 1287 |
+
|
| 1288 |
+
export float object_radius()
|
| 1289 |
+
[[
|
| 1290 |
+
anno::description("Object Radius"),
|
| 1291 |
+
anno::noinline()
|
| 1292 |
+
]]
|
| 1293 |
+
{
|
| 1294 |
+
return 100.0f;
|
| 1295 |
+
}
|
| 1296 |
+
|
| 1297 |
+
export float3 object_world_position(uniform bool up_z = true)
|
| 1298 |
+
[[
|
| 1299 |
+
anno::description("Object World Position"),
|
| 1300 |
+
anno::noinline()
|
| 1301 |
+
]]
|
| 1302 |
+
{
|
| 1303 |
+
return convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), up_z)*state::meters_per_scene_unit()*100.0;
|
| 1304 |
+
}
|
| 1305 |
+
|
| 1306 |
+
export float3 object_orientation()
|
| 1307 |
+
[[
|
| 1308 |
+
anno::description("Object Orientation"),
|
| 1309 |
+
anno::noinline()
|
| 1310 |
+
]]
|
| 1311 |
+
{
|
| 1312 |
+
return float3(0);
|
| 1313 |
+
}
|
| 1314 |
+
|
| 1315 |
+
export float rcp(float x)
|
| 1316 |
+
[[
|
| 1317 |
+
anno::description("hlsl rcp"),
|
| 1318 |
+
anno::noinline()
|
| 1319 |
+
]]
|
| 1320 |
+
{
|
| 1321 |
+
return 1.0f / x;
|
| 1322 |
+
}
|
| 1323 |
+
|
| 1324 |
+
export float2 rcp(float2 x)
|
| 1325 |
+
[[
|
| 1326 |
+
anno::description("hlsl rcp"),
|
| 1327 |
+
anno::noinline()
|
| 1328 |
+
]]
|
| 1329 |
+
{
|
| 1330 |
+
return 1.0f / x;
|
| 1331 |
+
}
|
| 1332 |
+
|
| 1333 |
+
export float3 rcp(float3 x)
|
| 1334 |
+
[[
|
| 1335 |
+
anno::description("hlsl rcp"),
|
| 1336 |
+
anno::noinline()
|
| 1337 |
+
]]
|
| 1338 |
+
{
|
| 1339 |
+
return 1.0f / x;
|
| 1340 |
+
}
|
| 1341 |
+
|
| 1342 |
+
export float4 rcp(float4 x)
|
| 1343 |
+
[[
|
| 1344 |
+
anno::description("hlsl rcp"),
|
| 1345 |
+
anno::noinline()
|
| 1346 |
+
]]
|
| 1347 |
+
{
|
| 1348 |
+
return 1.0f / x;
|
| 1349 |
+
}
|
| 1350 |
+
|
| 1351 |
+
export int BitFieldExtractI32(int Data, int Size, int Offset)
|
| 1352 |
+
[[
|
| 1353 |
+
anno::description("BitFieldExtractI32 int"),
|
| 1354 |
+
anno::noinline()
|
| 1355 |
+
]]
|
| 1356 |
+
{
|
| 1357 |
+
Size &= 3;
|
| 1358 |
+
Offset &= 3;
|
| 1359 |
+
|
| 1360 |
+
if (Size == 0)
|
| 1361 |
+
return 0;
|
| 1362 |
+
else if (Offset + Size < 32)
|
| 1363 |
+
return (Data << (32 - Size - Offset)) >> (32 - Size);
|
| 1364 |
+
else
|
| 1365 |
+
return Data >> Offset;
|
| 1366 |
+
}
|
| 1367 |
+
|
| 1368 |
+
export int BitFieldExtractI32(float Data, float Size, float Offset)
|
| 1369 |
+
[[
|
| 1370 |
+
anno::description("BitFieldExtractI32 float"),
|
| 1371 |
+
anno::noinline()
|
| 1372 |
+
]]
|
| 1373 |
+
{
|
| 1374 |
+
return BitFieldExtractI32(int(Data), int(Size), int(Offset));
|
| 1375 |
+
}
|
| 1376 |
+
|
| 1377 |
+
export int BitFieldExtractU32(float Data, float Size, float Offset)
|
| 1378 |
+
[[
|
| 1379 |
+
anno::description("BitFieldExtractU32 float"),
|
| 1380 |
+
anno::noinline()
|
| 1381 |
+
]]
|
| 1382 |
+
{
|
| 1383 |
+
return BitFieldExtractI32(Data, Size, Offset);
|
| 1384 |
+
}
|
| 1385 |
+
|
| 1386 |
+
export int BitFieldExtractU32(int Data, int Size, int Offset)
|
| 1387 |
+
[[
|
| 1388 |
+
anno::description("BitFieldExtractU32 int"),
|
| 1389 |
+
anno::noinline()
|
| 1390 |
+
]]
|
| 1391 |
+
{
|
| 1392 |
+
return BitFieldExtractI32(Data, Size, Offset);
|
| 1393 |
+
}
|
| 1394 |
+
|
| 1395 |
+
export float3 EyeAdaptationInverseLookup(float3 LightValue, float Alpha)
|
| 1396 |
+
[[
|
| 1397 |
+
anno::description("EyeAdaptationInverseLookup"),
|
| 1398 |
+
anno::noinline()
|
| 1399 |
+
]]
|
| 1400 |
+
{
|
| 1401 |
+
float Adaptation = 1.0f;
|
| 1402 |
+
|
| 1403 |
+
// When Alpha=0.0, we want to multiply by 1.0. when Alpha = 1.0, we want to multiply by 1/Adaptation.
|
| 1404 |
+
// So the lerped value is:
|
| 1405 |
+
// LerpLogScale = Lerp(log(1),log(1/Adaptaiton),T)
|
| 1406 |
+
// Which is simplified as:
|
| 1407 |
+
// LerpLogScale = Lerp(0,-log(Adaptation),T)
|
| 1408 |
+
// LerpLogScale = -T * logAdaptation;
|
| 1409 |
+
|
| 1410 |
+
float LerpLogScale = -Alpha * math::log(Adaptation);
|
| 1411 |
+
float Scale = math::exp(LerpLogScale);
|
| 1412 |
+
return LightValue * Scale;
|
| 1413 |
+
}
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/OmniUe4Translucent.mdl
ADDED
|
@@ -0,0 +1,233 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 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 |
+
//* 1.0.0 - first version
|
| 30 |
+
//* 1.0.1 - Emissive color affected by opacity
|
| 31 |
+
// - Support opacity mask
|
| 32 |
+
//* 1.0.2 - Unlit translucent
|
| 33 |
+
//* 1.0.3 - specular bsdf instead of microfacet ggx smith bsdf
|
| 34 |
+
//* 1.0.4 - using absolute import paths when importing standard modules
|
| 35 |
+
|
| 36 |
+
mdl 1.3;
|
| 37 |
+
|
| 38 |
+
import ::df::*;
|
| 39 |
+
import ::state::*;
|
| 40 |
+
import ::math::*;
|
| 41 |
+
import ::tex::*;
|
| 42 |
+
import ::anno::*;
|
| 43 |
+
|
| 44 |
+
float emissive_multiplier()
|
| 45 |
+
[[
|
| 46 |
+
anno::description("the multiplier to convert UE4 emissive to raw data"),
|
| 47 |
+
anno::noinline()
|
| 48 |
+
]]
|
| 49 |
+
{
|
| 50 |
+
return 20.0f * 128.0f;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
color get_translucent_tint(color base_color, float opacity)
|
| 54 |
+
[[
|
| 55 |
+
anno::description("base color of UE4 translucent"),
|
| 56 |
+
anno::noinline()
|
| 57 |
+
]]
|
| 58 |
+
{
|
| 59 |
+
return math::lerp(color(1.0), base_color, opacity);
|
| 60 |
+
}
|
| 61 |
+
|
| 62 |
+
// Just for UE4 distilling
|
| 63 |
+
float get_translucent_opacity(float opacity)
|
| 64 |
+
[[
|
| 65 |
+
anno::noinline()
|
| 66 |
+
]]
|
| 67 |
+
{
|
| 68 |
+
return opacity;
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
color get_emissive_intensity(color emissive, float opacity)
|
| 72 |
+
[[
|
| 73 |
+
anno::description("emissive color of UE4 translucent"),
|
| 74 |
+
anno::noinline()
|
| 75 |
+
]]
|
| 76 |
+
{
|
| 77 |
+
return emissive * opacity;
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
float3 tangent_space_normal(
|
| 81 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 82 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 83 |
+
float3 tangent_v = state::texture_tangent_v(0)
|
| 84 |
+
)
|
| 85 |
+
[[
|
| 86 |
+
anno::description("Interprets the vector in tangent space"),
|
| 87 |
+
anno::noinline()
|
| 88 |
+
]]
|
| 89 |
+
{
|
| 90 |
+
return math::normalize(
|
| 91 |
+
tangent_u * normal.x -
|
| 92 |
+
tangent_v * normal.y + /* flip_tangent_v */
|
| 93 |
+
state::normal() * (normal.z));
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
float3 world_space_normal(
|
| 97 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 98 |
+
float3 tangent_u = state::texture_tangent_u(0),
|
| 99 |
+
float3 tangent_v = state::texture_tangent_v(0)
|
| 100 |
+
)
|
| 101 |
+
[[
|
| 102 |
+
anno::description("Interprets the vector in world space"),
|
| 103 |
+
anno::noinline()
|
| 104 |
+
]]
|
| 105 |
+
{
|
| 106 |
+
return tangent_space_normal(
|
| 107 |
+
math::normalize(
|
| 108 |
+
normal.x * float3(tangent_u.x, tangent_v.x, state::normal().x) -
|
| 109 |
+
normal.y * float3(tangent_u.y, tangent_v.y, state::normal().y) +
|
| 110 |
+
normal.z * float3(tangent_u.z, tangent_v.z, state::normal().z)),
|
| 111 |
+
tangent_u,
|
| 112 |
+
tangent_v
|
| 113 |
+
);
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
export material OmniUe4Translucent(
|
| 117 |
+
float3 base_color = float3(0.0, 0.0, 0.0),
|
| 118 |
+
float metallic = 0.0,
|
| 119 |
+
float roughness = 0.5,
|
| 120 |
+
float specular = 0.5,
|
| 121 |
+
float3 normal = float3(0.0,0.0,1.0),
|
| 122 |
+
uniform bool enable_opacity = true,
|
| 123 |
+
float opacity = 1.0,
|
| 124 |
+
float opacity_mask = 1.0,
|
| 125 |
+
float3 emissive_color = float3(0.0, 0.0, 0.0),
|
| 126 |
+
float3 displacement = float3(0.0),
|
| 127 |
+
uniform float refraction = 1.0,
|
| 128 |
+
uniform bool two_sided = false,
|
| 129 |
+
uniform bool is_tangent_space_normal = true,
|
| 130 |
+
uniform bool is_unlit = false
|
| 131 |
+
)
|
| 132 |
+
[[
|
| 133 |
+
anno::display_name("Omni UE4 Translucent"),
|
| 134 |
+
anno::description("Omni UE4 Translucent, supports UE4 Translucent shading model"),
|
| 135 |
+
anno::version( 1, 0, 0),
|
| 136 |
+
anno::author("NVIDIA CORPORATION"),
|
| 137 |
+
anno::key_words(string[]("omni", "UE4", "omniverse", "translucent"))
|
| 138 |
+
]]
|
| 139 |
+
= let {
|
| 140 |
+
color final_base_color = math::saturate(base_color);
|
| 141 |
+
float final_metallic = math::min(math::max(metallic, 0.0f), 0.99f);
|
| 142 |
+
float final_roughness = math::saturate(roughness);
|
| 143 |
+
float final_specular = math::saturate(specular);
|
| 144 |
+
color final_emissive_color = math::max(emissive_color, 0.0f) * emissive_multiplier(); /*factor for converting ue4 emissive to raw value*/
|
| 145 |
+
float final_opacity = math::saturate(opacity);
|
| 146 |
+
float3 final_normal = math::normalize(normal);
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
// - compute final roughness by squaring the "roughness" parameter
|
| 150 |
+
float alpha = final_roughness * final_roughness;
|
| 151 |
+
// reduce the reflectivity at grazing angles to avoid "dark edges" for high roughness due to the layering
|
| 152 |
+
float grazing_refl = math::max((1.0 - final_roughness), 0.0);
|
| 153 |
+
|
| 154 |
+
float3 the_normal = is_unlit ? state::normal() :
|
| 155 |
+
(is_tangent_space_normal ?
|
| 156 |
+
tangent_space_normal(
|
| 157 |
+
normal: final_normal,
|
| 158 |
+
tangent_u: state::texture_tangent_u(0),
|
| 159 |
+
tangent_v: state::texture_tangent_v(0)
|
| 160 |
+
) : world_space_normal(
|
| 161 |
+
normal: final_normal,
|
| 162 |
+
tangent_u: state::texture_tangent_u(0),
|
| 163 |
+
tangent_v: state::texture_tangent_v(0)
|
| 164 |
+
));
|
| 165 |
+
|
| 166 |
+
// for the dielectric component we layer the glossy component on top of the diffuse one,
|
| 167 |
+
// the glossy layer has no color tint
|
| 168 |
+
|
| 169 |
+
bsdf dielectric_component = df::custom_curve_layer(
|
| 170 |
+
weight: final_specular,
|
| 171 |
+
normal_reflectivity: 0.08,
|
| 172 |
+
grazing_reflectivity: grazing_refl,
|
| 173 |
+
layer: df::microfacet_ggx_smith_bsdf(roughness_u: alpha),
|
| 174 |
+
base: df::diffuse_reflection_bsdf(tint: final_base_color));
|
| 175 |
+
|
| 176 |
+
// the metallic component doesn't have a diffuse component, it's only glossy
|
| 177 |
+
// base_color is applied to tint it
|
| 178 |
+
bsdf metallic_component = df::microfacet_ggx_smith_bsdf(tint: final_base_color, roughness_u: alpha);
|
| 179 |
+
|
| 180 |
+
// final BSDF is a linear blend between dielectric and metallic component
|
| 181 |
+
bsdf dielectric_metal_mix =
|
| 182 |
+
df::normalized_mix(
|
| 183 |
+
components:
|
| 184 |
+
df::bsdf_component[](
|
| 185 |
+
df::bsdf_component(
|
| 186 |
+
component: metallic_component,
|
| 187 |
+
weight: final_metallic),
|
| 188 |
+
df::bsdf_component(
|
| 189 |
+
component: dielectric_component,
|
| 190 |
+
weight: 1.0-final_metallic)
|
| 191 |
+
)
|
| 192 |
+
);
|
| 193 |
+
|
| 194 |
+
bsdf frosted_bsdf = df::specular_bsdf(
|
| 195 |
+
tint: color(1),
|
| 196 |
+
mode: df::scatter_reflect_transmit
|
| 197 |
+
);
|
| 198 |
+
|
| 199 |
+
bsdf final_mix_bsdf =
|
| 200 |
+
is_unlit ? df::specular_bsdf(
|
| 201 |
+
tint: get_translucent_tint(base_color: final_base_color, opacity: final_opacity),
|
| 202 |
+
mode: df::scatter_reflect_transmit
|
| 203 |
+
)
|
| 204 |
+
: df::normalized_mix(
|
| 205 |
+
components:
|
| 206 |
+
df::bsdf_component[](
|
| 207 |
+
df::bsdf_component(
|
| 208 |
+
component: dielectric_metal_mix,
|
| 209 |
+
weight: get_translucent_opacity(final_opacity)),
|
| 210 |
+
df::bsdf_component(
|
| 211 |
+
component: frosted_bsdf,
|
| 212 |
+
weight: 1.0-get_translucent_opacity(final_opacity))
|
| 213 |
+
)
|
| 214 |
+
);
|
| 215 |
+
}
|
| 216 |
+
in material(
|
| 217 |
+
thin_walled: two_sided, // Graphene?
|
| 218 |
+
ior: color(refraction), //refraction
|
| 219 |
+
surface: material_surface(
|
| 220 |
+
scattering: final_mix_bsdf,
|
| 221 |
+
emission:
|
| 222 |
+
material_emission (
|
| 223 |
+
emission: df::diffuse_edf (),
|
| 224 |
+
intensity: get_emissive_intensity(emissive: final_emissive_color, opacity: final_opacity)
|
| 225 |
+
)
|
| 226 |
+
),
|
| 227 |
+
|
| 228 |
+
geometry: material_geometry(
|
| 229 |
+
displacement: displacement,
|
| 230 |
+
normal: the_normal,
|
| 231 |
+
cutout_opacity: enable_opacity ? opacity_mask : 1.0
|
| 232 |
+
)
|
| 233 |
+
);
|
assets/basic/arrange_the_tableware/tray/tray_0/Materials/WorldGridMaterial.mdl
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material WorldGridMaterial(
|
| 20 |
+
int MaxTexCoordIndex = 3
|
| 21 |
+
[[
|
| 22 |
+
anno::hidden()
|
| 23 |
+
]])
|
| 24 |
+
=
|
| 25 |
+
let {
|
| 26 |
+
float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0);
|
| 27 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 28 |
+
|
| 29 |
+
float2 Local0 = (CustomizedUV0_mdl / 2.0);
|
| 30 |
+
float2 Local1 = (Local0 / 0.05);
|
| 31 |
+
float4 Local2 = ::unpack_normal_map(tex::lookup_float4(texture_2d("./Textures/T_Default_Material_Grid_N.png",::tex::gamma_linear),float2(Local1.x,1.0-Local1.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 32 |
+
float3 Local3 = (float3(Local2.x,Local2.y,Local2.z) * float3(0.3,0.3,1.0));
|
| 33 |
+
|
| 34 |
+
float3 Normal_mdl = Local3;
|
| 35 |
+
|
| 36 |
+
float2 Local4 = (CustomizedUV0_mdl * 20.0);
|
| 37 |
+
float4 Local5 = tex::lookup_float4(texture_2d("./Textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local4.x,1.0-Local4.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 38 |
+
float Local6 = math::lerp(0.4,1.0,Local5.x);
|
| 39 |
+
float Local7 = (1.0 - Local6);
|
| 40 |
+
float2 Local8 = (Local0 / 0.1);
|
| 41 |
+
float4 Local9 = tex::lookup_float4(texture_2d("./Textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local8.x,1.0-Local8.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 42 |
+
float Local10 = math::lerp(Local9.y,1.0,0.0);
|
| 43 |
+
float Local11 = math::lerp(Local6,Local7,Local10);
|
| 44 |
+
float4 Local12 = tex::lookup_float4(texture_2d("./Textures/T_Default_Material_Grid_M.png",::tex::gamma_linear),float2(Local0.x,1.0-Local0.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 45 |
+
float Local13 = math::lerp(Local9.y,0.0,0.0);
|
| 46 |
+
float Local14 = (Local12.y + Local13);
|
| 47 |
+
float Local15 = math::lerp(Local14,0.5,0.5);
|
| 48 |
+
float Local16 = math::lerp(0.295,0.66,Local15);
|
| 49 |
+
float Local17 = (Local16 * 0.5);
|
| 50 |
+
float Local18 = (Local11 * Local17);
|
| 51 |
+
float Local19 = math::lerp(0.0,0.5,Local12.y);
|
| 52 |
+
float Local20 = math::lerp(0.7,1.0,Local9.y);
|
| 53 |
+
float Local21 = math::lerp(Local20,1.0,0.0);
|
| 54 |
+
float Local22 = (Local21 * 1.0);
|
| 55 |
+
float Local23 = (Local19 + Local22);
|
| 56 |
+
float Local24 = math::min(math::max(Local23,0.0),1.0);
|
| 57 |
+
|
| 58 |
+
float3 EmissiveColor_mdl = float3(0.0,0.0,0.0);
|
| 59 |
+
float OpacityMask_mdl = 1.0;
|
| 60 |
+
float3 BaseColor_mdl = float3(Local18,Local18,Local18);
|
| 61 |
+
float Metallic_mdl = 0.0;
|
| 62 |
+
float Specular_mdl = 0.5;
|
| 63 |
+
float Roughness_mdl = Local24;
|
| 64 |
+
|
| 65 |
+
} in
|
| 66 |
+
::OmniUe4Base(
|
| 67 |
+
base_color: BaseColor_mdl,
|
| 68 |
+
metallic: Metallic_mdl,
|
| 69 |
+
roughness: Roughness_mdl,
|
| 70 |
+
specular: Specular_mdl,
|
| 71 |
+
normal: Normal_mdl,
|
| 72 |
+
opacity: OpacityMask_mdl,
|
| 73 |
+
emissive_color: EmissiveColor_mdl,
|
| 74 |
+
displacement: WorldPositionOffset_mdl,
|
| 75 |
+
two_sided: false);
|
assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.mtl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
|
| 2 |
+
# (assimp v5.0.1937526254)
|
| 3 |
+
|
| 4 |
+
newmtl Texture
|
| 5 |
+
illum 1
|
| 6 |
+
map_Kd ./baked_mesh_3c7af16b_tex0.png
|
| 7 |
+
bump ./baked_mesh_3c7af16b_norm0.png
|
| 8 |
+
map_bump ./baked_mesh_3c7af16b_norm0.png
|
| 9 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/basic/hang_the_cup_on_rack/cup/cup0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 1.000000 1.000000 1.000000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd ./baked_mesh_3c7af16b_tex0.png
|
| 14 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup0/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# cup0
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[1.2899, 1.0085, 0.902]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[147, 145, 105]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/hang_the_cup_on_rack/cup/cup0/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
1.2899,
|
| 9 |
+
1.0085,
|
| 10 |
+
0.902
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/PhysicsMaterial",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
147,
|
| 22 |
+
145,
|
| 23 |
+
105
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.mtl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
|
| 2 |
+
# (assimp v5.0.1937526254)
|
| 3 |
+
|
| 4 |
+
newmtl Texture
|
| 5 |
+
illum 1
|
| 6 |
+
map_Kd ./baked_mesh_5279891f_tex0.png
|
| 7 |
+
bump ./baked_mesh_5279891f_norm0.png
|
| 8 |
+
map_bump ./baked_mesh_5279891f_norm0.png
|
| 9 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/basic/hang_the_cup_on_rack/cup/cup1/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 1.000000 1.000000 1.000000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd ./baked_mesh_5279891f_tex0.png
|
| 14 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup1/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# cup1
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[0.9277, 1.4689, 0.9828]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[228, 215, 161]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/hang_the_cup_on_rack/cup/cup1/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
0.9277,
|
| 9 |
+
1.4689,
|
| 10 |
+
0.9828
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
228,
|
| 22 |
+
215,
|
| 23 |
+
161
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/hang_the_cup_on_rack/cup/cup2/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup2/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# cup2
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[0.7814, 1.2573, 1.3551]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[118, 92, 77]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/hang_the_cup_on_rack/cup/cup2/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
0.7814,
|
| 9 |
+
1.2573,
|
| 10 |
+
1.3551
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 2.0,
|
| 17 |
+
"dynamic": 2.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
118,
|
| 22 |
+
92,
|
| 23 |
+
77
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/hang_the_cup_on_rack/cup/cup2/material.mtl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
newmtl Material
|
| 2 |
+
Kd 0.800 0.800 0.800
|
| 3 |
+
Ke 0.000 0.000 0.000
|
| 4 |
+
Ni 1.500
|
| 5 |
+
d 1.0
|
| 6 |
+
illum 2
|
| 7 |
+
map_Kd texture_pbr_v128.png
|
| 8 |
+
map_Pm texture_pbr_v128_metallic.png
|
| 9 |
+
map_Pr texture_pbr_v128_roughness.png
|
| 10 |
+
map_Bump -bm 1.0 texture_pbr_v128_normal.png
|
assets/basic/hang_the_cup_on_rack/cup/cup3/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 0.800000 0.800000 0.800000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd texture_pbr_v128.png
|
| 14 |
+
|
assets/basic/hang_the_cup_on_rack/cup/cup3/README.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# cup3
|
| 2 |
+
|
| 3 |
+
模型文件:Aligned_obj.usd。默认姿态的 Z 向上包围盒尺寸(毫米):[1.0988, 1.407, 1.0437]。
|
| 4 |
+
|
| 5 |
+
模型显式质量(千克):0.10000000149011612。预览中物体像素的中位 RGB:[216, 214, 219]。摩擦系数按 USD 物理材质记录在 asset.json,空值表示未标注。
|
assets/basic/hang_the_cup_on_rack/cup/cup3/asset.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Aligned_obj.usd",
|
| 3 |
+
"source_models": [
|
| 4 |
+
"Aligned_obj.usd"
|
| 5 |
+
],
|
| 6 |
+
"preview": "preview.png",
|
| 7 |
+
"size_mm_z_up": [
|
| 8 |
+
1.0988,
|
| 9 |
+
1.407,
|
| 10 |
+
1.0437
|
| 11 |
+
],
|
| 12 |
+
"mass_kg": 0.10000000149011612,
|
| 13 |
+
"physics_materials": [
|
| 14 |
+
{
|
| 15 |
+
"material": "/World/Physics_Materials",
|
| 16 |
+
"static": 1.0,
|
| 17 |
+
"dynamic": 1.0
|
| 18 |
+
}
|
| 19 |
+
],
|
| 20 |
+
"appearance_median_srgb": [
|
| 21 |
+
216,
|
| 22 |
+
214,
|
| 23 |
+
219
|
| 24 |
+
],
|
| 25 |
+
"source_up_axis": "Y"
|
| 26 |
+
}
|
assets/basic/hang_the_cup_on_rack/cup/cup3/material.mtl
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
newmtl Material
|
| 2 |
+
Kd 0.800 0.800 0.800
|
| 3 |
+
Ke 0.000 0.000 0.000
|
| 4 |
+
Ni 1.500
|
| 5 |
+
d 1.0
|
| 6 |
+
illum 2
|
| 7 |
+
map_Kd texture_pbr_v128.png
|
| 8 |
+
map_Pm texture_pbr_v128_metallic.png
|
| 9 |
+
map_Pr texture_pbr_v128_roughness.png
|
| 10 |
+
map_Bump -bm 1.0 texture_pbr_v128_normal.png
|
assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.mtl
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# File produced by Open Asset Import Library (http://www.assimp.sf.net)
|
| 2 |
+
# (assimp v5.0.1937526254)
|
| 3 |
+
|
| 4 |
+
newmtl Texture
|
| 5 |
+
illum 1
|
| 6 |
+
map_Kd ./baked_mesh_e12fbfdd_tex0.png
|
| 7 |
+
bump ./baked_mesh_e12fbfdd_norm0.png
|
| 8 |
+
map_bump ./baked_mesh_e12fbfdd_norm0.png
|
| 9 |
+
|
assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.obj
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/basic/hang_the_cup_on_rack/cup_shelf/cup_shelf0/Aligned_obj.obj.mtl
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#
|
| 2 |
+
# Wavefront material file
|
| 3 |
+
# Converted by Meshlab Group
|
| 4 |
+
#
|
| 5 |
+
|
| 6 |
+
newmtl material_0
|
| 7 |
+
Ka 0.200000 0.200000 0.200000
|
| 8 |
+
Kd 1.000000 1.000000 1.000000
|
| 9 |
+
Ks 1.000000 1.000000 1.000000
|
| 10 |
+
Tr 0.000000
|
| 11 |
+
illum 2
|
| 12 |
+
Ns 0.000000
|
| 13 |
+
map_Kd ./baked_mesh_e12fbfdd_tex0.png
|
| 14 |
+
|