diff --git a/decor_wallClock_a01/.metadata/LICENSE.txt b/decor_wallClock_a01/.metadata/LICENSE.txt new file mode 100644 index 0000000000000000000000000000000000000000..da6ab6cc8f333d7e89a99812866df8f24374d47c --- /dev/null +++ b/decor_wallClock_a01/.metadata/LICENSE.txt @@ -0,0 +1,396 @@ +Attribution 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution 4.0 International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution 4.0 International Public License ("Public License"). To the +extent this Public License may be interpreted as a contract, You are +granted the Licensed Rights in consideration of Your acceptance of +these terms and conditions, and the Licensor grants You such rights in +consideration of benefits the Licensor receives from making the +Licensed Material available under these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Adapter's License means the license You apply to Your Copyright + and Similar Rights in Your contributions to Adapted Material in + accordance with the terms and conditions of this Public License. + + c. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + d. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + e. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + f. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + g. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + h. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part; and + + b. produce, reproduce, and Share Adapted Material. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material (including in modified + form), You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + 4. If You Share Adapted Material You produce, the Adapter's + License You apply must not prevent recipients of the Adapted + Material from complying with this Public License. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. + diff --git a/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.3.0.json b/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.3.0.json new file mode 100644 index 0000000000000000000000000000000000000000..2aa153e1cfbfe9b899f60658740c9dc5e2cc1b23 --- /dev/null +++ b/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.3.0.json @@ -0,0 +1,34 @@ +{ + "format_version": "1.0", + "profile": "Package-Candidate", + "profile_version": "1.3.0", + "timestamp": "2026-11-09T17:01:31", + "assets": [ + { + "asset": "simready_usd/sm_decor_wallClock_a01_01.usda", + "features": [ + { + "CAP031_SelfContainedPackage.OpenUSD.0-1-0": { + "version": "0-1-0", + "passed": true, + "failing_requirements": [], + "dependencies": [] + } + }, + { + "CAP033_SimReadyPackage.OpenUSD.0-4-0": { + "version": "0-4-0", + "passed": true, + "failing_requirements": [], + "dependencies": [ + "CAP031_SelfContainedPackage.OpenUSD.0-1-0" + ] + } + } + ] + } + ], + "content_hash": { + "sha256": "e2002c7039833f20e0013c62ecace66d2723ea33b3affea707f9bcd5d646ac8c" + } +} diff --git a/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json b/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json new file mode 100644 index 0000000000000000000000000000000000000000..0882ada9d6524f1a0cc9f2cc119e2adb47ee6d4f --- /dev/null +++ b/decor_wallClock_a01/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json @@ -0,0 +1,31 @@ +{ + "format_version": "1.0", + "profile": "Package", + "profile_version": "1.0.0", + "timestamp": "2026-11-09T17:01:31", + "assets": [ + { + "asset": "com.nvidia.simready.packaging.json", + "features": [ + { + "CAP030_PackagingCore.OpenUSD.0-1-0": { + "version": "0.0.0", + "passed": true, + "failing_requirements": [], + "dependencies": [] + } + }, + { + "CAP032_PackagingIntrospection.OpenUSD.0-1-0": { + "version": "0.0.0", + "passed": true, + "failing_requirements": [], + "dependencies": [ + "CAP030_PackagingCore.OpenUSD.0-1-0" + ] + } + } + ] + } + ] +} diff --git a/decor_wallClock_a01/.metadata/com.nvidia.simready.packaging.bom.json b/decor_wallClock_a01/.metadata/com.nvidia.simready.packaging.bom.json new file mode 100644 index 0000000000000000000000000000000000000000..0f3118c3af31a2e324a3f6895296b701e4c08a0d --- /dev/null +++ b/decor_wallClock_a01/.metadata/com.nvidia.simready.packaging.bom.json @@ -0,0 +1,395 @@ +{ + "format_version": "1.0", + "items": [ + { + "relative_path": "simready_usd/sm_decor_wallClock_a01_01.usda", + "size": 9246, + "hash": { + "sha256": "02f3c697ed732fa45a0b29a2a9b13413f0c8e75824b3d3b23c1b58f12393323c" + } + }, + { + "relative_path": "simready_usd/.simready/validation.json", + "size": 3837, + "hash": { + "sha256": "63ab358fcc65d21f362b724043dae8992acf4e4be2419048a30c59e205f89fcd" + } + }, + { + "relative_path": "simready_usd/.thumbs/256x256/sm_decor_wallClock_a01_01.usda.png", + "size": 81218, + "hash": { + "sha256": "b6bf7e05a11900487db7a3fe66ac7f658126b10bd5a59a268bf3dfb2d4ad183c" + } + }, + { + "relative_path": "simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_alb.png", + "size": 3444684, + "hash": { + "sha256": "27f7cbc9e584a808e47bfc1fe8101f4f061f44da67de2d457e49ef83525d8892", + "sha256-first1m": "3279d1067e3068dd7cdbc8d74051c54d9afcdaaa49175180960c0c1f0397d1da" + } + }, + { + "relative_path": "simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_nor.png", + "size": 2273010, + "hash": { + "sha256": "c3f57cd1107cebd878ad0e374a2e59b4fc0ce4e7e981bc47a312dc2dd793adf7", + "sha256-first1m": "0b7121fc4494319fb554a7ec514e532ebb37eaa7c40ee760b09bbb2e1a911056" + } + }, + { + "relative_path": "simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_orm.png", + "size": 2074427, + "hash": { + "sha256": "66178e5699df07bf2a140dfa9b22335204d07496af39734d9c2cdd75e8adc405", + "sha256-first1m": "87b904c6c604c9e53c2d8aa7dda5395694b87a94f33e8e7f8b7f2ab976cf2609" + } + }, + { + "relative_path": "simready_usd/Textures/t_misc_wallclock_a01_alb.png", + "size": 1541834, + "hash": { + "sha256": "3d6dd90d2e8ac6dbf8f27bb099387335721a0b22ad2240b916fcd45a12883218", + "sha256-first1m": "fd4aa1445ca281175b9133edda935d4245b02c266a14747f68cbf06b30ed1fd0" + } + }, + { + "relative_path": "simready_usd/Textures/t_misc_wallclock_a01_nor.png", + "size": 982831, + "hash": { + "sha256": "651f48a279b851ec36daad42040a8a1daffc11aa3e26700c3b23f23979eeaa0d" + } + }, + { + "relative_path": "simready_usd/Textures/t_misc_wallclock_a01_orm.png", + "size": 938440, + "hash": { + "sha256": "d3e53863a02a52672a1b9ffc85e5a4c9a925a796386eedb466d4d8e800b6818b" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_black_c01_tile_alb.png", + "size": 60798, + "hash": { + "sha256": "c06cc8dcf25916497a7825154c535721076eb3aeb1594ffc09e52771bc5020b3" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_black_c01_tile_orm.png", + "size": 13005719, + "hash": { + "sha256": "891ad6023ec48c810caaf0e2ff8d0abd6236f7a1ad9a286a1d9146aad77edb2b", + "sha256-first1m": "8d178c29cf50ecef20796b1fa970d95a65ca626890ae661b092914cb37074853" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_glossy_black_a01_tile_nor.png", + "size": 9513502, + "hash": { + "sha256": "a03864998e9916c83af666d3a4fee5bc6c70705d66ecbf4b344cbb14a7324f99", + "sha256-first1m": "f293f9942f1b9c18040a48b5f9c837f1dd1540561aba28596bde0f7f99137190" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_glossy_white_a01_tile_alb.png", + "size": 1993467, + "hash": { + "sha256": "fb0b238d43a1ca1e7adf83782629cd6f8fb5e2f7eb98bf42839e63aa0bdad223", + "sha256-first1m": "0058d281c64f8a8fda2576699ff4caa8b9830a17796d30974e9f5dc5ac4e682d" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_glossy_white_a01_tile_orm.png", + "size": 12876795, + "hash": { + "sha256": "9a4389739da9ee7325972569e730a32a98ddeb6903d46a8d26fc0a136078f5ad", + "sha256-first1m": "82542434c62151885c46fdfc8833c6aafdb4383f3ce0fb6bf18cd41fcd019bd2" + } + }, + { + "relative_path": "simready_usd/Textures/t_plastic_black_c01_tile_nor.png", + "size": 30346812, + "hash": { + "sha256": "ed11c1e2036f25fd62c40d6466b1eb37dff121a7fa160e00710f2f3bde84a215", + "sha256-first1m": "ddafbd15f89f8d231fc71e6d8e5d5be3cbdab2b10e8bbbe2a17ba51e254862a2" + } + }, + { + "relative_path": "simready_usd/materials/OmniPBR/OmniGlass.mdl", + "size": 10205, + "hash": { + "sha256": "31a93eda2387572db4930a8b22f51e100716809e859505c97b82a17ac43d1e30" + } + }, + { + "relative_path": "simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl", + "size": 17706, + "hash": { + "sha256": "b6110a46bb9e8cd94f20cf7d78992f6f81cd5546bbab277cf950256faae80261" + } + }, + { + "relative_path": "simready_usd/materials/OmniPBR/OmniPBR.mdl", + "size": 16010, + "hash": { + "sha256": "6e6b3acbccd236e21a6c29964a431d2a53e77251cc6b8b1bc975eb1c62da1781" + } + }, + { + "relative_path": "simready_usd/materials/OmniPBR/OmniPBRBase.mdl", + "size": 19369, + "hash": { + "sha256": "a8fd9fe174e91892e94d06da90ba453a124024c2ce2c033be9d82c9e2f76a3b7" + } + }, + { + "relative_path": "simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl", + "size": 29789, + "hash": { + "sha256": "d84c5ba482561c0eaea2e0c5b607358af549e36cd921773462f92dbc4f32cbc3" + } + }, + { + "relative_path": "simready_usd/payloads/base.usda", + "size": 15634, + "hash": { + "sha256": "137b678519d0c24b9162fb20cb618274f6712329bdffc279f0784311205d9bbd" + } + }, + { + "relative_path": "simready_usd/payloads/geometries.usd", + "size": 1301545, + "hash": { + "sha256": "d26ad0b2871cee2dfac81fe10ff16f5ea2a1369196fcff0ee6b9b3d7f4f88aa5", + "sha256-first1m": "d2a77f1f3ac808abf72c80d7297712fa0a1cbaa0dadbcbe252f8e7bb2e34cc52" + } + }, + { + "relative_path": "simready_usd/payloads/instances.usda", + "size": 9157, + "hash": { + "sha256": "d741a6e8012e829a215dae482296d2783067dadc0e923b1c8d46aa16bf818da2" + } + }, + { + "relative_path": "simready_usd/payloads/instances_mujoco.usda", + "size": 10002, + "hash": { + "sha256": "270bbf40ea45e24a15b5a748856745612f3c4e3b1db8b3a90b501f78540cea73" + } + }, + { + "relative_path": "simready_usd/payloads/instances_newton.usda", + "size": 9522, + "hash": { + "sha256": "77a0cb5056374e79f610c7ad0dda7dd97bc269e894804e01fffa4ae71c3a1a00" + } + }, + { + "relative_path": "simready_usd/payloads/instances_physx.usda", + "size": 9462, + "hash": { + "sha256": "83516808834069bcb2616f002432ac3aebdf5d6d92cb4aff340ee152ded724ae" + } + }, + { + "relative_path": "simready_usd/payloads/materials.usda", + "size": 28181, + "hash": { + "sha256": "7a99ab98d61c0a86f98b2fd7cc22419954498200db2196a06ec42a4991095076" + } + }, + { + "relative_path": "simready_usd/payloads/Physics/physics.usda", + "size": 6296, + "hash": { + "sha256": "4900e25dc29113117515a9a626cee41e635fc3435fc47e771257b568e7fb2379" + } + }, + { + "relative_path": "simready_usd/payloads/materials/OmniGlass.mdl", + "size": 10205, + "hash": { + "sha256": "31a93eda2387572db4930a8b22f51e100716809e859505c97b82a17ac43d1e30" + } + }, + { + "relative_path": "simready_usd/payloads/materials/OmniGlass_Opacity.mdl", + "size": 17706, + "hash": { + "sha256": "b6110a46bb9e8cd94f20cf7d78992f6f81cd5546bbab277cf950256faae80261" + } + }, + { + "relative_path": "simready_usd/payloads/materials/OmniPBR.mdl", + "size": 16010, + "hash": { + "sha256": "6e6b3acbccd236e21a6c29964a431d2a53e77251cc6b8b1bc975eb1c62da1781" + } + }, + { + "relative_path": "simready_usd/payloads/materials/OmniPBRBase.mdl", + "size": 19369, + "hash": { + "sha256": "a8fd9fe174e91892e94d06da90ba453a124024c2ce2c033be9d82c9e2f76a3b7" + } + }, + { + "relative_path": "simready_usd/payloads/materials/OmniPBR_ClearCoat.mdl", + "size": 29789, + "hash": { + "sha256": "d84c5ba482561c0eaea2e0c5b607358af549e36cd921773462f92dbc4f32cbc3" + } + }, + { + "relative_path": "simready_usd/runnables/physics/mujoco.usd", + "size": 2485, + "hash": { + "sha256": "cf1f98778b032cd4b41d431f2074b00321ebdddbdec99ad7480cbcaba957078c" + } + }, + { + "relative_path": "simready_usd/runnables/physics/mujoco.usda", + "size": 2229, + "hash": { + "sha256": "33430750bab896f03eee5f2aba9a7d98242c5a50897203d0bc61b9e062135da4" + } + }, + { + "relative_path": "simready_usd/runnables/physics/newton.usd", + "size": 2440, + "hash": { + "sha256": "526d0811d8f7f78c90f1dd7d99d20cfdde2186a04c05c3017ae22fd125db9811" + } + }, + { + "relative_path": "simready_usd/runnables/physics/newton.usda", + "size": 2618, + "hash": { + "sha256": "b8d022307d1058d37b973349091d64200b7b63ee1e29d38ba952812ce95c2640" + } + }, + { + "relative_path": "simready_usd/runnables/physics/physx.usd", + "size": 2000, + "hash": { + "sha256": "19a14ae488fdca1ce6865ff60152f59ca8171e65fba04aeac76f8cbce44b6baf" + } + }, + { + "relative_path": "simready_usd/runnables/physics/physx.usda", + "size": 1628, + "hash": { + "sha256": "d2f3e79466534e37b5594f23ba1076349d9931493507932d8092fb8095171777" + } + }, + { + "relative_path": "simready_usd/source_assets/OmniGlass.mdl", + "size": 10205, + "hash": { + "sha256": "31a93eda2387572db4930a8b22f51e100716809e859505c97b82a17ac43d1e30" + } + }, + { + "relative_path": "simready_usd/source_assets/OmniPBR.mdl", + "size": 16010, + "hash": { + "sha256": "6e6b3acbccd236e21a6c29964a431d2a53e77251cc6b8b1bc975eb1c62da1781" + } + }, + { + "relative_path": "simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_alb.png", + "size": 3444684, + "hash": { + "sha256": "27f7cbc9e584a808e47bfc1fe8101f4f061f44da67de2d457e49ef83525d8892", + "sha256-first1m": "3279d1067e3068dd7cdbc8d74051c54d9afcdaaa49175180960c0c1f0397d1da" + } + }, + { + "relative_path": "simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_nor.png", + "size": 2273010, + "hash": { + "sha256": "c3f57cd1107cebd878ad0e374a2e59b4fc0ce4e7e981bc47a312dc2dd793adf7", + "sha256-first1m": "0b7121fc4494319fb554a7ec514e532ebb37eaa7c40ee760b09bbb2e1a911056" + } + }, + { + "relative_path": "simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_orm.png", + "size": 2074427, + "hash": { + "sha256": "66178e5699df07bf2a140dfa9b22335204d07496af39734d9c2cdd75e8adc405", + "sha256-first1m": "87b904c6c604c9e53c2d8aa7dda5395694b87a94f33e8e7f8b7f2ab976cf2609" + } + }, + { + "relative_path": "simready_usd/source_assets/t_misc_wallclock_a01_alb.png", + "size": 1541834, + "hash": { + "sha256": "3d6dd90d2e8ac6dbf8f27bb099387335721a0b22ad2240b916fcd45a12883218", + "sha256-first1m": "fd4aa1445ca281175b9133edda935d4245b02c266a14747f68cbf06b30ed1fd0" + } + }, + { + "relative_path": "simready_usd/source_assets/t_misc_wallclock_a01_nor.png", + "size": 982831, + "hash": { + "sha256": "651f48a279b851ec36daad42040a8a1daffc11aa3e26700c3b23f23979eeaa0d" + } + }, + { + "relative_path": "simready_usd/source_assets/t_misc_wallclock_a01_orm.png", + "size": 938440, + "hash": { + "sha256": "d3e53863a02a52672a1b9ffc85e5a4c9a925a796386eedb466d4d8e800b6818b" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_black_c01_tile_alb.png", + "size": 60798, + "hash": { + "sha256": "c06cc8dcf25916497a7825154c535721076eb3aeb1594ffc09e52771bc5020b3" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_black_c01_tile_nor.png", + "size": 30346812, + "hash": { + "sha256": "ed11c1e2036f25fd62c40d6466b1eb37dff121a7fa160e00710f2f3bde84a215", + "sha256-first1m": "ddafbd15f89f8d231fc71e6d8e5d5be3cbdab2b10e8bbbe2a17ba51e254862a2" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_black_c01_tile_orm.png", + "size": 13005719, + "hash": { + "sha256": "891ad6023ec48c810caaf0e2ff8d0abd6236f7a1ad9a286a1d9146aad77edb2b", + "sha256-first1m": "8d178c29cf50ecef20796b1fa970d95a65ca626890ae661b092914cb37074853" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_glossy_black_a01_tile_nor.png", + "size": 9513502, + "hash": { + "sha256": "a03864998e9916c83af666d3a4fee5bc6c70705d66ecbf4b344cbb14a7324f99", + "sha256-first1m": "f293f9942f1b9c18040a48b5f9c837f1dd1540561aba28596bde0f7f99137190" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_glossy_white_a01_tile_alb.png", + "size": 1993467, + "hash": { + "sha256": "fb0b238d43a1ca1e7adf83782629cd6f8fb5e2f7eb98bf42839e63aa0bdad223", + "sha256-first1m": "0058d281c64f8a8fda2576699ff4caa8b9830a17796d30974e9f5dc5ac4e682d" + } + }, + { + "relative_path": "simready_usd/source_assets/t_plastic_glossy_white_a01_tile_orm.png", + "size": 12876795, + "hash": { + "sha256": "9a4389739da9ee7325972569e730a32a98ddeb6903d46a8d26fc0a136078f5ad", + "sha256-first1m": "82542434c62151885c46fdfc8833c6aafdb4383f3ce0fb6bf18cd41fcd019bd2" + } + } + ] +} diff --git a/decor_wallClock_a01/.metadata/com.nvidia.simready.root_usds.json b/decor_wallClock_a01/.metadata/com.nvidia.simready.root_usds.json new file mode 100644 index 0000000000000000000000000000000000000000..cd65c1724e8df2b3c985abe15c9254d7ac030f93 --- /dev/null +++ b/decor_wallClock_a01/.metadata/com.nvidia.simready.root_usds.json @@ -0,0 +1,6 @@ +{ + "format_version": "1.0", + "entries": [ + "simready_usd/sm_decor_wallClock_a01_01.usda" + ] +} diff --git a/decor_wallClock_a01/com.nvidia.simready.packaging.json b/decor_wallClock_a01/com.nvidia.simready.packaging.json new file mode 100644 index 0000000000000000000000000000000000000000..f33bfcc8a0db2582d18c07fd02fe83a6dc0ea789 --- /dev/null +++ b/decor_wallClock_a01/com.nvidia.simready.packaging.json @@ -0,0 +1,19 @@ +{ + "format_version": "1.0", + "package_id": "simready.hf.nvidia.simready-assets.decor_wallClock_a01.2026.11.09_170131621819", + "license": "CC-BY-4.0", + "metadata": [ + { + "name": "com.nvidia.simready.packaging.bom.json", + "hash": { + "sha256": "1cba01212f87a3bd170e533149cb8ec27f03fbe6b82b178bf05f24ac897ccada" + } + } + ], + "content_hash": { + "sha256": "e2002c7039833f20e0013c62ecace66d2723ea33b3affea707f9bcd5d646ac8c" + }, + "package_hash": { + "sha256": "69f0cc074acba9d4decfe01b5c25e592e1aa3a1a8b29600df4e820bc27244b81" + } +} diff --git a/decor_wallClock_a01/simready_usd/.simready/validation.json b/decor_wallClock_a01/simready_usd/.simready/validation.json new file mode 100644 index 0000000000000000000000000000000000000000..cda380020489bef321f80af7b58681b7243aac09 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/.simready/validation.json @@ -0,0 +1,128 @@ +{ + "profile": "Robotics-Prop", + "profile_version": "3.2.0", + "validated_features": { + "2026-11-09": { + "CAP000_Core.MuJoCo.0-1-0": { + "blocking_failure": false, + "dependencies": "['CAP000_Core.OpenUSD.0-1-0']", + "passed": true, + "version": "0-1-0" + }, + "CAP000_Core.OpenUSD.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "CAP000_Core.PhysX.0-1-0": { + "blocking_failure": false, + "dependencies": "['CAP000_Core.OpenUSD.0-1-0']", + "passed": true, + "version": "0-1-0" + }, + "CAP003_RigidBody.MuJoCo.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "CAP004_Multibody.MuJoCo.0-1-0": { + "blocking_failure": false, + "dependencies": "['CAP003_RigidBody.MuJoCo.0-1-0']", + "passed": true, + "version": "0-1-0" + }, + "CAP007_NonVisualMaterials.OpenUSD.0-2-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-2-0" + }, + "CAP031_SelfContainedPackage.OpenUSD.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "CAP033_SimReadyPackage.OpenUSD.0-3-0": { + "blocking_failure": false, + "dependencies": "['CAP031_SelfContainedPackage.OpenUSD.0-1-0']", + "passed": true, + "version": "0-3-0" + }, + "CAP046_WikidataLabels.OpenUSD.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "CAP100_IsaacComposition.Isaac.0-4-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-4-0" + }, + "FET001_MinimalPlaceableVisual.OpenUSD.1-0-1": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "1-0-1" + }, + "FET003_RigidBody.OpenUSD.0-2-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-2-0" + }, + "FET003_RigidBody.PhysX.0-4-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-4-0" + }, + "FET004_Multibody.OpenUSD.0-2-0": { + "blocking_failure": false, + "dependencies": "['FET003_RigidBody.OpenUSD.0-2-0']", + "passed": true, + "version": "0-2-0" + }, + "FET004_Multibody.PhysX.0-4-0": { + "blocking_failure": false, + "dependencies": "['FET003_RigidBody.PhysX.0-4-0']", + "passed": true, + "version": "0-4-0" + }, + "FET005_Grasp.OpenUSD.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "FET006_Materials.MDL.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "FET006_Materials.OpenUSD.0-1-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-1-0" + }, + "FET011_SemanticLabels.OpenUSD.0-2-0": { + "blocking_failure": false, + "dependencies": "[]", + "passed": true, + "version": "0-2-0" + }, + "FET011_SemanticLabels.RTX.0-1-0": { + "blocking_failure": false, + "dependencies": "['FET011_SemanticLabels.OpenUSD.0-2-0']", + "passed": true, + "version": "0-1-0" + } + } + } +} diff --git a/decor_wallClock_a01/simready_usd/.thumbs/256x256/sm_decor_wallClock_a01_01.usda.png b/decor_wallClock_a01/simready_usd/.thumbs/256x256/sm_decor_wallClock_a01_01.usda.png new file mode 100644 index 0000000000000000000000000000000000000000..3592775506f08d9a8f3ff6ebc635cc26bf6fdac7 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/.thumbs/256x256/sm_decor_wallClock_a01_01.usda.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6bf7e05a11900487db7a3fe66ac7f658126b10bd5a59a268bf3dfb2d4ad183c +size 81218 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_alb.png b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..61504e4b8a4e81ecb1801afe45ea73aa1f466233 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27f7cbc9e584a808e47bfc1fe8101f4f061f44da67de2d457e49ef83525d8892 +size 3444684 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_nor.png b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..df08bff9297ecb820afea90ade6990fb061c0afc --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3f57cd1107cebd878ad0e374a2e59b4fc0ce4e7e981bc47a312dc2dd793adf7 +size 2273010 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_orm.png b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..954affcfb9a0f44ad3b0e4b1afeec51f3f329c51 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_metal_aluminiumBrushed_a01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66178e5699df07bf2a140dfa9b22335204d07496af39734d9c2cdd75e8adc405 +size 2074427 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_alb.png b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..1aada29bcc689b9d1c0a28128f0260c7f939d3e0 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d6dd90d2e8ac6dbf8f27bb099387335721a0b22ad2240b916fcd45a12883218 +size 1541834 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_nor.png b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..583815e3553a44c412a8ae2356688a6851728713 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:651f48a279b851ec36daad42040a8a1daffc11aa3e26700c3b23f23979eeaa0d +size 982831 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_orm.png b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..7a14825965c11dd7ba64079b8773abba0442889e --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_misc_wallclock_a01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3e53863a02a52672a1b9ffc85e5a4c9a925a796386eedb466d4d8e800b6818b +size 938440 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_alb.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..9184bdb83fd41fc930ec03251b33edce6091ec9d --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c06cc8dcf25916497a7825154c535721076eb3aeb1594ffc09e52771bc5020b3 +size 60798 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_nor.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..6da78abd4a6e0c9a2396c2d0420449b840b1ff46 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed11c1e2036f25fd62c40d6466b1eb37dff121a7fa160e00710f2f3bde84a215 +size 30346812 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_orm.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..e1cd13fd9fc7cd30343bbf673d74d6cbea43ed27 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_black_c01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:891ad6023ec48c810caaf0e2ff8d0abd6236f7a1ad9a286a1d9146aad77edb2b +size 13005719 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_black_a01_tile_nor.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_black_a01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..04a366e9eb2d34cf8b3cb51aa15220986cac1bf1 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_black_a01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a03864998e9916c83af666d3a4fee5bc6c70705d66ecbf4b344cbb14a7324f99 +size 9513502 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_alb.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..2c9bb2baa9b86d5fa703e2ff5b4b94da500275e6 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0b238d43a1ca1e7adf83782629cd6f8fb5e2f7eb98bf42839e63aa0bdad223 +size 1993467 diff --git a/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_orm.png b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..a7c73356daef6ee7ea6d85d45ee722f01d0cbcef --- /dev/null +++ b/decor_wallClock_a01/simready_usd/Textures/t_plastic_glossy_white_a01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a4389739da9ee7325972569e730a32a98ddeb6903d46a8d26fc0a136078f5ad +size 12876795 diff --git a/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass.mdl b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass.mdl new file mode 100644 index 0000000000000000000000000000000000000000..39849aaa57e1d4bf1aec8f108f8fc7f7a25232c7 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass.mdl @@ -0,0 +1,261 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..233328a4737ff2f4ba141cb6c0a109ff1772566f --- /dev/null +++ b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl @@ -0,0 +1,487 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR.mdl b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7509579a8fd4ec7d069e6d242b37dad39290ec55 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR.mdl @@ -0,0 +1,419 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ea5272914d203f50e4f33c5d420d2b94daddbc0f --- /dev/null +++ b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl @@ -0,0 +1,493 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b83431718cbb6ab7c57d8da75468698bab757644 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl @@ -0,0 +1,734 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/payloads/Physics/physics.usda b/decor_wallClock_a01/simready_usd/payloads/Physics/physics.usda new file mode 100644 index 0000000000000000000000000000000000000000..e531d447ea395848d52565bb453573dbc379cf78 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/Physics/physics.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4900e25dc29113117515a9a626cee41e635fc3435fc47e771257b568e7fb2379 +size 6296 diff --git a/decor_wallClock_a01/simready_usd/payloads/base.usda b/decor_wallClock_a01/simready_usd/payloads/base.usda new file mode 100644 index 0000000000000000000000000000000000000000..22a73fa423b0460e3a53425e4adb06930d0ebe36 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/base.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:137b678519d0c24b9162fb20cb618274f6712329bdffc279f0784311205d9bbd +size 15634 diff --git a/decor_wallClock_a01/simready_usd/payloads/geometries.usd b/decor_wallClock_a01/simready_usd/payloads/geometries.usd new file mode 100644 index 0000000000000000000000000000000000000000..b85d43c87b7bf10bfdf71ce32f30fc8864986481 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/geometries.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d26ad0b2871cee2dfac81fe10ff16f5ea2a1369196fcff0ee6b9b3d7f4f88aa5 +size 1301545 diff --git a/decor_wallClock_a01/simready_usd/payloads/instances.usda b/decor_wallClock_a01/simready_usd/payloads/instances.usda new file mode 100644 index 0000000000000000000000000000000000000000..f98dc0cf84801a11793c3849769beb5477667f8b --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/instances.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d741a6e8012e829a215dae482296d2783067dadc0e923b1c8d46aa16bf818da2 +size 9157 diff --git a/decor_wallClock_a01/simready_usd/payloads/instances_mujoco.usda b/decor_wallClock_a01/simready_usd/payloads/instances_mujoco.usda new file mode 100644 index 0000000000000000000000000000000000000000..734108675d2082a9df2be7c112e81c2fbaa2bb34 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/instances_mujoco.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:270bbf40ea45e24a15b5a748856745612f3c4e3b1db8b3a90b501f78540cea73 +size 10002 diff --git a/decor_wallClock_a01/simready_usd/payloads/instances_newton.usda b/decor_wallClock_a01/simready_usd/payloads/instances_newton.usda new file mode 100644 index 0000000000000000000000000000000000000000..b6d56322b90c41fda090c7436bcc7b2679041057 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/instances_newton.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77a0cb5056374e79f610c7ad0dda7dd97bc269e894804e01fffa4ae71c3a1a00 +size 9522 diff --git a/decor_wallClock_a01/simready_usd/payloads/instances_physx.usda b/decor_wallClock_a01/simready_usd/payloads/instances_physx.usda new file mode 100644 index 0000000000000000000000000000000000000000..e5d715fe839ea79e7928e8d70965e242c1eaf70d --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/instances_physx.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83516808834069bcb2616f002432ac3aebdf5d6d92cb4aff340ee152ded724ae +size 9462 diff --git a/decor_wallClock_a01/simready_usd/payloads/materials.usda b/decor_wallClock_a01/simready_usd/payloads/materials.usda new file mode 100644 index 0000000000000000000000000000000000000000..1441b8c1e82ba2a0484b5c65713a705fb48e5a2f --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a99ab98d61c0a86f98b2fd7cc22419954498200db2196a06ec42a4991095076 +size 28181 diff --git a/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass.mdl b/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass.mdl new file mode 100644 index 0000000000000000000000000000000000000000..39849aaa57e1d4bf1aec8f108f8fc7f7a25232c7 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass.mdl @@ -0,0 +1,261 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass_Opacity.mdl b/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass_Opacity.mdl new file mode 100644 index 0000000000000000000000000000000000000000..233328a4737ff2f4ba141cb6c0a109ff1772566f --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials/OmniGlass_Opacity.mdl @@ -0,0 +1,487 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR.mdl b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7509579a8fd4ec7d069e6d242b37dad39290ec55 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR.mdl @@ -0,0 +1,419 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBRBase.mdl b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBRBase.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ea5272914d203f50e4f33c5d420d2b94daddbc0f --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBRBase.mdl @@ -0,0 +1,493 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR_ClearCoat.mdl b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR_ClearCoat.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b83431718cbb6ab7c57d8da75468698bab757644 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/payloads/materials/OmniPBR_ClearCoat.mdl @@ -0,0 +1,734 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usd b/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usd new file mode 100644 index 0000000000000000000000000000000000000000..59e66e63cd4189b4a5ff34fa6ad1613b5afacfb0 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf1f98778b032cd4b41d431f2074b00321ebdddbdec99ad7480cbcaba957078c +size 2485 diff --git a/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usda b/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usda new file mode 100644 index 0000000000000000000000000000000000000000..e9546c663fe756a5462beb165118131cd6a93b6e --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/mujoco.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33430750bab896f03eee5f2aba9a7d98242c5a50897203d0bc61b9e062135da4 +size 2229 diff --git a/decor_wallClock_a01/simready_usd/runnables/physics/newton.usd b/decor_wallClock_a01/simready_usd/runnables/physics/newton.usd new file mode 100644 index 0000000000000000000000000000000000000000..a7db2bf4d9b13c636508036008ec582fac23addf --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/newton.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:526d0811d8f7f78c90f1dd7d99d20cfdde2186a04c05c3017ae22fd125db9811 +size 2440 diff --git a/decor_wallClock_a01/simready_usd/runnables/physics/newton.usda b/decor_wallClock_a01/simready_usd/runnables/physics/newton.usda new file mode 100644 index 0000000000000000000000000000000000000000..9d1d3fd3f39f8627636a23e86589d11a00a8147d --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/newton.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8d022307d1058d37b973349091d64200b7b63ee1e29d38ba952812ce95c2640 +size 2618 diff --git a/decor_wallClock_a01/simready_usd/runnables/physics/physx.usd b/decor_wallClock_a01/simready_usd/runnables/physics/physx.usd new file mode 100644 index 0000000000000000000000000000000000000000..d02d3dfa7c13dd391afc28e682423b37f7b7c238 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/physx.usd @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19a14ae488fdca1ce6865ff60152f59ca8171e65fba04aeac76f8cbce44b6baf +size 2000 diff --git a/decor_wallClock_a01/simready_usd/runnables/physics/physx.usda b/decor_wallClock_a01/simready_usd/runnables/physics/physx.usda new file mode 100644 index 0000000000000000000000000000000000000000..c21eb8f2ccc5540df84e2e64ba526d372f815f41 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/runnables/physics/physx.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2f3e79466534e37b5594f23ba1076349d9931493507932d8092fb8095171777 +size 1628 diff --git a/decor_wallClock_a01/simready_usd/sm_decor_wallClock_a01_01.usda b/decor_wallClock_a01/simready_usd/sm_decor_wallClock_a01_01.usda new file mode 100644 index 0000000000000000000000000000000000000000..748e82ff895b583cabe8a0f6bfd91dd24c92a5ab --- /dev/null +++ b/decor_wallClock_a01/simready_usd/sm_decor_wallClock_a01_01.usda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:02f3c697ed732fa45a0b29a2a9b13413f0c8e75824b3d3b23c1b58f12393323c +size 9246 diff --git a/decor_wallClock_a01/simready_usd/source_assets/OmniGlass.mdl b/decor_wallClock_a01/simready_usd/source_assets/OmniGlass.mdl new file mode 100644 index 0000000000000000000000000000000000000000..39849aaa57e1d4bf1aec8f108f8fc7f7a25232c7 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/OmniGlass.mdl @@ -0,0 +1,261 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/source_assets/OmniPBR.mdl b/decor_wallClock_a01/simready_usd/source_assets/OmniPBR.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7509579a8fd4ec7d069e6d242b37dad39290ec55 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/OmniPBR.mdl @@ -0,0 +1,419 @@ +/*************************************************************************************************** + * 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/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_alb.png b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..61504e4b8a4e81ecb1801afe45ea73aa1f466233 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27f7cbc9e584a808e47bfc1fe8101f4f061f44da67de2d457e49ef83525d8892 +size 3444684 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_nor.png b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..df08bff9297ecb820afea90ade6990fb061c0afc --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3f57cd1107cebd878ad0e374a2e59b4fc0ce4e7e981bc47a312dc2dd793adf7 +size 2273010 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_orm.png b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..954affcfb9a0f44ad3b0e4b1afeec51f3f329c51 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_metal_aluminiumBrushed_a01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66178e5699df07bf2a140dfa9b22335204d07496af39734d9c2cdd75e8adc405 +size 2074427 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_alb.png b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..1aada29bcc689b9d1c0a28128f0260c7f939d3e0 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d6dd90d2e8ac6dbf8f27bb099387335721a0b22ad2240b916fcd45a12883218 +size 1541834 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_nor.png b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..583815e3553a44c412a8ae2356688a6851728713 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:651f48a279b851ec36daad42040a8a1daffc11aa3e26700c3b23f23979eeaa0d +size 982831 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_orm.png b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..7a14825965c11dd7ba64079b8773abba0442889e --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_misc_wallclock_a01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3e53863a02a52672a1b9ffc85e5a4c9a925a796386eedb466d4d8e800b6818b +size 938440 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_alb.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..9184bdb83fd41fc930ec03251b33edce6091ec9d --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c06cc8dcf25916497a7825154c535721076eb3aeb1594ffc09e52771bc5020b3 +size 60798 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_nor.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..6da78abd4a6e0c9a2396c2d0420449b840b1ff46 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed11c1e2036f25fd62c40d6466b1eb37dff121a7fa160e00710f2f3bde84a215 +size 30346812 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_orm.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..e1cd13fd9fc7cd30343bbf673d74d6cbea43ed27 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_black_c01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:891ad6023ec48c810caaf0e2ff8d0abd6236f7a1ad9a286a1d9146aad77edb2b +size 13005719 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_black_a01_tile_nor.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_black_a01_tile_nor.png new file mode 100644 index 0000000000000000000000000000000000000000..04a366e9eb2d34cf8b3cb51aa15220986cac1bf1 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_black_a01_tile_nor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a03864998e9916c83af666d3a4fee5bc6c70705d66ecbf4b344cbb14a7324f99 +size 9513502 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_alb.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_alb.png new file mode 100644 index 0000000000000000000000000000000000000000..2c9bb2baa9b86d5fa703e2ff5b4b94da500275e6 --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_alb.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0b238d43a1ca1e7adf83782629cd6f8fb5e2f7eb98bf42839e63aa0bdad223 +size 1993467 diff --git a/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_orm.png b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..a7c73356daef6ee7ea6d85d45ee722f01d0cbcef --- /dev/null +++ b/decor_wallClock_a01/simready_usd/source_assets/t_plastic_glossy_white_a01_tile_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a4389739da9ee7325972569e730a32a98ddeb6903d46a8d26fc0a136078f5ad +size 12876795