Datasets:
Add FlatLab Fabric SimReady assets
Browse files- .gitattributes +22 -0
- Flat-Object-Assets/Fabric/Fabric1/.metadata/com.nvidia.simready.packaging.bom.json +54 -0
- Flat-Object-Assets/Fabric/Fabric1/com.nvidia.simready.packaging.json +19 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/.collect.mapping.json +29 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/Fabric1.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl +490 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric2/.metadata/com.nvidia.simready.packaging.bom.json +54 -0
- Flat-Object-Assets/Fabric/Fabric2/com.nvidia.simready.packaging.json +19 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/Fabric2.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/materials/Floral_Blue_Jacquard_Bru_2871974.mdl +119 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_diff.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_metl.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_norm.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_roug.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric3/.metadata/com.nvidia.simready.packaging.bom.json +54 -0
- Flat-Object-Assets/Fabric/Fabric3/com.nvidia.simready.packaging.json +19 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/.collect.mapping.json +29 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/Fabric3.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl +490 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric4/.metadata/com.nvidia.simready.packaging.bom.json +54 -0
- Flat-Object-Assets/Fabric/Fabric4/com.nvidia.simready.packaging.json +19 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/Fabric4.usd +3 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/materials/Floral_White_Chenille_FibreGuard_2074108.mdl +119 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_diff.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_metl.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_norm.jpg +3 -0
- Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_roug.jpg +3 -0
.gitattributes
CHANGED
|
@@ -82,3 +82,25 @@ Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures
|
|
| 82 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/back.JPG filter=lfs diff=lfs merge=lfs -text
|
| 83 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/front.JPG filter=lfs diff=lfs merge=lfs -text
|
| 84 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/side.bmp filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 82 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/back.JPG filter=lfs diff=lfs merge=lfs -text
|
| 83 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/front.JPG filter=lfs diff=lfs merge=lfs -text
|
| 84 |
Flat-Object-Assets/Disk_Case/Disk_Case4/simready_usd/Disk_Case4/SubUSDs/textures/side.bmp filter=lfs diff=lfs merge=lfs -text
|
| 85 |
+
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1.usd filter=lfs diff=lfs merge=lfs -text
|
| 86 |
+
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/Fabric1.usd filter=lfs diff=lfs merge=lfs -text
|
| 87 |
+
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg filter=lfs diff=lfs merge=lfs -text
|
| 88 |
+
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg filter=lfs diff=lfs merge=lfs -text
|
| 89 |
+
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg filter=lfs diff=lfs merge=lfs -text
|
| 90 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/Fabric2.usd filter=lfs diff=lfs merge=lfs -text
|
| 91 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_diff.jpg filter=lfs diff=lfs merge=lfs -text
|
| 92 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_metl.jpg filter=lfs diff=lfs merge=lfs -text
|
| 93 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_norm.jpg filter=lfs diff=lfs merge=lfs -text
|
| 94 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_roug.jpg filter=lfs diff=lfs merge=lfs -text
|
| 95 |
+
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2.usd filter=lfs diff=lfs merge=lfs -text
|
| 96 |
+
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/Fabric3.usd filter=lfs diff=lfs merge=lfs -text
|
| 97 |
+
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg filter=lfs diff=lfs merge=lfs -text
|
| 98 |
+
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg filter=lfs diff=lfs merge=lfs -text
|
| 99 |
+
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg filter=lfs diff=lfs merge=lfs -text
|
| 100 |
+
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3.usd filter=lfs diff=lfs merge=lfs -text
|
| 101 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/Fabric4.usd filter=lfs diff=lfs merge=lfs -text
|
| 102 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_diff.jpg filter=lfs diff=lfs merge=lfs -text
|
| 103 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_metl.jpg filter=lfs diff=lfs merge=lfs -text
|
| 104 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_norm.jpg filter=lfs diff=lfs merge=lfs -text
|
| 105 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_roug.jpg filter=lfs diff=lfs merge=lfs -text
|
| 106 |
+
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4.usd filter=lfs diff=lfs merge=lfs -text
|
Flat-Object-Assets/Fabric/Fabric1/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/Fabric1.usd",
|
| 6 |
+
"size": 6622084,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "f0302b8c37e9558d6728b90eec4809c0c70e4390770369de9c87a1baad782bed"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"relative_path": "simready_usd/Fabric1_1/.collect.mapping.json",
|
| 13 |
+
"size": 1958,
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "baabb1110d3ce6b111cd8c057e21c7a2e9cb92c2a1c5320d4d5cc48d1696931c"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"relative_path": "simready_usd/Fabric1_1/Fabric1.usd",
|
| 20 |
+
"size": 6621927,
|
| 21 |
+
"hash": {
|
| 22 |
+
"sha256": "f13122ad481b7187a9a66108c38ad35294feb42cbc15a65d01f503a4195ab83d"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"relative_path": "simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 27 |
+
"size": 23823,
|
| 28 |
+
"hash": {
|
| 29 |
+
"sha256": "cfe980cfa96a8e8e35477b16a5322f4322b82f64f0518054397252c199639263"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"relative_path": "simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 34 |
+
"size": 2420790,
|
| 35 |
+
"hash": {
|
| 36 |
+
"sha256": "c1c1c25ed2a7d32f22d76a4a09a5419fffe773a014c8c0b103783d5b99bf5369"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"relative_path": "simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 41 |
+
"size": 4294058,
|
| 42 |
+
"hash": {
|
| 43 |
+
"sha256": "31b49acfc7220d52abdeb98a25c55adab48f0291c414991e5d87b4d6d248e494"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"relative_path": "simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 48 |
+
"size": 6686555,
|
| 49 |
+
"hash": {
|
| 50 |
+
"sha256": "13f929e0b96cb96566e485e19b290ffebf319234b6c19cc42d382742c5289f57"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
}
|
Flat-Object-Assets/Fabric/Fabric1/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.Hwsss.FlatLab-Asset.Fabric1.2026.10.23_00",
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "539aad1a06da07ce8c586532fbaf0e9cc2eb0c480a83393e9418969258000b77"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"content_hash": {
|
| 14 |
+
"sha256": "9c052a9713ba9a61a28414ebc3b8dc331f501da6f29713f8707851e227920771"
|
| 15 |
+
},
|
| 16 |
+
"package_hash": {
|
| 17 |
+
"sha256": "b18b6adc6a3696dcc46dcc27554682d4ece0b3597a75355a1d9c91891e93c471"
|
| 18 |
+
}
|
| 19 |
+
}
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f0302b8c37e9558d6728b90eec4809c0c70e4390770369de9c87a1baad782bed
|
| 3 |
+
size 6622084
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/.collect.mapping.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 6 |
+
"source_hash": "0e84bbfa381441928db28117de30a38f80087a4e",
|
| 7 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 8 |
+
"target_hash": "9378c8f554e718922bddb3a85c7c39d3188b9e60"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 12 |
+
"source_hash": "87298dab1646f722751396a575747b461e236bc7",
|
| 13 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 14 |
+
"target_hash": "181dd4faae36f01a7634f91eede3613eb05768ba"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 18 |
+
"source_hash": "0d4b3592379440afaafdfa235eb9c78fc1b9ee9d",
|
| 19 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 20 |
+
"target_hash": "dad914489ebd1d5de722772298f0c1f9cff9cfab"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 24 |
+
"source_hash": "1c01831b380857ad04ca6a7105d763d2605b435f",
|
| 25 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 26 |
+
"target_hash": "45f44417f43fb896bf2a1a517d4a57120e9489f1"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/Fabric1.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f13122ad481b7187a9a66108c38ad35294feb42cbc15a65d01f503a4195ab83d
|
| 3 |
+
size 6621927
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.4;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
const string COPYRIGHT =
|
| 49 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 50 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 51 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 52 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 53 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 54 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 55 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 56 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 57 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 58 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 59 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 60 |
+
|
| 61 |
+
const string DESCRIPTION = "A floor carpet material with long hair fibers.";
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
float remap(float input, float low, float high)
|
| 66 |
+
{
|
| 67 |
+
//return low + input * (high - low);
|
| 68 |
+
return ::math::lerp(low, high, input);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
float remap(float input, float low_1, float high_1, float low_2, float high_2)
|
| 72 |
+
{
|
| 73 |
+
return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
float histogram_pos_range(float input, float range, float position)
|
| 78 |
+
{
|
| 79 |
+
float range_half = range/2.0;
|
| 80 |
+
float subtract_low = (position + range_half) > 1.0 ? (position + range/2.0) - 1.0 : 0.0;
|
| 81 |
+
float low = position - range_half - subtract_low;
|
| 82 |
+
|
| 83 |
+
float add_high = (position - range_half) < 0.0 ? ::math::abs(position - range_half) : 0.0;
|
| 84 |
+
float high = position + range_half + add_high;
|
| 85 |
+
return remap(input, low, high);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
::base::texture_coordinate_info vmat_transform(
|
| 89 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 90 |
+
uniform float rotation = 0.0,
|
| 91 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 92 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 93 |
+
uniform int uv_space = 0
|
| 94 |
+
)
|
| 95 |
+
{
|
| 96 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 97 |
+
|
| 98 |
+
float4x4 scale =
|
| 99 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 100 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 101 |
+
0. , 0. , 1.0, 0.,
|
| 102 |
+
translation.x , translation.y , 0.0, 1.);
|
| 103 |
+
|
| 104 |
+
float s = ::math::sin(rotation_rad);
|
| 105 |
+
float c = ::math::cos(rotation_rad);
|
| 106 |
+
float4x4 rotate =
|
| 107 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 108 |
+
s , c , 0.0 , 0.0,
|
| 109 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 110 |
+
0. , 0.0 , 0.0 , 1.);
|
| 111 |
+
|
| 112 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
float3 srgb2rgb(float3 val)
|
| 117 |
+
{
|
| 118 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
float uint2float(int x)
|
| 122 |
+
{
|
| 123 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
int lowbias32(int x)
|
| 127 |
+
{
|
| 128 |
+
x ^= x >>> 16;
|
| 129 |
+
x *= 0x7feb352d;
|
| 130 |
+
x ^= x >>> 15;
|
| 131 |
+
x *= 0x846ca68b;
|
| 132 |
+
x ^= x >>> 16;
|
| 133 |
+
return x;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
float2 rnd22(int2 p) {
|
| 137 |
+
float2 ret_val = float2(
|
| 138 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 139 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 140 |
+
);
|
| 141 |
+
return ret_val;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
float2x2 invert_2x2(float2x2 M)
|
| 146 |
+
{
|
| 147 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 148 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 149 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
float3 nonrepeat_lookup(
|
| 153 |
+
uniform texture_2d texture = texture_2d(),
|
| 154 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 155 |
+
float texture_scale = 1.0,
|
| 156 |
+
float3 average_color = float3(0.5),
|
| 157 |
+
float patch_size = 8.0
|
| 158 |
+
)
|
| 159 |
+
{
|
| 160 |
+
|
| 161 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 162 |
+
float Z = patch_size; // patch scale inside example texture
|
| 163 |
+
float CON = 1.0f;
|
| 164 |
+
|
| 165 |
+
float3 O = float3(0.f);
|
| 166 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 167 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 168 |
+
|
| 169 |
+
float2 U = uv_in;
|
| 170 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 171 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 172 |
+
|
| 173 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 174 |
+
// average color work out, take the float value and calculate the apropriate
|
| 175 |
+
// mean value as (value^(1/2.2))
|
| 176 |
+
|
| 177 |
+
float3 m = average_color;
|
| 178 |
+
|
| 179 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 180 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 181 |
+
|
| 182 |
+
if( F[2] > 0.f )
|
| 183 |
+
|
| 184 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 185 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 186 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 187 |
+
else
|
| 188 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 189 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 190 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 191 |
+
O = m + O/::math::length(W);
|
| 192 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 193 |
+
|
| 194 |
+
return float3(O);
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
color endless_texture(
|
| 198 |
+
uniform texture_2d texture = texture_2d(),
|
| 199 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 200 |
+
float texture_scale = 10.0,
|
| 201 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 202 |
+
float patch_size = 8.0,
|
| 203 |
+
bool gamma_correct_lookup = true
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 207 |
+
nonrepeat_lookup (
|
| 208 |
+
texture: texture,
|
| 209 |
+
uvw: uvw,
|
| 210 |
+
texture_scale: texture_scale,
|
| 211 |
+
average_color: average_color,
|
| 212 |
+
patch_size: patch_size
|
| 213 |
+
))
|
| 214 |
+
) : color(nonrepeat_lookup (
|
| 215 |
+
texture: texture,
|
| 216 |
+
uvw: uvw,
|
| 217 |
+
texture_scale: texture_scale,
|
| 218 |
+
average_color: average_color,
|
| 219 |
+
patch_size: patch_size
|
| 220 |
+
));
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
float3 endless_normal(
|
| 224 |
+
uniform texture_2d texture = texture_2d(),
|
| 225 |
+
float factor = 1.0,
|
| 226 |
+
bool flip_tangent_u = false,
|
| 227 |
+
bool flip_tangent_v = false,
|
| 228 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 229 |
+
float texture_scale = 1.0,
|
| 230 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 231 |
+
float patch_size = 8.0
|
| 232 |
+
)
|
| 233 |
+
{
|
| 234 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 235 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 236 |
+
|
| 237 |
+
if (flip_tangent_u)
|
| 238 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 239 |
+
if (flip_tangent_v)
|
| 240 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 241 |
+
|
| 242 |
+
// normalized Lookup
|
| 243 |
+
float3 tangent_space_normal =
|
| 244 |
+
(nonrepeat_lookup (
|
| 245 |
+
texture: texture,
|
| 246 |
+
uvw: uvw,
|
| 247 |
+
texture_scale: texture_scale,
|
| 248 |
+
average_color: average_color,
|
| 249 |
+
patch_size: patch_size
|
| 250 |
+
) - 0.5) * (2.0 * factor);
|
| 251 |
+
|
| 252 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 253 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 254 |
+
::state::normal()*1.0);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
float3 normalmap_normal(
|
| 258 |
+
uniform texture_2d texture,
|
| 259 |
+
float factor = 1.0,
|
| 260 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 261 |
+
)
|
| 262 |
+
{
|
| 263 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 264 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
export material Fabric_Carpet_Long_Floor(
|
| 269 |
+
uniform bool infinite_tiling = true [[
|
| 270 |
+
::anno::description("Enables the infinite tiling feature which removes artifacts of repeating texture patterns."),
|
| 271 |
+
::anno::display_name("Infinite Tiling"),
|
| 272 |
+
::anno::in_group("Appearance")
|
| 273 |
+
]],
|
| 274 |
+
color carpet_color = color(1.f, 1.f, 1.f) [[
|
| 275 |
+
::anno::description("Adjusts the overall color of the carpet."),
|
| 276 |
+
::anno::display_name("Carpet Color"),
|
| 277 |
+
::anno::in_group("Appearance")
|
| 278 |
+
]],
|
| 279 |
+
float ao_amount = 0.5f [[
|
| 280 |
+
::anno::description("Produces a more contrasted appearance while also darkening the overall appearance."),
|
| 281 |
+
::anno::display_name("Carpet Contrast"),
|
| 282 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 283 |
+
::anno::in_group("Appearance")
|
| 284 |
+
]],
|
| 285 |
+
float carpet_bump_factor = 1.f [[
|
| 286 |
+
::anno::description("Adjusts the bump factor of the material."),
|
| 287 |
+
::anno::display_name("Carpet Bump Factor"),
|
| 288 |
+
::anno::soft_range(0.0, 1.0),
|
| 289 |
+
::anno::in_group("Appearance")
|
| 290 |
+
]],
|
| 291 |
+
uniform float2 texture_translate = float2(0.f) [[
|
| 292 |
+
::anno::display_name("Translate"),
|
| 293 |
+
::anno::description("Offsets the position of the material."),
|
| 294 |
+
::anno::in_group("Transform")
|
| 295 |
+
]],
|
| 296 |
+
uniform float texture_rotate = 0.f [[
|
| 297 |
+
::anno::description("Rotates the material."),
|
| 298 |
+
::anno::display_name("Rotate"),
|
| 299 |
+
::anno::in_group("Transform")
|
| 300 |
+
]],
|
| 301 |
+
uniform float2 texture_scale = float2(1.0f) [[
|
| 302 |
+
::anno::description("Scales the material."),
|
| 303 |
+
::anno::display_name("Scale"),
|
| 304 |
+
::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
|
| 305 |
+
::anno::in_group("Transform")
|
| 306 |
+
]],
|
| 307 |
+
uniform int uv_space_index = 0 [[
|
| 308 |
+
::anno::description("Use selected UV space for material."),
|
| 309 |
+
::anno::display_name("UV Space Index"),
|
| 310 |
+
::anno::in_group("Advanced")
|
| 311 |
+
]])
|
| 312 |
+
[[
|
| 313 |
+
::anno::author("NVIDIA vMaterials"),
|
| 314 |
+
::anno::display_name("Long Floor Carpet - Natural"),
|
| 315 |
+
::anno::description(DESCRIPTION),
|
| 316 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 317 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor.png"),
|
| 318 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "natural", "neutral"))
|
| 319 |
+
]]
|
| 320 |
+
=
|
| 321 |
+
let {
|
| 322 |
+
bool tmp0 = false;
|
| 323 |
+
|
| 324 |
+
float2 corrected_scale = 0.33 * texture_scale;
|
| 325 |
+
|
| 326 |
+
material_surface tmp1(
|
| 327 |
+
::df::custom_curve_layer(0.0780000016f, 0.606000006f, 5.f, ::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, 0.653000057f, 0.f, 1.f), 0.f, 1.f), 2.20000005f), ::df::microfacet_ggx_smith_bsdf(histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f), histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(carpet_color, infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.596000016f, 0.549000025f, 0.493999988f), 8.f, true) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, ::base::color_layer_multiply, 1.f).tint, color(::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, 0.736000061f, ::math::lerp(1.f, 0.349999994f, ao_amount), 1.f), 0.f, 1.f), 2.20000005f)), ::base::color_layer_multiply, 1.f).tint, 0.f, ""), ::state::normal()),
|
| 328 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 329 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 330 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 331 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 332 |
+
material_geometry tmp5(
|
| 333 |
+
float3(0.f),
|
| 334 |
+
1.f,
|
| 335 |
+
infinite_tiling ? endless_normal(texture_2d("./textures/long_floor_carpet_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/long_floor_carpet_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 0.699999988f, carpet_bump_factor), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index)));
|
| 336 |
+
} in
|
| 337 |
+
material(
|
| 338 |
+
thin_walled: tmp0,
|
| 339 |
+
surface: tmp1,
|
| 340 |
+
backface: tmp2,
|
| 341 |
+
ior: tmp3,
|
| 342 |
+
volume: tmp4,
|
| 343 |
+
geometry: tmp5);
|
| 344 |
+
|
| 345 |
+
export material Fabric_Carpet_Long_Floor_Blue(*)
|
| 346 |
+
[[
|
| 347 |
+
::anno::author("NVIDIA vMaterials"),
|
| 348 |
+
::anno::display_name("Long Floor Carpet - Blue"),
|
| 349 |
+
::anno::description(DESCRIPTION),
|
| 350 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 351 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Blue.png"),
|
| 352 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "blue", "cool"))
|
| 353 |
+
]]
|
| 354 |
+
= Fabric_Carpet_Long_Floor(
|
| 355 |
+
infinite_tiling: true,
|
| 356 |
+
carpet_color: color(0.160444f, 0.547994f, .9f),
|
| 357 |
+
ao_amount: 0.8f,
|
| 358 |
+
carpet_bump_factor: 1.0f,
|
| 359 |
+
texture_translate: float2(0.0f),
|
| 360 |
+
texture_rotate: 0.0f,
|
| 361 |
+
texture_scale: float2(1.0),
|
| 362 |
+
uv_space_index: 0
|
| 363 |
+
);
|
| 364 |
+
|
| 365 |
+
export material Fabric_Carpet_Long_Floor_Rose(*)
|
| 366 |
+
[[
|
| 367 |
+
::anno::author("NVIDIA vMaterials"),
|
| 368 |
+
::anno::display_name("Long Floor Carpet - Rose"),
|
| 369 |
+
::anno::description(DESCRIPTION),
|
| 370 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 371 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Rose.png"),
|
| 372 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "rose", "warm"))
|
| 373 |
+
]]
|
| 374 |
+
= Fabric_Carpet_Long_Floor(
|
| 375 |
+
infinite_tiling: true,
|
| 376 |
+
carpet_color: color(0.744530f, 0.378676f, 0.715465f),
|
| 377 |
+
ao_amount: 0.8f,
|
| 378 |
+
carpet_bump_factor: 1.0f,
|
| 379 |
+
texture_translate: float2(0.0f),
|
| 380 |
+
texture_rotate: 0.0f,
|
| 381 |
+
texture_scale: float2(1.0),
|
| 382 |
+
uv_space_index: 0
|
| 383 |
+
);
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
export material Fabric_Carpet_Long_Floor_Light_Green(*)
|
| 387 |
+
[[
|
| 388 |
+
::anno::author("NVIDIA vMaterials"),
|
| 389 |
+
::anno::display_name("Long Floor Carpet - Light Green"),
|
| 390 |
+
::anno::description(DESCRIPTION),
|
| 391 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 392 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Light_Green.png"),
|
| 393 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green", "light"))
|
| 394 |
+
]]
|
| 395 |
+
= Fabric_Carpet_Long_Floor(
|
| 396 |
+
infinite_tiling: true,
|
| 397 |
+
carpet_color: color(0.505432f, 0.827726f, 0.133209f),
|
| 398 |
+
ao_amount: 0.8f,
|
| 399 |
+
carpet_bump_factor: 1.0f,
|
| 400 |
+
texture_translate: float2(0.0f),
|
| 401 |
+
texture_rotate: 0.0f,
|
| 402 |
+
texture_scale: float2(1.0f),
|
| 403 |
+
uv_space_index: 0
|
| 404 |
+
);
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
export material Fabric_Carpet_Long_Floor_Yellow(*)
|
| 408 |
+
[[
|
| 409 |
+
::anno::author("NVIDIA vMaterials"),
|
| 410 |
+
::anno::display_name("Long Floor Carpet - Yellow"),
|
| 411 |
+
::anno::description(DESCRIPTION),
|
| 412 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 413 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Yellow.png"),
|
| 414 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "yellow", "warm"))
|
| 415 |
+
]]
|
| 416 |
+
= Fabric_Carpet_Long_Floor(
|
| 417 |
+
infinite_tiling: true,
|
| 418 |
+
carpet_color: color(0.907547f, 0.907547f, 0.180144f),
|
| 419 |
+
ao_amount: 0.8f,
|
| 420 |
+
carpet_bump_factor: 1.0f,
|
| 421 |
+
texture_translate: float2(0.0f),
|
| 422 |
+
texture_rotate: 0.0f,
|
| 423 |
+
texture_scale: float2(1.0f),
|
| 424 |
+
uv_space_index: 0
|
| 425 |
+
);
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
export material Fabric_Carpet_Long_Floor_Orange(*)
|
| 429 |
+
[[
|
| 430 |
+
::anno::author("NVIDIA vMaterials"),
|
| 431 |
+
::anno::display_name("Long Floor Carpet - Orange"),
|
| 432 |
+
::anno::description(DESCRIPTION),
|
| 433 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 434 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Orange.png"),
|
| 435 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "orange", "warm"))
|
| 436 |
+
]]
|
| 437 |
+
= Fabric_Carpet_Long_Floor(
|
| 438 |
+
infinite_tiling: true,
|
| 439 |
+
carpet_color: color(0.907547f, 0.293216f, 0.084642f),
|
| 440 |
+
ao_amount: 0.8f,
|
| 441 |
+
carpet_bump_factor: 1.0f,
|
| 442 |
+
texture_translate: float2(0.0f),
|
| 443 |
+
texture_rotate: 0.0f,
|
| 444 |
+
texture_scale: float2(1.0f),
|
| 445 |
+
uv_space_index: 0
|
| 446 |
+
);
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
export material Fabric_Carpet_Long_Floor_Green(*)
|
| 450 |
+
[[
|
| 451 |
+
::anno::author("NVIDIA vMaterials"),
|
| 452 |
+
::anno::display_name("Long Floor Carpet - Green"),
|
| 453 |
+
::anno::description(DESCRIPTION),
|
| 454 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 455 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Green.png"),
|
| 456 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green"))
|
| 457 |
+
]]
|
| 458 |
+
= Fabric_Carpet_Long_Floor(
|
| 459 |
+
infinite_tiling: true,
|
| 460 |
+
carpet_color: color(0.267358f, 0.464741f, 0.051122f),
|
| 461 |
+
ao_amount: 0.8f,
|
| 462 |
+
carpet_bump_factor: 1.0f,
|
| 463 |
+
texture_translate: float2(0.0f),
|
| 464 |
+
texture_rotate: 0.0f,
|
| 465 |
+
texture_scale: float2(1.0f),
|
| 466 |
+
uv_space_index: 0
|
| 467 |
+
);
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
export material Fabric_Carpet_Long_Floor_Bordeaux(*)
|
| 471 |
+
[[
|
| 472 |
+
::anno::author("NVIDIA vMaterials"),
|
| 473 |
+
::anno::display_name("Long Floor Carpet - Bordeaux"),
|
| 474 |
+
::anno::description(DESCRIPTION),
|
| 475 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 476 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Bordeaux.png"),
|
| 477 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "bordeaux", "red", "warm"))
|
| 478 |
+
]]
|
| 479 |
+
= Fabric_Carpet_Long_Floor(
|
| 480 |
+
infinite_tiling: true,
|
| 481 |
+
carpet_color: color(0.618686f, 0.017936f, 0.141980f),
|
| 482 |
+
ao_amount: 0.8f,
|
| 483 |
+
carpet_bump_factor: 1.0f,
|
| 484 |
+
texture_translate: float2(0.0f),
|
| 485 |
+
texture_rotate: 0.0f,
|
| 486 |
+
texture_scale: float2(1.0f),
|
| 487 |
+
uv_space_index: 0
|
| 488 |
+
);
|
| 489 |
+
|
| 490 |
+
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric1/simready_usd/Fabric1_1/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric2/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/Fabric2/Fabric2.usd",
|
| 6 |
+
"size": 6620988,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "35c01906ce67949d5c8dc251ca318cb74baa55bd43234967fea84be95cf39ec2"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"relative_path": "simready_usd/Fabric2/SubUSDs/materials/Floral_Blue_Jacquard_Bru_2871974.mdl",
|
| 13 |
+
"size": 7043,
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "48dded492116d84c2386bce9f9ea0f923fa3264e0d2bdf7ab1075284d9339188"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"relative_path": "simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_diff.jpg",
|
| 20 |
+
"size": 2552504,
|
| 21 |
+
"hash": {
|
| 22 |
+
"sha256": "8d6a259777aec392b1c62aabdae4497c058899aabcc1c28792d88731ff17489d"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"relative_path": "simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_metl.jpg",
|
| 27 |
+
"size": 4599337,
|
| 28 |
+
"hash": {
|
| 29 |
+
"sha256": "e7ad1d24162ba19b70deb75827226b28675c616fda00d98669a3d5c361b4301e"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"relative_path": "simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_norm.jpg",
|
| 34 |
+
"size": 2698533,
|
| 35 |
+
"hash": {
|
| 36 |
+
"sha256": "1de13dc69478483418870be07da7035b5c1a6cda1b93c60fce6abe1b26853f96"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"relative_path": "simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_roug.jpg",
|
| 41 |
+
"size": 384221,
|
| 42 |
+
"hash": {
|
| 43 |
+
"sha256": "96a5de8f262220d19f1d1497ae6dc967ea714070c41d6546bcf624a60a7ca307"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"relative_path": "simready_usd/Fabric2.usd",
|
| 48 |
+
"size": 6621164,
|
| 49 |
+
"hash": {
|
| 50 |
+
"sha256": "1fe6027669c64513628f13f1c3c18eb3314efed6e3731ec9705626ba81179748"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
}
|
Flat-Object-Assets/Fabric/Fabric2/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.Hwsss.FlatLab-Asset.Fabric2.2026.10.23_00",
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "988ada7e40ea8cfff5832a7dca1f6b3df259b42c4af17d88b1d412633d965ebe"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"content_hash": {
|
| 14 |
+
"sha256": "7e86cc195729aacccbaf1e96e0f281ee6d988122efcd7a10a29d631d733304c9"
|
| 15 |
+
},
|
| 16 |
+
"package_hash": {
|
| 17 |
+
"sha256": "b3256afaf793d8643017675ccffbec63c72a9249f4b21b0b779605207fd52fa4"
|
| 18 |
+
}
|
| 19 |
+
}
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1fe6027669c64513628f13f1c3c18eb3314efed6e3731ec9705626ba81179748
|
| 3 |
+
size 6621164
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/Fabric2.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:35c01906ce67949d5c8dc251ca318cb74baa55bd43234967fea84be95cf39ec2
|
| 3 |
+
size 6620988
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/materials/Floral_Blue_Jacquard_Bru_2871974.mdl
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.5;
|
| 2 |
+
|
| 3 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 4 |
+
import ::nvidia::core_definitions::dimension;
|
| 5 |
+
import ::anno::author;
|
| 6 |
+
import ::anno::copyright_notice;
|
| 7 |
+
import ::anno::description;
|
| 8 |
+
import ::anno::display_name;
|
| 9 |
+
import ::anno::hard_range;
|
| 10 |
+
import ::anno::in_group;
|
| 11 |
+
import ::anno::unused;
|
| 12 |
+
import ::anno::usage;
|
| 13 |
+
import ::anno::thumbnail;
|
| 14 |
+
import ::anno::key_words;
|
| 15 |
+
import ::base::anisotropy_conversion;
|
| 16 |
+
import ::base::anisotropy_return;
|
| 17 |
+
import ::base::coordinate_projection;
|
| 18 |
+
import ::base::file_texture;
|
| 19 |
+
import ::base::tangent_space_normal_texture;
|
| 20 |
+
import ::base::mono_mode;
|
| 21 |
+
import ::base::projection_mode;
|
| 22 |
+
import ::base::texture_coordinate_info;
|
| 23 |
+
import ::base::texture_coordinate_system;
|
| 24 |
+
import ::base::texture_return;
|
| 25 |
+
import ::base::transform_coordinate;
|
| 26 |
+
import ::base::coordinate_source;
|
| 27 |
+
import ::base::texture_return;
|
| 28 |
+
import ::df::custom_curve_layer;
|
| 29 |
+
import ::df::diffuse_reflection_bsdf;
|
| 30 |
+
import ::df::directional_factor;
|
| 31 |
+
import ::df::microfacet_ggx_smith_bsdf;
|
| 32 |
+
import ::df::scatter_mode;
|
| 33 |
+
import ::df::weighted_layer;
|
| 34 |
+
import ::math::cos;
|
| 35 |
+
import ::math::sin;
|
| 36 |
+
import ::nvidia::core_definitions::file_texture;
|
| 37 |
+
import ::nvidia::core_definitions::normalmap_texture;
|
| 38 |
+
import ::state::normal;
|
| 39 |
+
import ::state::texture_tangent_u;
|
| 40 |
+
import ::state::texture_tangent_v;
|
| 41 |
+
import ::tex::gamma_mode;
|
| 42 |
+
import ::tex::wrap_mode;
|
| 43 |
+
|
| 44 |
+
const string COPYRIGHT =
|
| 45 |
+
" Copyright 2017, 2021 Bru Textiles. All rights reserved.\n";
|
| 46 |
+
|
| 47 |
+
const string DESCRIPTION =
|
| 48 |
+
"Brand Bru\n"
|
| 49 |
+
"Collection Name Davinci\n"
|
| 50 |
+
"Name Floral_Blue_Jacquard_Bru_2871974\n"
|
| 51 |
+
"Reference 2871974\n"
|
| 52 |
+
"URL info https://distributor.twinbru.com/bl?utm_term=2871974&utm_source=omniverse&utm_campaign=twinbru\n"
|
| 53 |
+
"End Use Drapery\n"
|
| 54 |
+
"Texture Height cm 47.50\n"
|
| 55 |
+
"Texture Width cm 23.50\n"
|
| 56 |
+
"Total Composition 57% Polyester, 43% Cotton\n"
|
| 57 |
+
"Selvedge Useable Width cm 142.00\n"
|
| 58 |
+
"Weight g/m2 249.00\n"
|
| 59 |
+
"Vertical Repeat cm 47.30\n"
|
| 60 |
+
"Horizontal Repeat cm 24.00\n"
|
| 61 |
+
"Wear Resistance 10000 (martindale), 5000 (wyzenbeek)\n"
|
| 62 |
+
"Certifications OEKO-TEX, ISO 14001, NFPA 260, CAL 117\n"
|
| 63 |
+
"Design Type Floral\n"
|
| 64 |
+
"Colour Blue, Natural\n"
|
| 65 |
+
"Characteristics Jacquard\n";
|
| 66 |
+
|
| 67 |
+
export material Floral_Blue_Jacquard_Bru_2871974(
|
| 68 |
+
//--texture_transformation
|
| 69 |
+
uniform float2 UV_Scale = float2(1.f) [[anno::description("Scales the material"), anno::display_name("UV_Scale"), ::nvidia::core_definitions::dimension(float2(0.28, 0.28)), anno::in_group("UV_Transform")]],
|
| 70 |
+
uniform float2 UV_Offset = float2(0.f) [[anno::description(""), anno::display_name("UV_Offset"), anno::in_group("UV_Transform")]],
|
| 71 |
+
uniform float UV_rotation = 0.f [[anno::description(" UV_rotation"), anno::display_name(" UV_rotation"), anno::in_group("UV_Transform")]],
|
| 72 |
+
uniform int UV_channel = 0 [[anno::description("if texture_coordinate_uvw, index into the appropriate one"), anno::display_name("UV_channel"), anno::in_group("UV_Transform"), anno::hard_range(0, 255)]],
|
| 73 |
+
//--textures_source
|
| 74 |
+
uniform texture_2d diffuse_texture = texture_2d("../textures/Floral_Blue_Jacquard_Bru_2871974/2871974_diff.jpg", ::tex::gamma_srgb) [[anno::in_group("Diffuse"), anno::display_name("Diffuse")]],
|
| 75 |
+
uniform texture_2d roughness_texture = texture_2d("../textures/Floral_Blue_Jacquard_Bru_2871974/2871974_roug.jpg", ::tex::gamma_linear) [[anno::in_group("Roughness"), anno::display_name("Roughness")]],
|
| 76 |
+
uniform texture_2d metallic_texture = texture_2d("../textures/Floral_Blue_Jacquard_Bru_2871974/2871974_metl.jpg", ::tex::gamma_linear) [[anno::in_group("Metallic"), anno::display_name("Metallic")]],
|
| 77 |
+
uniform texture_2d normal_texture = texture_2d("../textures/Floral_Blue_Jacquard_Bru_2871974/2871974_norm.jpg", ::tex::gamma_linear) [[anno::in_group("Normal"), anno::display_name("Normal")]])
|
| 78 |
+
[[
|
| 79 |
+
::anno::author("Bru Textiles"),
|
| 80 |
+
::anno::display_name("Floral_Blue_Jacquard_Bru_2871974"),
|
| 81 |
+
::anno::description(DESCRIPTION),
|
| 82 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 83 |
+
::anno::thumbnail("./.thumbs/Floral_Blue_Jacquard_Bru_2871974.mdl.png"),
|
| 84 |
+
::anno::key_words(string[]("fabric", "Bru", "Drapery", "Floral", "Blue, Natural", "Jacquard"))
|
| 85 |
+
]]
|
| 86 |
+
=
|
| 87 |
+
let {
|
| 88 |
+
bool tmp0 = false;
|
| 89 |
+
float specular_level = 0.5f;
|
| 90 |
+
//--UV coordinats
|
| 91 |
+
float UVrot = (UV_rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 92 |
+
float s = math::sin(UVrot);
|
| 93 |
+
float c = math::cos(UVrot);
|
| 94 |
+
float4x4 rotate = float4x4(c, -s, 0.0, 0.0, s, c, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.);
|
| 95 |
+
float4x4 tile = float4x4((1 / UV_Scale.x), 0.0, 0.0, 0.0, 0.0, (1 / UV_Scale.y), 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, UV_Offset.x, UV_Offset.y, 0.0, 1.);
|
| 96 |
+
float4x4 UVTransform = float4x4(float4(1.f, -0.f, 0.f, 0.f), float4(0.f, 1.f, 0.f, 0.f), float4(0.f), float4(0.f));
|
| 97 |
+
::base::texture_coordinate_info UVCoordSorce = base::coordinate_source(base::texture_coordinate_uvw, UV_channel);
|
| 98 |
+
::base::texture_coordinate_info UVCoord = base::transform_coordinate(tile*rotate, UVCoordSorce);
|
| 99 |
+
//--textures
|
| 100 |
+
float3 normal = base::tangent_space_normal_texture(normal_texture, 1.0, false, false, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f);
|
| 101 |
+
float roughness = base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).mono;
|
| 102 |
+
color basecolor = base::file_texture(diffuse_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).tint;
|
| 103 |
+
float metallic = base::file_texture(metallic_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).mono;
|
| 104 |
+
//--surface
|
| 105 |
+
material_surface tmp1(df::weighted_layer(metallic, df::directional_factor(basecolor, color(1.f, 1.f, 1.f), 3.f, df::microfacet_ggx_smith_bsdf(roughness * roughness, roughness * roughness, color(1.f, 1.f, 1.f), state::texture_tangent_u(0), df::scatter_reflect, "")), df::custom_curve_layer(specular_level * 0.0799999982f, 1.f, 5.f, 1.f, df::microfacet_ggx_smith_bsdf(roughness * roughness, roughness * roughness, color(1.f, 1.f, 1.f), state::texture_tangent_u(0), df::scatter_reflect, ""), df::diffuse_reflection_bsdf(basecolor, 0.f, ""), state::normal()), state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 106 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 107 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 108 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 109 |
+
material_geometry tmp5(float3(0.f), 1.f, normal);
|
| 110 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 111 |
+
} in
|
| 112 |
+
material(
|
| 113 |
+
thin_walled: tmp0,
|
| 114 |
+
surface: tmp1,
|
| 115 |
+
backface: tmp2,
|
| 116 |
+
ior: tmp3,
|
| 117 |
+
volume: tmp4,
|
| 118 |
+
geometry: tmp5,
|
| 119 |
+
hair: tmp6);
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_diff.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_metl.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_norm.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric2/simready_usd/Fabric2/SubUSDs/textures/Floral_Blue_Jacquard_Bru_2871974/2871974_roug.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric3/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/Fabric3/.collect.mapping.json",
|
| 6 |
+
"size": 1958,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "9c85c0682f311e6d2b2996c561f1713adcbd640ff825c3a5799d5d0c31758de9"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"relative_path": "simready_usd/Fabric3/Fabric3.usd",
|
| 13 |
+
"size": 6620490,
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "67fe18d6dd466194f2cfd13ebf049f2ec7a6f9594935a8081dafcdeb885b3bb8"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"relative_path": "simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 20 |
+
"size": 23823,
|
| 21 |
+
"hash": {
|
| 22 |
+
"sha256": "cfe980cfa96a8e8e35477b16a5322f4322b82f64f0518054397252c199639263"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"relative_path": "simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 27 |
+
"size": 2420790,
|
| 28 |
+
"hash": {
|
| 29 |
+
"sha256": "c1c1c25ed2a7d32f22d76a4a09a5419fffe773a014c8c0b103783d5b99bf5369"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"relative_path": "simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 34 |
+
"size": 4294058,
|
| 35 |
+
"hash": {
|
| 36 |
+
"sha256": "31b49acfc7220d52abdeb98a25c55adab48f0291c414991e5d87b4d6d248e494"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"relative_path": "simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 41 |
+
"size": 6686555,
|
| 42 |
+
"hash": {
|
| 43 |
+
"sha256": "13f929e0b96cb96566e485e19b290ffebf319234b6c19cc42d382742c5289f57"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"relative_path": "simready_usd/Fabric3.usd",
|
| 48 |
+
"size": 6620654,
|
| 49 |
+
"hash": {
|
| 50 |
+
"sha256": "decd1808ef9fb6ec5cee83dc7605e7d61ab6d9784d4513406dbd0637f568260e"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
}
|
Flat-Object-Assets/Fabric/Fabric3/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.Hwsss.FlatLab-Asset.Fabric3.2026.10.23_00",
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "cf0d9801db38f455e0e6bd665a3b962a4900715519e3e09634a50b9a9d601911"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"content_hash": {
|
| 14 |
+
"sha256": "ca646e8a048e28deb1cc25a2d71ec04971a1f281c2ad82df99715fd192cd1b3d"
|
| 15 |
+
},
|
| 16 |
+
"package_hash": {
|
| 17 |
+
"sha256": "ec880d1bcd6d2c47c0194a59815781edb4c2e5b8101a236d6f83b93f47ada1c7"
|
| 18 |
+
}
|
| 19 |
+
}
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:decd1808ef9fb6ec5cee83dc7605e7d61ab6d9784d4513406dbd0637f568260e
|
| 3 |
+
size 6620654
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/.collect.mapping.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 6 |
+
"source_hash": "0e84bbfa381441928db28117de30a38f80087a4e",
|
| 7 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl",
|
| 8 |
+
"target_hash": "43f82b637c261e47edbbd849efa1edbe66b1d6b4"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 12 |
+
"source_hash": "87298dab1646f722751396a575747b461e236bc7",
|
| 13 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg",
|
| 14 |
+
"target_hash": "6f4f99898f14031346f7bc34c73edebe17080a0a"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 18 |
+
"source_hash": "0d4b3592379440afaafdfa235eb9c78fc1b9ee9d",
|
| 19 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg",
|
| 20 |
+
"target_hash": "fc8868a77ea2c38ffc5e9e0ae03e99f6135213eb"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "http://omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 24 |
+
"source_hash": "1c01831b380857ad04ca6a7105d763d2605b435f",
|
| 25 |
+
"target_url": "./omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg",
|
| 26 |
+
"target_hash": "1bf7224a681c00bf9e492c052da44befc8ad90ca"
|
| 27 |
+
}
|
| 28 |
+
]
|
| 29 |
+
}
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/Fabric3.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:67fe18d6dd466194f2cfd13ebf049f2ec7a6f9594935a8081dafcdeb885b3bb8
|
| 3 |
+
size 6620490
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/Fabric_Carpet_Long_Floor.mdl
ADDED
|
@@ -0,0 +1,490 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.4;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
const string COPYRIGHT =
|
| 49 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 50 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 51 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 52 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 53 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 54 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 55 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 56 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 57 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 58 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 59 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 60 |
+
|
| 61 |
+
const string DESCRIPTION = "A floor carpet material with long hair fibers.";
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
float remap(float input, float low, float high)
|
| 66 |
+
{
|
| 67 |
+
//return low + input * (high - low);
|
| 68 |
+
return ::math::lerp(low, high, input);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
float remap(float input, float low_1, float high_1, float low_2, float high_2)
|
| 72 |
+
{
|
| 73 |
+
return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
float histogram_pos_range(float input, float range, float position)
|
| 78 |
+
{
|
| 79 |
+
float range_half = range/2.0;
|
| 80 |
+
float subtract_low = (position + range_half) > 1.0 ? (position + range/2.0) - 1.0 : 0.0;
|
| 81 |
+
float low = position - range_half - subtract_low;
|
| 82 |
+
|
| 83 |
+
float add_high = (position - range_half) < 0.0 ? ::math::abs(position - range_half) : 0.0;
|
| 84 |
+
float high = position + range_half + add_high;
|
| 85 |
+
return remap(input, low, high);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
::base::texture_coordinate_info vmat_transform(
|
| 89 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 90 |
+
uniform float rotation = 0.0,
|
| 91 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 92 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 93 |
+
uniform int uv_space = 0
|
| 94 |
+
)
|
| 95 |
+
{
|
| 96 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 97 |
+
|
| 98 |
+
float4x4 scale =
|
| 99 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 100 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 101 |
+
0. , 0. , 1.0, 0.,
|
| 102 |
+
translation.x , translation.y , 0.0, 1.);
|
| 103 |
+
|
| 104 |
+
float s = ::math::sin(rotation_rad);
|
| 105 |
+
float c = ::math::cos(rotation_rad);
|
| 106 |
+
float4x4 rotate =
|
| 107 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 108 |
+
s , c , 0.0 , 0.0,
|
| 109 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 110 |
+
0. , 0.0 , 0.0 , 1.);
|
| 111 |
+
|
| 112 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
float3 srgb2rgb(float3 val)
|
| 117 |
+
{
|
| 118 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
float uint2float(int x)
|
| 122 |
+
{
|
| 123 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
int lowbias32(int x)
|
| 127 |
+
{
|
| 128 |
+
x ^= x >>> 16;
|
| 129 |
+
x *= 0x7feb352d;
|
| 130 |
+
x ^= x >>> 15;
|
| 131 |
+
x *= 0x846ca68b;
|
| 132 |
+
x ^= x >>> 16;
|
| 133 |
+
return x;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
float2 rnd22(int2 p) {
|
| 137 |
+
float2 ret_val = float2(
|
| 138 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 139 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 140 |
+
);
|
| 141 |
+
return ret_val;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
float2x2 invert_2x2(float2x2 M)
|
| 146 |
+
{
|
| 147 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 148 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 149 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
float3 nonrepeat_lookup(
|
| 153 |
+
uniform texture_2d texture = texture_2d(),
|
| 154 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 155 |
+
float texture_scale = 1.0,
|
| 156 |
+
float3 average_color = float3(0.5),
|
| 157 |
+
float patch_size = 8.0
|
| 158 |
+
)
|
| 159 |
+
{
|
| 160 |
+
|
| 161 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 162 |
+
float Z = patch_size; // patch scale inside example texture
|
| 163 |
+
float CON = 1.0f;
|
| 164 |
+
|
| 165 |
+
float3 O = float3(0.f);
|
| 166 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 167 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 168 |
+
|
| 169 |
+
float2 U = uv_in;
|
| 170 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 171 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 172 |
+
|
| 173 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 174 |
+
// average color work out, take the float value and calculate the apropriate
|
| 175 |
+
// mean value as (value^(1/2.2))
|
| 176 |
+
|
| 177 |
+
float3 m = average_color;
|
| 178 |
+
|
| 179 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 180 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 181 |
+
|
| 182 |
+
if( F[2] > 0.f )
|
| 183 |
+
|
| 184 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 185 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 186 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 187 |
+
else
|
| 188 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 189 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 190 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 191 |
+
O = m + O/::math::length(W);
|
| 192 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 193 |
+
|
| 194 |
+
return float3(O);
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
color endless_texture(
|
| 198 |
+
uniform texture_2d texture = texture_2d(),
|
| 199 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 200 |
+
float texture_scale = 10.0,
|
| 201 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 202 |
+
float patch_size = 8.0,
|
| 203 |
+
bool gamma_correct_lookup = true
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 207 |
+
nonrepeat_lookup (
|
| 208 |
+
texture: texture,
|
| 209 |
+
uvw: uvw,
|
| 210 |
+
texture_scale: texture_scale,
|
| 211 |
+
average_color: average_color,
|
| 212 |
+
patch_size: patch_size
|
| 213 |
+
))
|
| 214 |
+
) : color(nonrepeat_lookup (
|
| 215 |
+
texture: texture,
|
| 216 |
+
uvw: uvw,
|
| 217 |
+
texture_scale: texture_scale,
|
| 218 |
+
average_color: average_color,
|
| 219 |
+
patch_size: patch_size
|
| 220 |
+
));
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
float3 endless_normal(
|
| 224 |
+
uniform texture_2d texture = texture_2d(),
|
| 225 |
+
float factor = 1.0,
|
| 226 |
+
bool flip_tangent_u = false,
|
| 227 |
+
bool flip_tangent_v = false,
|
| 228 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 229 |
+
float texture_scale = 1.0,
|
| 230 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 231 |
+
float patch_size = 8.0
|
| 232 |
+
)
|
| 233 |
+
{
|
| 234 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 235 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 236 |
+
|
| 237 |
+
if (flip_tangent_u)
|
| 238 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 239 |
+
if (flip_tangent_v)
|
| 240 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 241 |
+
|
| 242 |
+
// normalized Lookup
|
| 243 |
+
float3 tangent_space_normal =
|
| 244 |
+
(nonrepeat_lookup (
|
| 245 |
+
texture: texture,
|
| 246 |
+
uvw: uvw,
|
| 247 |
+
texture_scale: texture_scale,
|
| 248 |
+
average_color: average_color,
|
| 249 |
+
patch_size: patch_size
|
| 250 |
+
) - 0.5) * (2.0 * factor);
|
| 251 |
+
|
| 252 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 253 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 254 |
+
::state::normal()*1.0);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
float3 normalmap_normal(
|
| 258 |
+
uniform texture_2d texture,
|
| 259 |
+
float factor = 1.0,
|
| 260 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 261 |
+
)
|
| 262 |
+
{
|
| 263 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 264 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
export material Fabric_Carpet_Long_Floor(
|
| 269 |
+
uniform bool infinite_tiling = true [[
|
| 270 |
+
::anno::description("Enables the infinite tiling feature which removes artifacts of repeating texture patterns."),
|
| 271 |
+
::anno::display_name("Infinite Tiling"),
|
| 272 |
+
::anno::in_group("Appearance")
|
| 273 |
+
]],
|
| 274 |
+
color carpet_color = color(1.f, 1.f, 1.f) [[
|
| 275 |
+
::anno::description("Adjusts the overall color of the carpet."),
|
| 276 |
+
::anno::display_name("Carpet Color"),
|
| 277 |
+
::anno::in_group("Appearance")
|
| 278 |
+
]],
|
| 279 |
+
float ao_amount = 0.5f [[
|
| 280 |
+
::anno::description("Produces a more contrasted appearance while also darkening the overall appearance."),
|
| 281 |
+
::anno::display_name("Carpet Contrast"),
|
| 282 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 283 |
+
::anno::in_group("Appearance")
|
| 284 |
+
]],
|
| 285 |
+
float carpet_bump_factor = 1.f [[
|
| 286 |
+
::anno::description("Adjusts the bump factor of the material."),
|
| 287 |
+
::anno::display_name("Carpet Bump Factor"),
|
| 288 |
+
::anno::soft_range(0.0, 1.0),
|
| 289 |
+
::anno::in_group("Appearance")
|
| 290 |
+
]],
|
| 291 |
+
uniform float2 texture_translate = float2(0.f) [[
|
| 292 |
+
::anno::display_name("Translate"),
|
| 293 |
+
::anno::description("Offsets the position of the material."),
|
| 294 |
+
::anno::in_group("Transform")
|
| 295 |
+
]],
|
| 296 |
+
uniform float texture_rotate = 0.f [[
|
| 297 |
+
::anno::description("Rotates the material."),
|
| 298 |
+
::anno::display_name("Rotate"),
|
| 299 |
+
::anno::in_group("Transform")
|
| 300 |
+
]],
|
| 301 |
+
uniform float2 texture_scale = float2(1.0f) [[
|
| 302 |
+
::anno::description("Scales the material."),
|
| 303 |
+
::anno::display_name("Scale"),
|
| 304 |
+
::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
|
| 305 |
+
::anno::in_group("Transform")
|
| 306 |
+
]],
|
| 307 |
+
uniform int uv_space_index = 0 [[
|
| 308 |
+
::anno::description("Use selected UV space for material."),
|
| 309 |
+
::anno::display_name("UV Space Index"),
|
| 310 |
+
::anno::in_group("Advanced")
|
| 311 |
+
]])
|
| 312 |
+
[[
|
| 313 |
+
::anno::author("NVIDIA vMaterials"),
|
| 314 |
+
::anno::display_name("Long Floor Carpet - Natural"),
|
| 315 |
+
::anno::description(DESCRIPTION),
|
| 316 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 317 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor.png"),
|
| 318 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "natural", "neutral"))
|
| 319 |
+
]]
|
| 320 |
+
=
|
| 321 |
+
let {
|
| 322 |
+
bool tmp0 = false;
|
| 323 |
+
|
| 324 |
+
float2 corrected_scale = 0.33 * texture_scale;
|
| 325 |
+
|
| 326 |
+
material_surface tmp1(
|
| 327 |
+
::df::custom_curve_layer(0.0780000016f, 0.606000006f, 5.f, ::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, 0.653000057f, 0.f, 1.f), 0.f, 1.f), 2.20000005f), ::df::microfacet_ggx_smith_bsdf(histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f), histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.830000043f, 0.745000064f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(carpet_color, infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.596000016f, 0.549000025f, 0.493999988f), 8.f, true) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, ::base::color_layer_multiply, 1.f).tint, color(::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./textures/long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, 0.736000061f, ::math::lerp(1.f, 0.349999994f, ao_amount), 1.f), 0.f, 1.f), 2.20000005f)), ::base::color_layer_multiply, 1.f).tint, 0.f, ""), ::state::normal()),
|
| 328 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 329 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 330 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 331 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 332 |
+
material_geometry tmp5(
|
| 333 |
+
float3(0.f),
|
| 334 |
+
1.f,
|
| 335 |
+
infinite_tiling ? endless_normal(texture_2d("./textures/long_floor_carpet_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/long_floor_carpet_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 0.699999988f, carpet_bump_factor), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index)));
|
| 336 |
+
} in
|
| 337 |
+
material(
|
| 338 |
+
thin_walled: tmp0,
|
| 339 |
+
surface: tmp1,
|
| 340 |
+
backface: tmp2,
|
| 341 |
+
ior: tmp3,
|
| 342 |
+
volume: tmp4,
|
| 343 |
+
geometry: tmp5);
|
| 344 |
+
|
| 345 |
+
export material Fabric_Carpet_Long_Floor_Blue(*)
|
| 346 |
+
[[
|
| 347 |
+
::anno::author("NVIDIA vMaterials"),
|
| 348 |
+
::anno::display_name("Long Floor Carpet - Blue"),
|
| 349 |
+
::anno::description(DESCRIPTION),
|
| 350 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 351 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Blue.png"),
|
| 352 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "blue", "cool"))
|
| 353 |
+
]]
|
| 354 |
+
= Fabric_Carpet_Long_Floor(
|
| 355 |
+
infinite_tiling: true,
|
| 356 |
+
carpet_color: color(0.160444f, 0.547994f, .9f),
|
| 357 |
+
ao_amount: 0.8f,
|
| 358 |
+
carpet_bump_factor: 1.0f,
|
| 359 |
+
texture_translate: float2(0.0f),
|
| 360 |
+
texture_rotate: 0.0f,
|
| 361 |
+
texture_scale: float2(1.0),
|
| 362 |
+
uv_space_index: 0
|
| 363 |
+
);
|
| 364 |
+
|
| 365 |
+
export material Fabric_Carpet_Long_Floor_Rose(*)
|
| 366 |
+
[[
|
| 367 |
+
::anno::author("NVIDIA vMaterials"),
|
| 368 |
+
::anno::display_name("Long Floor Carpet - Rose"),
|
| 369 |
+
::anno::description(DESCRIPTION),
|
| 370 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 371 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Rose.png"),
|
| 372 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "rose", "warm"))
|
| 373 |
+
]]
|
| 374 |
+
= Fabric_Carpet_Long_Floor(
|
| 375 |
+
infinite_tiling: true,
|
| 376 |
+
carpet_color: color(0.744530f, 0.378676f, 0.715465f),
|
| 377 |
+
ao_amount: 0.8f,
|
| 378 |
+
carpet_bump_factor: 1.0f,
|
| 379 |
+
texture_translate: float2(0.0f),
|
| 380 |
+
texture_rotate: 0.0f,
|
| 381 |
+
texture_scale: float2(1.0),
|
| 382 |
+
uv_space_index: 0
|
| 383 |
+
);
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
export material Fabric_Carpet_Long_Floor_Light_Green(*)
|
| 387 |
+
[[
|
| 388 |
+
::anno::author("NVIDIA vMaterials"),
|
| 389 |
+
::anno::display_name("Long Floor Carpet - Light Green"),
|
| 390 |
+
::anno::description(DESCRIPTION),
|
| 391 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 392 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Light_Green.png"),
|
| 393 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green", "light"))
|
| 394 |
+
]]
|
| 395 |
+
= Fabric_Carpet_Long_Floor(
|
| 396 |
+
infinite_tiling: true,
|
| 397 |
+
carpet_color: color(0.505432f, 0.827726f, 0.133209f),
|
| 398 |
+
ao_amount: 0.8f,
|
| 399 |
+
carpet_bump_factor: 1.0f,
|
| 400 |
+
texture_translate: float2(0.0f),
|
| 401 |
+
texture_rotate: 0.0f,
|
| 402 |
+
texture_scale: float2(1.0f),
|
| 403 |
+
uv_space_index: 0
|
| 404 |
+
);
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
export material Fabric_Carpet_Long_Floor_Yellow(*)
|
| 408 |
+
[[
|
| 409 |
+
::anno::author("NVIDIA vMaterials"),
|
| 410 |
+
::anno::display_name("Long Floor Carpet - Yellow"),
|
| 411 |
+
::anno::description(DESCRIPTION),
|
| 412 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 413 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Yellow.png"),
|
| 414 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "yellow", "warm"))
|
| 415 |
+
]]
|
| 416 |
+
= Fabric_Carpet_Long_Floor(
|
| 417 |
+
infinite_tiling: true,
|
| 418 |
+
carpet_color: color(0.907547f, 0.907547f, 0.180144f),
|
| 419 |
+
ao_amount: 0.8f,
|
| 420 |
+
carpet_bump_factor: 1.0f,
|
| 421 |
+
texture_translate: float2(0.0f),
|
| 422 |
+
texture_rotate: 0.0f,
|
| 423 |
+
texture_scale: float2(1.0f),
|
| 424 |
+
uv_space_index: 0
|
| 425 |
+
);
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
export material Fabric_Carpet_Long_Floor_Orange(*)
|
| 429 |
+
[[
|
| 430 |
+
::anno::author("NVIDIA vMaterials"),
|
| 431 |
+
::anno::display_name("Long Floor Carpet - Orange"),
|
| 432 |
+
::anno::description(DESCRIPTION),
|
| 433 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 434 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Orange.png"),
|
| 435 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "orange", "warm"))
|
| 436 |
+
]]
|
| 437 |
+
= Fabric_Carpet_Long_Floor(
|
| 438 |
+
infinite_tiling: true,
|
| 439 |
+
carpet_color: color(0.907547f, 0.293216f, 0.084642f),
|
| 440 |
+
ao_amount: 0.8f,
|
| 441 |
+
carpet_bump_factor: 1.0f,
|
| 442 |
+
texture_translate: float2(0.0f),
|
| 443 |
+
texture_rotate: 0.0f,
|
| 444 |
+
texture_scale: float2(1.0f),
|
| 445 |
+
uv_space_index: 0
|
| 446 |
+
);
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
export material Fabric_Carpet_Long_Floor_Green(*)
|
| 450 |
+
[[
|
| 451 |
+
::anno::author("NVIDIA vMaterials"),
|
| 452 |
+
::anno::display_name("Long Floor Carpet - Green"),
|
| 453 |
+
::anno::description(DESCRIPTION),
|
| 454 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 455 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Green.png"),
|
| 456 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green"))
|
| 457 |
+
]]
|
| 458 |
+
= Fabric_Carpet_Long_Floor(
|
| 459 |
+
infinite_tiling: true,
|
| 460 |
+
carpet_color: color(0.267358f, 0.464741f, 0.051122f),
|
| 461 |
+
ao_amount: 0.8f,
|
| 462 |
+
carpet_bump_factor: 1.0f,
|
| 463 |
+
texture_translate: float2(0.0f),
|
| 464 |
+
texture_rotate: 0.0f,
|
| 465 |
+
texture_scale: float2(1.0f),
|
| 466 |
+
uv_space_index: 0
|
| 467 |
+
);
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
export material Fabric_Carpet_Long_Floor_Bordeaux(*)
|
| 471 |
+
[[
|
| 472 |
+
::anno::author("NVIDIA vMaterials"),
|
| 473 |
+
::anno::display_name("Long Floor Carpet - Bordeaux"),
|
| 474 |
+
::anno::description(DESCRIPTION),
|
| 475 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 476 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Bordeaux.png"),
|
| 477 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "bordeaux", "red", "warm"))
|
| 478 |
+
]]
|
| 479 |
+
= Fabric_Carpet_Long_Floor(
|
| 480 |
+
infinite_tiling: true,
|
| 481 |
+
carpet_color: color(0.618686f, 0.017936f, 0.141980f),
|
| 482 |
+
ao_amount: 0.8f,
|
| 483 |
+
carpet_bump_factor: 1.0f,
|
| 484 |
+
texture_translate: float2(0.0f),
|
| 485 |
+
texture_rotate: 0.0f,
|
| 486 |
+
texture_scale: float2(1.0f),
|
| 487 |
+
uv_space_index: 0
|
| 488 |
+
);
|
| 489 |
+
|
| 490 |
+
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_diff.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_multi_R_rough_G_ao.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric3/simready_usd/Fabric3/omniverse-content-production.s3.us-west-2.amazonaws.com/Materials/vMaterials_2/Carpet/textures/long_floor_carpet_norm.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric4/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/Fabric4/Fabric4.usd",
|
| 6 |
+
"size": 6622141,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "da5241cbbde0b89769dc1d87b74a29e8491f825c270dbb4a353e9d5b857f585b"
|
| 9 |
+
}
|
| 10 |
+
},
|
| 11 |
+
{
|
| 12 |
+
"relative_path": "simready_usd/Fabric4/SubUSDs/materials/Floral_White_Chenille_FibreGuard_2074108.mdl",
|
| 13 |
+
"size": 7185,
|
| 14 |
+
"hash": {
|
| 15 |
+
"sha256": "17a4b4c21019e3f53616773d7b81a2c816274658671d29b2b0ae883d2a30a6c1"
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"relative_path": "simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_diff.jpg",
|
| 20 |
+
"size": 1692408,
|
| 21 |
+
"hash": {
|
| 22 |
+
"sha256": "5138eb4b8734f54a3a28fbaebcce89d8acc0ec7820297fab3198358e444a748a"
|
| 23 |
+
}
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"relative_path": "simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_metl.jpg",
|
| 27 |
+
"size": 460740,
|
| 28 |
+
"hash": {
|
| 29 |
+
"sha256": "c156b7f21808a93446d2a49678a1a2911adf8ebb489d48b5df687ca78a85d4d5"
|
| 30 |
+
}
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"relative_path": "simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_norm.jpg",
|
| 34 |
+
"size": 4020551,
|
| 35 |
+
"hash": {
|
| 36 |
+
"sha256": "b0ef7df933b1315cbcd8308cb602492e6e58f38e814d8384a86d46fde6e5332d"
|
| 37 |
+
}
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"relative_path": "simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_roug.jpg",
|
| 41 |
+
"size": 2129219,
|
| 42 |
+
"hash": {
|
| 43 |
+
"sha256": "c434c710e44c70c2fada3d4f2595b3a552c9983e44818af99058eb5b789a0bc4"
|
| 44 |
+
}
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"relative_path": "simready_usd/Fabric4.usd",
|
| 48 |
+
"size": 6622297,
|
| 49 |
+
"hash": {
|
| 50 |
+
"sha256": "2de9c111f3cd68784e9f281edf7d613ceeeef031b7f0a0acaae13c57b6b79104"
|
| 51 |
+
}
|
| 52 |
+
}
|
| 53 |
+
]
|
| 54 |
+
}
|
Flat-Object-Assets/Fabric/Fabric4/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.Hwsss.FlatLab-Asset.Fabric4.2026.10.23_00",
|
| 4 |
+
"license": "cc-by-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "e3ced8dcfa280886e3060bcfee8e972bfdfe4fe9370dcd131a8614e6090ac43a"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"content_hash": {
|
| 14 |
+
"sha256": "15cfa87b2c558b0ec305eefe77141ce58573189bd00b1f827c2d8317c132e738"
|
| 15 |
+
},
|
| 16 |
+
"package_hash": {
|
| 17 |
+
"sha256": "c7e5c289a8a0828fd0d352c2afa3ad49468ffc1511fa6d02fdf15b61fdacd049"
|
| 18 |
+
}
|
| 19 |
+
}
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2de9c111f3cd68784e9f281edf7d613ceeeef031b7f0a0acaae13c57b6b79104
|
| 3 |
+
size 6622297
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/Fabric4.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:da5241cbbde0b89769dc1d87b74a29e8491f825c270dbb4a353e9d5b857f585b
|
| 3 |
+
size 6622141
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/materials/Floral_White_Chenille_FibreGuard_2074108.mdl
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.5;
|
| 2 |
+
|
| 3 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 4 |
+
import ::nvidia::core_definitions::dimension;
|
| 5 |
+
import ::anno::author;
|
| 6 |
+
import ::anno::copyright_notice;
|
| 7 |
+
import ::anno::description;
|
| 8 |
+
import ::anno::display_name;
|
| 9 |
+
import ::anno::hard_range;
|
| 10 |
+
import ::anno::in_group;
|
| 11 |
+
import ::anno::unused;
|
| 12 |
+
import ::anno::usage;
|
| 13 |
+
import ::anno::thumbnail;
|
| 14 |
+
import ::anno::key_words;
|
| 15 |
+
import ::base::anisotropy_conversion;
|
| 16 |
+
import ::base::anisotropy_return;
|
| 17 |
+
import ::base::coordinate_projection;
|
| 18 |
+
import ::base::file_texture;
|
| 19 |
+
import ::base::tangent_space_normal_texture;
|
| 20 |
+
import ::base::mono_mode;
|
| 21 |
+
import ::base::projection_mode;
|
| 22 |
+
import ::base::texture_coordinate_info;
|
| 23 |
+
import ::base::texture_coordinate_system;
|
| 24 |
+
import ::base::texture_return;
|
| 25 |
+
import ::base::transform_coordinate;
|
| 26 |
+
import ::base::coordinate_source;
|
| 27 |
+
import ::base::texture_return;
|
| 28 |
+
import ::df::custom_curve_layer;
|
| 29 |
+
import ::df::diffuse_reflection_bsdf;
|
| 30 |
+
import ::df::directional_factor;
|
| 31 |
+
import ::df::microfacet_ggx_smith_bsdf;
|
| 32 |
+
import ::df::scatter_mode;
|
| 33 |
+
import ::df::weighted_layer;
|
| 34 |
+
import ::math::cos;
|
| 35 |
+
import ::math::sin;
|
| 36 |
+
import ::nvidia::core_definitions::file_texture;
|
| 37 |
+
import ::nvidia::core_definitions::normalmap_texture;
|
| 38 |
+
import ::state::normal;
|
| 39 |
+
import ::state::texture_tangent_u;
|
| 40 |
+
import ::state::texture_tangent_v;
|
| 41 |
+
import ::tex::gamma_mode;
|
| 42 |
+
import ::tex::wrap_mode;
|
| 43 |
+
|
| 44 |
+
const string COPYRIGHT =
|
| 45 |
+
" Copyright 2017, 2021 Bru Textiles. All rights reserved.\n";
|
| 46 |
+
|
| 47 |
+
const string DESCRIPTION =
|
| 48 |
+
"Brand FibreGuard\n"
|
| 49 |
+
"Collection Name Protégé\n"
|
| 50 |
+
"Name Floral_White_Chenille_FibreGuard_2074108\n"
|
| 51 |
+
"Reference 2074108\n"
|
| 52 |
+
"URL info https://distributor.twinbru.com/bl?utm_term=2074108&utm_source=omniverse&utm_campaign=fibreguard\n"
|
| 53 |
+
"End Use Drapery, Upholstery\n"
|
| 54 |
+
"Texture Height cm 34.69\n"
|
| 55 |
+
"Texture Width cm 34.95\n"
|
| 56 |
+
"Total Composition 85% Polyester, 15% Cotton\n"
|
| 57 |
+
"Selvedge Useable Width cm 140.00\n"
|
| 58 |
+
"Weight g/m2 472.00\n"
|
| 59 |
+
"Vertical Repeat cm 34.00\n"
|
| 60 |
+
"Horizontal Repeat cm 35.00\n"
|
| 61 |
+
"Wear Resistance 80000 (martindale), 150000 (wyzenbeek)\n"
|
| 62 |
+
"Certifications OEKO-TEX, ISO 14001, NFPA 260, BS5852 source 1 (with FR coating), CAL 117\n"
|
| 63 |
+
"Design Type Floral\n"
|
| 64 |
+
"Colour White / Ecru\n"
|
| 65 |
+
"Characteristics Chenille\n";
|
| 66 |
+
|
| 67 |
+
export material Floral_White_Chenille_FibreGuard_2074108(
|
| 68 |
+
//--texture_transformation
|
| 69 |
+
uniform float2 UV_Scale = float2(1.f) [[anno::description("Scales the material"), anno::display_name("UV_Scale"), ::nvidia::core_definitions::dimension(float2(0.28, 0.28)), anno::in_group("UV_Transform")]],
|
| 70 |
+
uniform float2 UV_Offset = float2(0.f) [[anno::description(""), anno::display_name("UV_Offset"), anno::in_group("UV_Transform")]],
|
| 71 |
+
uniform float UV_rotation = 0.f [[anno::description(" UV_rotation"), anno::display_name(" UV_rotation"), anno::in_group("UV_Transform")]],
|
| 72 |
+
uniform int UV_channel = 0 [[anno::description("if texture_coordinate_uvw, index into the appropriate one"), anno::display_name("UV_channel"), anno::in_group("UV_Transform"), anno::hard_range(0, 255)]],
|
| 73 |
+
//--textures_source
|
| 74 |
+
uniform texture_2d diffuse_texture = texture_2d("../textures/Floral_White_Chenille_FibreGuard_2074108/2074108_diff.jpg", ::tex::gamma_srgb) [[anno::in_group("Diffuse"), anno::display_name("Diffuse")]],
|
| 75 |
+
uniform texture_2d roughness_texture = texture_2d("../textures/Floral_White_Chenille_FibreGuard_2074108/2074108_roug.jpg", ::tex::gamma_linear) [[anno::in_group("Roughness"), anno::display_name("Roughness")]],
|
| 76 |
+
uniform texture_2d metallic_texture = texture_2d("../textures/Floral_White_Chenille_FibreGuard_2074108/2074108_metl.jpg", ::tex::gamma_linear) [[anno::in_group("Metallic"), anno::display_name("Metallic")]],
|
| 77 |
+
uniform texture_2d normal_texture = texture_2d("../textures/Floral_White_Chenille_FibreGuard_2074108/2074108_norm.jpg", ::tex::gamma_linear) [[anno::in_group("Normal"), anno::display_name("Normal")]])
|
| 78 |
+
[[
|
| 79 |
+
::anno::author("Bru Textiles"),
|
| 80 |
+
::anno::display_name("Floral_White_Chenille_FibreGuard_2074108"),
|
| 81 |
+
::anno::description(DESCRIPTION),
|
| 82 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 83 |
+
::anno::thumbnail("./.thumbs/Floral_White_Chenille_FibreGuard_2074108.mdl.png"),
|
| 84 |
+
::anno::key_words(string[]("fabric", "FibreGuard", "Drapery, Upholstery", "Floral", "White / Ecru", "Chenille"))
|
| 85 |
+
]]
|
| 86 |
+
=
|
| 87 |
+
let {
|
| 88 |
+
bool tmp0 = false;
|
| 89 |
+
float specular_level = 0.5f;
|
| 90 |
+
//--UV coordinats
|
| 91 |
+
float UVrot = (UV_rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 92 |
+
float s = math::sin(UVrot);
|
| 93 |
+
float c = math::cos(UVrot);
|
| 94 |
+
float4x4 rotate = float4x4(c, -s, 0.0, 0.0, s, c, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 1.);
|
| 95 |
+
float4x4 tile = float4x4((1 / UV_Scale.x), 0.0, 0.0, 0.0, 0.0, (1 / UV_Scale.y), 0.0, 0.0, 0.0, 0.0, 1.0, 0.0, UV_Offset.x, UV_Offset.y, 0.0, 1.);
|
| 96 |
+
float4x4 UVTransform = float4x4(float4(1.f, -0.f, 0.f, 0.f), float4(0.f, 1.f, 0.f, 0.f), float4(0.f), float4(0.f));
|
| 97 |
+
::base::texture_coordinate_info UVCoordSorce = base::coordinate_source(base::texture_coordinate_uvw, UV_channel);
|
| 98 |
+
::base::texture_coordinate_info UVCoord = base::transform_coordinate(tile*rotate, UVCoordSorce);
|
| 99 |
+
//--textures
|
| 100 |
+
float3 normal = base::tangent_space_normal_texture(normal_texture, 1.0, false, false, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f);
|
| 101 |
+
float roughness = base::file_texture(roughness_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).mono;
|
| 102 |
+
color basecolor = base::file_texture(diffuse_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).tint;
|
| 103 |
+
float metallic = base::file_texture(metallic_texture, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, UVCoord, float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false).mono;
|
| 104 |
+
//--surface
|
| 105 |
+
material_surface tmp1(df::weighted_layer(metallic, df::directional_factor(basecolor, color(1.f, 1.f, 1.f), 3.f, df::microfacet_ggx_smith_bsdf(roughness * roughness, roughness * roughness, color(1.f, 1.f, 1.f), state::texture_tangent_u(0), df::scatter_reflect, "")), df::custom_curve_layer(specular_level * 0.0799999982f, 1.f, 5.f, 1.f, df::microfacet_ggx_smith_bsdf(roughness * roughness, roughness * roughness, color(1.f, 1.f, 1.f), state::texture_tangent_u(0), df::scatter_reflect, ""), df::diffuse_reflection_bsdf(basecolor, 0.f, ""), state::normal()), state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 106 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 107 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 108 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 109 |
+
material_geometry tmp5(float3(0.f), 1.f, normal);
|
| 110 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 111 |
+
} in
|
| 112 |
+
material(
|
| 113 |
+
thin_walled: tmp0,
|
| 114 |
+
surface: tmp1,
|
| 115 |
+
backface: tmp2,
|
| 116 |
+
ior: tmp3,
|
| 117 |
+
volume: tmp4,
|
| 118 |
+
geometry: tmp5,
|
| 119 |
+
hair: tmp6);
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_diff.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_metl.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_norm.jpg
ADDED
|
Git LFS Details
|
Flat-Object-Assets/Fabric/Fabric4/simready_usd/Fabric4/SubUSDs/textures/Floral_White_Chenille_FibreGuard_2074108/2074108_roug.jpg
ADDED
|
Git LFS Details
|