diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index a4982d3005828bc1c6d0c4594f69dbd59c568a28..0000000000000000000000000000000000000000 --- a/.gitattributes +++ /dev/null @@ -1,94 +0,0 @@ -*.7z filter=lfs diff=lfs merge=lfs -text -*.arrow filter=lfs diff=lfs merge=lfs -text -*.avro filter=lfs diff=lfs merge=lfs -text -*.bin filter=lfs diff=lfs merge=lfs -text -*.bz2 filter=lfs diff=lfs merge=lfs -text -*.ckpt filter=lfs diff=lfs merge=lfs -text -*.ftz filter=lfs diff=lfs merge=lfs -text -*.gz filter=lfs diff=lfs merge=lfs -text -*.h5 filter=lfs diff=lfs merge=lfs -text -*.joblib filter=lfs diff=lfs merge=lfs -text -*.lfs.* filter=lfs diff=lfs merge=lfs -text -*.lz4 filter=lfs diff=lfs merge=lfs -text -*.mds filter=lfs diff=lfs merge=lfs -text -*.mlmodel filter=lfs diff=lfs merge=lfs -text -*.model filter=lfs diff=lfs merge=lfs -text -*.msgpack filter=lfs diff=lfs merge=lfs -text -*.npy filter=lfs diff=lfs merge=lfs -text -*.npz filter=lfs diff=lfs merge=lfs -text -*.onnx filter=lfs diff=lfs merge=lfs -text -*.ot filter=lfs diff=lfs merge=lfs -text -*.parquet filter=lfs diff=lfs merge=lfs -text -*.pb filter=lfs diff=lfs merge=lfs -text -*.pickle filter=lfs diff=lfs merge=lfs -text -*.pkl filter=lfs diff=lfs merge=lfs -text -*.pt filter=lfs diff=lfs merge=lfs -text -*.pth filter=lfs diff=lfs merge=lfs -text -*.rar filter=lfs diff=lfs merge=lfs -text -*.safetensors filter=lfs diff=lfs merge=lfs -text -saved_model/**/* filter=lfs diff=lfs merge=lfs -text -*.tar.* filter=lfs diff=lfs merge=lfs -text -*.tar filter=lfs diff=lfs merge=lfs -text -*.tflite filter=lfs diff=lfs merge=lfs -text -*.tgz filter=lfs diff=lfs merge=lfs -text -*.wasm filter=lfs diff=lfs merge=lfs -text -*.xz filter=lfs diff=lfs merge=lfs -text -*.zip filter=lfs diff=lfs merge=lfs -text -*.zst filter=lfs diff=lfs merge=lfs -text -*tfevents* filter=lfs diff=lfs merge=lfs -text -# Audio files - uncompressed -*.pcm filter=lfs diff=lfs merge=lfs -text -*.sam filter=lfs diff=lfs merge=lfs -text -*.raw filter=lfs diff=lfs merge=lfs -text -# Audio files - compressed -*.aac filter=lfs diff=lfs merge=lfs -text -*.flac filter=lfs diff=lfs merge=lfs -text -*.mp3 filter=lfs diff=lfs merge=lfs -text -*.ogg filter=lfs diff=lfs merge=lfs -text -*.wav filter=lfs diff=lfs merge=lfs -text -# Image files - uncompressed -*.bmp filter=lfs diff=lfs merge=lfs -text -*.gif filter=lfs diff=lfs merge=lfs -text -*.png filter=lfs diff=lfs merge=lfs -text -*.tiff filter=lfs diff=lfs merge=lfs -text -# Image files - compressed -*.jpg filter=lfs diff=lfs merge=lfs -text -*.jpeg filter=lfs diff=lfs merge=lfs -text -*.webp filter=lfs diff=lfs merge=lfs -text -# Video files - compressed -*.mp4 filter=lfs diff=lfs merge=lfs -text -*.webm filter=lfs diff=lfs merge=lfs -text -sm_box_cardboard_a01_01/simready_usd/web/sm_box_cardboard_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.usd filter=lfs diff=lfs merge=lfs -text -sm_container_orange_c04_01/simready_usd/web/sm_container_orange_c04_01.glb filter=lfs diff=lfs merge=lfs -text -sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_engineComponent_belt_tensioner_a01_01/simready_usd/web/sm_engineComponent_belt_tensioner_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_f01_01/simready_usd/web/sm_food_beverage_beerBottle_f01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_m01_01/simready_usd/web/sm_food_beverage_beerBottle_m01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_beverage_beerBottle_n01_01/simready_usd/web/sm_food_beverage_beerBottle_n01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_prepared_bagel_g01_01/simready_usd/web/sm_food_prepared_bagel_g01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_processed_chips_o01_01/simready_usd/web/sm_food_processed_chips_o01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_processed_jam_a02_01/simready_usd/web/sm_food_processed_jam_a02_01.glb filter=lfs diff=lfs merge=lfs -text -sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_food_processed_milk_a01_01/simready_usd/web/sm_food_processed_milk_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_kitchenware_bowl_l01_01/simready_usd/web/sm_kitchenware_bowl_l01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_pallet_block_a01_01/simready_usd/web/sm_pallet_block_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.usd filter=lfs diff=lfs merge=lfs -text -sm_pallet_drum_wood_recycled_a05_01/simready_usd/web/sm_pallet_drum_wood_recycled_a05_01.glb filter=lfs diff=lfs merge=lfs -text -sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.usd filter=lfs diff=lfs merge=lfs -text -sm_paper_roll_a02_01/simready_usd/web/sm_paper_roll_a02_01.glb filter=lfs diff=lfs merge=lfs -text -sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_ppe_gloves_cloth_a01_01/simready_usd/web/sm_ppe_gloves_cloth_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/web/sm_ppe_hearingProtection_earPlugs_a01_01.glb filter=lfs diff=lfs merge=lfs -text -sm_tape_safety_white_8m10cm_b04_01/simready_usd/web/sm_tape_safety_white_8m10cm_b04_01.glb filter=lfs diff=lfs merge=lfs -text -sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd filter=lfs diff=lfs merge=lfs -text -sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/web/sm_wasteManagement_recyclingBin_multiStream_a01_01.glb filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md deleted file mode 100644 index b187bb7e7d837a367ccd0862441947ad412c77f7..0000000000000000000000000000000000000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -license: cc-by-4.0 ---- diff --git a/sm_box_cardboard_a01_01/com.nvidia.simready.packaging.json b/sm_box_cardboard_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index b9b5c50582fc8c723f97840bf81f57ea715bb6b0..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_box_cardboard_a01_01.2026.03.03_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_box_cardboard_a01_01/simready_usd/.simready_publish.json b/sm_box_cardboard_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index 7a4c4c3f5e8bc6977b9a30753b24543e1787141e..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-03-03T19:43:05.277670+00:00"} \ No newline at end of file diff --git a/sm_box_cardboard_a01_01/simready_usd/.thumbs/256x256/sm_box_cardboard_a01_01.usd.png b/sm_box_cardboard_a01_01/simready_usd/.thumbs/256x256/sm_box_cardboard_a01_01.usd.png deleted file mode 100644 index c63d4479968841e41416ab1a7bb7573896e82dbe..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/.thumbs/256x256/sm_box_cardboard_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe9587cbfd670ebb4ab857a0d9d1ee12f928073111100d2d381f6cbaf09b2a77 -size 398032 diff --git a/sm_box_cardboard_a01_01/simready_usd/.thumbs/sm_box_cardboard_a01_01_thumbnail.png b/sm_box_cardboard_a01_01/simready_usd/.thumbs/sm_box_cardboard_a01_01_thumbnail.png deleted file mode 100644 index c63d4479968841e41416ab1a7bb7573896e82dbe..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/.thumbs/sm_box_cardboard_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe9587cbfd670ebb4ab857a0d9d1ee12f928073111100d2d381f6cbaf09b2a77 -size 398032 diff --git a/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.json b/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.json deleted file mode 100644 index c7c21525d7c15b80c0fa216d3903179b0960242f..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_warehouse/box_cardboard_a01", - "asset_name": "sm_box_cardboard_a01_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_box_cardboard_a01_01.blend@", - "usd_date_generated": "2026-01-13 15:48:26", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.usd b/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.usd deleted file mode 100644 index 3c47861dc441cbba51212ad4a53e0ae16c3c6d83..0000000000000000000000000000000000000000 Binary files a/sm_box_cardboard_a01_01/simready_usd/sm_box_cardboard_a01_01.usd and /dev/null differ diff --git a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Albedo_1.png b/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Albedo_1.png deleted file mode 100644 index c3a419b8bbcd0766bb19db0186b2f132126145c2..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Albedo_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db4c149f567a693bb0f4d8d94be73988ea8f0ba6b6e15902295146685baf7250 -size 3577615 diff --git a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Normal_1.png b/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Normal_1.png deleted file mode 100644 index 7ca0e4dc08a281a7eecd7dc7102778278bd42140..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_Normal_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ae67a1b7327bbf244d2141c4b376005b88b3029d8df8ac219610b39f9208e261 -size 2476917 diff --git a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_ORM_1.png b/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_ORM_1.png deleted file mode 100644 index 4565c6c5ac130f872e52a61c3d6cdc8b3905cd7a..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/textures/T_Cardbox_A1_ORM_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b44ba9bc781bc4755ef60335da869d3a17b2ed214ec8645c40de81c55da1a7f3 -size 2858551 diff --git a/sm_box_cardboard_a01_01/simready_usd/web/sm_box_cardboard_a01_01.glb b/sm_box_cardboard_a01_01/simready_usd/web/sm_box_cardboard_a01_01.glb deleted file mode 100644 index b67c12f3d9fc2d93797b21be34a805c7a366ed62..0000000000000000000000000000000000000000 --- a/sm_box_cardboard_a01_01/simready_usd/web/sm_box_cardboard_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d1ca1784c1ecaf36622cb931651bda9908ca00c7cffee8bf8161d146f6878a39 -size 8937120 diff --git a/sm_container_orange_c04_01/com.nvidia.simready.packaging.json b/sm_container_orange_c04_01/com.nvidia.simready.packaging.json deleted file mode 100644 index aa1ddb57cd9cc758a85437257a5f2754f3beca37..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_container_orange_c04_01.2026.03.03_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_container_orange_c04_01/simready_usd/.simready_publish.json b/sm_container_orange_c04_01/simready_usd/.simready_publish.json deleted file mode 100644 index e216aa281ab154ac2df40bf0a1d6c599d1f4dfcb..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-03-03T19:44:11.511966+00:00"} \ No newline at end of file diff --git a/sm_container_orange_c04_01/simready_usd/.thumbs/256x256/sm_container_orange_c04_01.usd.png b/sm_container_orange_c04_01/simready_usd/.thumbs/256x256/sm_container_orange_c04_01.usd.png deleted file mode 100644 index 88d6a12bafdf783ff3514fcef83d478a8bd49fcf..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/.thumbs/256x256/sm_container_orange_c04_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:11959f4221af1eaa208a91150e92d18954947585c5afc69a2c91caaf99fb61b8 -size 417334 diff --git a/sm_container_orange_c04_01/simready_usd/.thumbs/sm_container_orange_c04_01_thumbnail.png b/sm_container_orange_c04_01/simready_usd/.thumbs/sm_container_orange_c04_01_thumbnail.png deleted file mode 100644 index 88d6a12bafdf783ff3514fcef83d478a8bd49fcf..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/.thumbs/sm_container_orange_c04_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:11959f4221af1eaa208a91150e92d18954947585c5afc69a2c91caaf99fb61b8 -size 417334 diff --git a/sm_container_orange_c04_01/simready_usd/asset-config.json b/sm_container_orange_c04_01/simready_usd/asset-config.json deleted file mode 100644 index cb563b59841d3ca60bc0c8dd9e3a27abc06ddcd3..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/asset-config.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "format_version": 1, - "configs": { - "mega": { - "output-uri": "omniverse://simready.ov.nvidia.com/Projects/simready_content/common_assets/props_1.0.0/.wrapp_publish", - "asset-type": "prop", - "asset-name": "sm_container_orange_c04_01", - "full-version": "1.0.0", - "flags": [ - "full-output-path" - ] - } - } -} diff --git a/sm_container_orange_c04_01/simready_usd/metadata.json b/sm_container_orange_c04_01/simready_usd/metadata.json deleted file mode 100644 index 0f4662533773df1361a5605aa390a9d690eae228..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/metadata.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "output": { - "pass_thru": "sm_container_orange_c04_01.usd" - }, - "pipeline": { - "asset_handler": "PropAssetHandler", - "timestamp": "2025-12-02 16:40:48", - "version": "1.6.5" - }, - "input": { - "asset_name": "sm_container_orange_c04_01", - "asset_type": "prop", - "input_uri": "C:/sw/cip/MEGA/Props_Copy_fixed-all_batch/sm_container_orange_c04_01/simready_usd", - "stage_filename": "sm_container_orange_c04_01.usd", - "stage_modified": "2025-12-02 16:40:44.748172" - }, - "validator": { - "version": "1.8.0", - "rules": [ - "ComponentAssetChecker", - "UnusedMeshTopologyChecker", - "IndexedPrimvarChecker", - "ManifoldChecker", - "MetersChecker", - "KgPerUnitChecker", - "SubdivisionSchemeChecker", - "ValidateTopologyChecker", - "NormalsWindingsChecker", - "ZUpChecker", - "WeldChecker", - "NormalsValidChecker", - "UnusedPrimvarChecker", - "ZeroAreaFaceChecker", - "ColliderChecker", - "RigidBodyChecker", - "NormalsExistChecker", - "MaterialOldMdlSchemaChecker", - "PhysicsJointChecker", - "UsdGeomSubsetChecker", - "MaterialOutOfScopeChecker", - "ShaderImplementationSourceChecker", - "UsdMaterialBindingApi", - "UsdLuxSchemaChecker", - "SkelBindingAPIAppliedChecker", - "MaterialPathChecker", - "PointsPrecisionWarningChecker", - "ArticulationChecker", - "PrimEncapsulationChecker", - "UsdDanglingMaterialBinding", - "MissingReferenceChecker", - "MassChecker", - "PointsPrecisionErrorChecker", - "AlmostExtremeExtentChecker", - "TextureChecker", - "StageMetadataChecker", - "CompressionChecker", - "TypeChecker", - "ExtentsChecker", - "UnicodeNameChecker", - "NormalMapTextureChecker", - "KindChecker", - "BackwardCompatibilityChecker", - "OmniOrphanedPrimChecker", - "ByteAlignmentChecker", - "OmniDefaultPrimChecker", - "CookingApproximationChecker", - "VisualSensorCapabilityChecker", - "OmniMaterialUsdPreviewSurfaceChecker", - "NonVisualSensorCapabilityChecker", - "GroundTruthCapabilityChecker" - ] - } -} \ No newline at end of file diff --git a/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.json b/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.json deleted file mode 100644 index 3deb6b4c353d2161e7c53eac3d4a6710907417be..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_warehouse/container_orange_c04", - "asset_name": "sm_container_orange_c04_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_container_orange_c04_01.blend@", - "usd_date_generated": "2026-01-08 19:49:33", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.usd b/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.usd deleted file mode 100644 index 06c52e9e2d20c86580bb0fecf285641e931efb47..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/sm_container_orange_c04_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33aec63ccce4eca7c4f0a1cae55ea3aacc1f7537fbe7d61083f7a97c6e5ebf47 -size 1239718 diff --git a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Albedo.png b/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Albedo.png deleted file mode 100644 index 87e3c0ee60e6506e00d5e527c1c37381446fc51f..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:30bfd9840199d482779f7fe05692295863f7df3014533c03c15b8dc7fa0493bd -size 3267942 diff --git a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Normal.png b/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Normal.png deleted file mode 100644 index 89714d2bb058a7eb3fff2d03da2c37530bc17807..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_Normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:534663e137ab0e944eebbb6089e3a5c3ea5b4d1bebb3224ab60d5df080b27eb7 -size 919718 diff --git a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_ORM.png b/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_ORM.png deleted file mode 100644 index 1afe61003c32ce72b6e824f3771f7a3e7e874d7b..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/textures/T_Plastic_Orange_A_ORM.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:326f12e21a953fd1f2b89cd186925e78d9d3b1e97bf86785be47d27168f9eed0 -size 712329 diff --git a/sm_container_orange_c04_01/simready_usd/validator_sm_container_orange_c04_01_issues.csv b/sm_container_orange_c04_01/simready_usd/validator_sm_container_orange_c04_01_issues.csv deleted file mode 100644 index 4c64e093fdde14c29c3685634548bd41b7471971..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/validator_sm_container_orange_c04_01_issues.csv +++ /dev/null @@ -1,6 +0,0 @@ -Asset,Rule,Message,Severity,Suggestion,Location -C:/Users/fweise/AppData/Local/Temp/sm_container_orange_c04_01lnv5cro9/sm_container_orange_c04_01.usd,IndexedPrimvarChecker,primvars:displayColor contains repeated values that can be indexed.,Warning,None,Attribute (primvars:displayColor) Prim -C:/Users/fweise/AppData/Local/Temp/sm_container_orange_c04_01lnv5cro9/sm_container_orange_c04_01.usd,IndexedPrimvarChecker,primvars:st contains repeated values that can be indexed.,Warning,None,Attribute (primvars:st) Prim -C:/Users/fweise/AppData/Local/Temp/sm_container_orange_c04_01lnv5cro9/sm_container_orange_c04_01.usd,IndexedPrimvarChecker,primvars:displayColor contains repeated values that can be indexed.,Warning,None,Attribute (primvars:displayColor) Prim -C:/Users/fweise/AppData/Local/Temp/sm_container_orange_c04_01lnv5cro9/sm_container_orange_c04_01.usd,IndexedPrimvarChecker,primvars:st contains repeated values that can be indexed.,Warning,None,Attribute (primvars:st) Prim -C:/Users/fweise/AppData/Local/Temp/sm_container_orange_c04_01lnv5cro9/sm_container_orange_c04_01.usd,GroundTruthCapabilityChecker,Deprecated SemanticsAPI schema based wikidata_qcode semantics found.,Warning,Migrate the SemanticsAPI schema based wikidata_qcode semantics to SemanticsLabelsAPI schema based semantics.,Prim diff --git a/sm_container_orange_c04_01/simready_usd/web/sm_container_orange_c04_01.glb b/sm_container_orange_c04_01/simready_usd/web/sm_container_orange_c04_01.glb deleted file mode 100644 index 523cfbbe6f46ddf4122df97ebcbd0f49c8a45fcb..0000000000000000000000000000000000000000 --- a/sm_container_orange_c04_01/simready_usd/web/sm_container_orange_c04_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:949a8acb118c9fa16a3be9aab7e0a16bbef9bc33e0d098775f42154e10646822 -size 5574096 diff --git a/sm_engineComponent_belt_tensioner_a01_01/com.nvidia.simready.packaging.json b/sm_engineComponent_belt_tensioner_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 0a835a6f411a0f8f02fc6b7da6f85ede56dc4216..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_engineComponent_belt_tensioner_a01_01.2026.04.16_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.simready_publish.json b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index cb0ce6367e8ad96a094fd2b12cca306431f6e913..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-04-16T17:20:55.695788+00:00"} \ No newline at end of file diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/256x256/sm_engineComponent_belt_tensioner_a01_01.usd.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/256x256/sm_engineComponent_belt_tensioner_a01_01.usd.png deleted file mode 100644 index b6a0aeb2f0cf92c21c3cdb3ca780582b0d8c26e4..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/256x256/sm_engineComponent_belt_tensioner_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:99e984882a4078b4ff7690e9696b11438114f155d7e011e174dd1f12ed945679 -size 79755 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/sm_engineComponent_belt_tensioner_a01_01_thumbnail.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/sm_engineComponent_belt_tensioner_a01_01_thumbnail.png deleted file mode 100644 index b6a35a27f73a89eecb85a3d7c0b0258cb338f9fa..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/.thumbs/sm_engineComponent_belt_tensioner_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:02bb90e12c4b9b6913234faf21b59457bd341cd63d5a71ee73c9cb8a21deec21 -size 561090 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.json b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.json deleted file mode 100644 index 4decf3fc72170daca9e5538f06522a133aa7d705..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/Simready/omniverse/simready_next/Projects/simready_content/common_assets/props_automotive_parts/engineComponent_belt_tensioner_a01", - "asset_name": "engineComponent_belt_tensioner_a01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/engineComponent_belt_tensioner_a01.blend@", - "usd_date_generated": "2026-03-18 11:37:46", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.usd b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.usd deleted file mode 100644 index 3b49209f0d80f1ad443ff34900dc93d512dc7454..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/sm_engineComponent_belt_tensioner_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4675c6a1d74a8b8e8cc46904c63527a265260b18b5bf36c6309733c5f7804123 -size 2352606 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_alb.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_alb.png deleted file mode 100644 index 830b61a11fca6428361236cf79e63cedb0abe856..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e61898b1e1a7b64dba44ee6e3b8b0d66f873508c09e141394d5535d208d96b12 -size 5557085 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_nor.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_nor.png deleted file mode 100644 index 5db6279711dfbd9cbf891ac17fac4a418193acdf..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c6a0ba336a804cd04da8406859bd40323c3eee783ef879ee8cf1699de5d82f60 -size 2279404 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_orm.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_orm.png deleted file mode 100644 index d09d3d2c5b9f1a8cd6ce7395ed33927636a5ebff..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_metal_steel_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:20fe51937828869ed01a3fdd330de761802d080dbe052250f2a26720d1f73335 -size 3254657 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_alb.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_alb.png deleted file mode 100644 index 5b4f8a85730853050b84f9f5c2d2ab4cd846d060..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6bccbf9f0086817688c53c8203e3563034d5704e750f81e6ed866382613c6d3 -size 15321300 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_nor.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_nor.png deleted file mode 100644 index fa491919158d6a9e87713a4fc13b442b1b78d368..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:50c9be331ece773c992fddd42d2440bcbc01b3bfcf1992f96b6ecf22bf9db6d2 -size 21091456 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_orm.png b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_orm.png deleted file mode 100644 index fe2f044ceb7a4076a081dc3cfdef3157387d96b6..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/textures/t_plastic_black_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c840f18380e08ec52d43ebe660d0f1290122fec5ae7c43cf8a987b0163661da9 -size 15783445 diff --git a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/web/sm_engineComponent_belt_tensioner_a01_01.glb b/sm_engineComponent_belt_tensioner_a01_01/simready_usd/web/sm_engineComponent_belt_tensioner_a01_01.glb deleted file mode 100644 index 1a1d2d5c460ef391910d8944360012ef86718b3d..0000000000000000000000000000000000000000 --- a/sm_engineComponent_belt_tensioner_a01_01/simready_usd/web/sm_engineComponent_belt_tensioner_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1a4f09f2b13457049c81ec5099c92c55ab70d5e43339b391bf7f30bdbed3b0c0 -size 64497036 diff --git a/sm_food_beverage_beerBottle_f01_01/com.nvidia.simready.packaging.json b/sm_food_beverage_beerBottle_f01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 194493454a04da3df0b54505f424778f0f1553bd..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_beverage_beerBottle_f01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_f01_01.usd.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_f01_01.usd.png deleted file mode 100644 index 7501a0cddc76fe09b7af0d8c7250eeea011eb6e6..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_f01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:010b8c503bd93186ba1df49e0e6d991bd7e01213aaf0a8bd58f46e9754c29cbb -size 71361 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01.usd.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01.usd.png deleted file mode 100644 index 79d08d2cd85350e7e1ffdc1bec4aa4c348f73ec2..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d2eeeb6020789ca87522486a3ee3aa14a5ac1b49f1f5ed801013d57d5be2294d -size 98684 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01_thumbnail.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01_thumbnail.png deleted file mode 100644 index a3a9724ea90b9c92509951a573bb522681a70119..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_f01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5c59c0382ebf5a747152fc9250dd183fd87da243186df0b85e52013a1a8692f -size 487755 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.json b/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.json deleted file mode 100644 index 9fe7753798bdfc36eeb15180a7eb6c06369da979..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_food/food_beverage_beerBottle_f01/food_beverage_beerBottle_f01", - "asset_name": "food_beverage_beerBottle_f01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_beverage_beerBottle_f01.blend@", - "usd_date_generated": "2025-12-15 15:52:43", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.usd b/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.usd deleted file mode 100644 index cf10314c89cfcfa01aa8f74fcd7780ad2bd17d18..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/sm_food_beverage_beerBottle_f01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0690afe6dd679d91f55cf7ee785cf9e27dc7291ad6b8bc3443e42398b1170543 -size 1118569 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_alb.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_alb.png deleted file mode 100644 index f68bb8be289307b69d960a41bb25a69aa62eb6ff..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ffd362c4ad51ba2396e17c067ced6f1d128a7cb81f54b7adf1158344a4c28342 -size 389778 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_nor.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_nor.png deleted file mode 100644 index c21bc95ac7b686aaf9f60de80ded1a0c39fbf68a..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1725c403125f3326b4f74e978a298d8e159dc6880383717ae16482e5bba587e -size 29054 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_orm.png b/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_orm.png deleted file mode 100644 index 4dda5330296643ad3b4139c0b961c33028f2e6df..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/textures/t_beerBottle_brown_f01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e38fd2a0832c9b2ba007c73d0dc22262cbea8b41afd4221e4d466f8d928e210e -size 358212 diff --git a/sm_food_beverage_beerBottle_f01_01/simready_usd/web/sm_food_beverage_beerBottle_f01_01.glb b/sm_food_beverage_beerBottle_f01_01/simready_usd/web/sm_food_beverage_beerBottle_f01_01.glb deleted file mode 100644 index d8686645e6b4247c26891e3ae761e9ca3791373f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_f01_01/simready_usd/web/sm_food_beverage_beerBottle_f01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:34c53d42b79028bafe74616415c41252dcd315e08cbfc68f7aaddd16f0943c18 -size 1319896 diff --git a/sm_food_beverage_beerBottle_m01_01/com.nvidia.simready.packaging.json b/sm_food_beverage_beerBottle_m01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 0cee6169a336670791043124a15f2cdd791a14bc..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_beverage_beerBottle_m01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_m01_01.usd.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_m01_01.usd.png deleted file mode 100644 index 54fabc4a8b64db471d2cd8b69260ec6ac1291353..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_m01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:639b547a5c548b3998b771acb5d76468c07868a6d98a378abfa169e3bbf76617 -size 72327 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01.usd.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01.usd.png deleted file mode 100644 index c4f35c1d82faf98b0a324f7351ad1b34d32d21b5..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb8cedd543ae12d08bb180ffb0a72c490eda55f4620141bb8b2084081091a36b -size 133218 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01_thumbnail.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01_thumbnail.png deleted file mode 100644 index c505cdb45b971df465023b7a478299789008be5f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_m01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e9478d8cb516ae871f6859c91b86e96ee633f6988f7070a1de4ccecc6aa891a -size 503994 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl b/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl deleted file mode 100644 index 39849aaa57e1d4bf1aec8f108f8fc7f7a25232c7..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl +++ /dev/null @@ -1,261 +0,0 @@ -/*************************************************************************************************** - * Copyright 2020 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; -import ::anno::*; -import ::base::*; -import ::tex::*; - -using OmniGlass_Opacity import OmniGlass_Opacity; -export annotation distill_off(); - - -export material OmniGlass -( - color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material - [[ - anno::hidden(), - anno::unused() - ]], - uniform bool use_glass_color_texture = false - [[ - anno::hidden(), - anno::unused() - ]], - uniform color glass_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Glass Color"), - anno::description("Sets the color of the glass"), - anno::hard_range(color(0.0), color(1.0)), - anno::in_group("Color") - ]], - uniform texture_2d glass_color_texture = texture_2d() - [[ - anno::display_name("Glass Color Texture"), - anno::description("Specifies the texture to be used for the glass color of the material"), - anno::in_group("Color") - ]], - float frosting_roughness = 0.f - [[ - anno::display_name("Glass Roughness"), - anno::description("Sets the roughness of the glass material "), - anno::hard_range(0.0, 1.0), - anno::in_group("Roughness") - ]], - uniform float glass_ior = 1.491f - [[ - anno::display_name("Glass IOR"), - anno::description("Sets IOR of the glass material "), - anno::soft_range(1.0f, 4.0f), - anno::in_group("Refraction") - ]], - uniform bool thin_walled = false - [[ - anno::display_name("Thin Walled"), - anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"), - anno::in_group("Refraction") - ]], - uniform float depth = 0.001f - [[ - anno::description("Controls how much light is absorbed through the surface"), - anno::display_name("Volume Absorption Scale"), - anno::in_group("Color"), - anno::soft_range(0.f, 1.f), - anno::hard_range(0.f, 1000.f) - ]], - float roughness_texture_influence = 1.f - [[ - anno::display_name("Roughness Texture Influence"), - anno::in_group("Roughness"), - anno::hard_range(0.0f, 1.0f) - ]], - uniform texture_2d roughness_texture = texture_2d() - [[ - anno::description("The roughness texture"), - anno::display_name("Roughness Texture"), - anno::in_group("Roughness"), - anno::usage("roughness") - ]], - uniform texture_2d reflection_color_texture = texture_2d() - [[ - anno::description("The reflection color texture"), - anno::display_name("Reflection Color Texture"), - anno::in_group("Reflection") - ]], - uniform color reflection_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Reflection Color"), - anno::in_group("Reflection") - ]], - uniform texture_2d normal_map_texture = texture_2d() - [[ - anno::description("The normal map texture"), - anno::display_name("Normal Map Texture"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float normal_map_strength = 1.0 - [[ - anno::description("Determines the degree of bumpiness"), - anno::display_name("Normal Map Strength"), - anno::in_group("Normal"), - anno::usage(""), - anno::soft_range(0.f, 1.f) - ]], - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.f, 1.f), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_u = false - [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true - [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - // Cutout Opacity - uniform bool enable_opacity = false - [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform float cutout_opacity = 1.0f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity") - ]], - uniform texture_2d cutout_opacity_texture = texture_2d() - [[ - anno::description("The opacity map"), - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha - [[ - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::display_name("Opacity Mono Source"), - anno::in_group("Opacity"), - anno::usage("") - ]], - uniform float opacity_threshold = 0.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - // UV Projection Group - uniform bool project_uvw = false - [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false - [[ - anno::display_name("Enable World Space"), - anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), - anno::in_group("UV") - ]], - - // UV Space Selector - uniform int uv_space_index = 0 - [[ - anno::display_name("UV Space Index"), - anno::description("Choose the UV Space Index to be used"), - anno::in_group("UV"), - anno::hard_range(0, 3) - ]], - uniform float2 texture_translate = float2(0.0f) - [[ - anno::display_name("Texture Translate"), - anno::description("Controls the position of the texture."), - anno::in_group("UV") - ]], - uniform float texture_rotate = 0.f - [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of the texture in degrees."), - anno::in_group("UV") - ]], - uniform float2 texture_scale = float2(1.0f) - [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV") - ]] -) -[[ - anno::author("NVIDIA CORPORATION"), - anno::display_name("Omni Glass"), - anno::version( 1, 0, 0), - anno::in_group("Base"), - anno::description("Omni Glass Material V2"), - anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")), - distill_off() -]] -= OmniGlass_Opacity( - glass_color: glass_color, - glass_color_texture: glass_color_texture, - frosting_roughness: frosting_roughness, - glass_ior: glass_ior, - thin_walled: thin_walled, - depth: depth, - roughness_texture_influence: roughness_texture_influence, - roughness_texture: roughness_texture, - reflection_color_texture: reflection_color_texture, - reflection_color: reflection_color, - normal_map_texture: normal_map_texture, - normal_map_strength: normal_map_strength, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - enable_opacity: enable_opacity, - cutout_opacity: cutout_opacity, - cutout_opacity_texture: cutout_opacity_texture, - cutout_opacity_mono_source: cutout_opacity_mono_source, - opacity_threshold: opacity_threshold, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale -); \ No newline at end of file diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl b/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl deleted file mode 100644 index 233328a4737ff2f4ba141cb6c0a109ff1772566f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl +++ /dev/null @@ -1,487 +0,0 @@ -/*************************************************************************************************** - * Copyright 2020 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - - -mdl 1.4; - -import ::tex::*; -import ::base::*; -import ::math::*; -import ::anno::*; -import ::df::*; -import ::state::*; -import OmniPBRBase::*; - -const string COPYRIGHT = -" Copyright 1986, 2020 NVIDIA Corporation. All rights reserved.\n" -" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" -" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" -" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" -" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" -" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" -" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" -" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" -" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" -" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; - -export annotation distill_off(); - - -float get_float( - uniform texture_2d t, - float f, - base::texture_coordinate_info uvw, - uniform base::mono_mode mono_source = base::mono_maximum -) -{ - return tex::texture_isvalid(t) ? - base::file_texture( - t, - color(0.f, 0.f, 0.f), - color(1.f, 1.f, 1.f), - mono_source, - uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false - ).mono : - f; -} - -color get_color( - uniform texture_2d t, - color c, - base::texture_coordinate_info uvw -) -{ - return tex::texture_isvalid(t) ? - base::file_texture( - t, - color(0.f, 0.f, 0.f), - color(1.f, 1.f, 1.f), - base::mono_alpha, - uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false - ).tint : - c; -} - -float apply_roughness_influence( - uniform texture_2d roughness_texture, - float constant_roughness, - float roughness_influence, - base::texture_coordinate_info uvw -) -{ - return math::lerp( - constant_roughness, - get_float(roughness_texture, constant_roughness, uvw), - roughness_influence - ); -} - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ - anno::description("Rotation applied to every UVW coordinate") - ]], - uniform float3 translation = float3(0.) - [[ - anno::description("Offset applied to every UVW coordinate") - ]], - uniform float3 scaling = float3(1.) - [[ - anno::description("Scale applied to every UVW coordinate") - ]] -) -[[ - anno::description("Construct transformation matrix from Euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = float4x4( - scaling.x , 0. , 0. , 0., - 0. , scaling.y , 0. , 0., - 0. , 0. , scaling.z , 0., - translation.x, translation.y, translation.z, 1. - ); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - float4x4 rotate = float4x4( - c.y*c.z, -c.x*s.z + s.x*s.y*c.z, s.x*s.z + c.x*s.y*c.z, 0.0, - c.y*s.z, c.x*c.z + s.x*s.y*s.z, -s.x*c.z + c.x*s.y*s.z, 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0. , 0. , 0. , 1. - ); - - return scale*rotate; -} - - -export material OmniGlass_Opacity -( - color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material - [[ - anno::hidden(), - anno::unused() - ]], - uniform bool use_glass_color_texture = false - [[ - anno::hidden(), - anno::unused() - ]], - uniform color glass_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Glass Color"), - anno::description("Sets the color of the glass"), - anno::hard_range(color(0.0), color(1.0)), - anno::in_group("Color") - ]], - uniform texture_2d glass_color_texture = texture_2d() - [[ - anno::display_name("Glass Color Texture"), - anno::description("Specifies the texture to be used for the glass color of the material"), - anno::in_group("Color") - ]], - float frosting_roughness = 0.f - [[ - anno::display_name("Glass Roughness"), - anno::description("Sets the roughness of the glass material "), - anno::hard_range(0.0, 1.0), - anno::in_group("Roughness") - ]], - uniform float glass_ior = 1.491f - [[ - anno::display_name("Glass IOR"), - anno::description("Sets IOR of the glass material "), - anno::soft_range(1.0f, 4.0f), - anno::in_group("Refraction") - ]], - uniform bool thin_walled = false - [[ - anno::display_name("Thin Walled"), - anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"), - anno::in_group("Refraction") - ]], - uniform float depth = 0.001f - [[ - anno::description("Controls how much light is absorbed through the surface"), - anno::display_name("Volume Absorption Scale"), - anno::in_group("Color"), - anno::soft_range(0.f, 1.f), - anno::hard_range(0.f, 1000.f) - ]], - float roughness_texture_influence = 1.f - [[ - anno::display_name("Roughness Texture Influence"), - anno::in_group("Roughness"), - anno::hard_range(0.0f, 1.0f) - ]], - uniform texture_2d roughness_texture = texture_2d() - [[ - anno::description("The roughness texture"), - anno::display_name("Roughness Texture"), - anno::in_group("Roughness"), - anno::usage("") - ]], - uniform texture_2d reflection_color_texture = texture_2d() - [[ - anno::description("The reflection color texture"), - anno::display_name("Reflection Color Texture"), - anno::in_group("Reflection") - ]], - uniform color reflection_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Reflection Color"), - anno::in_group("Reflection") - ]], - uniform texture_2d normal_map_texture = texture_2d() - [[ - anno::description("The normal map texture"), - anno::display_name("Normal Map Texture"), - anno::in_group("Normal"), - anno::usage("") - ]], - uniform float normal_map_strength = 1.0 - [[ - anno::description("Determines the degree of bumpiness"), - anno::display_name("Normal Map Strength"), - anno::in_group("Normal"), - anno::usage(""), - anno::soft_range(0.f, 1.f) - ]], - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.f, 1.f), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_u = false - [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true - [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - // Cutout Opacity - uniform bool enable_opacity = true - [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform float cutout_opacity = 1.0f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity") - ]], - uniform texture_2d cutout_opacity_texture = texture_2d() - [[ - anno::description("The opacity map"), - anno::display_name("Opacity Map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha - [[ - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::display_name("Opacity Mono Source"), - anno::in_group("Opacity"), - anno::usage("") - ]], - uniform float opacity_threshold = 0.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - // UV Projection Group - uniform bool project_uvw = false - [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false - [[ - anno::display_name("Enable World Space"), - anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), - anno::in_group("UV") - ]], - - // UV Space Selector - uniform int uv_space_index = 0 - [[ - anno::display_name("UV Space Index"), - anno::description("Choose the UV Space Index to be used"), - anno::in_group("UV"), - anno::hard_range(0, 3) - ]], - uniform float2 texture_translate = float2(0.0f) - [[ - anno::display_name("Texture Translate"), - anno::description("Controls the position of the texture."), - anno::in_group("UV") - ]], - uniform float texture_rotate = 0.f - [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of the texture in degrees."), - anno::in_group("UV") - ]], - uniform float2 texture_scale = float2(1.0f) - [[ - anno::display_name("Texture Scale"), - anno::description("Larger numbers increase the size."), - anno::in_group("UV") - ]] -) -[[ - anno::copyright_notice(COPYRIGHT), - anno::author("NVIDIA CORPORATION"), - anno::display_name("Omni Glass Opacity"), - anno::version( 1, 0, 0), - anno::description("Omni Glass Opacity Material"), - anno::in_group("Base"), - anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")), - distill_off() -]] -= let { - // Material Properties - bool local_thin_walled = (tex::texture_isvalid(cutout_opacity_texture) || cutout_opacity != 1.f) ? true : thin_walled; - color local_glass_ior = glass_ior; - - - // UVW Properties - // Generating the texture coordinates for the texture lookups - base::texture_coordinate_system the_system = world_or_object ? - base::texture_coordinate_world : - base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? - base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - - // Opacity Properties - float opacity_value = get_float(cutout_opacity_texture, cutout_opacity, transformed_uvw, cutout_opacity_mono_source); - - // The opacity_threshold is interpreted as follows: - // 1. opacity_threshold > 0: binary opacity masking mode - // i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0 - // 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched, - // allowing the renderer to use fractional cutout_opacity values, if it supports this feature - // - // NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets - // cutout_opacity values of 1.0 as opaque and anything below as fully transparent - float local_cutout_opacity = enable_opacity ? - ((opacity_threshold == 0.0) ? - opacity_value : - ((opacity_value >= opacity_threshold) ? 1.0 : 0) - ) : - 1.0; - - - // Surface Properties - color local_reflection_color = get_color(reflection_color_texture, reflection_color, transformed_uvw); - color local_transmission_color = get_color(glass_color_texture, glass_color, transformed_uvw); - - OmniPBRBase::NormalData defaultData(state::normal(), float2(0.f)); - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normal_map_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - normal_map_texture, - normal_map_strength, - flip_tangent_u, - flip_tangent_v, - transformed_uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false, - 1.f, - 0.f, - 0.f, - int2(0), - tex::wrap_repeat, - 30.f - ) : - defaultData; - - float local_roughness = apply_roughness_influence( - roughness_texture, - frosting_roughness, - roughness_texture_influence, - transformed_uvw - ); - float2 local_roughness_squared( - (local_roughness * local_roughness + - geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x), - (local_roughness * local_roughness + - geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y) - ); - - float3 the_normal = normal_data.normal; - - bsdf ggx_1 = ::df::microfacet_ggx_smith_bsdf( - roughness_u: local_roughness_squared.x, - roughness_v: local_roughness_squared.y, - tint: local_reflection_color, - tangent_u: ::state::texture_tangent_u(0), - mode: ::df::scatter_reflect - ); - - bsdf ggx_2 = ::df::microfacet_ggx_smith_bsdf( - roughness_u: local_roughness_squared.x, - roughness_v: local_roughness_squared.y, - tint: local_transmission_color, - tangent_u: ::state::texture_tangent_u(0), - mode: ::df::scatter_transmit - ); - - material_surface local_surface( - ::df::fresnel_layer( - ior: glass_ior, - weight: 1.f, - layer: ggx_1, - base: ggx_2, - normal: the_normal - ), - material_emission() - ); - - - // Volume Properties - color local_volume_absorption = depth; - color local_volume_scattering = color(0.f, 0.f, 0.f); - - material_volume local_volume(vdf(), local_volume_absorption, local_volume_scattering); - - - // Geometry Properties - material_geometry local_geometry(float3(0.f), local_cutout_opacity, the_normal); - -} in material( - thin_walled: local_thin_walled, - surface: local_surface, - ior: local_glass_ior, - volume: local_volume, - geometry: local_geometry -); diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.json b/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.json deleted file mode 100644 index 23c755e75fa202b1377e5a11e62a522742b43559..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/SimReady/omniverse/simready_next/Projects/simready_content/common_assets/props_food/food_beverage_beerBottle_m01", - "asset_name": "food_beverage_beerBottle_m01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_beverage_beerBottle_m01.blend@", - "usd_date_generated": "2026-05-11 11:43:23", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.usd b/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.usd deleted file mode 100644 index bec5ab11fdcc7fbd22a16fca1e322c67f56effce..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/sm_food_beverage_beerBottle_m01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f7c25e186eb47963f2ffbe2995ff662a32a13bca5700f12dc222eb76b76ff02d -size 789015 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_alb.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_alb.png deleted file mode 100644 index 4e12ad676ad6ecc1d3e832947f58f0718e45dbd5..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:df9a6a2e2eaf48ad15d606b95f28e07b845a82c7734a7b2598263b95407714d6 -size 799126 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_nor.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_nor.png deleted file mode 100644 index 298a257b5ae89bacacd75abcd4e232151300c946..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:76ed500d10cdebd18fbc0f9fe0dfec87c9e48bc002167081e19bb5d7702efb03 -size 851981 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_orm.png b/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_orm.png deleted file mode 100644 index 5c2e247aca8c87f6c87ce5d29dc88842b4b53ba9..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/textures/t_beerBottle_brown_m01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:81517f3e5ccd61ee347263ce82a454038f8dd44fabd92fa57a662dadb810ab31 -size 887789 diff --git a/sm_food_beverage_beerBottle_m01_01/simready_usd/web/sm_food_beverage_beerBottle_m01_01.glb b/sm_food_beverage_beerBottle_m01_01/simready_usd/web/sm_food_beverage_beerBottle_m01_01.glb deleted file mode 100644 index d212af59be44e4be38a5e505f912099ddebda365..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_m01_01/simready_usd/web/sm_food_beverage_beerBottle_m01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cdba13b39a5bc8a07cc0c3af9334b03397b3fcf4d0cc11a8699b44a89969fa65 -size 3034180 diff --git a/sm_food_beverage_beerBottle_n01_01/com.nvidia.simready.packaging.json b/sm_food_beverage_beerBottle_n01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index bf49d82750eb7fc71137d9a77e2bb5f9cc69b11d..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_beverage_beerBottle_n01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_n01_01.usd.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_n01_01.usd.png deleted file mode 100644 index f90ba9c2de0dfceb6236f6aa6b0d4d7c6b28a386..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/256x256/sm_food_beverage_beerBottle_n01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1eb8383ce06182dd0ca2df796275ae5b0ba13b67d3c66286a2e21d296ff4709b -size 74914 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01.usd.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01.usd.png deleted file mode 100644 index ae002abddc3b055b03f4e8471974d25d60dc502b..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:11ce27a2cb7c34f783bcf76c7ff1c5e9025d8ba5b8c3a0e1d9b020bcf621a92c -size 106136 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01_thumbnail.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01_thumbnail.png deleted file mode 100644 index 87201a0ee9a0a744bb13deea88e598ef028460c1..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/.thumbs/sm_food_beverage_beerBottle_n01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0876784090bc3fdd6681c0274e957209d381c99e651bdafc8c03f5ecb4bf269e -size 510320 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl b/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl deleted file mode 100644 index 39849aaa57e1d4bf1aec8f108f8fc7f7a25232c7..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass.mdl +++ /dev/null @@ -1,261 +0,0 @@ -/*************************************************************************************************** - * Copyright 2020 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; -import ::anno::*; -import ::base::*; -import ::tex::*; - -using OmniGlass_Opacity import OmniGlass_Opacity; -export annotation distill_off(); - - -export material OmniGlass -( - color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material - [[ - anno::hidden(), - anno::unused() - ]], - uniform bool use_glass_color_texture = false - [[ - anno::hidden(), - anno::unused() - ]], - uniform color glass_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Glass Color"), - anno::description("Sets the color of the glass"), - anno::hard_range(color(0.0), color(1.0)), - anno::in_group("Color") - ]], - uniform texture_2d glass_color_texture = texture_2d() - [[ - anno::display_name("Glass Color Texture"), - anno::description("Specifies the texture to be used for the glass color of the material"), - anno::in_group("Color") - ]], - float frosting_roughness = 0.f - [[ - anno::display_name("Glass Roughness"), - anno::description("Sets the roughness of the glass material "), - anno::hard_range(0.0, 1.0), - anno::in_group("Roughness") - ]], - uniform float glass_ior = 1.491f - [[ - anno::display_name("Glass IOR"), - anno::description("Sets IOR of the glass material "), - anno::soft_range(1.0f, 4.0f), - anno::in_group("Refraction") - ]], - uniform bool thin_walled = false - [[ - anno::display_name("Thin Walled"), - anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"), - anno::in_group("Refraction") - ]], - uniform float depth = 0.001f - [[ - anno::description("Controls how much light is absorbed through the surface"), - anno::display_name("Volume Absorption Scale"), - anno::in_group("Color"), - anno::soft_range(0.f, 1.f), - anno::hard_range(0.f, 1000.f) - ]], - float roughness_texture_influence = 1.f - [[ - anno::display_name("Roughness Texture Influence"), - anno::in_group("Roughness"), - anno::hard_range(0.0f, 1.0f) - ]], - uniform texture_2d roughness_texture = texture_2d() - [[ - anno::description("The roughness texture"), - anno::display_name("Roughness Texture"), - anno::in_group("Roughness"), - anno::usage("roughness") - ]], - uniform texture_2d reflection_color_texture = texture_2d() - [[ - anno::description("The reflection color texture"), - anno::display_name("Reflection Color Texture"), - anno::in_group("Reflection") - ]], - uniform color reflection_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Reflection Color"), - anno::in_group("Reflection") - ]], - uniform texture_2d normal_map_texture = texture_2d() - [[ - anno::description("The normal map texture"), - anno::display_name("Normal Map Texture"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float normal_map_strength = 1.0 - [[ - anno::description("Determines the degree of bumpiness"), - anno::display_name("Normal Map Strength"), - anno::in_group("Normal"), - anno::usage(""), - anno::soft_range(0.f, 1.f) - ]], - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.f, 1.f), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_u = false - [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true - [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - // Cutout Opacity - uniform bool enable_opacity = false - [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform float cutout_opacity = 1.0f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity") - ]], - uniform texture_2d cutout_opacity_texture = texture_2d() - [[ - anno::description("The opacity map"), - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha - [[ - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::display_name("Opacity Mono Source"), - anno::in_group("Opacity"), - anno::usage("") - ]], - uniform float opacity_threshold = 0.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - // UV Projection Group - uniform bool project_uvw = false - [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false - [[ - anno::display_name("Enable World Space"), - anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), - anno::in_group("UV") - ]], - - // UV Space Selector - uniform int uv_space_index = 0 - [[ - anno::display_name("UV Space Index"), - anno::description("Choose the UV Space Index to be used"), - anno::in_group("UV"), - anno::hard_range(0, 3) - ]], - uniform float2 texture_translate = float2(0.0f) - [[ - anno::display_name("Texture Translate"), - anno::description("Controls the position of the texture."), - anno::in_group("UV") - ]], - uniform float texture_rotate = 0.f - [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of the texture in degrees."), - anno::in_group("UV") - ]], - uniform float2 texture_scale = float2(1.0f) - [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV") - ]] -) -[[ - anno::author("NVIDIA CORPORATION"), - anno::display_name("Omni Glass"), - anno::version( 1, 0, 0), - anno::in_group("Base"), - anno::description("Omni Glass Material V2"), - anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")), - distill_off() -]] -= OmniGlass_Opacity( - glass_color: glass_color, - glass_color_texture: glass_color_texture, - frosting_roughness: frosting_roughness, - glass_ior: glass_ior, - thin_walled: thin_walled, - depth: depth, - roughness_texture_influence: roughness_texture_influence, - roughness_texture: roughness_texture, - reflection_color_texture: reflection_color_texture, - reflection_color: reflection_color, - normal_map_texture: normal_map_texture, - normal_map_strength: normal_map_strength, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - enable_opacity: enable_opacity, - cutout_opacity: cutout_opacity, - cutout_opacity_texture: cutout_opacity_texture, - cutout_opacity_mono_source: cutout_opacity_mono_source, - opacity_threshold: opacity_threshold, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale -); \ No newline at end of file diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl b/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl deleted file mode 100644 index 233328a4737ff2f4ba141cb6c0a109ff1772566f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl +++ /dev/null @@ -1,487 +0,0 @@ -/*************************************************************************************************** - * Copyright 2020 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - - -mdl 1.4; - -import ::tex::*; -import ::base::*; -import ::math::*; -import ::anno::*; -import ::df::*; -import ::state::*; -import OmniPBRBase::*; - -const string COPYRIGHT = -" Copyright 1986, 2020 NVIDIA Corporation. All rights reserved.\n" -" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" -" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" -" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" -" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" -" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" -" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" -" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" -" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" -" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" -" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; - -export annotation distill_off(); - - -float get_float( - uniform texture_2d t, - float f, - base::texture_coordinate_info uvw, - uniform base::mono_mode mono_source = base::mono_maximum -) -{ - return tex::texture_isvalid(t) ? - base::file_texture( - t, - color(0.f, 0.f, 0.f), - color(1.f, 1.f, 1.f), - mono_source, - uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false - ).mono : - f; -} - -color get_color( - uniform texture_2d t, - color c, - base::texture_coordinate_info uvw -) -{ - return tex::texture_isvalid(t) ? - base::file_texture( - t, - color(0.f, 0.f, 0.f), - color(1.f, 1.f, 1.f), - base::mono_alpha, - uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false - ).tint : - c; -} - -float apply_roughness_influence( - uniform texture_2d roughness_texture, - float constant_roughness, - float roughness_influence, - base::texture_coordinate_info uvw -) -{ - return math::lerp( - constant_roughness, - get_float(roughness_texture, constant_roughness, uvw), - roughness_influence - ); -} - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ - anno::description("Rotation applied to every UVW coordinate") - ]], - uniform float3 translation = float3(0.) - [[ - anno::description("Offset applied to every UVW coordinate") - ]], - uniform float3 scaling = float3(1.) - [[ - anno::description("Scale applied to every UVW coordinate") - ]] -) -[[ - anno::description("Construct transformation matrix from Euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = float4x4( - scaling.x , 0. , 0. , 0., - 0. , scaling.y , 0. , 0., - 0. , 0. , scaling.z , 0., - translation.x, translation.y, translation.z, 1. - ); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - float4x4 rotate = float4x4( - c.y*c.z, -c.x*s.z + s.x*s.y*c.z, s.x*s.z + c.x*s.y*c.z, 0.0, - c.y*s.z, c.x*c.z + s.x*s.y*s.z, -s.x*c.z + c.x*s.y*s.z, 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0. , 0. , 0. , 1. - ); - - return scale*rotate; -} - - -export material OmniGlass_Opacity -( - color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material - [[ - anno::hidden(), - anno::unused() - ]], - uniform bool use_glass_color_texture = false - [[ - anno::hidden(), - anno::unused() - ]], - uniform color glass_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Glass Color"), - anno::description("Sets the color of the glass"), - anno::hard_range(color(0.0), color(1.0)), - anno::in_group("Color") - ]], - uniform texture_2d glass_color_texture = texture_2d() - [[ - anno::display_name("Glass Color Texture"), - anno::description("Specifies the texture to be used for the glass color of the material"), - anno::in_group("Color") - ]], - float frosting_roughness = 0.f - [[ - anno::display_name("Glass Roughness"), - anno::description("Sets the roughness of the glass material "), - anno::hard_range(0.0, 1.0), - anno::in_group("Roughness") - ]], - uniform float glass_ior = 1.491f - [[ - anno::display_name("Glass IOR"), - anno::description("Sets IOR of the glass material "), - anno::soft_range(1.0f, 4.0f), - anno::in_group("Refraction") - ]], - uniform bool thin_walled = false - [[ - anno::display_name("Thin Walled"), - anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"), - anno::in_group("Refraction") - ]], - uniform float depth = 0.001f - [[ - anno::description("Controls how much light is absorbed through the surface"), - anno::display_name("Volume Absorption Scale"), - anno::in_group("Color"), - anno::soft_range(0.f, 1.f), - anno::hard_range(0.f, 1000.f) - ]], - float roughness_texture_influence = 1.f - [[ - anno::display_name("Roughness Texture Influence"), - anno::in_group("Roughness"), - anno::hard_range(0.0f, 1.0f) - ]], - uniform texture_2d roughness_texture = texture_2d() - [[ - anno::description("The roughness texture"), - anno::display_name("Roughness Texture"), - anno::in_group("Roughness"), - anno::usage("") - ]], - uniform texture_2d reflection_color_texture = texture_2d() - [[ - anno::description("The reflection color texture"), - anno::display_name("Reflection Color Texture"), - anno::in_group("Reflection") - ]], - uniform color reflection_color = color(1.f, 1.f, 1.f) - [[ - anno::display_name("Reflection Color"), - anno::in_group("Reflection") - ]], - uniform texture_2d normal_map_texture = texture_2d() - [[ - anno::description("The normal map texture"), - anno::display_name("Normal Map Texture"), - anno::in_group("Normal"), - anno::usage("") - ]], - uniform float normal_map_strength = 1.0 - [[ - anno::description("Determines the degree of bumpiness"), - anno::display_name("Normal Map Strength"), - anno::in_group("Normal"), - anno::usage(""), - anno::soft_range(0.f, 1.f) - ]], - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.f, 1.f), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_u = false - [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true - [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - // Cutout Opacity - uniform bool enable_opacity = true - [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform float cutout_opacity = 1.0f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity") - ]], - uniform texture_2d cutout_opacity_texture = texture_2d() - [[ - anno::description("The opacity map"), - anno::display_name("Opacity Map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha - [[ - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::display_name("Opacity Mono Source"), - anno::in_group("Opacity"), - anno::usage("") - ]], - uniform float opacity_threshold = 0.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If negative, disable cutout_opacity; if 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - // UV Projection Group - uniform bool project_uvw = false - [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false - [[ - anno::display_name("Enable World Space"), - anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"), - anno::in_group("UV") - ]], - - // UV Space Selector - uniform int uv_space_index = 0 - [[ - anno::display_name("UV Space Index"), - anno::description("Choose the UV Space Index to be used"), - anno::in_group("UV"), - anno::hard_range(0, 3) - ]], - uniform float2 texture_translate = float2(0.0f) - [[ - anno::display_name("Texture Translate"), - anno::description("Controls the position of the texture."), - anno::in_group("UV") - ]], - uniform float texture_rotate = 0.f - [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of the texture in degrees."), - anno::in_group("UV") - ]], - uniform float2 texture_scale = float2(1.0f) - [[ - anno::display_name("Texture Scale"), - anno::description("Larger numbers increase the size."), - anno::in_group("UV") - ]] -) -[[ - anno::copyright_notice(COPYRIGHT), - anno::author("NVIDIA CORPORATION"), - anno::display_name("Omni Glass Opacity"), - anno::version( 1, 0, 0), - anno::description("Omni Glass Opacity Material"), - anno::in_group("Base"), - anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")), - distill_off() -]] -= let { - // Material Properties - bool local_thin_walled = (tex::texture_isvalid(cutout_opacity_texture) || cutout_opacity != 1.f) ? true : thin_walled; - color local_glass_ior = glass_ior; - - - // UVW Properties - // Generating the texture coordinates for the texture lookups - base::texture_coordinate_system the_system = world_or_object ? - base::texture_coordinate_world : - base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? - base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - - // Opacity Properties - float opacity_value = get_float(cutout_opacity_texture, cutout_opacity, transformed_uvw, cutout_opacity_mono_source); - - // The opacity_threshold is interpreted as follows: - // 1. opacity_threshold > 0: binary opacity masking mode - // i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0 - // 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched, - // allowing the renderer to use fractional cutout_opacity values, if it supports this feature - // - // NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets - // cutout_opacity values of 1.0 as opaque and anything below as fully transparent - float local_cutout_opacity = enable_opacity ? - ((opacity_threshold == 0.0) ? - opacity_value : - ((opacity_value >= opacity_threshold) ? 1.0 : 0) - ) : - 1.0; - - - // Surface Properties - color local_reflection_color = get_color(reflection_color_texture, reflection_color, transformed_uvw); - color local_transmission_color = get_color(glass_color_texture, glass_color, transformed_uvw); - - OmniPBRBase::NormalData defaultData(state::normal(), float2(0.f)); - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normal_map_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - normal_map_texture, - normal_map_strength, - flip_tangent_u, - flip_tangent_v, - transformed_uvw, - float2(0.f, 1.f), - float2(0.f, 1.f), - tex::wrap_repeat, - tex::wrap_repeat, - false, - 1.f, - 0.f, - 0.f, - int2(0), - tex::wrap_repeat, - 30.f - ) : - defaultData; - - float local_roughness = apply_roughness_influence( - roughness_texture, - frosting_roughness, - roughness_texture_influence, - transformed_uvw - ); - float2 local_roughness_squared( - (local_roughness * local_roughness + - geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x), - (local_roughness * local_roughness + - geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y) - ); - - float3 the_normal = normal_data.normal; - - bsdf ggx_1 = ::df::microfacet_ggx_smith_bsdf( - roughness_u: local_roughness_squared.x, - roughness_v: local_roughness_squared.y, - tint: local_reflection_color, - tangent_u: ::state::texture_tangent_u(0), - mode: ::df::scatter_reflect - ); - - bsdf ggx_2 = ::df::microfacet_ggx_smith_bsdf( - roughness_u: local_roughness_squared.x, - roughness_v: local_roughness_squared.y, - tint: local_transmission_color, - tangent_u: ::state::texture_tangent_u(0), - mode: ::df::scatter_transmit - ); - - material_surface local_surface( - ::df::fresnel_layer( - ior: glass_ior, - weight: 1.f, - layer: ggx_1, - base: ggx_2, - normal: the_normal - ), - material_emission() - ); - - - // Volume Properties - color local_volume_absorption = depth; - color local_volume_scattering = color(0.f, 0.f, 0.f); - - material_volume local_volume(vdf(), local_volume_absorption, local_volume_scattering); - - - // Geometry Properties - material_geometry local_geometry(float3(0.f), local_cutout_opacity, the_normal); - -} in material( - thin_walled: local_thin_walled, - surface: local_surface, - ior: local_glass_ior, - volume: local_volume, - geometry: local_geometry -); diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.json b/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.json deleted file mode 100644 index e8384efd5c130344bc7b16e44daa810ae37a2b6d..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_food/food_beverage_beerBottle_n01", - "asset_name": "food_beverage_beerBottle_n01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_beverage_beerBottle_n01.blend@", - "usd_date_generated": "2026-05-07 15:14:24", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.usd b/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.usd deleted file mode 100644 index 446403d3f8f81674e4f54ce374d97f8a3f143049..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/sm_food_beverage_beerBottle_n01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:169b0a1197e736838ed8e32b6f5f1ee7369f250e13d533d709351d8e71afdcf8 -size 767748 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_alb.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_alb.png deleted file mode 100644 index 71c0bdb92de8767194a63a5622e789e29845cec8..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29a811395f26ffc8035b1af959ec5cb5f32a6485719e122b62de746c0ca8a08c -size 529345 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_nor.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_nor.png deleted file mode 100644 index eb1ad4dd303b4835cec776dbfb99d644c434524e..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75c484090b898b1ea061f74feb686c615a4c8b07e39dacb220839943b6b5a1cd -size 44228 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_orm.png b/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_orm.png deleted file mode 100644 index be43126df21efaa872958a7fdde6ea8cc7603ea9..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/textures/t_beerBottle_green_n01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2b613e42da2b1f7fabdfdabbca2afd0f5398e6798f77e979406cf959a85dc709 -size 107432 diff --git a/sm_food_beverage_beerBottle_n01_01/simready_usd/web/sm_food_beverage_beerBottle_n01_01.glb b/sm_food_beverage_beerBottle_n01_01/simready_usd/web/sm_food_beverage_beerBottle_n01_01.glb deleted file mode 100644 index b810c8d78e6db9163eb69db805de89f29e79fb9d..0000000000000000000000000000000000000000 --- a/sm_food_beverage_beerBottle_n01_01/simready_usd/web/sm_food_beverage_beerBottle_n01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:65df316264786718db1c7d1454cbb74e72566286e4b1b59287a2185df705bf96 -size 1114984 diff --git a/sm_food_prepared_bagel_g01_01/com.nvidia.simready.packaging.json b/sm_food_prepared_bagel_g01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 7e6e35764395f370419aa12b2761626bbe376f9e..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_prepared_bagel_g01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/256x256/sm_food_prepared_bagel_g01_01.usd.png b/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/256x256/sm_food_prepared_bagel_g01_01.usd.png deleted file mode 100644 index 014067e1632879de72aa6200cf2917f26fdb0a34..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/256x256/sm_food_prepared_bagel_g01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ada8a045deaed8bf16a6190e99dccf32f5984d49142e2bc06ef712bb125a181f -size 91157 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/sm_food_prepared_bagel_g01_01_thumbnail.png b/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/sm_food_prepared_bagel_g01_01_thumbnail.png deleted file mode 100644 index 0453ed315a074e09e8db10a20ea75596134fedc4..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/.thumbs/sm_food_prepared_bagel_g01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:472a5857569f09da6a4cae2eeafa55acb1d5136fd5ee6b56db88ecb03d547d64 -size 626519 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.json b/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.json deleted file mode 100644 index 96ca1f273babca7ad9df1c2428f979fbb8434133..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_food/food_prepared_bagel_g01", - "asset_name": "food_prepared_bagel_g01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_prepared_bagel_g01.blend@", - "usd_date_generated": "2026-03-17 15:18:49", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.usd b/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.usd deleted file mode 100644 index 37676ffb9bdd36dc26a037bbec0e458f3bf247a6..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/sm_food_prepared_bagel_g01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ce589f31147192c81e42134b106399057aede56435b28c4e6925bb6d6b06ed5 -size 366965 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_alb.png b/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_alb.png deleted file mode 100644 index e46b6338caf793cec922578e94996dc7661559b1..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d323650b068f64687e3562cecc59052f2617d365fa572a7cf88c4694cee209e -size 467788 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_nor.png b/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_nor.png deleted file mode 100644 index 4eb79930d70b263dcb3e3598a8b6a35dd2d7175a..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fe23752936f3a582f2883208290ee458dcc54c00ee52e4368343ef88ba9ac7ef -size 318095 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_orm.png b/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_orm.png deleted file mode 100644 index bade7a7b64717b3388e16973a0f0511065a9ad57..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/textures/t_bagel_brown_g01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96af41ed24348bad66bcd3362391bd001d5c1860d65843568af35acc0622a88c -size 205504 diff --git a/sm_food_prepared_bagel_g01_01/simready_usd/web/sm_food_prepared_bagel_g01_01.glb b/sm_food_prepared_bagel_g01_01/simready_usd/web/sm_food_prepared_bagel_g01_01.glb deleted file mode 100644 index d8e2d48d8845a96a47fac26965796bce09e20430..0000000000000000000000000000000000000000 --- a/sm_food_prepared_bagel_g01_01/simready_usd/web/sm_food_prepared_bagel_g01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fd5a9d83d89c15289a1b4d54ab2d1251af43c5e670f05bea513ce7db882753f9 -size 1134812 diff --git a/sm_food_processed_chips_o01_01/com.nvidia.simready.packaging.json b/sm_food_processed_chips_o01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index f8ce6eddc576acf4a71202d3f77e52f44ea3471e..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_processed_chips_o01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/256x256/sm_food_processed_chips_o01_01.usd.png b/sm_food_processed_chips_o01_01/simready_usd/.thumbs/256x256/sm_food_processed_chips_o01_01.usd.png deleted file mode 100644 index 82624dd2b1f91d3af121936ae7cd8a00b1ec0bfa..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/256x256/sm_food_processed_chips_o01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1b3fd4988ff686760aabe65f2c2a5154215f3eb730b0e97170cedb4a6a33aa11 -size 93188 diff --git a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01.usd.png b/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01.usd.png deleted file mode 100644 index 0a8bbc3a063ddb759d5dc8f65ba0b9c047bbf081..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f2b11465bd0cb583b8cc5b2e4b8e3b01e1f59375b688174a2d9fda56cf54cabb -size 199866 diff --git a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01_thumbnail.png b/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01_thumbnail.png deleted file mode 100644 index 9c8495792a86d6e27e7ae163a98e78d294da2c80..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/.thumbs/sm_food_processed_chips_o01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0f24edc5b4612b22df38f1d4ae65bcfd34d180a1b0dfa8ea733fe1f4e3bbec0c -size 641445 diff --git a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.json b/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.json deleted file mode 100644 index 433ce693975c8b5ac70fb38dc4b16980bf8ba16b..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_food/food_processed_chips_o01", - "asset_name": "food_processed_chips_o01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_processed_chips_o01.blend@", - "usd_date_generated": "2026-05-08 18:35:25", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.usd b/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.usd deleted file mode 100644 index 2d7f51d99883caa3799da4ee9319496151ee8603..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/sm_food_processed_chips_o01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:474c15b280a6691bd44236e6020a113e82f0be9c3d56fe4a1e27926f926171c1 -size 374462 diff --git a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_alb.png b/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_alb.png deleted file mode 100644 index d867627298c2c7604117db884d1757e4db65de1f..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a32a713781bc59704ecc8b7783996646262aba60183d5b4096849e1e69860622 -size 386575 diff --git a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_nor.png b/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_nor.png deleted file mode 100644 index e492e6732134b79f985477f9c3e277447745cdda..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8636fb5f4cdd05ef67a4765c3df989e29901079ac5e72e5e25208a9b77197e3 -size 20544 diff --git a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_orm.png b/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_orm.png deleted file mode 100644 index cf799c6850ef24ccbe98cfe882a82f41b075519f..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/textures/t_chips_orange_o01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6ba8d3a7bca86c3c8b5be4bf3e4a1e1f3c4247a90d15dc5e0685d92cd95f55e7 -size 85620 diff --git a/sm_food_processed_chips_o01_01/simready_usd/web/sm_food_processed_chips_o01_01.glb b/sm_food_processed_chips_o01_01/simready_usd/web/sm_food_processed_chips_o01_01.glb deleted file mode 100644 index 27bb89cdc0a0dcd39ac184a6fa1f089be2d00fc3..0000000000000000000000000000000000000000 --- a/sm_food_processed_chips_o01_01/simready_usd/web/sm_food_processed_chips_o01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:031c26774c371df60e9fb60de08db286d79ecc0390db5fd8f578b7e1590093a5 -size 710444 diff --git a/sm_food_processed_jam_a02_01/com.nvidia.simready.packaging.json b/sm_food_processed_jam_a02_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 43e0c20cb2ad791b031898e50c97f29ea51cd94d..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_processed_jam_a02_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/256x256/sm_food_processed_jam_a02_01.usd.png b/sm_food_processed_jam_a02_01/simready_usd/.thumbs/256x256/sm_food_processed_jam_a02_01.usd.png deleted file mode 100644 index 2fa81f210e071b7f07d748fb1febe97a397d6e48..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/256x256/sm_food_processed_jam_a02_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a37c5838a18a16854da4732f256b8a37f43b690bf2ab3eee3560c36bc6deb82d -size 86643 diff --git a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01.usd.png b/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01.usd.png deleted file mode 100644 index b1ec90cf1c07de812da84ea26a1deb451596cfc6..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:37d3ccf3cb5f1eb24fc35e9ec7a7d4c7f95ac5a563969840dca37b724045da00 -size 189078 diff --git a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01_thumbnail.png b/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01_thumbnail.png deleted file mode 100644 index 6d8fc479a32be5ac9047b4df2602a62c63004e57..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/.thumbs/sm_food_processed_jam_a02_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:765449387feefcc3f42cd7d1a458f54bf51440e089d6a3ed38e2858e140e689c -size 609593 diff --git a/sm_food_processed_jam_a02_01/simready_usd/.workertron/changelist_cache.json b/sm_food_processed_jam_a02_01/simready_usd/.workertron/changelist_cache.json deleted file mode 100644 index 166795df2f7a94e686e6c7e50a1ba1469a59a4d3..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/.workertron/changelist_cache.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "sm_food_processed_jam_a02_01.usd": { - "number": "1403687", - "description": "SimReady: Asset, sm_food_processed_jam_a02_01.usd for review from None on 2026-02-24", - "created_date": "2026-02-24T13:04:26.759182", - "usd_path": "D:/SimReady/omniverse/simready_next/Projects/simready_content/common_assets/props_food/food_processed_jam_a02/simready_usd/sm_food_processed_jam_a02_01.usd" - } -} \ No newline at end of file diff --git a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.json b/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.json deleted file mode 100644 index 3bfcbce3e62a9dc1d4928224b6c0bd6de4a4845f..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/SimReady/omniverse/simready_next/Projects/simready_content/common_assets/props_food/food_processed_jam_a02", - "asset_name": "food_processed_jam_a02", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_processed_jam_a02.blend@", - "usd_date_generated": "2026-02-24 13:02:05", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.usd b/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.usd deleted file mode 100644 index 50fd12fe228d56992b653502df6471d3633b5292..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/sm_food_processed_jam_a02_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f9098af699654c6e98630819261732dbaccd187c25ad65fbd550cd4c928ca0d6 -size 424136 diff --git a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_alb.png b/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_alb.png deleted file mode 100644 index 58a6b66b45eb1bae40494e3d9666fe68fa298b39..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce8e39d3273ae1ca91126dab6734ba39616772534968d3dc1b13ea7f9a1f1f18 -size 313200 diff --git a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_nor.png b/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_nor.png deleted file mode 100644 index c7c2ea11c674d88f470dbc7e90e2694c23a27fd7..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:af1a45997cfa96e9b1bd1c3bce239b824d6553a2ada8bebda7ee626b685f329e -size 54559 diff --git a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_orm.png b/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_orm.png deleted file mode 100644 index 497bbbde4e548dbd7e320b1ae52f007e427671a0..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/textures/t_jam_burgundy_a02_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f79efcc1d552cda47069bde65a7a8bc64fbd1d3d716f6c6c1b7d3d9961ddc79d -size 640216 diff --git a/sm_food_processed_jam_a02_01/simready_usd/web/sm_food_processed_jam_a02_01.glb b/sm_food_processed_jam_a02_01/simready_usd/web/sm_food_processed_jam_a02_01.glb deleted file mode 100644 index 054b21cd20b1dc24acbeeda09f53b4570b314164..0000000000000000000000000000000000000000 --- a/sm_food_processed_jam_a02_01/simready_usd/web/sm_food_processed_jam_a02_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9165f4bbee8a84c9c8bd448695cc3c220396f5b8f7933b687f91e8ac269bebd5 -size 1239012 diff --git a/sm_food_processed_milk_a01_01/com.nvidia.simready.packaging.json b/sm_food_processed_milk_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index d59e9e5f65f8f267d30434677f4563360fc0b5fd..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_food_processed_milk_a01_01.2026.05.15_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_food_processed_milk_a01_01/simready_usd/.thumbs/256x256/sm_food_processed_milk_a01_01.usd.png b/sm_food_processed_milk_a01_01/simready_usd/.thumbs/256x256/sm_food_processed_milk_a01_01.usd.png deleted file mode 100644 index 9c7ec08b2306d99c0f616cd3ed74a09aa7df9a0d..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/.thumbs/256x256/sm_food_processed_milk_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6eccedb0171c9d9bef805ef7e6103a8734d3f9bd069f27dcfb394dbfc01c392f -size 79776 diff --git a/sm_food_processed_milk_a01_01/simready_usd/.thumbs/sm_food_processed_milk_a01_01_thumbnail.png b/sm_food_processed_milk_a01_01/simready_usd/.thumbs/sm_food_processed_milk_a01_01_thumbnail.png deleted file mode 100644 index 600382668ae5c1826127d924fbe0a65c9b189b36..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/.thumbs/sm_food_processed_milk_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d44e49718e489c9ee82e869805385a2fb71725c6349b341be68719929ef4844b -size 547774 diff --git a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.json b/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.json deleted file mode 100644 index 32fc7a8ee78cf37b6cda0f13722d6091b4f5d5ac..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_food/food_processed_milk_a01", - "asset_name": "food_processed_milk_a01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/food_processed_milk_a01.blend@", - "usd_date_generated": "2026-04-14 13:20:46", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.usd b/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.usd deleted file mode 100644 index 30de639a1796d0ddf7d189c7b99db433264311ac..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/sm_food_processed_milk_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:778b3c4fdc512c0ab5a57c65a4d1e49a70726f7ef7899ebb9e5e6e23bbab7e0c -size 590457 diff --git a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_alb.png b/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_alb.png deleted file mode 100644 index 3be08cb7c1998bfc044fd2ac2be0e9d152a42dd9..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7a2bc4541983269c4d7790bc4d793deb4d00b28302ace718066fc5a5aa6259fc -size 347404 diff --git a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_nor.png b/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_nor.png deleted file mode 100644 index d1241d68d8a8b75d4589dd9fae2b76c60aa4cc23..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4914c36ed4b360265f452b6ea1b8245468391ae7ace291c9ec7c3586e99970eb -size 25973 diff --git a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_orm.png b/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_orm.png deleted file mode 100644 index 8a28c70c913f6d696c299b079a1349fb12c1d67b..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/textures/t_milk_blue_a01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0af9a6b64680a9716d0bbd2e5a369dbcb39f41fa5efa6316f7fdeea9bc9ca1e4 -size 165908 diff --git a/sm_food_processed_milk_a01_01/simready_usd/web/sm_food_processed_milk_a01_01.glb b/sm_food_processed_milk_a01_01/simready_usd/web/sm_food_processed_milk_a01_01.glb deleted file mode 100644 index eb34dac410e243e2284fb2bd7d3cdca4b87b0bbc..0000000000000000000000000000000000000000 --- a/sm_food_processed_milk_a01_01/simready_usd/web/sm_food_processed_milk_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:890f03f7a089fc1e87c4c8c877da3cdab9303b9148c4986adef5fd0347e341c2 -size 828684 diff --git a/sm_kitchenware_bowl_l01_01/com.nvidia.simready.packaging.json b/sm_kitchenware_bowl_l01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 4d2fa738cb6c9274a461d4e3e924a1753f1cace9..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_kitchenware_bowl_l01_01.2026.03.02_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/.simready_publish.json b/sm_kitchenware_bowl_l01_01/simready_usd/.simready_publish.json deleted file mode 100644 index f77bcfdd5df837966a8054589d661a59f1d0d06b..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-03-03T04:38:29.842496+00:00"} \ No newline at end of file diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/256x256/sm_kitchenware_bowl_l01_01.usd.png b/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/256x256/sm_kitchenware_bowl_l01_01.usd.png deleted file mode 100644 index 8a7005b8f1979179f049953cdbb8a47319279e39..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/256x256/sm_kitchenware_bowl_l01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b70cf9dd7a0fd29ef4cd1df93f124a766b3922d2da5c4c4a99b80f9723d4efa -size 409015 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/sm_kitchenware_bowl_l01_01_thumbnail.png b/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/sm_kitchenware_bowl_l01_01_thumbnail.png deleted file mode 100644 index 8a7005b8f1979179f049953cdbb8a47319279e39..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/.thumbs/sm_kitchenware_bowl_l01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b70cf9dd7a0fd29ef4cd1df93f124a766b3922d2da5c4c4a99b80f9723d4efa -size 409015 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.json b/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.json deleted file mode 100644 index cab900e52911ee342d07e650297fddfe287084bd..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_kitchenware/kitchenware_bowl_l01", - "asset_name": "kitchenware_bowl_l01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/kitchenware_bowl_l01.blend@", - "usd_date_generated": "2025-12-03 18:08:46", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.usd b/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.usd deleted file mode 100644 index 36f6dc31c84f34d8d3e8d551a9f88258b6114d91..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/sm_kitchenware_bowl_l01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:33a2ddfbde8e6ead40b1e18e81923965ba92f06e52f2329e2c4247d0ea4914b0 -size 533070 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_alb.png b/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_alb.png deleted file mode 100644 index 56310988d7a450f9eba5e8ff9cbc63d0ce350c11..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bcf88b25a32b6fd6341751f847e8dab0c6bc5b1987bd519021e1509cbca12016 -size 178653 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_nor.png b/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_nor.png deleted file mode 100644 index 9f66dc45d69fd75456e2ecc209c7a93171c45ec2..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:de7d84d0d6b88e228854cbb32df74fcd87ca59fba0a7d89ee4e59f4f83a905b3 -size 145957 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_orm.png b/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_orm.png deleted file mode 100644 index 18fcf3d776c1e8c03dad9faa0a58c2d010483243..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/textures/t_bowl_white_l01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c4a09473a393a7c886a41eb5831516b6e741c10fa0991103c6fbe46a09e73cde -size 180193 diff --git a/sm_kitchenware_bowl_l01_01/simready_usd/web/sm_kitchenware_bowl_l01_01.glb b/sm_kitchenware_bowl_l01_01/simready_usd/web/sm_kitchenware_bowl_l01_01.glb deleted file mode 100644 index 565609f4b4177ab4967d052d7da6c76cba493422..0000000000000000000000000000000000000000 --- a/sm_kitchenware_bowl_l01_01/simready_usd/web/sm_kitchenware_bowl_l01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1839d3730c3d9fc1cabc5cc8fc3915269508f470430b713b63e7f315489a6af7 -size 750892 diff --git a/sm_pallet_block_a01_01/com.nvidia.simready.packaging.json b/sm_pallet_block_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index b04003dad1ac0e998017aaa484a4b90023d454cc..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_pallet_block_a01_01.2026.04.16_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_pallet_block_a01_01/simready_usd/.simready_publish.json b/sm_pallet_block_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index 48068f78d2062b9af3d99479a0679a0a26532b23..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-04-16T09:35:24.026694+00:00"} \ No newline at end of file diff --git a/sm_pallet_block_a01_01/simready_usd/.thumbs/256x256/sm_pallet_block_a01_01.usd.png b/sm_pallet_block_a01_01/simready_usd/.thumbs/256x256/sm_pallet_block_a01_01.usd.png deleted file mode 100644 index 223743f871eddfde60ac1718f3873cb5b071602c..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/.thumbs/256x256/sm_pallet_block_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0966821d955b4f77376f047bd06e89c28cfcb3d85c0600bb624b368df8fde55c -size 70064 diff --git a/sm_pallet_block_a01_01/simready_usd/.thumbs/sm_pallet_block_a01_01_thumbnail.png b/sm_pallet_block_a01_01/simready_usd/.thumbs/sm_pallet_block_a01_01_thumbnail.png deleted file mode 100644 index 2887b322638c44a2e82f49fbaee83a65fd7a5cf5..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/.thumbs/sm_pallet_block_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfcbae7cdd562306e44d09d1b4b0b21a24672d0956dfdece7f8dfc8909c3d208 -size 504287 diff --git a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.json b/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.json deleted file mode 100644 index 043f813c2c9af828b9561cb764542ea29d5cd41c..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/Simready/omniverse/simready_next/Projects/simready_content/common_assets/props_warehouse/pallet_block_a01", - "asset_name": "sm_pallet_block_a01_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_pallet_block_a01_01.blend@", - "usd_date_generated": "2026-03-17 13:04:56", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.usd b/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.usd deleted file mode 100644 index f59954185ced8f6a087b0732554c0128ed29dbd4..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/sm_pallet_block_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:83493ee187db4e6486e21f95ecf2d23510f95bec4d810615cb0d8d924e9376a7 -size 373105 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png deleted file mode 100644 index b9466b87e611ad665e6512be7da5ff3b16370c06..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e233488d3d42d94fc8889dde78ca8e546cd5fed08d51f5373384964c9b3a6e5 -size 634053 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png deleted file mode 100644 index aff72631aa072e2f9bab6b85e5196bce67eb106b..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8254a2ca1b07a70fd151f752acb75b763bbcafb38681ddbb8a000f3452d2da3 -size 56586 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png deleted file mode 100644 index bc3f9912f686678b8e4644f572f472485e199b16..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48f7f6d85358d271f393382ee013635e970bf1ff4d5d66d91537a2f423f1361c -size 531802 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Albedo.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Albedo.png deleted file mode 100644 index 8501c981bdacfdee0129153a934ac6fc14b73d4f..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cd47c3c25460484feb18e5963bbf85a8efd66e10e28997293e50d9b45cf0a949 -size 5858911 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Normal.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Normal.png deleted file mode 100644 index eb4416a21eb6514a3c132238434e0a02e83ba5ba..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_Normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9b454a719d0b5fdd99714380a2e6b022f94ec058132005f3b01e71d3001045ac -size 6148680 diff --git a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_ORM.png b/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_ORM.png deleted file mode 100644 index 535f5fca8843e898758106cc1161012b457fa3b6..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/textures/T_Wood_New_A1_ORM.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:db3d3ea886a92e906a13fd026c024306f2f4cf5f8b6d26a3c60840024c9bb2ad -size 3107514 diff --git a/sm_pallet_block_a01_01/simready_usd/web/sm_pallet_block_a01_01.glb b/sm_pallet_block_a01_01/simready_usd/web/sm_pallet_block_a01_01.glb deleted file mode 100644 index a3b1b151834c4ba51087962822b144e7eba1b615..0000000000000000000000000000000000000000 --- a/sm_pallet_block_a01_01/simready_usd/web/sm_pallet_block_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e720474ba7c490c33a07d67c5f962bd2e9e8f5c173f81a4628a908fabd9ce0ee -size 16584192 diff --git a/sm_pallet_drum_wood_recycled_a05_01/com.nvidia.simready.packaging.json b/sm_pallet_drum_wood_recycled_a05_01/com.nvidia.simready.packaging.json deleted file mode 100644 index ecb6f89dd23699a9fd1c77fa88e5964d00505bef..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_pallet_drum_wood_recycled_a05_01.2026.04.16_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.simready_publish.json b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.simready_publish.json deleted file mode 100644 index 76b06568cd76e710112b6f2596815880469ba001..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-04-16T09:40:29.027561+00:00"} \ No newline at end of file diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/256x256/sm_pallet_drum_wood_recycled_a05_01.usd.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/256x256/sm_pallet_drum_wood_recycled_a05_01.usd.png deleted file mode 100644 index 46c934e5b026f939245dab8edb0ac5a7333e1684..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/256x256/sm_pallet_drum_wood_recycled_a05_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bb77ba88afb1513faf9606e02316d07ee037c2b65d318cdc3b2706fac8f3627e -size 79100 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/sm_pallet_drum_wood_recycled_a05_01_thumbnail.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/sm_pallet_drum_wood_recycled_a05_01_thumbnail.png deleted file mode 100644 index 86112349d2daeaa4c0b4b71a288c4565264ace2d..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/.thumbs/sm_pallet_drum_wood_recycled_a05_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96dff7fe7b7360705c5f99f9bc0d17b70a440764316f7736ea8babd970f4d49d -size 551288 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.json b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.json deleted file mode 100644 index 0cb0a95d55eaf6f93abdf9ee208ab85018278da9..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/simready/omniverse/simready_next/Projects/simready_content/common_assets/props_warehouse/pallet_drum_wood_recycled_a05", - "asset_name": "sm_pallet_drum_wood_recycled_a05_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_pallet_drum_wood_recycled_a05_01.blend@", - "usd_date_generated": "2026-03-17 13:17:16", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.usd b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.usd deleted file mode 100644 index 7b66115b6b677e56426c9517bfbf40e47226ed36..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/sm_pallet_drum_wood_recycled_a05_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:010d6d2101949769535a82d0ae285b35aae47b79319985bf5c5c9a2c041fde7e -size 1348905 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png deleted file mode 100644 index b9466b87e611ad665e6512be7da5ff3b16370c06..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Albedo_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4e233488d3d42d94fc8889dde78ca8e546cd5fed08d51f5373384964c9b3a6e5 -size 634053 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png deleted file mode 100644 index aff72631aa072e2f9bab6b85e5196bce67eb106b..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_Normal_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e8254a2ca1b07a70fd151f752acb75b763bbcafb38681ddbb8a000f3452d2da3 -size 56586 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png deleted file mode 100644 index bc3f9912f686678b8e4644f572f472485e199b16..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Metal_Glossy_A_ORM_1.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48f7f6d85358d271f393382ee013635e970bf1ff4d5d66d91537a2f423f1361c -size 531802 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Albedo.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Albedo.png deleted file mode 100644 index f3d7ad0e446dd200d15c614d29fb8e8cb38e216d..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:45418be8727fe592d632e2dc99e2eaac17b257ada833703de3a89c662ab3e88b -size 5842346 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Normal.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Normal.png deleted file mode 100644 index e2f359805e92c19806acc2a873187d37acef7cb7..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_Normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7d79fae351f3398b9f1a5685d79dde0d8d6155ac7678e9c0a143204b9e9609ab -size 3988612 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_ORM.png b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_ORM.png deleted file mode 100644 index 1c386a175b0fde7cd54e6978adc75df1b7997da6..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/textures/T_Wood_Recycled_A1_ORM.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:04d04a0a61420c843b0cee7364f31f137505f3f05f8348c80cb8cff36e83d371 -size 2772655 diff --git a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/web/sm_pallet_drum_wood_recycled_a05_01.glb b/sm_pallet_drum_wood_recycled_a05_01/simready_usd/web/sm_pallet_drum_wood_recycled_a05_01.glb deleted file mode 100644 index 295cbc4f1d2eee68fb5be5397ba5f620007afbe9..0000000000000000000000000000000000000000 --- a/sm_pallet_drum_wood_recycled_a05_01/simready_usd/web/sm_pallet_drum_wood_recycled_a05_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:6affa12d16a565cdb1b0f7c599244922b7e750f6e441a8e88e00e138f137e7a2 -size 14501588 diff --git a/sm_paper_roll_a02_01/com.nvidia.simready.packaging.json b/sm_paper_roll_a02_01/com.nvidia.simready.packaging.json deleted file mode 100644 index af2cc7ec2db5a1b54dfb3f82daae7ff11f26537e..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_paper_roll_a02_01.2026.03.03_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_paper_roll_a02_01/simready_usd/.simready_publish.json b/sm_paper_roll_a02_01/simready_usd/.simready_publish.json deleted file mode 100644 index a2846f3a68b582a9ddb6497d60a075ddc8d38b27..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-03-03T22:53:57.781818+00:00"} \ No newline at end of file diff --git a/sm_paper_roll_a02_01/simready_usd/.thumbs/256x256/sm_paper_roll_a02_01.usd.png b/sm_paper_roll_a02_01/simready_usd/.thumbs/256x256/sm_paper_roll_a02_01.usd.png deleted file mode 100644 index 8ec9f640a883e838fd66e85b9312367b66495ad9..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/.thumbs/256x256/sm_paper_roll_a02_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1435a832918d46db232884831c32f46cb03abc21041f6b3419691035f686794b -size 332064 diff --git a/sm_paper_roll_a02_01/simready_usd/.thumbs/sm_paper_roll_a02_01_thumbnail.png b/sm_paper_roll_a02_01/simready_usd/.thumbs/sm_paper_roll_a02_01_thumbnail.png deleted file mode 100644 index 8ec9f640a883e838fd66e85b9312367b66495ad9..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/.thumbs/sm_paper_roll_a02_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1435a832918d46db232884831c32f46cb03abc21041f6b3419691035f686794b -size 332064 diff --git a/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.json b/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.json deleted file mode 100644 index d594ccd77f1adfe349721af8c984bc9b4b30b768..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_warehouse/paper_roll_a02", - "asset_name": "sm_paper_roll_a02_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_paper_roll_a02_01.blend@", - "usd_date_generated": "2026-01-08 20:20:37", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.usd b/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.usd deleted file mode 100644 index 23a6b18a29f98d90a0a77ba991240d070f4f2c8c..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/sm_paper_roll_a02_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:10d7cf65fcdcdb52c7f4d6a0baecc18f252294bc59fa33397ed6f4ed3863e488 -size 358348 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Albedo.png b/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Albedo.png deleted file mode 100644 index b84910696fee2877246a8338cb52c91190a87b08..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7fefce8d8de3acadf6dd8da7431388fcf93da75dddd65cb6ad6672ac2bb3f7a4 -size 2772954 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Normal.png b/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Normal.png deleted file mode 100644 index b439f2ae5873c7f6a76957a1bdd21fdc23e6d18c..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_Normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:29669bb74da1b07ae5aff11a448c9a66a9ba1bfbf2434533618b41016047b40f -size 885595 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_ORM.png b/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_ORM.png deleted file mode 100644 index b4c49195b5142ba20372c0ae9d594f2a3dbdcb42..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/T_Plastic_Rough_Black_A_ORM.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c928cfc816ece9588e048644b393a485b4c6b88ec8aaa410aad9de3c22fbb0c2 -size 845019 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_albedo.png b/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_albedo.png deleted file mode 100644 index 90b14fddda27b9f3bd5b5994caeca039dfc7d31f..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fb5b1e1466834c1445a25d958b50770a68ef458d6400bcf6599bf5b1fc709253 -size 1090234 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_normal.png b/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_normal.png deleted file mode 100644 index 3989b4b15beae932ae60534eec78291659687c6d..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:23704d7262194a67a990ec306ce732ec5bf10fec3f57fcd8790f20198490dcde -size 1177892 diff --git a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_orm.png b/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_orm.png deleted file mode 100644 index b96414155fa4690bb1af5d52d946f194e390b92c..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/textures/t_paperroll_a01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a1880df54af9a7408af2152d6f241e8759a8942132013e14f912b6c0669ed6f8 -size 472859 diff --git a/sm_paper_roll_a02_01/simready_usd/web/sm_paper_roll_a02_01.glb b/sm_paper_roll_a02_01/simready_usd/web/sm_paper_roll_a02_01.glb deleted file mode 100644 index e2ad5d216f365a0163b7a41f685405676a86cffe..0000000000000000000000000000000000000000 --- a/sm_paper_roll_a02_01/simready_usd/web/sm_paper_roll_a02_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8834f763dc9db764b78e139773b55d95653fc136b775574f84806b2a5872a410 -size 7382736 diff --git a/sm_ppe_gloves_cloth_a01_01/.metadata/com.nvidia.simready.root_usds.json b/sm_ppe_gloves_cloth_a01_01/.metadata/com.nvidia.simready.root_usds.json deleted file mode 100644 index b434b0171d2623183f537b6dc37482c9fd723249..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/.metadata/com.nvidia.simready.root_usds.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "entries": [ - "simready_usd/sm_ppe_gloves_cloth_a01_01.usd" - ] -} diff --git a/sm_ppe_gloves_cloth_a01_01/com.nvidia.simready.packaging.json b/sm_ppe_gloves_cloth_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index fc02f0acc1cd4a19f41636a87f226e1c748ba630..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_ppe_gloves_cloth_a01_01.2026.06.22_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/.simready_publish.json b/sm_ppe_gloves_cloth_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index e80644b1a1811684b4f56a100f89c1c834f7933f..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-06-22T10:02:16.496653+00:00"} \ No newline at end of file diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/256x256/sm_ppe_gloves_cloth_a01_01.usd.png b/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/256x256/sm_ppe_gloves_cloth_a01_01.usd.png deleted file mode 100644 index 456783ccfd9838d172ebc817d6afb802d21ed743..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/256x256/sm_ppe_gloves_cloth_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a40effda856583755b2e2749231aeebfe26c7ccbf43765e173d5acf8166572f9 -size 79393 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/sm_ppe_gloves_cloth_a01_01_thumbnail.png b/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/sm_ppe_gloves_cloth_a01_01_thumbnail.png deleted file mode 100644 index 7834bc3ed469604826ebd6d6838dd6edd7611205..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/.thumbs/sm_ppe_gloves_cloth_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:58a0b99d9e29b1f7a827319d8b0a65bb4e32c5f59c5233de24ec63c262675595 -size 587103 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.json b/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.json deleted file mode 100644 index e0f3adad0bc5509b94c063926226d7c3499dbd87..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/Simready/omniverse/simready_next/Projects/simready_content/common_assets/props_automotive_workshop_tools/ppe_gloves_cloth_a01", - "asset_name": "ppe_gloves_cloth_a01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/ppe_gloves_cloth_a01.blend@", - "usd_date_generated": "2026-06-19 14:57:33", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.usd b/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.usd deleted file mode 100644 index 32388e2ce52d27c7fba29d0125f35fdf529faac1..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/sm_ppe_gloves_cloth_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c731f8537506198754f12c1d8831526bb41ed996a5956730b96e32ec1ac04d87 -size 8319735 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_alb.png b/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_alb.png deleted file mode 100644 index 17154e372ff1c4bc66c75898efdf5305a87ca9b5..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4d676345d53e0ff010caec53ca0873723965e271c662dc0b0ea6d36b9fa03174 -size 18838233 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_nor.png b/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_nor.png deleted file mode 100644 index 9f3824e7f9d92ff194ab3eda6b684a9ed5512a66..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:48203eea1ffd4559a800d1a19946d02d0de2ddaf330163efca789cbf07593213 -size 28847244 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_orm.png b/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_orm.png deleted file mode 100644 index 2c0e01d29c9d6d3dc5c72c759f2384bfcf8be207..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/textures/t_ppe_gloves_cloth_a01_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ee1bd5b0a6a3b3ab05207c9f7e8ef3e14f130d4d2cb413866f030516ef750fc -size 5562519 diff --git a/sm_ppe_gloves_cloth_a01_01/simready_usd/web/sm_ppe_gloves_cloth_a01_01.glb b/sm_ppe_gloves_cloth_a01_01/simready_usd/web/sm_ppe_gloves_cloth_a01_01.glb deleted file mode 100644 index 1210bb39b4f0155f3266101acd45ed9ee9afaf1c..0000000000000000000000000000000000000000 --- a/sm_ppe_gloves_cloth_a01_01/simready_usd/web/sm_ppe_gloves_cloth_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:493a6232cb7fef4f7b3949eca7bad165082b08a2955a3954e5cf4cfa45894093 -size 57893092 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/com.nvidia.simready.packaging.json b/sm_ppe_hearingProtection_earPlugs_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 092ef5535dbc26a49689388b96f07ceb4096fcd1..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_ppe_hearingProtection_earPlugs_a01_01.2026.06.22_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.simready_publish.json b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index 3d28902c1585bf2e1acc475ccd73e774422a72ee..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-06-22T10:03:42.496864+00:00"} \ No newline at end of file diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/256x256/sm_ppe_hearingProtection_earPlugs_a01_01.usd.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/256x256/sm_ppe_hearingProtection_earPlugs_a01_01.usd.png deleted file mode 100644 index c77ae0997c93563acdc573b3fc64eb447a83d13e..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/256x256/sm_ppe_hearingProtection_earPlugs_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ce53425aeb7f6ca95468fbe92d8c685d3d050df3d248ff61a31f3b26e07f75d1 -size 82385 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/sm_ppe_hearingProtection_earPlugs_a01_01_thumbnail.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/sm_ppe_hearingProtection_earPlugs_a01_01_thumbnail.png deleted file mode 100644 index 21416b909505a78e422af2b609f3792b6c56af70..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/.thumbs/sm_ppe_hearingProtection_earPlugs_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4dd1ece0240542c154eabed5ee3c75c6b7908cfc6b368882415c73c40ea821ea -size 548044 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.json b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.json deleted file mode 100644 index 0b2f50818bcfc38fe2c87ac38fe768f43488bb1e..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/Simready/omniverse/simready_next/Projects/simready_content/common_assets/props_automotive_workshop_tools/ppe_hearingProtection_earPlugs_a01", - "asset_name": "ppe_hearingProtection_earPlugs_a01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/ppe_hearingProtection_earPlugs_a01.blend@", - "usd_date_generated": "2026-06-19 15:45:06", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.usd b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.usd deleted file mode 100644 index ccf188cc406e32e6ed44b97d98c4084948325b16..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/sm_ppe_hearingProtection_earPlugs_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a0667b3c18ead0a2f289bde02750e03da3d40c56d64672c2e51ae91c44db651c -size 3118055 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_alb.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_alb.png deleted file mode 100644 index 12c3ed69a22db1045bb5e585c0947f05f63a7068..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1af0ab5561ed5295e17f26d5c245de1288ba8c53a1fe4df216f960673dfa846a -size 15689815 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_nor.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_nor.png deleted file mode 100644 index fcdd318f4fba2b725795189deb08107a31023600..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:adcd107e7e5dcfe8e8d689283875b77a46aadb09e25739b68bfad1fadd344788 -size 23536016 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_orm.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_orm.png deleted file mode 100644 index bf779770b5faf7cdd889596d7a6c88f8ea7c15e1..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_plastic_blue_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:4c52d4a130502a78fe1125b93b1aa9aa2aedc4481d73e93de076194e220f60b8 -size 13064706 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_nor.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_nor.png deleted file mode 100644 index f95c0f07cf51c2ea1c2380d023c7648e5d5e67d5..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e71a6ef5facd308179c3c8bcca2b371223698b43b3e326fd3761a67a9fbd8e31 -size 18709157 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_orm.png b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_orm.png deleted file mode 100644 index d9990baf963700fecaf4dffac10ae1a89fe58f3c..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/textures/t_rubber_new_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60af1f5ed7df5be29668922a5be6f30e3d0ee1d52f3b3b865ca201def43f166e -size 9447072 diff --git a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/web/sm_ppe_hearingProtection_earPlugs_a01_01.glb b/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/web/sm_ppe_hearingProtection_earPlugs_a01_01.glb deleted file mode 100644 index 5aaa2f067009bbf7481764349daeb0492b31f6a4..0000000000000000000000000000000000000000 --- a/sm_ppe_hearingProtection_earPlugs_a01_01/simready_usd/web/sm_ppe_hearingProtection_earPlugs_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f697068d494a26b442c00174190f1b4ca4c2b0a377d3a632bd7f87e3bac53eb7 -size 82278876 diff --git a/sm_tape_safety_white_8m10cm_b04_01/com.nvidia.simready.packaging.json b/sm_tape_safety_white_8m10cm_b04_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 5f5fa75a563d9dcf36585aac7c19176a94ee64d0..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_tape_safety_white_8m10cm_b04_01.2026.03.03_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.simready_publish.json b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.simready_publish.json deleted file mode 100644 index acb0eebd3656b46eedd691e9391d309a221b9a5f..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-03-04T00:29:58.890032+00:00"} \ No newline at end of file diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/256x256/sm_tape_safety_white_8m10cm_b04_01.usd.png b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/256x256/sm_tape_safety_white_8m10cm_b04_01.usd.png deleted file mode 100644 index 0df6391adb65b9cfc1d9f26a0510e7fe414c86a6..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/256x256/sm_tape_safety_white_8m10cm_b04_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92346a2ef90b2a39e33392d52647f428c6036f5ade74713651a0a5ba0c957eb3 -size 259917 diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/sm_tape_safety_white_8m10cm_b04_01_thumbnail.png b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/sm_tape_safety_white_8m10cm_b04_01_thumbnail.png deleted file mode 100644 index 0df6391adb65b9cfc1d9f26a0510e7fe414c86a6..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/.thumbs/sm_tape_safety_white_8m10cm_b04_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:92346a2ef90b2a39e33392d52647f428c6036f5ade74713651a0a5ba0c957eb3 -size 259917 diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.json b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.json deleted file mode 100644 index daf0f4ef9ab8ea70410835980b8a2bca74756ed7..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": "simready_content/common_assets/props_warehouse/tape_safety_white_8m10cm_b04", - "asset_name": "sm_tape_safety_white_8m10cm_b04_01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/sm_tape_safety_white_8m10cm_b04_01.blend@", - "usd_date_generated": "2026-01-20 17:31:20", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.usd b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.usd deleted file mode 100644 index 532477017fc3c3871936ac4f6d2810faeb1fa451..0000000000000000000000000000000000000000 Binary files a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/sm_tape_safety_white_8m10cm_b04_01.usd and /dev/null differ diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Albedo.png b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Albedo.png deleted file mode 100644 index 628ee8b170e4041619fba1328345fc1751d1f44c..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Albedo.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:75bc68150c03ae0ffb0de33d6a2834c29769b4c7ebb6593e25f7e7b50c3372ec -size 96104 diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Normal.png b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Normal.png deleted file mode 100644 index f820df6385e9c0498c92b01ecebbed5abc166cdd..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_Normal.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2af50656888ea2c992cdca71e40902045181807c29ea659fc26c3c5beea6e44 -size 19474512 diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_ORM.png b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_ORM.png deleted file mode 100644 index e4d4a2de3ccdefec55b60647cbc49e7cf615ce1d..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/textures/T_DeluxeSafetyTape_A01_ORM.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:9ffe4c5d6ae8429935371e103e53846871bf67184e39572fcc23df18891fe063 -size 12515438 diff --git a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/web/sm_tape_safety_white_8m10cm_b04_01.glb b/sm_tape_safety_white_8m10cm_b04_01/simready_usd/web/sm_tape_safety_white_8m10cm_b04_01.glb deleted file mode 100644 index fd0fd0cd53b7b3aa0935cf311b251f3b02378c96..0000000000000000000000000000000000000000 --- a/sm_tape_safety_white_8m10cm_b04_01/simready_usd/web/sm_tape_safety_white_8m10cm_b04_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d8886d98e323761467ca4e05bbf27432d89935cea35d4b13235699372806e990 -size 32090504 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/com.nvidia.simready.packaging.json b/sm_wasteManagement_recyclingBin_multiStream_a01_01/com.nvidia.simready.packaging.json deleted file mode 100644 index 138466a21c154ab43bd19bbd3cf1510162c493ad..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/com.nvidia.simready.packaging.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "format_version": "1.0", - "package_id": "simready.hf.nvidia.simready-assets.sm_wasteManagement_recyclingBin_multiStream_a01_01.2026.06.22_00", - "license": "CC-BY-4.0", - "metadata": [] -} diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.simready_publish.json b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.simready_publish.json deleted file mode 100644 index 22b55a667fcf189d71e0cdd7b2487a3270568663..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.simready_publish.json +++ /dev/null @@ -1 +0,0 @@ -{"timestamp": "2026-06-22T15:53:59.806034+00:00"} \ No newline at end of file diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/256x256/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/256x256/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd.png deleted file mode 100644 index 2fc21e03a244fb140ad4fa493a522ce7c14877e5..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/256x256/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:bd2d05096480f016ece77c6c19c955c95d5c5c4dcf58c7a415caf59411ccf7b8 -size 73779 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/sm_wasteManagement_recyclingBin_multiStream_a01_01_thumbnail.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/sm_wasteManagement_recyclingBin_multiStream_a01_01_thumbnail.png deleted file mode 100644 index 7aa9b58d83e8f0b8bb193ebd0cf0f3d08a26a154..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/.thumbs/sm_wasteManagement_recyclingBin_multiStream_a01_01_thumbnail.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0d10df5124c4a55f90dc03f36f460df6040c555546ff485aee2440328b108b81 -size 505885 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl deleted file mode 100644 index 7509579a8fd4ec7d069e6d242b37dad39290ec55..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR.mdl +++ /dev/null @@ -1,419 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBR_ClearCoat::*; - - -// OmniPBR // - -export material OmniPBR( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity") - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls the repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls the repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 2), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] = let { - -material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat( - diffuse_color_constant: diffuse_color_constant, - diffuse_texture: diffuse_texture, - albedo_desaturation: albedo_desaturation, - albedo_add: albedo_add, - albedo_brightness: albedo_brightness, - diffuse_tint: diffuse_tint, - reflection_roughness_constant: reflection_roughness_constant, - reflection_roughness_texture_influence: reflection_roughness_texture_influence, - reflectionroughness_texture: reflectionroughness_texture, - metallic_constant: metallic_constant, - metallic_texture_influence: metallic_texture_influence, - metallic_texture: metallic_texture, - specular_level: specular_level, - enable_ORM_texture: enable_ORM_texture, - ORM_texture: ORM_texture, - ao_to_diffuse: ao_to_diffuse, - ao_texture: ao_texture, - enable_emission: enable_emission, - emissive_color: emissive_color, - emissive_color_texture: emissive_color_texture, - emissive_mask_texture: emissive_mask_texture, - emissive_intensity: emissive_intensity, - enable_opacity: enable_opacity, - opacity_texture: opacity_texture, - opacity_constant: opacity_constant, - enable_opacity_texture: enable_opacity_texture, - opacity_mode: opacity_mode, - opacity_threshold: opacity_threshold, - geometry_normal_roughness_strength: geometry_normal_roughness_strength, - bump_factor: bump_factor, - normalmap_texture: normalmap_texture, - detail_bump_factor: detail_bump_factor, - detail_normalmap_texture: detail_normalmap_texture, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v, - project_uvw: project_uvw, - world_or_object: world_or_object, - uv_space_index: uv_space_index, - texture_translate: texture_translate, - texture_rotate: texture_rotate, - texture_scale: texture_scale, - detail_texture_translate: detail_texture_translate, - detail_texture_rotate: detail_texture_rotate, - detail_texture_scale: detail_texture_scale, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials -); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl deleted file mode 100644 index ea5272914d203f50e4f33c5d420d2b94daddbc0f..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +++ /dev/null @@ -1,493 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::tex::*; -import ::anno::*; -import ::anno::*; - -export float3 HemiOctahedronToUnitVector( float2 Oct ) [[ - anno::hidden() -]] -{ - Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5; - float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) ); - return math::normalize(N); -} - -export struct NormalData [[ - anno::hidden() -]] -{ - float3 normal; - float2 roughness; -}; - -export NormalData tangent_space_normal_roughness_texture( - uniform texture_2d texture - [[ - anno::description("The input texture"), - anno::usage("normal") - ]], - uniform float factor = 1.0f - [[ anno::description("Determines the degree of bumpiness") ]], - uniform bool flip_tangent_u = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - uniform bool flip_tangent_v = false - [[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]], - base::texture_coordinate_info uvw = base::texture_coordinate_info() - [[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]], - uniform float2 crop_u = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]], - uniform float2 crop_v = float2( 0.0, 1.0) - [[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]], - uniform tex::wrap_mode wrap_u = tex::wrap_repeat - [[ anno::description("Wrapping mode in the u direction") ]], - uniform tex::wrap_mode wrap_v = tex::wrap_repeat - [[ anno::description("Wrapping mode in the v direction") ]], - uniform bool clip = false - [[ - anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"), - anno::hidden() - ]], - uniform float scale = 1. - [[ - anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float offset = 0. - [[ - anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"), - anno::unused() - ]], - uniform float animation_start_time = 0. - [[ anno::description("When to start playing first frame of the animation ") ]], - uniform int2 animation_crop = int2(0, 0) - [[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]], - uniform tex::wrap_mode animation_wrap = tex::wrap_repeat - [[ anno::description("Defines what to do outside of regular animation time") ]], - uniform float animation_fps = 30 - [[ anno::description("Framerate to use for animation playback") ]] -) -[[ - anno::description("Interprets the color values of a bitmap as a vector in tangent space"), - anno::hidden(), - anno::noinline() -]] -{ - NormalData normalData; - normalData.roughness = float2(0); - normalData.normal = state::normal(); - - float frame = 0.0; - if(animation_crop != int2(0,0)) //only if we have an animation - { - frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation - switch ( animation_wrap) { - case tex::wrap_repeat: - frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x: - math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y; - break; - case tex::wrap_mirrored_repeat: - float animation_crop_2y = 2.0*animation_crop.y; - frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x: - math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x; - if(frame>animation_crop.y) - frame = animation_crop_2y-frame; - break; - case tex::wrap_clamp: - frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y); - break; - case tex::wrap_clip: - frame += animation_crop.x; - if(frame < animation_crop.x || frame > animation_crop.y) return normalData; - break; - } - } - - if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource - factor == 0.0f) - return normalData; - { - if (clip) { - if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) { - return normalData; - } - if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) { - return normalData; - } - } - bool pixel_flip_u = flip_tangent_u; - bool pixel_flip_v = flip_tangent_v; - //if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile - if (wrap_u == tex::wrap_mirrored_repeat) { - if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1) - pixel_flip_u = ! pixel_flip_u; - else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0) - pixel_flip_u = ! pixel_flip_u; - } - if (wrap_v == tex::wrap_mirrored_repeat) { - if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1) - pixel_flip_v = ! pixel_flip_v; - else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0) - pixel_flip_v = ! pixel_flip_v; - } - - float3 transformed_tangent_u = uvw.tangent_u; - float3 transformed_tangent_v = uvw.tangent_v; - - if (pixel_flip_u) - transformed_tangent_u=-transformed_tangent_u; - if (pixel_flip_v) - transformed_tangent_v=-transformed_tangent_v; - - float3 tangent_space_normal; - float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame); - if(normal_raw.x > 1.5) - { - // octahedron packed by OV - normal_raw.x -= 2.0; - normal_raw.x -= 0.5; - normal_raw.y -= 0.5; - tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0); - normalData.roughness = float2(normal_raw.z, normal_raw.w); - } - else - { - // regular - tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0; - normalData.roughness = float2(0); - } - - normalData.normal = math::normalize( - transformed_tangent_u * tangent_space_normal.x * factor + - transformed_tangent_v * tangent_space_normal.y * factor + - state::normal() * tangent_space_normal.z); - - return normalData; -} - - -export material OmniPBRBase( - - - // Albdeo // - - color diffuse_reflection_color = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Albedo Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflecitivity // - - float specular_reflection_roughness = float(0.0) [[ - anno::display_name("Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hidden() - ]], - float metalness = float(0.0) [[ - anno::display_name("Metalness"), - anno::description("Bias towards pure specular reflection"), - anno::in_group("Reflectivity"), - anno::hard_range(0.0, 1.0) - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(0.0, 1.0) - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emission_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - float emission_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::soft_range(0.0, 1000.0), - anno::enable_if("enable_emission == true") - ]], - - - // Geometry Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - float geometry_opacity = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - uniform float geometry_opacity_threshold = 0.f - [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(0.0, 1.0) - ]], - - - // Clearcoat // - - uniform bool enable_coat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a coat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float coat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for coat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - color coat_color = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float coat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float coat_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(0.0, 1.0) - ]], - float2 coat_aniso_roughness = float2(0.0, 0.0) [[ - anno::display_name("Clearcoat aniso roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hidden() - ]], - float coat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the coat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(0.0, 4.0) - ]], - float3 clearcoat_geometry_normal = state::normal() [[ - anno::display_name("Clearcoat Normal"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]], - float3 geometry_normal = state::normal() [[ - anno::display_name("Geometry Normal"), - anno::in_group("Geometry"), - anno::usage("normal") - ]] - -) -[[ - anno::display_name("OmniPBR Base"), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Omni Materials"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic")) -]] - = let{ - - // Diffuse Bsdf // - - color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint; - - color base_color = tinted_diffuse_color; - - bsdf diffuse_bsdf = df::weighted_layer( - weight: 1.0, - layer: df::diffuse_reflection_bsdf( - tint: base_color, - roughness: float(0.0) - ), - base: bsdf(), - normal: geometry_normal - ); - - // Glossy Reflection Bsdf // - - float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1); - float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness - + specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1); - bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: roughness_u, - roughness_v: roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf custom_curve_layer_bsdf = df::custom_curve_layer( - normal_reflectivity: 0.08, - grazing_reflectivity: 1.0, - exponent: 5.0, - weight: specular_level, - layer: ggx_smith_bsdf, - base: diffuse_bsdf, - normal: geometry_normal - ); - - bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf); - - bsdf omni_PBR_bsdf = df::weighted_layer( - weight: metalness, - layer: directional_factor_bsdf, - base: custom_curve_layer_bsdf, - normal: geometry_normal - ); - - // Clear Coat // - - float coat_roughness_u = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1); - float coat_roughness_v = math::clamp(coat_roughness * coat_roughness - + coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1); - bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf( - roughness_u: coat_roughness_u, - roughness_v: coat_roughness_v, - tint: color(1.0), - mode: df::scatter_reflect - ); - - bsdf opaque_coat = df::weighted_layer( - weight: coat_transparency, - layer: ::df::tint( - tint: coat_color, - base: omni_PBR_bsdf - ), - base: ::df::diffuse_reflection_bsdf( - tint: coat_color - ) - ); - - bsdf omni_PBR_coated_bsdf = df::fresnel_layer( - ior: coat_ior, - weight: coat_weight, - layer: coat_bsdf, - base: opaque_coat, - normal: clearcoat_geometry_normal - ); - - bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf; - - color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0); - - float opacity_value = geometry_opacity; - float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0; - - material_emission emission = material_emission( - df::diffuse_edf(), - intensity: emission_value - ); - - material_surface surface = material_surface( - scattering: final_bsdf, - emission: emission - ); - - material_geometry geometry = material_geometry( - normal: state::rounded_corner_normal( - radius: round_edges_radius, - across_materials: round_edges_across_materials, - roundness: round_edges_roundness - ), - cutout_opacity: cutout_opacity - ); - -} in material( - surface: surface, - geometry: geometry -); diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl deleted file mode 100644 index b83431718cbb6ab7c57d8da75468698bab757644..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +++ /dev/null @@ -1,734 +0,0 @@ -/*************************************************************************************************** - * Copyright 2022 NVIDIA Corporation. All rights reserved. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * * Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * * Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * * Neither the name of NVIDIA CORPORATION nor the names of its - * contributors may be used to endorse or promote products derived - * from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY - * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR - * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, - * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR - * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY - * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT - * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE - * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - **************************************************************************************************/ - -mdl 1.7; - -import ::df::*; -import ::state::*; -import ::math::*; -import ::base::*; -import ::state::*; -import ::tex::*; -import ::anno::*; - -import ::debug::*; - -import ::nvidia::core_definitions::file_texture; -import ::nvidia::core_definitions::normalmap_texture; - -import OmniPBRBase::*; - -// Functions // - - -// Returns a matrix from R,T,S. inputs // - -uniform float4x4 rotation_translation_scale( - uniform float3 rotation = float3(0.) - [[ anno::description("Rotation applied to every UVW coordinate") ]], - uniform float3 translation = float3(0.) - [[ anno::description("Offset applied to every UVW coordinate") ]], - uniform float3 scaling = float3(1.) - [[ anno::description("Scale applied to every UVW coordinate") ]] -) -[[ - anno::description("Construct a transformation matrix from euler rotation, translation and scale"), - anno::hidden() -]] -{ - float4x4 scale = - float4x4(scaling.x , 0.0 , 0.0 , 0.0, - 0.0 , scaling.y , 0.0 , 0.0, - 0.0 , 0.0 , scaling.z , 0.0, - translation.x , translation.y , translation.z , 1.0); - - float3 s = math::sin(rotation); - float3 c = math::cos(rotation); - - float4x4 rotate = - float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, - c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, - -s.y , s.x*c.y , c.x*c.y , 0.0, - 0.0 , 0.0 , 0 , 1.0); - - return scale * rotate; -} - -// Returns the normal n in tangent space, given n is in internal space. // - -float3 transform_internal_to_tangent(float3 n) -{ - /* flip_tangent_v */ - return - n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+ - n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+ - n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z); -} - -// Returns the normal n in internal space, given n is in tangent space. -float3 transform_tangent_to_internal(float3 n) -{ - return state::texture_tangent_u(0) * n.x - - state::texture_tangent_v(0) * n.y + /* flip_tangent_v */ - state::normal() * n.z; -} - -// Returns a normal by adding a detail normal to a global normal. -export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) -{ - // http://blog.selfshadow.com/publications/blending-in-detail/ - float3 n_t = transform_internal_to_tangent(n); - float3 nd_t = transform_internal_to_tangent(nd); - n_t = n_t + float3(0.,0.,1.); - nd_t = nd_t * float3(-1.,-1.,1.); - n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t; - return math::normalize(transform_tangent_to_internal(n)); -} - -base::texture_return multiply_colors( - color color_1 = color(1.0, 1.0, 1.0), - color color_2 = color(.5, .5, .5), - float weight = 1.0 - ) -[[ - anno::hidden() -]] -{ - return base::blend_color_layers( - layers: base::color_layer[]( - base::color_layer( - layer_color: color_2, - weight: weight, - mode: base::color_layer_multiply - )), - base: color_1 - ); -} - - -// OmniPBR Clearcoat // - -export material OmniPBR_ClearCoat( - - // Albdeo // - - color diffuse_color_constant = color(0.2) [[ - anno::display_name("Albedo Color"), - anno::description("This is the albedo base color"), - anno::in_group("Albedo") - ]], - uniform texture_2d diffuse_texture = texture_2d() [[ - anno::display_name("Albedo Map"), - anno::in_group("Albedo") - ]], - float albedo_desaturation = float(0.0) [[ - anno::display_name("Albedo Map Desaturation"), - anno::description("Desaturates the albedo map"), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - float albedo_add = float(0.0) [[ - anno::display_name("Albedo Add"), - anno::description("Adds a constant value to the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(-1.0), float(1.0)) - ]], - float albedo_brightness = float(1.0) [[ - anno::display_name("Albedo Brightness"), - anno::description("Multiplier for the diffuse color "), - anno::in_group("Albedo"), - anno::soft_range(float(0.0), float(1.0)) - ]], - color diffuse_tint = color(1.0) [[ - anno::display_name("Color Tint"), - anno::description("When enabled, this color value is multiplied over the final albedo color"), - anno::in_group("Albedo") - ]], - - - // Reflectivity // - - float reflection_roughness_constant = float(0.5) [[ - anno::display_name("Roughness Amount"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float reflection_roughness_texture_influence = float(0.0) [[ - anno::display_name("Roughness Map Influence"), - anno::description("Blends between the constant value and the lookup of the roughness texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d reflectionroughness_texture = texture_2d() [[ - anno::display_name("Roughness Map"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - float metallic_constant = float(0.0) [[ - anno::display_name("Metallic Amount"), - anno::description("Metallic Material"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float metallic_texture_influence = float(0.0) [[ - anno::display_name("Metallic Map Influence"), - anno::description("Blends between the constant value and the lookup of the metallic texture"), - anno::in_group("Reflectivity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d metallic_texture = texture_2d() [[ - anno::display_name("Metallic Map"), - anno::in_group("Reflectivity"), - anno::usage("metalness") - ]], - float specular_level = float(0.5) [[ - anno::display_name("Specular"), - anno::description("The specular level (intensity) of the material"), - anno::in_group("Reflectivity"), - anno::soft_range(float(0.0), float(1.0)) - ]], - - - // ORM // - - uniform bool enable_ORM_texture = false [[ - anno::display_name("Enable ORM Texture"), - anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"), - anno::in_group("Reflectivity") - ]], - uniform texture_2d ORM_texture = texture_2d() [[ - anno::display_name("ORM Map"), - anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"), - anno::in_group("Reflectivity"), - anno::usage("roughness") - ]], - - - // AO Group // - - float ao_to_diffuse = 0.0 [[ - anno::display_name("AO to diffuse"), - anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"), - anno::in_group("AO"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform texture_2d ao_texture = texture_2d() [[ - anno::display_name("Ambient Occlusion Map"), - anno::description("The ambient occlusion texture for the material"), - anno::in_group("AO"), - anno::usage("occlusion") - ]], - - - // Emission // - - uniform bool enable_emission = false [[ - anno::display_name("Enable Emission"), - anno::description("Enables the emission of light from the material"), - anno::in_group("Emissive") - ]], - color emissive_color = color(1.0,0.1,0.1) [[ - anno::display_name("Emissive Color"), - anno::description("The emission color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_color_texture = texture_2d() [[ - anno::display_name("Emissive Color map"), - anno::in_group("Emissive"), - anno::description("The emissive color texture"), - anno::enable_if("enable_emission == true") - ]], - uniform texture_2d emissive_mask_texture = texture_2d() [[ - anno::display_name("Emissive Mask map"), - anno::description("The texture masking the emissive color"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true"), - anno::usage("occlusion") - ]], - float emissive_intensity = float(40.0) [[ - anno::display_name("Emissive Intensity"), - anno::description("Intensity of the emission"), - anno::in_group("Emissive"), - anno::enable_if("enable_emission == true") - ]], - - - // Cutout Opacity // - - uniform bool enable_opacity = false [[ - anno::display_name("Enable Opacity"), - anno::description("Enables the use of cutout opacity"), - anno::in_group("Opacity") - ]], - uniform texture_2d opacity_texture = texture_2d() [[ - anno::display_name("Opacity Map"), - anno::in_group("Opacity"), - anno::usage("opacity") - ]], - float opacity_constant = float(1.0) [[ - anno::display_name("Opacity Amount"), - anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - uniform bool enable_opacity_texture = false [[ - anno::display_name("Enable Opacity Texture"), - anno::description("Enables or disables the usage of the opacity texture map"), - anno::in_group("Opacity") - ]], - uniform base::mono_mode opacity_mode = base::mono_average [[ - anno::display_name("Opacity Mono Source"), - anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"), - anno::in_group("Opacity") - ]], - uniform float opacity_threshold = float(0.0) [[ - anno::display_name("Opacity Threshold"), - anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"), - anno::in_group("Opacity"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Clearcoat // - - uniform bool enable_clearcoat = false [[ - anno::display_name("Enable Clearcoat Layer"), - anno::description("Adds a clearcoat layer on top of the material when enabled"), - anno::in_group("Clearcoat") - ]], - float clearcoat_weight = float(1.0) [[ - anno::display_name("Clearcoat Weight"), - anno::description("Sets the weight for clearcoat layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - color clearcoat_tint = color(1.0) [[ - anno::display_name("Clearcoat Tint"), - anno::description("Clearcoat is tinted and affects the underlying material"), - anno::in_group("Clearcoat") - ]], - float clearcoat_transparency = float(1.0) [[ - anno::display_name("Clearcoat Transparency"), - anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_reflection_roughness = float(0.0) [[ - anno::display_name("Clearcoat Roughness"), - anno::description("Higher roughness values lead to more blurry reflections"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - float clearcoat_ior = float(1.56) [[ - anno::display_name("Clearcoat IOR"), - anno::description("Sets the Index of refraction for the clearcoat layer"), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(4.0)) - ]], - uniform float clearcoat_bump_factor = float(1.0) [[ - anno::display_name("Clearcoat Normal Map Strength"), - anno::description("Strength of normal map."), - anno::in_group("Clearcoat"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[ - anno::display_name("Clearcoat Normal Map"), - anno::description("Enables the usage of the normalmap texture"), - anno::in_group("Clearcoat"), - anno::usage("normal") - ]], - uniform float2 clearcoat_texture_translate = float2(0.0) [[ - anno::display_name("Clearcoat Texture Translate"), - anno::description("Controls the position of the clearcoat texture"), - anno::ui_order(1), - anno::in_group("UV") - ]], - uniform float clearcoat_texture_rotate = float(0.0) [[ - anno::display_name("Clearcoat Texture Rotate"), - anno::description("Rotates angle of the clearcoat texture in degrees"), - anno::ui_order(2), - anno::in_group("UV") - ]], - uniform float2 clearcoat_texture_scale = float2(1.0) [[ - anno::display_name("Clearcoat Texture Tiling"), - anno::description("Controls the repetition of the clearcoat texture"), - anno::ui_order(3), - anno::in_group("UV") - ]], - float clearcoat_flatten = float(1.0) [[ - anno::display_name("Clearcoat Flatten"), - anno::description("Flattens the clearcoat to even out the underlying bump maps"), - anno::in_group("Clearcoat"), - anno::hard_range(float(0.0), float(1.0)) - ]], - - - // Normal // - - uniform float geometry_normal_roughness_strength = 1.f - [[ - anno::hard_range(0.0, 1.0), - anno::display_name("Normal map to roughness weight"), - anno::description("Enables and weights roughness induced by normal maps"), - anno::in_group("Normal") - ]], - uniform float bump_factor = float(1.0) [[ - anno::display_name("Normal Strength"), - anno::description("Strength of normal map"), - anno::in_group("Normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d normalmap_texture = texture_2d() [[ - anno::display_name("Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform float detail_bump_factor = float(0.3) [[ - anno::display_name("Detail Normal Strength"), - anno::in_group("Normal"), - anno::description("Strength of the detail normal"), - anno::soft_range(float(0.0), float(1.0)) - ]], - uniform texture_2d detail_normalmap_texture = texture_2d() [[ - anno::display_name("Detail Normal Map"), - anno::in_group("Normal"), - anno::usage("normal") - ]], - uniform bool flip_tangent_u = false [[ - anno::display_name("Normal Map Flip U Tangent"), - anno::in_group("Normal") - ]], - uniform bool flip_tangent_v = true [[ - anno::display_name("Normal Map Flip V Tangent"), - anno::in_group("Normal") - ]], - - - // UVW Projection Group // - - uniform bool project_uvw = false [[ - anno::display_name("Enable Project UVW Coordinates"), - anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"), - anno::in_group("UV") - ]], - uniform bool world_or_object = false [[ - anno::display_name("Enable World Space"), - anno::description("When enabled, uses world space for projection, otherwise object space is used"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform int uv_space_index = 0 [[ - anno::display_name("UV Space Index"), - anno::description("UV Space Index"), - anno::in_group("UV"), - anno::enable_if("project_uvw == true"), - anno::hard_range(int(0), int(3)) - ]], - - - // UVW Adjustments Group // - - uniform float2 texture_translate = float2(0.0) [[ - anno::display_name("Texture Translate"), - anno::description("Controls position of texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float texture_rotate = float(0.0) [[ - anno::display_name("Texture Rotate"), - anno::description("Rotates angle of texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 texture_scale = float2(1.0) [[ - anno::display_name("Texture Tiling"), - anno::description("Controls repetition of the texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_translate = float2(0.0) [[ - anno::display_name("Detail Texture Translate"), - anno::description("Controls the position of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float detail_texture_rotate = float(0.0) [[ - anno::display_name("Detail Texture Rotate"), - anno::description("Rotates angle of the detail texture in degrees."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - uniform float2 detail_texture_scale = float2(1.0) [[ - anno::display_name("Detail Texture Tiling"), - anno::description("Controls repetition of the detail texture."), - anno::in_group("UV"), - anno::enable_if("project_uvw == true") - ]], - - - // Geometry // - - uniform float round_edges_radius = float(0.0) [[ - anno::display_name("Round Edge Radius"), - anno::description("Influence radius around the edges in meters"), - anno::in_group("Geometry"), - anno::soft_range(0.0, 1.0) - ]], - uniform float round_edges_roundness = float(1.0) [[ - anno::display_name("Round Edge Roundness"), - anno::description("Determines how round the edge will look"), - anno::in_group("Geometry"), - anno::hard_range(0.0, 1.0) - ]], - uniform bool round_edges_across_materials = false [[ - anno::display_name("Round Edge Across Materials"), - anno::description("Normal smoothing happens only between facets of equal material, \n" - "\t\tunless this parameter is set true, in which case the smoothing \n" - "\t\thappens between facets irrespective of their materials"), - anno::in_group("Geometry") - ]] -) -[[ - anno::display_name("OmniPBR ClearCoat "), - anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."), - anno::in_group("Base"), - anno::version( 2, 1, 1), - anno::author("NVIDIA CORPORATION"), - anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic")) -]] = let { - - // UVW lookup and transformation // - base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object; - - base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection( - coordinate_system: the_system, - texture_space: uv_space_index, - projection_type: base::projection_cubic - ) : - base::coordinate_source( - coordinate_system: base::texture_coordinate_uvw, - texture_space: uv_space_index - ); - - base::texture_coordinate_info transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(texture_scale.x, texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ), - translation: float3(texture_translate.x, texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ), - translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0) - ), - coordinate: uvw - ); - - base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate( - transform: rotation_translation_scale( - scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0), - rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ), - translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f) - ), - coordinate: uvw - ); - - // Normal calculations // - OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0)); - - OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: normalmap_texture, - factor: bump_factor, - uvw: transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - //flip_tangent_v: true - - ) : defaultData; - float3 the_normal = normal_data.normal; - - OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: detail_normalmap_texture, - factor: detail_bump_factor, - uvw: detail_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 detail_normal = detail_normal_data.normal; - - OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ? - OmniPBRBase::tangent_space_normal_roughness_texture( - texture: clearcoat_normalmap_texture, - factor: clearcoat_bump_factor, - uvw: clearcoat_transformed_uvw, - flip_tangent_u: flip_tangent_u, - flip_tangent_v: flip_tangent_v // true for dx, false for opengl - ) : defaultData; - float3 clearcoat_normal = clearcoat_normal_data.normal; - - - float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal; - float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten); - float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal) - : flattened_clearcoat_normal; - - - // ORM Handling // - - float3 ORM_lookup = tex::lookup_float3( - tex: ORM_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - - float3 roughness_lookup = tex::lookup_float3( - tex: reflectionroughness_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x; - float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence); - float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)), - math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y))); - - float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)), - math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y))); - - // Diffuse Color Lookup and AO // - - base::texture_return base_lookup = base::file_texture( - texture: diffuse_texture, - color_offset: color(albedo_add), - color_scale: color(albedo_brightness), - mono_source: base::mono_luminance, - uvw: transformed_uvw, - clip: false - ); - - base::texture_return ao_lookup = base::file_texture( - texture: ao_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ); - - - color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint; - color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation); - color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant; - color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint; - - color base_color = multiply_colors( - color_1: tinted_diffuse, - color_2: ao_color, - weight: ao_to_diffuse - ).tint; - - - // Metalness // - - float3 metallic_lookup = tex::lookup_float3( - tex: metallic_texture, - coord: float2(transformed_uvw.position.x, transformed_uvw.position.y) - ); - - float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x; - float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence); - - - // Emission // - - color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ? - base::file_texture( - texture: emissive_color_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : emissive_color; - - color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ? - base::file_texture( - texture: emissive_mask_texture, - color_offset: color(0.0, 0.0, 0.0), - color_scale: color(1.0, 1.0, 1.0), - mono_source: base::mono_average, - uvw: transformed_uvw, - clip: false - ).tint : color(1.0); - - color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0); - - // Opacity // - - float opacity_value = enable_opacity_texture ? base::file_texture( - texture: opacity_texture, - mono_source: opacity_mode, - uvw: transformed_uvw - ).mono : opacity_constant; - - float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0; - - material base = OmniPBRBase::OmniPBRBase( - diffuse_reflection_color: base_color, - specular_reflection_aniso_roughness: reflection_roughness, - specular_level: specular_level, - metalness: metallic, - enable_emission: enable_emission, - emission_color: final_emission_color, - emission_intensity: emissive_intensity, - enable_coat: enable_clearcoat, - coat_weight: clearcoat_weight, - coat_color: clearcoat_tint, - coat_transparency: clearcoat_transparency, - coat_aniso_roughness: clearcoat_reflection_roughness2, - coat_ior: clearcoat_ior, - enable_opacity: enable_opacity, - geometry_opacity: cutout_opacity, - clearcoat_geometry_normal: final_clearcoat_normal, - round_edges_radius: round_edges_radius, - round_edges_roundness: round_edges_roundness, - round_edges_across_materials: round_edges_across_materials, - geometry_normal: diffuse_gloss_normal - ); - -} in material( -surface: base.surface, -geometry: base.geometry -); diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.json b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.json deleted file mode 100644 index 5f53401b96cb728e31b7694417da1fe1f0e1c69b..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "SimReady_Metadata": { - "asset_type": "prop", - "validation": { - "profile": "Prop-Robotics-Neutral", - "profile_version": "1.0.0" - } - }, - "asset_dir": ":/Simready/omniverse/simready_next/Projects/simready_content/common_assets/props_automotive_workshop_tools/wasteManagement_recyclingBin_multiStream_a01", - "asset_name": "wasteManagement_recyclingBin_multiStream_a01", - "asset_type": "prop", - "profile": "Prop-Robotics-Neutral", - "source_file": "@../dcc_source/working/model/blender/wasteManagement_recyclingBin_multiStream_a01.blend@", - "usd_date_generated": "2026-06-19 16:23:32", - "used_dsrs_exporter": true -} \ No newline at end of file diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd deleted file mode 100644 index 13d54bc9a9e4b43dba638df0901534eff294da06..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/sm_wasteManagement_recyclingBin_multiStream_a01_01.usd +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:0ba96030a6a2094186544d9019abc95ae3806ec921cab9359b6dd495bbfb38ce -size 1549795 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_alb.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_alb.png deleted file mode 100644 index 810ce9ff9ecaf220819e99e1684b92f3196f3589..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a256461383279637552d0ce7c21d0b54d4db8b5238ae6637e4b4b8ad88042c44 -size 58789 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_nor.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_nor.png deleted file mode 100644 index 04a366e9eb2d34cf8b3cb51aa15220986cac1bf1..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a03864998e9916c83af666d3a4fee5bc6c70705d66ecbf4b344cbb14a7324f99 -size 9513502 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_orm.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_orm.png deleted file mode 100644 index 6e6553686051feb53725b87aabe9d7f3212650a8..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_glossy_black_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b481b6965cd5b4166332c8e3bd6bc1c51da44ac884bd6df5b785dec33c25469c -size 9378835 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_alb.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_alb.png deleted file mode 100644 index 4605e6cbadf93e62cfcab6b5ce1e52d58a68582f..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_alb.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:8b7dc725b13765edf8872962b784b1f965e12d0826809afbd7757d198b908df3 -size 15312272 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_nor.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_nor.png deleted file mode 100644 index be5ea61342a5769809166de7cd9ef6ebc7e8a6ab..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_nor.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:ebd683f187e2d2e3ab0bae1300df7e6cc5bcb108fd09c46135033ec8249c1d18 -size 23460695 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_orm.png b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_orm.png deleted file mode 100644 index 53d9052c6902afb2ddf124e97706b15082a92e4b..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/textures/t_plastic_red_a01_tile_orm.png +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa399c8d5f221d3bcff5e82d5ee049145778b3aace5adad43e74cf6345cfb2a5 -size 13821486 diff --git a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/web/sm_wasteManagement_recyclingBin_multiStream_a01_01.glb b/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/web/sm_wasteManagement_recyclingBin_multiStream_a01_01.glb deleted file mode 100644 index 10d6707e26d0283ac8098f53675f1715a47ced77..0000000000000000000000000000000000000000 --- a/sm_wasteManagement_recyclingBin_multiStream_a01_01/simready_usd/web/sm_wasteManagement_recyclingBin_multiStream_a01_01.glb +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b2803ee59d5f49c6b4e27f9b72e80cbb78dee8a8b4780bde0c7693566e85ed37 -size 72489932