deploy testingTool_battery_analyzer_b01 into nvidia/simready-assets@main
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- testingTool_battery_analyzer_b01/.metadata/LICENSE.txt +396 -0
- testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.0.0.json +38 -0
- testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json +35 -0
- testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.packaging.bom.json +634 -0
- testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.root_usds.json +6 -0
- testingTool_battery_analyzer_b01/com.nvidia.simready.packaging.json +19 -0
- testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_light.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_transparent.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/.thumbs/sm_testingTool_battery_analyzer_b01_01_thumbnail.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniGlass.mdl +261 -0
- testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl +487 -0
- testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniPBR.mdl +419 -0
- testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniPBRBase.mdl +493 -0
- testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl +734 -0
- testingTool_battery_analyzer_b01/simready_usd/runnables/physics/mujoco.usda +3 -0
- testingTool_battery_analyzer_b01/simready_usd/runnables/physics/newton.usda +3 -0
- testingTool_battery_analyzer_b01/simready_usd/runnables/physics/physx.usda +3 -0
- testingTool_battery_analyzer_b01/simready_usd/sm_testingTool_battery_analyzer_b01_01.usd +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_nor.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_orm.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_alb.png.png +3 -0
- testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_nor.png.png +3 -0
testingTool_battery_analyzer_b01/.metadata/LICENSE.txt
ADDED
|
@@ -0,0 +1,396 @@
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Attribution 4.0 International
|
| 2 |
+
|
| 3 |
+
=======================================================================
|
| 4 |
+
|
| 5 |
+
Creative Commons Corporation ("Creative Commons") is not a law firm and
|
| 6 |
+
does not provide legal services or legal advice. Distribution of
|
| 7 |
+
Creative Commons public licenses does not create a lawyer-client or
|
| 8 |
+
other relationship. Creative Commons makes its licenses and related
|
| 9 |
+
information available on an "as-is" basis. Creative Commons gives no
|
| 10 |
+
warranties regarding its licenses, any material licensed under their
|
| 11 |
+
terms and conditions, or any related information. Creative Commons
|
| 12 |
+
disclaims all liability for damages resulting from their use to the
|
| 13 |
+
fullest extent possible.
|
| 14 |
+
|
| 15 |
+
Using Creative Commons Public Licenses
|
| 16 |
+
|
| 17 |
+
Creative Commons public licenses provide a standard set of terms and
|
| 18 |
+
conditions that creators and other rights holders may use to share
|
| 19 |
+
original works of authorship and other material subject to copyright
|
| 20 |
+
and certain other rights specified in the public license below. The
|
| 21 |
+
following considerations are for informational purposes only, are not
|
| 22 |
+
exhaustive, and do not form part of our licenses.
|
| 23 |
+
|
| 24 |
+
Considerations for licensors: Our public licenses are
|
| 25 |
+
intended for use by those authorized to give the public
|
| 26 |
+
permission to use material in ways otherwise restricted by
|
| 27 |
+
copyright and certain other rights. Our licenses are
|
| 28 |
+
irrevocable. Licensors should read and understand the terms
|
| 29 |
+
and conditions of the license they choose before applying it.
|
| 30 |
+
Licensors should also secure all rights necessary before
|
| 31 |
+
applying our licenses so that the public can reuse the
|
| 32 |
+
material as expected. Licensors should clearly mark any
|
| 33 |
+
material not subject to the license. This includes other CC-
|
| 34 |
+
licensed material, or material used under an exception or
|
| 35 |
+
limitation to copyright. More considerations for licensors:
|
| 36 |
+
wiki.creativecommons.org/Considerations_for_licensors
|
| 37 |
+
|
| 38 |
+
Considerations for the public: By using one of our public
|
| 39 |
+
licenses, a licensor grants the public permission to use the
|
| 40 |
+
licensed material under specified terms and conditions. If
|
| 41 |
+
the licensor's permission is not necessary for any reason--for
|
| 42 |
+
example, because of any applicable exception or limitation to
|
| 43 |
+
copyright--then that use is not regulated by the license. Our
|
| 44 |
+
licenses grant only permissions under copyright and certain
|
| 45 |
+
other rights that a licensor has authority to grant. Use of
|
| 46 |
+
the licensed material may still be restricted for other
|
| 47 |
+
reasons, including because others have copyright or other
|
| 48 |
+
rights in the material. A licensor may make special requests,
|
| 49 |
+
such as asking that all changes be marked or described.
|
| 50 |
+
Although not required by our licenses, you are encouraged to
|
| 51 |
+
respect those requests where reasonable. More considerations
|
| 52 |
+
for the public:
|
| 53 |
+
wiki.creativecommons.org/Considerations_for_licensees
|
| 54 |
+
|
| 55 |
+
=======================================================================
|
| 56 |
+
|
| 57 |
+
Creative Commons Attribution 4.0 International Public License
|
| 58 |
+
|
| 59 |
+
By exercising the Licensed Rights (defined below), You accept and agree
|
| 60 |
+
to be bound by the terms and conditions of this Creative Commons
|
| 61 |
+
Attribution 4.0 International Public License ("Public License"). To the
|
| 62 |
+
extent this Public License may be interpreted as a contract, You are
|
| 63 |
+
granted the Licensed Rights in consideration of Your acceptance of
|
| 64 |
+
these terms and conditions, and the Licensor grants You such rights in
|
| 65 |
+
consideration of benefits the Licensor receives from making the
|
| 66 |
+
Licensed Material available under these terms and conditions.
|
| 67 |
+
|
| 68 |
+
|
| 69 |
+
Section 1 -- Definitions.
|
| 70 |
+
|
| 71 |
+
a. Adapted Material means material subject to Copyright and Similar
|
| 72 |
+
Rights that is derived from or based upon the Licensed Material
|
| 73 |
+
and in which the Licensed Material is translated, altered,
|
| 74 |
+
arranged, transformed, or otherwise modified in a manner requiring
|
| 75 |
+
permission under the Copyright and Similar Rights held by the
|
| 76 |
+
Licensor. For purposes of this Public License, where the Licensed
|
| 77 |
+
Material is a musical work, performance, or sound recording,
|
| 78 |
+
Adapted Material is always produced where the Licensed Material is
|
| 79 |
+
synched in timed relation with a moving image.
|
| 80 |
+
|
| 81 |
+
b. Adapter's License means the license You apply to Your Copyright
|
| 82 |
+
and Similar Rights in Your contributions to Adapted Material in
|
| 83 |
+
accordance with the terms and conditions of this Public License.
|
| 84 |
+
|
| 85 |
+
c. Copyright and Similar Rights means copyright and/or similar rights
|
| 86 |
+
closely related to copyright including, without limitation,
|
| 87 |
+
performance, broadcast, sound recording, and Sui Generis Database
|
| 88 |
+
Rights, without regard to how the rights are labeled or
|
| 89 |
+
categorized. For purposes of this Public License, the rights
|
| 90 |
+
specified in Section 2(b)(1)-(2) are not Copyright and Similar
|
| 91 |
+
Rights.
|
| 92 |
+
|
| 93 |
+
d. Effective Technological Measures means those measures that, in the
|
| 94 |
+
absence of proper authority, may not be circumvented under laws
|
| 95 |
+
fulfilling obligations under Article 11 of the WIPO Copyright
|
| 96 |
+
Treaty adopted on December 20, 1996, and/or similar international
|
| 97 |
+
agreements.
|
| 98 |
+
|
| 99 |
+
e. Exceptions and Limitations means fair use, fair dealing, and/or
|
| 100 |
+
any other exception or limitation to Copyright and Similar Rights
|
| 101 |
+
that applies to Your use of the Licensed Material.
|
| 102 |
+
|
| 103 |
+
f. Licensed Material means the artistic or literary work, database,
|
| 104 |
+
or other material to which the Licensor applied this Public
|
| 105 |
+
License.
|
| 106 |
+
|
| 107 |
+
g. Licensed Rights means the rights granted to You subject to the
|
| 108 |
+
terms and conditions of this Public License, which are limited to
|
| 109 |
+
all Copyright and Similar Rights that apply to Your use of the
|
| 110 |
+
Licensed Material and that the Licensor has authority to license.
|
| 111 |
+
|
| 112 |
+
h. Licensor means the individual(s) or entity(ies) granting rights
|
| 113 |
+
under this Public License.
|
| 114 |
+
|
| 115 |
+
i. Share means to provide material to the public by any means or
|
| 116 |
+
process that requires permission under the Licensed Rights, such
|
| 117 |
+
as reproduction, public display, public performance, distribution,
|
| 118 |
+
dissemination, communication, or importation, and to make material
|
| 119 |
+
available to the public including in ways that members of the
|
| 120 |
+
public may access the material from a place and at a time
|
| 121 |
+
individually chosen by them.
|
| 122 |
+
|
| 123 |
+
j. Sui Generis Database Rights means rights other than copyright
|
| 124 |
+
resulting from Directive 96/9/EC of the European Parliament and of
|
| 125 |
+
the Council of 11 March 1996 on the legal protection of databases,
|
| 126 |
+
as amended and/or succeeded, as well as other essentially
|
| 127 |
+
equivalent rights anywhere in the world.
|
| 128 |
+
|
| 129 |
+
k. You means the individual or entity exercising the Licensed Rights
|
| 130 |
+
under this Public License. Your has a corresponding meaning.
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
Section 2 -- Scope.
|
| 134 |
+
|
| 135 |
+
a. License grant.
|
| 136 |
+
|
| 137 |
+
1. Subject to the terms and conditions of this Public License,
|
| 138 |
+
the Licensor hereby grants You a worldwide, royalty-free,
|
| 139 |
+
non-sublicensable, non-exclusive, irrevocable license to
|
| 140 |
+
exercise the Licensed Rights in the Licensed Material to:
|
| 141 |
+
|
| 142 |
+
a. reproduce and Share the Licensed Material, in whole or
|
| 143 |
+
in part; and
|
| 144 |
+
|
| 145 |
+
b. produce, reproduce, and Share Adapted Material.
|
| 146 |
+
|
| 147 |
+
2. Exceptions and Limitations. For the avoidance of doubt, where
|
| 148 |
+
Exceptions and Limitations apply to Your use, this Public
|
| 149 |
+
License does not apply, and You do not need to comply with
|
| 150 |
+
its terms and conditions.
|
| 151 |
+
|
| 152 |
+
3. Term. The term of this Public License is specified in Section
|
| 153 |
+
6(a).
|
| 154 |
+
|
| 155 |
+
4. Media and formats; technical modifications allowed. The
|
| 156 |
+
Licensor authorizes You to exercise the Licensed Rights in
|
| 157 |
+
all media and formats whether now known or hereafter created,
|
| 158 |
+
and to make technical modifications necessary to do so. The
|
| 159 |
+
Licensor waives and/or agrees not to assert any right or
|
| 160 |
+
authority to forbid You from making technical modifications
|
| 161 |
+
necessary to exercise the Licensed Rights, including
|
| 162 |
+
technical modifications necessary to circumvent Effective
|
| 163 |
+
Technological Measures. For purposes of this Public License,
|
| 164 |
+
simply making modifications authorized by this Section 2(a)
|
| 165 |
+
(4) never produces Adapted Material.
|
| 166 |
+
|
| 167 |
+
5. Downstream recipients.
|
| 168 |
+
|
| 169 |
+
a. Offer from the Licensor -- Licensed Material. Every
|
| 170 |
+
recipient of the Licensed Material automatically
|
| 171 |
+
receives an offer from the Licensor to exercise the
|
| 172 |
+
Licensed Rights under the terms and conditions of this
|
| 173 |
+
Public License.
|
| 174 |
+
|
| 175 |
+
b. No downstream restrictions. You may not offer or impose
|
| 176 |
+
any additional or different terms or conditions on, or
|
| 177 |
+
apply any Effective Technological Measures to, the
|
| 178 |
+
Licensed Material if doing so restricts exercise of the
|
| 179 |
+
Licensed Rights by any recipient of the Licensed
|
| 180 |
+
Material.
|
| 181 |
+
|
| 182 |
+
6. No endorsement. Nothing in this Public License constitutes or
|
| 183 |
+
may be construed as permission to assert or imply that You
|
| 184 |
+
are, or that Your use of the Licensed Material is, connected
|
| 185 |
+
with, or sponsored, endorsed, or granted official status by,
|
| 186 |
+
the Licensor or others designated to receive attribution as
|
| 187 |
+
provided in Section 3(a)(1)(A)(i).
|
| 188 |
+
|
| 189 |
+
b. Other rights.
|
| 190 |
+
|
| 191 |
+
1. Moral rights, such as the right of integrity, are not
|
| 192 |
+
licensed under this Public License, nor are publicity,
|
| 193 |
+
privacy, and/or other similar personality rights; however, to
|
| 194 |
+
the extent possible, the Licensor waives and/or agrees not to
|
| 195 |
+
assert any such rights held by the Licensor to the limited
|
| 196 |
+
extent necessary to allow You to exercise the Licensed
|
| 197 |
+
Rights, but not otherwise.
|
| 198 |
+
|
| 199 |
+
2. Patent and trademark rights are not licensed under this
|
| 200 |
+
Public License.
|
| 201 |
+
|
| 202 |
+
3. To the extent possible, the Licensor waives any right to
|
| 203 |
+
collect royalties from You for the exercise of the Licensed
|
| 204 |
+
Rights, whether directly or through a collecting society
|
| 205 |
+
under any voluntary or waivable statutory or compulsory
|
| 206 |
+
licensing scheme. In all other cases the Licensor expressly
|
| 207 |
+
reserves any right to collect such royalties.
|
| 208 |
+
|
| 209 |
+
|
| 210 |
+
Section 3 -- License Conditions.
|
| 211 |
+
|
| 212 |
+
Your exercise of the Licensed Rights is expressly made subject to the
|
| 213 |
+
following conditions.
|
| 214 |
+
|
| 215 |
+
a. Attribution.
|
| 216 |
+
|
| 217 |
+
1. If You Share the Licensed Material (including in modified
|
| 218 |
+
form), You must:
|
| 219 |
+
|
| 220 |
+
a. retain the following if it is supplied by the Licensor
|
| 221 |
+
with the Licensed Material:
|
| 222 |
+
|
| 223 |
+
i. identification of the creator(s) of the Licensed
|
| 224 |
+
Material and any others designated to receive
|
| 225 |
+
attribution, in any reasonable manner requested by
|
| 226 |
+
the Licensor (including by pseudonym if
|
| 227 |
+
designated);
|
| 228 |
+
|
| 229 |
+
ii. a copyright notice;
|
| 230 |
+
|
| 231 |
+
iii. a notice that refers to this Public License;
|
| 232 |
+
|
| 233 |
+
iv. a notice that refers to the disclaimer of
|
| 234 |
+
warranties;
|
| 235 |
+
|
| 236 |
+
v. a URI or hyperlink to the Licensed Material to the
|
| 237 |
+
extent reasonably practicable;
|
| 238 |
+
|
| 239 |
+
b. indicate if You modified the Licensed Material and
|
| 240 |
+
retain an indication of any previous modifications; and
|
| 241 |
+
|
| 242 |
+
c. indicate the Licensed Material is licensed under this
|
| 243 |
+
Public License, and include the text of, or the URI or
|
| 244 |
+
hyperlink to, this Public License.
|
| 245 |
+
|
| 246 |
+
2. You may satisfy the conditions in Section 3(a)(1) in any
|
| 247 |
+
reasonable manner based on the medium, means, and context in
|
| 248 |
+
which You Share the Licensed Material. For example, it may be
|
| 249 |
+
reasonable to satisfy the conditions by providing a URI or
|
| 250 |
+
hyperlink to a resource that includes the required
|
| 251 |
+
information.
|
| 252 |
+
|
| 253 |
+
3. If requested by the Licensor, You must remove any of the
|
| 254 |
+
information required by Section 3(a)(1)(A) to the extent
|
| 255 |
+
reasonably practicable.
|
| 256 |
+
|
| 257 |
+
4. If You Share Adapted Material You produce, the Adapter's
|
| 258 |
+
License You apply must not prevent recipients of the Adapted
|
| 259 |
+
Material from complying with this Public License.
|
| 260 |
+
|
| 261 |
+
|
| 262 |
+
Section 4 -- Sui Generis Database Rights.
|
| 263 |
+
|
| 264 |
+
Where the Licensed Rights include Sui Generis Database Rights that
|
| 265 |
+
apply to Your use of the Licensed Material:
|
| 266 |
+
|
| 267 |
+
a. for the avoidance of doubt, Section 2(a)(1) grants You the right
|
| 268 |
+
to extract, reuse, reproduce, and Share all or a substantial
|
| 269 |
+
portion of the contents of the database;
|
| 270 |
+
|
| 271 |
+
b. if You include all or a substantial portion of the database
|
| 272 |
+
contents in a database in which You have Sui Generis Database
|
| 273 |
+
Rights, then the database in which You have Sui Generis Database
|
| 274 |
+
Rights (but not its individual contents) is Adapted Material; and
|
| 275 |
+
|
| 276 |
+
c. You must comply with the conditions in Section 3(a) if You Share
|
| 277 |
+
all or a substantial portion of the contents of the database.
|
| 278 |
+
|
| 279 |
+
For the avoidance of doubt, this Section 4 supplements and does not
|
| 280 |
+
replace Your obligations under this Public License where the Licensed
|
| 281 |
+
Rights include other Copyright and Similar Rights.
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
Section 5 -- Disclaimer of Warranties and Limitation of Liability.
|
| 285 |
+
|
| 286 |
+
a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
|
| 287 |
+
EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
|
| 288 |
+
AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
|
| 289 |
+
ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
|
| 290 |
+
IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
|
| 291 |
+
WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
|
| 292 |
+
PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
|
| 293 |
+
ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
|
| 294 |
+
KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
|
| 295 |
+
ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
|
| 296 |
+
|
| 297 |
+
b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
|
| 298 |
+
TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
|
| 299 |
+
NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
|
| 300 |
+
INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
|
| 301 |
+
COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
|
| 302 |
+
USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
|
| 303 |
+
ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
|
| 304 |
+
DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
|
| 305 |
+
IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
|
| 306 |
+
|
| 307 |
+
c. The disclaimer of warranties and limitation of liability provided
|
| 308 |
+
above shall be interpreted in a manner that, to the extent
|
| 309 |
+
possible, most closely approximates an absolute disclaimer and
|
| 310 |
+
waiver of all liability.
|
| 311 |
+
|
| 312 |
+
|
| 313 |
+
Section 6 -- Term and Termination.
|
| 314 |
+
|
| 315 |
+
a. This Public License applies for the term of the Copyright and
|
| 316 |
+
Similar Rights licensed here. However, if You fail to comply with
|
| 317 |
+
this Public License, then Your rights under this Public License
|
| 318 |
+
terminate automatically.
|
| 319 |
+
|
| 320 |
+
b. Where Your right to use the Licensed Material has terminated under
|
| 321 |
+
Section 6(a), it reinstates:
|
| 322 |
+
|
| 323 |
+
1. automatically as of the date the violation is cured, provided
|
| 324 |
+
it is cured within 30 days of Your discovery of the
|
| 325 |
+
violation; or
|
| 326 |
+
|
| 327 |
+
2. upon express reinstatement by the Licensor.
|
| 328 |
+
|
| 329 |
+
For the avoidance of doubt, this Section 6(b) does not affect any
|
| 330 |
+
right the Licensor may have to seek remedies for Your violations
|
| 331 |
+
of this Public License.
|
| 332 |
+
|
| 333 |
+
c. For the avoidance of doubt, the Licensor may also offer the
|
| 334 |
+
Licensed Material under separate terms or conditions or stop
|
| 335 |
+
distributing the Licensed Material at any time; however, doing so
|
| 336 |
+
will not terminate this Public License.
|
| 337 |
+
|
| 338 |
+
d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
|
| 339 |
+
License.
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
Section 7 -- Other Terms and Conditions.
|
| 343 |
+
|
| 344 |
+
a. The Licensor shall not be bound by any additional or different
|
| 345 |
+
terms or conditions communicated by You unless expressly agreed.
|
| 346 |
+
|
| 347 |
+
b. Any arrangements, understandings, or agreements regarding the
|
| 348 |
+
Licensed Material not stated herein are separate from and
|
| 349 |
+
independent of the terms and conditions of this Public License.
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
Section 8 -- Interpretation.
|
| 353 |
+
|
| 354 |
+
a. For the avoidance of doubt, this Public License does not, and
|
| 355 |
+
shall not be interpreted to, reduce, limit, restrict, or impose
|
| 356 |
+
conditions on any use of the Licensed Material that could lawfully
|
| 357 |
+
be made without permission under this Public License.
|
| 358 |
+
|
| 359 |
+
b. To the extent possible, if any provision of this Public License is
|
| 360 |
+
deemed unenforceable, it shall be automatically reformed to the
|
| 361 |
+
minimum extent necessary to make it enforceable. If the provision
|
| 362 |
+
cannot be reformed, it shall be severed from this Public License
|
| 363 |
+
without affecting the enforceability of the remaining terms and
|
| 364 |
+
conditions.
|
| 365 |
+
|
| 366 |
+
c. No term or condition of this Public License will be waived and no
|
| 367 |
+
failure to comply consented to unless expressly agreed to by the
|
| 368 |
+
Licensor.
|
| 369 |
+
|
| 370 |
+
d. Nothing in this Public License constitutes or may be interpreted
|
| 371 |
+
as a limitation upon, or waiver of, any privileges and immunities
|
| 372 |
+
that apply to the Licensor or You, including from the legal
|
| 373 |
+
processes of any jurisdiction or authority.
|
| 374 |
+
|
| 375 |
+
|
| 376 |
+
=======================================================================
|
| 377 |
+
|
| 378 |
+
Creative Commons is not a party to its public
|
| 379 |
+
licenses. Notwithstanding, Creative Commons may elect to apply one of
|
| 380 |
+
its public licenses to material it publishes and in those instances
|
| 381 |
+
will be considered the “Licensor.” The text of the Creative Commons
|
| 382 |
+
public licenses is dedicated to the public domain under the CC0 Public
|
| 383 |
+
Domain Dedication. Except for the limited purpose of indicating that
|
| 384 |
+
material is shared under a Creative Commons public license or as
|
| 385 |
+
otherwise permitted by the Creative Commons policies published at
|
| 386 |
+
creativecommons.org/policies, Creative Commons does not authorize the
|
| 387 |
+
use of the trademark "Creative Commons" or any other trademark or logo
|
| 388 |
+
of Creative Commons without its prior written consent including,
|
| 389 |
+
without limitation, in connection with any unauthorized modifications
|
| 390 |
+
to any of its public licenses or any other arrangements,
|
| 391 |
+
understandings, or agreements concerning use of licensed material. For
|
| 392 |
+
the avoidance of doubt, this paragraph does not form part of the
|
| 393 |
+
public licenses.
|
| 394 |
+
|
| 395 |
+
Creative Commons may be contacted at creativecommons.org.
|
| 396 |
+
|
testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.conformance.Package-Candidate@1.0.0.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"profile": "Package-Candidate",
|
| 4 |
+
"profile_version": "1.0.0",
|
| 5 |
+
"timestamp": "2026-10-10T19:53:26",
|
| 6 |
+
"assets": [
|
| 7 |
+
{
|
| 8 |
+
"asset": "simready_usd/sm_testingTool_battery_analyzer_b01_01.usd",
|
| 9 |
+
"features": [
|
| 10 |
+
{
|
| 11 |
+
"FET_031_STANDARD": {
|
| 12 |
+
"version": "0.1.0",
|
| 13 |
+
"passed": true,
|
| 14 |
+
"failing_requirements": [],
|
| 15 |
+
"dependencies": []
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"FET_033_STANDARD": {
|
| 20 |
+
"version": "0.1.0",
|
| 21 |
+
"passed": true,
|
| 22 |
+
"failing_requirements": [],
|
| 23 |
+
"dependencies": [
|
| 24 |
+
{
|
| 25 |
+
"FET_031_STANDARD": {
|
| 26 |
+
"version": "0.1.0"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
]
|
| 33 |
+
}
|
| 34 |
+
],
|
| 35 |
+
"content_hash": {
|
| 36 |
+
"sha256": "19fa31c0770f9214c79248423af611029246de81f4cceabd7810901408b388c9"
|
| 37 |
+
}
|
| 38 |
+
}
|
testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.conformance.Package@1.0.0.json
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"profile": "Package",
|
| 4 |
+
"profile_version": "1.0.0",
|
| 5 |
+
"timestamp": "2026-10-10T19:53:26",
|
| 6 |
+
"assets": [
|
| 7 |
+
{
|
| 8 |
+
"asset": "com.nvidia.simready.packaging.json",
|
| 9 |
+
"features": [
|
| 10 |
+
{
|
| 11 |
+
"FET_030_STANDARD": {
|
| 12 |
+
"version": "0.1.0",
|
| 13 |
+
"passed": true,
|
| 14 |
+
"failing_requirements": [],
|
| 15 |
+
"dependencies": []
|
| 16 |
+
}
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"FET_032_STANDARD": {
|
| 20 |
+
"version": "0.1.0",
|
| 21 |
+
"passed": true,
|
| 22 |
+
"failing_requirements": [],
|
| 23 |
+
"dependencies": [
|
| 24 |
+
{
|
| 25 |
+
"FET_030_STANDARD": {
|
| 26 |
+
"version": "0.1.0"
|
| 27 |
+
}
|
| 28 |
+
}
|
| 29 |
+
]
|
| 30 |
+
}
|
| 31 |
+
}
|
| 32 |
+
]
|
| 33 |
+
}
|
| 34 |
+
]
|
| 35 |
+
}
|
testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.packaging.bom.json
ADDED
|
@@ -0,0 +1,634 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"items": [
|
| 4 |
+
{
|
| 5 |
+
"relative_path": "simready_usd/sm_testingTool_battery_analyzer_b01_01.usd",
|
| 6 |
+
"size": 8524972,
|
| 7 |
+
"hash": {
|
| 8 |
+
"sha256": "08d2551256ae98c0a7d5fdcafbbf5a8ccd9875925bee97f207424e649e0f7435",
|
| 9 |
+
"sha256-first1m": "59701805177cbc1eaf6cba794e1d13c22c3283a4fafec710bb0f07400a507381"
|
| 10 |
+
}
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"relative_path": "simready_usd/.thumbs/sm_testingTool_battery_analyzer_b01_01_thumbnail.png",
|
| 14 |
+
"size": 563459,
|
| 15 |
+
"hash": {
|
| 16 |
+
"sha256": "cb6e022f453488f6bbd875917f20307f7b71934acaf4671e767a2b740316f7b9"
|
| 17 |
+
}
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"relative_path": "simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd.png",
|
| 21 |
+
"size": 875167,
|
| 22 |
+
"hash": {
|
| 23 |
+
"sha256": "6c65769c168286716e3026ed6742724d1f5525107204ae06032aafe8bb1c9da7"
|
| 24 |
+
}
|
| 25 |
+
},
|
| 26 |
+
{
|
| 27 |
+
"relative_path": "simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_light.png",
|
| 28 |
+
"size": 587725,
|
| 29 |
+
"hash": {
|
| 30 |
+
"sha256": "0b2d9143498a8f53163a819027c3b45fb785ec5f9db3cdd4380413b9ece14993"
|
| 31 |
+
}
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"relative_path": "simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_transparent.png",
|
| 35 |
+
"size": 437350,
|
| 36 |
+
"hash": {
|
| 37 |
+
"sha256": "866b8a72e5806467aedf38e44f6e32388f967439c07fe07dc18a8d2d7246dfa2"
|
| 38 |
+
}
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"relative_path": "simready_usd/materials/OmniPBR/OmniGlass.mdl",
|
| 42 |
+
"size": 10205,
|
| 43 |
+
"hash": {
|
| 44 |
+
"sha256": "31a93eda2387572db4930a8b22f51e100716809e859505c97b82a17ac43d1e30"
|
| 45 |
+
}
|
| 46 |
+
},
|
| 47 |
+
{
|
| 48 |
+
"relative_path": "simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl",
|
| 49 |
+
"size": 17706,
|
| 50 |
+
"hash": {
|
| 51 |
+
"sha256": "b6110a46bb9e8cd94f20cf7d78992f6f81cd5546bbab277cf950256faae80261"
|
| 52 |
+
}
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"relative_path": "simready_usd/materials/OmniPBR/OmniPBR.mdl",
|
| 56 |
+
"size": 16010,
|
| 57 |
+
"hash": {
|
| 58 |
+
"sha256": "6e6b3acbccd236e21a6c29964a431d2a53e77251cc6b8b1bc975eb1c62da1781"
|
| 59 |
+
}
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"relative_path": "simready_usd/materials/OmniPBR/OmniPBRBase.mdl",
|
| 63 |
+
"size": 19369,
|
| 64 |
+
"hash": {
|
| 65 |
+
"sha256": "a8fd9fe174e91892e94d06da90ba453a124024c2ce2c033be9d82c9e2f76a3b7"
|
| 66 |
+
}
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"relative_path": "simready_usd/materials/OmniPBR/OmniPBR_ClearCoat.mdl",
|
| 70 |
+
"size": 29789,
|
| 71 |
+
"hash": {
|
| 72 |
+
"sha256": "d84c5ba482561c0eaea2e0c5b607358af549e36cd921773462f92dbc4f32cbc3"
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
{
|
| 76 |
+
"relative_path": "simready_usd/runnables/physics/mujoco.usda",
|
| 77 |
+
"size": 1080,
|
| 78 |
+
"hash": {
|
| 79 |
+
"sha256": "7e3a366a86a15f1e9efc051bef5da25c375b24ed665e3a430fdf0c057f2ed6bb"
|
| 80 |
+
}
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"relative_path": "simready_usd/runnables/physics/newton.usda",
|
| 84 |
+
"size": 4236,
|
| 85 |
+
"hash": {
|
| 86 |
+
"sha256": "e1520c0aac71e4a1955751df57ed7fe480b921b54ed9a4437b1f78f44a0933e7"
|
| 87 |
+
}
|
| 88 |
+
},
|
| 89 |
+
{
|
| 90 |
+
"relative_path": "simready_usd/runnables/physics/physx.usda",
|
| 91 |
+
"size": 1026,
|
| 92 |
+
"hash": {
|
| 93 |
+
"sha256": "bf187a62a1ab85985d46fc218acfd40254199139432fd69da2c3ccf4edf241f3"
|
| 94 |
+
}
|
| 95 |
+
},
|
| 96 |
+
{
|
| 97 |
+
"relative_path": "simready_usd/textures/t_metal_glossy_a01_tile_alb.png",
|
| 98 |
+
"size": 17018568,
|
| 99 |
+
"hash": {
|
| 100 |
+
"sha256": "bbb6a7fd1d0627aa44115b96a93c293d11b8eb164b5e0cbd767813644e47e65b",
|
| 101 |
+
"sha256-first1m": "ce4e333a66de233f983cff9f6ce6b76f314768c1b0cbf0eeae8261dbb2347570"
|
| 102 |
+
}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"relative_path": "simready_usd/textures/t_metal_glossy_a01_tile_nor.png",
|
| 106 |
+
"size": 4969669,
|
| 107 |
+
"hash": {
|
| 108 |
+
"sha256": "f26a7354c9fcdd1b921aba49bd71c0d529cc68d404386d787ea3cd1872fbdb0e",
|
| 109 |
+
"sha256-first1m": "3ff7090f6921589eeca3ab69c033846d6cc5ee7a01f8079fa44bfca6a38a5f6d"
|
| 110 |
+
}
|
| 111 |
+
},
|
| 112 |
+
{
|
| 113 |
+
"relative_path": "simready_usd/textures/t_metal_glossy_a01_tile_orm.png",
|
| 114 |
+
"size": 14112974,
|
| 115 |
+
"hash": {
|
| 116 |
+
"sha256": "6d9b0891ee9d4a8dca391cfe5f0f0800d40754465d0b0ca25b95352565457e8d",
|
| 117 |
+
"sha256-first1m": "24e643274af2040946d959d08cd1f3bcad2589bffd8d9d84155f7a42fd5a316f"
|
| 118 |
+
}
|
| 119 |
+
},
|
| 120 |
+
{
|
| 121 |
+
"relative_path": "simready_usd/textures/t_plastic_glossy_white_a01_tile_alb.png",
|
| 122 |
+
"size": 1993467,
|
| 123 |
+
"hash": {
|
| 124 |
+
"sha256": "fb0b238d43a1ca1e7adf83782629cd6f8fb5e2f7eb98bf42839e63aa0bdad223",
|
| 125 |
+
"sha256-first1m": "0058d281c64f8a8fda2576699ff4caa8b9830a17796d30974e9f5dc5ac4e682d"
|
| 126 |
+
}
|
| 127 |
+
},
|
| 128 |
+
{
|
| 129 |
+
"relative_path": "simready_usd/textures/t_plastic_glossy_white_a01_tile_nor.png",
|
| 130 |
+
"size": 10962433,
|
| 131 |
+
"hash": {
|
| 132 |
+
"sha256": "8e1b70073339a4110b7c5103273f2c1ce2b5dbf74352ae2e3eb91d7573f10cc5",
|
| 133 |
+
"sha256-first1m": "25349e73bc9cda946cc6408db8f9e8ad852f37accce89ee19d02fc1088174baf"
|
| 134 |
+
}
|
| 135 |
+
},
|
| 136 |
+
{
|
| 137 |
+
"relative_path": "simready_usd/textures/t_plastic_glossy_white_a01_tile_orm.png",
|
| 138 |
+
"size": 12876795,
|
| 139 |
+
"hash": {
|
| 140 |
+
"sha256": "9a4389739da9ee7325972569e730a32a98ddeb6903d46a8d26fc0a136078f5ad",
|
| 141 |
+
"sha256-first1m": "82542434c62151885c46fdfc8833c6aafdb4383f3ce0fb6bf18cd41fcd019bd2"
|
| 142 |
+
}
|
| 143 |
+
},
|
| 144 |
+
{
|
| 145 |
+
"relative_path": "simready_usd/textures/t_plastic_gray_a01_tile_alb.png",
|
| 146 |
+
"size": 13965296,
|
| 147 |
+
"hash": {
|
| 148 |
+
"sha256": "d6fe1469c0fd8f436d8056e09f17c67e738f2b19ad317d661d196bf66249a767",
|
| 149 |
+
"sha256-first1m": "3a6edf37a717a4297fd6e6537ef0154f0980332f43a05b285853a65da6dc01b8"
|
| 150 |
+
}
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"relative_path": "simready_usd/textures/t_plastic_gray_a01_tile_nor.png",
|
| 154 |
+
"size": 21099024,
|
| 155 |
+
"hash": {
|
| 156 |
+
"sha256": "51c9e8aa2c9293233131d203792b5c4432375d9930657c09d723311fd38d5f62",
|
| 157 |
+
"sha256-first1m": "ffc23c3ea1f92b4d4582e5ba368db2f92314e563f1ca05b10b2dd6c7e6f6d150"
|
| 158 |
+
}
|
| 159 |
+
},
|
| 160 |
+
{
|
| 161 |
+
"relative_path": "simready_usd/textures/t_plastic_gray_a01_tile_orm.png",
|
| 162 |
+
"size": 13452682,
|
| 163 |
+
"hash": {
|
| 164 |
+
"sha256": "8f2fecd0faff1f28426d6402944290f96b0302969582ff6fc4fc312b6de20b11",
|
| 165 |
+
"sha256-first1m": "c8e76ccbf7b90fe581cd26af941aa9f1f5463b69428ec6e8e3074cf8b40d1465"
|
| 166 |
+
}
|
| 167 |
+
},
|
| 168 |
+
{
|
| 169 |
+
"relative_path": "simready_usd/textures/t_plastic_green_a01_tile_alb.png",
|
| 170 |
+
"size": 15793385,
|
| 171 |
+
"hash": {
|
| 172 |
+
"sha256": "7914ddda7d7e86f5920e97220515f21e9e7e1b776d4818544a31b72ee8d99920",
|
| 173 |
+
"sha256-first1m": "7bbef7346646325687dda733eab9a13c8aaa51abd1578ff3764e78b06c614c74"
|
| 174 |
+
}
|
| 175 |
+
},
|
| 176 |
+
{
|
| 177 |
+
"relative_path": "simready_usd/textures/t_plastic_green_a01_tile_nor.png",
|
| 178 |
+
"size": 23797204,
|
| 179 |
+
"hash": {
|
| 180 |
+
"sha256": "40a05f32cfcc1637efab451d3582b62f4bd12020df0d9d8a3cc67ead5159b0be",
|
| 181 |
+
"sha256-first1m": "4ced8c22195ff2d602f796df3edb66ebfa9e90ee82618c1a7928f767108431a5"
|
| 182 |
+
}
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"relative_path": "simready_usd/textures/t_plastic_green_a01_tile_orm.png",
|
| 186 |
+
"size": 13415848,
|
| 187 |
+
"hash": {
|
| 188 |
+
"sha256": "3fa9e3b0c4657bcdba434722d62c0708f4988489b9431c02c5ac1befbce12368",
|
| 189 |
+
"sha256-first1m": "56a466d575bb6c8f95134b9ea7f5598c7467f29f2ad4e6a3a55cb29bc3c730e5"
|
| 190 |
+
}
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"relative_path": "simready_usd/textures/t_plastic_red_a01_tile_nor.png",
|
| 194 |
+
"size": 23460695,
|
| 195 |
+
"hash": {
|
| 196 |
+
"sha256": "ebd683f187e2d2e3ab0bae1300df7e6cc5bcb108fd09c46135033ec8249c1d18",
|
| 197 |
+
"sha256-first1m": "7afa0294d19b30b5e3a96990d87ffd2af1e35fa7f1d966eee7e501355df6acee"
|
| 198 |
+
}
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"relative_path": "simready_usd/textures/t_plastic_red_a01_tile_orm.png",
|
| 202 |
+
"size": 13821486,
|
| 203 |
+
"hash": {
|
| 204 |
+
"sha256": "fa399c8d5f221d3bcff5e82d5ee049145778b3aace5adad43e74cf6345cfb2a5",
|
| 205 |
+
"sha256-first1m": "b3a9246aa27c4611f1c7764599c652aea67d2c9f61d287125f7c1e360145cbae"
|
| 206 |
+
}
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"relative_path": "simready_usd/textures/t_plastic_yellow_a01_tile_alb.png",
|
| 210 |
+
"size": 13764452,
|
| 211 |
+
"hash": {
|
| 212 |
+
"sha256": "6643a45636f62a056291378c9b62d3ae453176b458500478dec9d4c53692eea8",
|
| 213 |
+
"sha256-first1m": "5e22802717573f0feeca0a9f1878c1a598204d50193f6aaa02383d6d335138c0"
|
| 214 |
+
}
|
| 215 |
+
},
|
| 216 |
+
{
|
| 217 |
+
"relative_path": "simready_usd/textures/t_plastic_yellow_a01_tile_nor.png",
|
| 218 |
+
"size": 23536016,
|
| 219 |
+
"hash": {
|
| 220 |
+
"sha256": "db53f2f66592db03f87c0e38d1f8168e0ed971b137d3882fbeecd0a51edbb5c6",
|
| 221 |
+
"sha256-first1m": "123226084bd0ab29bc8463f7ca95f4475a754debb4ed300efe69348754efe9cc"
|
| 222 |
+
}
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"relative_path": "simready_usd/textures/t_plastic_yellow_a01_tile_orm.png",
|
| 226 |
+
"size": 13785226,
|
| 227 |
+
"hash": {
|
| 228 |
+
"sha256": "2ac9dea18c5b6a1971addc6b3fd8a935853256b736aedb5fc5a6e105c1a1c9b7",
|
| 229 |
+
"sha256-first1m": "a0de7ba1b1071395fa7c52e8ef3f367d144ca5f8eb0618adb12e1708d97896bd"
|
| 230 |
+
}
|
| 231 |
+
},
|
| 232 |
+
{
|
| 233 |
+
"relative_path": "simready_usd/textures/t_rubber_new_a01_tile_alb.png",
|
| 234 |
+
"size": 58789,
|
| 235 |
+
"hash": {
|
| 236 |
+
"sha256": "3ec67f9e1bf23eb38226c4722daaf691d0e4fef9313551cb27b1f2a1b6df5880"
|
| 237 |
+
}
|
| 238 |
+
},
|
| 239 |
+
{
|
| 240 |
+
"relative_path": "simready_usd/textures/t_rubber_new_a01_tile_nor.png",
|
| 241 |
+
"size": 18709157,
|
| 242 |
+
"hash": {
|
| 243 |
+
"sha256": "e71a6ef5facd308179c3c8bcca2b371223698b43b3e326fd3761a67a9fbd8e31",
|
| 244 |
+
"sha256-first1m": "fc816e7ac5d62897d3614353d4ab859ac8fc4c4d810f5312099f9c4be562d75f"
|
| 245 |
+
}
|
| 246 |
+
},
|
| 247 |
+
{
|
| 248 |
+
"relative_path": "simready_usd/textures/t_rubber_new_a01_tile_orm.png",
|
| 249 |
+
"size": 9447072,
|
| 250 |
+
"hash": {
|
| 251 |
+
"sha256": "60af1f5ed7df5be29668922a5be6f30e3d0ee1d52f3b3b865ca201def43f166e",
|
| 252 |
+
"sha256-first1m": "c16c73231bfa35a349e8774d234d279f910c5f3aaa5c680775a81c6103799de1"
|
| 253 |
+
}
|
| 254 |
+
},
|
| 255 |
+
{
|
| 256 |
+
"relative_path": "simready_usd/textures/t_tweed_herringbone_a01_tile_alb.png",
|
| 257 |
+
"size": 33035103,
|
| 258 |
+
"hash": {
|
| 259 |
+
"sha256": "dfd91fdd554c538b09088030822bf999797013e08f1bfe1bbc3960a611853586",
|
| 260 |
+
"sha256-first1m": "944482ba79bb6e3f7a70e1af8d02b2f66f0fb9287e2bf77f2e32e7ee12689ed0"
|
| 261 |
+
}
|
| 262 |
+
},
|
| 263 |
+
{
|
| 264 |
+
"relative_path": "simready_usd/textures/t_tweed_herringbone_a01_tile_nor.png",
|
| 265 |
+
"size": 35916534,
|
| 266 |
+
"hash": {
|
| 267 |
+
"sha256": "2d1182fe33362f0537a549bb44c6e09ee2b82c4fa5fba1b326119e88258dc5d3",
|
| 268 |
+
"sha256-first1m": "ee413ef8d5b2f941d7b923b6a74cf48c1a4999ae5790ccae944da08a56dea37e"
|
| 269 |
+
}
|
| 270 |
+
},
|
| 271 |
+
{
|
| 272 |
+
"relative_path": "simready_usd/textures/t_tweed_herringbone_a01_tile_orm.png",
|
| 273 |
+
"size": 22016472,
|
| 274 |
+
"hash": {
|
| 275 |
+
"sha256": "b579eff09829452c14050ebd1ff8c000db9015ac638e2e0e7bcb86dbeae82262",
|
| 276 |
+
"sha256-first1m": "2f9931ad82523b52518362aa926b1d5e08f2e93f626cb2079b89f8536b4ef583"
|
| 277 |
+
}
|
| 278 |
+
},
|
| 279 |
+
{
|
| 280 |
+
"relative_path": "simready_usd/textures/t_\u0441arpet_a01_tile_alb.png",
|
| 281 |
+
"size": 9318105,
|
| 282 |
+
"hash": {
|
| 283 |
+
"sha256": "142a9fc3142dd3d732305af90e15f3ec59da61a3a5426701239aa0cbcdfce32c",
|
| 284 |
+
"sha256-first1m": "bab41782c20063bf5d73a3ff23bae4df1a3cc805af18aa6268c8b4c1ddbcb7a1"
|
| 285 |
+
}
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"relative_path": "simready_usd/textures/t_\u0441arpet_a01_tile_nor.png",
|
| 289 |
+
"size": 40804773,
|
| 290 |
+
"hash": {
|
| 291 |
+
"sha256": "d82b72d25b76f7c047f160705dbfefcd3d3a2eaa7b94f808d06c4541942b81fb",
|
| 292 |
+
"sha256-first1m": "32a4de7a6c4ee3c5f2539d83e8de4105c5bdfe2aff40831e6948e1117b1f2ae5"
|
| 293 |
+
}
|
| 294 |
+
},
|
| 295 |
+
{
|
| 296 |
+
"relative_path": "simready_usd/textures/t_\u0441arpet_a01_tile_orm.png",
|
| 297 |
+
"size": 26090068,
|
| 298 |
+
"hash": {
|
| 299 |
+
"sha256": "023b6837ed781a017959d7a014bcff62add11d869515c2ca92c43ac0148e538b",
|
| 300 |
+
"sha256-first1m": "c05fb7cec7e9d1d9fa9f67681b4fab5bc2ddfb9a6af1e1c1e62bb337513bf18e"
|
| 301 |
+
}
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_alb.png.png",
|
| 305 |
+
"size": 63707,
|
| 306 |
+
"hash": {
|
| 307 |
+
"sha256": "0dcf421a2def6ee67984993ca46aa085f7c7edb9d2e18c4600f1760bc53daf82"
|
| 308 |
+
}
|
| 309 |
+
},
|
| 310 |
+
{
|
| 311 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_nor.png.png",
|
| 312 |
+
"size": 13507,
|
| 313 |
+
"hash": {
|
| 314 |
+
"sha256": "48db979829e44846f1a059dc1ae3eb9e56c809fd96b33f101dca9aeb36867c98"
|
| 315 |
+
}
|
| 316 |
+
},
|
| 317 |
+
{
|
| 318 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_orm.png.png",
|
| 319 |
+
"size": 46745,
|
| 320 |
+
"hash": {
|
| 321 |
+
"sha256": "472afa195f60f907dc723e218c937b5067e9c315af9011d90e39da586f9c9308"
|
| 322 |
+
}
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_alb.png.png",
|
| 326 |
+
"size": 20240,
|
| 327 |
+
"hash": {
|
| 328 |
+
"sha256": "baf0c3d1b163e0bd0362d8bc4892ae6a11de2a943d8cd47cb35721747cfb040e"
|
| 329 |
+
}
|
| 330 |
+
},
|
| 331 |
+
{
|
| 332 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_nor.png.png",
|
| 333 |
+
"size": 50757,
|
| 334 |
+
"hash": {
|
| 335 |
+
"sha256": "5c4b96a1b4e77109595d21c0ad4783aae0b31c728b7c618bc02b0211be92e659"
|
| 336 |
+
}
|
| 337 |
+
},
|
| 338 |
+
{
|
| 339 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_orm.png.png",
|
| 340 |
+
"size": 55837,
|
| 341 |
+
"hash": {
|
| 342 |
+
"sha256": "6b97a05de165dc0df9b7ac42ba999c37df369cf7083d02fcc4461eb54ec37d0f"
|
| 343 |
+
}
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_alb.png.png",
|
| 347 |
+
"size": 53264,
|
| 348 |
+
"hash": {
|
| 349 |
+
"sha256": "68dc06040b6c63770b158701dcf6b4026d8c25578b612cdd7776a2cee318cb2c"
|
| 350 |
+
}
|
| 351 |
+
},
|
| 352 |
+
{
|
| 353 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_nor.png.png",
|
| 354 |
+
"size": 28330,
|
| 355 |
+
"hash": {
|
| 356 |
+
"sha256": "1401f62b45d0f7177be90223836ed7d8a4653daee592a864fb87f23b7f50ed80"
|
| 357 |
+
}
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_orm.png.png",
|
| 361 |
+
"size": 62933,
|
| 362 |
+
"hash": {
|
| 363 |
+
"sha256": "428917a1b8f12d55a0d9added577869f4a04762da62e1ebc55ff3fd26d4491d2"
|
| 364 |
+
}
|
| 365 |
+
},
|
| 366 |
+
{
|
| 367 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_alb.png.png",
|
| 368 |
+
"size": 60124,
|
| 369 |
+
"hash": {
|
| 370 |
+
"sha256": "4b040ebc57c8ae91578705dff1aec00a0299bf7f7c443f6536b49d46f36cf5b5"
|
| 371 |
+
}
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_nor.png.png",
|
| 375 |
+
"size": 48540,
|
| 376 |
+
"hash": {
|
| 377 |
+
"sha256": "3ce92c64b5a956e941e580f2d4e3b71358658b1d9d0303726796f5cbd07d4573"
|
| 378 |
+
}
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_orm.png.png",
|
| 382 |
+
"size": 63343,
|
| 383 |
+
"hash": {
|
| 384 |
+
"sha256": "fb4c373bb0cc259b6f3e71029d10cc77cc056455b0e5232b56536309c5d37038"
|
| 385 |
+
}
|
| 386 |
+
},
|
| 387 |
+
{
|
| 388 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_nor.png.png",
|
| 389 |
+
"size": 34892,
|
| 390 |
+
"hash": {
|
| 391 |
+
"sha256": "da206b4fc6c308658ee6103880b61ab4b280cf4cae0ba3c6fd4547dee8df2ee3"
|
| 392 |
+
}
|
| 393 |
+
},
|
| 394 |
+
{
|
| 395 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_orm.png.png",
|
| 396 |
+
"size": 66713,
|
| 397 |
+
"hash": {
|
| 398 |
+
"sha256": "65d8be866785ca216f9a0757c80f48b7b03a8930d591262bb6ed3b217cf2c316"
|
| 399 |
+
}
|
| 400 |
+
},
|
| 401 |
+
{
|
| 402 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_alb.png.png",
|
| 403 |
+
"size": 55449,
|
| 404 |
+
"hash": {
|
| 405 |
+
"sha256": "b9d10aee19b8be8667bd7606a6c6d3c201298a11810a0d44ef9c7f96a913484d"
|
| 406 |
+
}
|
| 407 |
+
},
|
| 408 |
+
{
|
| 409 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_nor.png.png",
|
| 410 |
+
"size": 33819,
|
| 411 |
+
"hash": {
|
| 412 |
+
"sha256": "4101b54eb5f53e1f20013fa48182e1854e41bc09f45128e60cdc7bdb18e0253a"
|
| 413 |
+
}
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_orm.png.png",
|
| 417 |
+
"size": 67012,
|
| 418 |
+
"hash": {
|
| 419 |
+
"sha256": "bb6e90e223abd2c7beaa46bc4dab58b6b36699569918b31e6266418bbe2cc2c3"
|
| 420 |
+
}
|
| 421 |
+
},
|
| 422 |
+
{
|
| 423 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_alb.png.png",
|
| 424 |
+
"size": 1592,
|
| 425 |
+
"hash": {
|
| 426 |
+
"sha256": "088f1c7fb4a00ea7e11034f62f6b4dfdbc1c2a893ab00a0836775627da8c9a16"
|
| 427 |
+
}
|
| 428 |
+
},
|
| 429 |
+
{
|
| 430 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_nor.png.png",
|
| 431 |
+
"size": 52285,
|
| 432 |
+
"hash": {
|
| 433 |
+
"sha256": "4b32e84763234dfc37e7497a33de891fc626a47cd7686c35de8f4b7d47d4b5dd"
|
| 434 |
+
}
|
| 435 |
+
},
|
| 436 |
+
{
|
| 437 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_orm.png.png",
|
| 438 |
+
"size": 58555,
|
| 439 |
+
"hash": {
|
| 440 |
+
"sha256": "14b622ec213275804262948de81624027c88f1414bc0a76e093b7601dc1bc033"
|
| 441 |
+
}
|
| 442 |
+
},
|
| 443 |
+
{
|
| 444 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_alb.png.png",
|
| 445 |
+
"size": 85601,
|
| 446 |
+
"hash": {
|
| 447 |
+
"sha256": "ac03a128d5066570755196be2bcf1612aa19c72ea72fccc64bc0ee202c74f0ab"
|
| 448 |
+
}
|
| 449 |
+
},
|
| 450 |
+
{
|
| 451 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_nor.png.png",
|
| 452 |
+
"size": 79325,
|
| 453 |
+
"hash": {
|
| 454 |
+
"sha256": "06b24ed1d774d76e87725b25b43527a049d438a6e2d4e0fc9cf02891517edd7b"
|
| 455 |
+
}
|
| 456 |
+
},
|
| 457 |
+
{
|
| 458 |
+
"relative_path": "simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_orm.png.png",
|
| 459 |
+
"size": 69343,
|
| 460 |
+
"hash": {
|
| 461 |
+
"sha256": "0708d5e2471cbc43d3784fbf11515456b519758210113e675ed07ec8c835fd3b"
|
| 462 |
+
}
|
| 463 |
+
},
|
| 464 |
+
{
|
| 465 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_alb.png.png",
|
| 466 |
+
"size": 283120,
|
| 467 |
+
"hash": {
|
| 468 |
+
"sha256": "c991e68531e8b658a7efeb7f84a0f93d3cdead07ae867fcf169030f484ef7246"
|
| 469 |
+
}
|
| 470 |
+
},
|
| 471 |
+
{
|
| 472 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_nor.png.png",
|
| 473 |
+
"size": 41002,
|
| 474 |
+
"hash": {
|
| 475 |
+
"sha256": "60883da2b1df9e59530532fd87c147e49bd547eaa321a64b7cfdd4bba173c8ae"
|
| 476 |
+
}
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_orm.png.png",
|
| 480 |
+
"size": 205454,
|
| 481 |
+
"hash": {
|
| 482 |
+
"sha256": "21af46b846ec5e4fd0dd542e2d9e48181fcc13256b65392bb35ed42a968caa92"
|
| 483 |
+
}
|
| 484 |
+
},
|
| 485 |
+
{
|
| 486 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_alb.png.png",
|
| 487 |
+
"size": 106469,
|
| 488 |
+
"hash": {
|
| 489 |
+
"sha256": "13ba1d517f2c82e139944ae8ad50bf11158ee40f84b60fc754cc3e5e60883dd2"
|
| 490 |
+
}
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_nor.png.png",
|
| 494 |
+
"size": 204159,
|
| 495 |
+
"hash": {
|
| 496 |
+
"sha256": "9b51f547be0f520a6347d99b21c370dee295aecb415ddd96ffe75efbf7403920"
|
| 497 |
+
}
|
| 498 |
+
},
|
| 499 |
+
{
|
| 500 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_orm.png.png",
|
| 501 |
+
"size": 240161,
|
| 502 |
+
"hash": {
|
| 503 |
+
"sha256": "6bdee3d8aa9cafacb8b44bbac8d336cb3d8cafbdfbceec01e3bd2551522e65e9"
|
| 504 |
+
}
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_nor.png.png",
|
| 508 |
+
"size": 210125,
|
| 509 |
+
"hash": {
|
| 510 |
+
"sha256": "d148a993d941a92d0908724fdf37bc7a58ae66150c2e856e6fb40635dae00885"
|
| 511 |
+
}
|
| 512 |
+
},
|
| 513 |
+
{
|
| 514 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_alb.png.png",
|
| 515 |
+
"size": 216792,
|
| 516 |
+
"hash": {
|
| 517 |
+
"sha256": "a996458b550845107ce0e87fba304250a218ef134b45545e6dfe7055396209f0"
|
| 518 |
+
}
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_orm.png.png",
|
| 522 |
+
"size": 259033,
|
| 523 |
+
"hash": {
|
| 524 |
+
"sha256": "9c0c59ce9b66ff535010fe64365cf9af0e01541162ce347ecf332d7261feab4a"
|
| 525 |
+
}
|
| 526 |
+
},
|
| 527 |
+
{
|
| 528 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_green_a01_tile_alb.png.png",
|
| 529 |
+
"size": 244116,
|
| 530 |
+
"hash": {
|
| 531 |
+
"sha256": "7e771eadc66afe232a48271c9d3c978831d6d58b0a0455b318bd494093609c0d"
|
| 532 |
+
}
|
| 533 |
+
},
|
| 534 |
+
{
|
| 535 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_green_a01_tile_nor.png.png",
|
| 536 |
+
"size": 226874,
|
| 537 |
+
"hash": {
|
| 538 |
+
"sha256": "f8ad470b53aab537c10af872c3c4cc9872cc10c6da17df76f3f5ed5d0d1241ec"
|
| 539 |
+
}
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_green_a01_tile_orm.png.png",
|
| 543 |
+
"size": 259418,
|
| 544 |
+
"hash": {
|
| 545 |
+
"sha256": "f92f603db8bc2ee3ff9b4d34250c10d63e6043951c19c6c3650979addb690165"
|
| 546 |
+
}
|
| 547 |
+
},
|
| 548 |
+
{
|
| 549 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_red_a01_tile_nor.png.png",
|
| 550 |
+
"size": 200786,
|
| 551 |
+
"hash": {
|
| 552 |
+
"sha256": "0fe8364095837a4452a1c4bc78666e2f0f12b6d1283ae88bdfb1404eaaf25604"
|
| 553 |
+
}
|
| 554 |
+
},
|
| 555 |
+
{
|
| 556 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_red_a01_tile_orm.png.png",
|
| 557 |
+
"size": 270938,
|
| 558 |
+
"hash": {
|
| 559 |
+
"sha256": "de3a1610a4b05a57840886a4b46d6acf3cf1ffe809f4473b5a6f18517c534c3f"
|
| 560 |
+
}
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_yellow_a01_tile_alb.png.png",
|
| 564 |
+
"size": 224785,
|
| 565 |
+
"hash": {
|
| 566 |
+
"sha256": "487dcdc2bed155df6152479af0190224748142cc917ca0cc5aab61e3dfa05b69"
|
| 567 |
+
}
|
| 568 |
+
},
|
| 569 |
+
{
|
| 570 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_yellow_a01_tile_nor.png.png",
|
| 571 |
+
"size": 204468,
|
| 572 |
+
"hash": {
|
| 573 |
+
"sha256": "695b5e797d360962a502bbcb63dee6c4b2270088a5af0e4d4be070cfd3f9af97"
|
| 574 |
+
}
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_plastic_yellow_a01_tile_orm.png.png",
|
| 578 |
+
"size": 270350,
|
| 579 |
+
"hash": {
|
| 580 |
+
"sha256": "a8471e690f2089a95d021d5623ad34bbf30147357920dcb8accde6174e2178a4"
|
| 581 |
+
}
|
| 582 |
+
},
|
| 583 |
+
{
|
| 584 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_rubber_new_a01_tile_alb.png.png",
|
| 585 |
+
"size": 4984,
|
| 586 |
+
"hash": {
|
| 587 |
+
"sha256": "36beb8aa74a883368e8f1d875d49871c2d3754607ca08f393f3635e336e63e73"
|
| 588 |
+
}
|
| 589 |
+
},
|
| 590 |
+
{
|
| 591 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_rubber_new_a01_tile_nor.png.png",
|
| 592 |
+
"size": 215321,
|
| 593 |
+
"hash": {
|
| 594 |
+
"sha256": "f228c106ca11ae218bedf40bd5b0d466f39e0237d44103744167139a5f3f33fb"
|
| 595 |
+
}
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_rubber_new_a01_tile_orm.png.png",
|
| 599 |
+
"size": 232537,
|
| 600 |
+
"hash": {
|
| 601 |
+
"sha256": "22060af1a953e348072dd5d45644eedab36355e17e6cd6dd30a485b9fce8972c"
|
| 602 |
+
}
|
| 603 |
+
},
|
| 604 |
+
{
|
| 605 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_tweed_herringbone_a01_tile_alb.png.png",
|
| 606 |
+
"size": 426848,
|
| 607 |
+
"hash": {
|
| 608 |
+
"sha256": "af026beec5f4fd9d290954069f6aa35e9d023181fdafc0f1d1463bc5c353d1ef"
|
| 609 |
+
}
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_tweed_herringbone_a01_tile_nor.png.png",
|
| 613 |
+
"size": 378313,
|
| 614 |
+
"hash": {
|
| 615 |
+
"sha256": "6282b783d02d4cf70a09e1eb3ac70d182870ea903c61c7d49b0b826e3216760e"
|
| 616 |
+
}
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"relative_path": "simready_usd/textures/.thumbs/512x512/t_tweed_herringbone_a01_tile_orm.png.png",
|
| 620 |
+
"size": 317346,
|
| 621 |
+
"hash": {
|
| 622 |
+
"sha256": "ae20bf9108f49f5a57751218e1da2db611792413009410bad66498d41157cfe9"
|
| 623 |
+
}
|
| 624 |
+
},
|
| 625 |
+
{
|
| 626 |
+
"relative_path": "simready_usd/web/sm_testingTool_battery_analyzer_b01_01.glb",
|
| 627 |
+
"size": 452534772,
|
| 628 |
+
"hash": {
|
| 629 |
+
"sha256": "0e86c7d1feddb25458fb0bb67ce359357e5d629f7bb996985bf7f20b63c6a2dd",
|
| 630 |
+
"sha256-first1m": "c55c48da902532006f965a41f77f779c9c5d16aac1bb7e493354b4f693125b08"
|
| 631 |
+
}
|
| 632 |
+
}
|
| 633 |
+
]
|
| 634 |
+
}
|
testingTool_battery_analyzer_b01/.metadata/com.nvidia.simready.root_usds.json
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"entries": [
|
| 4 |
+
"simready_usd/sm_testingTool_battery_analyzer_b01_01.usd"
|
| 5 |
+
]
|
| 6 |
+
}
|
testingTool_battery_analyzer_b01/com.nvidia.simready.packaging.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"format_version": "1.0",
|
| 3 |
+
"package_id": "simready.hf.nvidia.simready-assets.testingTool_battery_analyzer_b01.2026.10.10_195325509277",
|
| 4 |
+
"license": "CC-BY-4.0",
|
| 5 |
+
"metadata": [
|
| 6 |
+
{
|
| 7 |
+
"name": "com.nvidia.simready.packaging.bom.json",
|
| 8 |
+
"hash": {
|
| 9 |
+
"sha256": "8242d2abc2ded223d66f1ae8a1d07346aa5884a763bd2c2e404f6eed0a21182d"
|
| 10 |
+
}
|
| 11 |
+
}
|
| 12 |
+
],
|
| 13 |
+
"content_hash": {
|
| 14 |
+
"sha256": "19fa31c0770f9214c79248423af611029246de81f4cceabd7810901408b388c9"
|
| 15 |
+
},
|
| 16 |
+
"package_hash": {
|
| 17 |
+
"sha256": "169c7328415eab06f50d8356bb7b1312115f7e34a3dc9a6e1310ca13fc0bd08f"
|
| 18 |
+
}
|
| 19 |
+
}
|
testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_light.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/.thumbs/256x256/sm_testingTool_battery_analyzer_b01_01.usd_transparent.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/.thumbs/sm_testingTool_battery_analyzer_b01_01_thumbnail.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniGlass.mdl
ADDED
|
@@ -0,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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
import ::anno::*;
|
| 31 |
+
import ::base::*;
|
| 32 |
+
import ::tex::*;
|
| 33 |
+
|
| 34 |
+
using OmniGlass_Opacity import OmniGlass_Opacity;
|
| 35 |
+
export annotation distill_off();
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
export material OmniGlass
|
| 39 |
+
(
|
| 40 |
+
color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
|
| 41 |
+
[[
|
| 42 |
+
anno::hidden(),
|
| 43 |
+
anno::unused()
|
| 44 |
+
]],
|
| 45 |
+
uniform bool use_glass_color_texture = false
|
| 46 |
+
[[
|
| 47 |
+
anno::hidden(),
|
| 48 |
+
anno::unused()
|
| 49 |
+
]],
|
| 50 |
+
uniform color glass_color = color(1.f, 1.f, 1.f)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Glass Color"),
|
| 53 |
+
anno::description("Sets the color of the glass"),
|
| 54 |
+
anno::hard_range(color(0.0), color(1.0)),
|
| 55 |
+
anno::in_group("Color")
|
| 56 |
+
]],
|
| 57 |
+
uniform texture_2d glass_color_texture = texture_2d()
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Glass Color Texture"),
|
| 60 |
+
anno::description("Specifies the texture to be used for the glass color of the material"),
|
| 61 |
+
anno::in_group("Color")
|
| 62 |
+
]],
|
| 63 |
+
float frosting_roughness = 0.f
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("Glass Roughness"),
|
| 66 |
+
anno::description("Sets the roughness of the glass material "),
|
| 67 |
+
anno::hard_range(0.0, 1.0),
|
| 68 |
+
anno::in_group("Roughness")
|
| 69 |
+
]],
|
| 70 |
+
uniform float glass_ior = 1.491f
|
| 71 |
+
[[
|
| 72 |
+
anno::display_name("Glass IOR"),
|
| 73 |
+
anno::description("Sets IOR of the glass material "),
|
| 74 |
+
anno::soft_range(1.0f, 4.0f),
|
| 75 |
+
anno::in_group("Refraction")
|
| 76 |
+
]],
|
| 77 |
+
uniform bool thin_walled = false
|
| 78 |
+
[[
|
| 79 |
+
anno::display_name("Thin Walled"),
|
| 80 |
+
anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
|
| 81 |
+
anno::in_group("Refraction")
|
| 82 |
+
]],
|
| 83 |
+
uniform float depth = 0.001f
|
| 84 |
+
[[
|
| 85 |
+
anno::description("Controls how much light is absorbed through the surface"),
|
| 86 |
+
anno::display_name("Volume Absorption Scale"),
|
| 87 |
+
anno::in_group("Color"),
|
| 88 |
+
anno::soft_range(0.f, 1.f),
|
| 89 |
+
anno::hard_range(0.f, 1000.f)
|
| 90 |
+
]],
|
| 91 |
+
float roughness_texture_influence = 1.f
|
| 92 |
+
[[
|
| 93 |
+
anno::display_name("Roughness Texture Influence"),
|
| 94 |
+
anno::in_group("Roughness"),
|
| 95 |
+
anno::hard_range(0.0f, 1.0f)
|
| 96 |
+
]],
|
| 97 |
+
uniform texture_2d roughness_texture = texture_2d()
|
| 98 |
+
[[
|
| 99 |
+
anno::description("The roughness texture"),
|
| 100 |
+
anno::display_name("Roughness Texture"),
|
| 101 |
+
anno::in_group("Roughness"),
|
| 102 |
+
anno::usage("roughness")
|
| 103 |
+
]],
|
| 104 |
+
uniform texture_2d reflection_color_texture = texture_2d()
|
| 105 |
+
[[
|
| 106 |
+
anno::description("The reflection color texture"),
|
| 107 |
+
anno::display_name("Reflection Color Texture"),
|
| 108 |
+
anno::in_group("Reflection")
|
| 109 |
+
]],
|
| 110 |
+
uniform color reflection_color = color(1.f, 1.f, 1.f)
|
| 111 |
+
[[
|
| 112 |
+
anno::display_name("Reflection Color"),
|
| 113 |
+
anno::in_group("Reflection")
|
| 114 |
+
]],
|
| 115 |
+
uniform texture_2d normal_map_texture = texture_2d()
|
| 116 |
+
[[
|
| 117 |
+
anno::description("The normal map texture"),
|
| 118 |
+
anno::display_name("Normal Map Texture"),
|
| 119 |
+
anno::in_group("Normal"),
|
| 120 |
+
anno::usage("normal")
|
| 121 |
+
]],
|
| 122 |
+
uniform float normal_map_strength = 1.0
|
| 123 |
+
[[
|
| 124 |
+
anno::description("Determines the degree of bumpiness"),
|
| 125 |
+
anno::display_name("Normal Map Strength"),
|
| 126 |
+
anno::in_group("Normal"),
|
| 127 |
+
anno::usage(""),
|
| 128 |
+
anno::soft_range(0.f, 1.f)
|
| 129 |
+
]],
|
| 130 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 131 |
+
[[
|
| 132 |
+
anno::hard_range(0.f, 1.f),
|
| 133 |
+
anno::display_name("Normal map to roughness weight"),
|
| 134 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 135 |
+
anno::in_group("Normal")
|
| 136 |
+
]],
|
| 137 |
+
uniform bool flip_tangent_u = false
|
| 138 |
+
[[
|
| 139 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 140 |
+
anno::in_group("Normal")
|
| 141 |
+
]],
|
| 142 |
+
uniform bool flip_tangent_v = true
|
| 143 |
+
[[
|
| 144 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 145 |
+
anno::in_group("Normal")
|
| 146 |
+
]],
|
| 147 |
+
|
| 148 |
+
// Cutout Opacity
|
| 149 |
+
uniform bool enable_opacity = false
|
| 150 |
+
[[
|
| 151 |
+
anno::display_name("Enable Opacity"),
|
| 152 |
+
anno::description("Enables the use of cutout opacity"),
|
| 153 |
+
anno::in_group("Opacity")
|
| 154 |
+
]],
|
| 155 |
+
uniform float cutout_opacity = 1.0f
|
| 156 |
+
[[
|
| 157 |
+
anno::hard_range(0.0, 1.0),
|
| 158 |
+
anno::display_name("Opacity Amount"),
|
| 159 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 160 |
+
anno::in_group("Opacity")
|
| 161 |
+
]],
|
| 162 |
+
uniform texture_2d cutout_opacity_texture = texture_2d()
|
| 163 |
+
[[
|
| 164 |
+
anno::description("The opacity map"),
|
| 165 |
+
anno::display_name("Opacity Map"),
|
| 166 |
+
anno::in_group("Opacity"),
|
| 167 |
+
anno::usage("opacity")
|
| 168 |
+
]],
|
| 169 |
+
uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
|
| 170 |
+
[[
|
| 171 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 172 |
+
anno::display_name("Opacity Mono Source"),
|
| 173 |
+
anno::in_group("Opacity"),
|
| 174 |
+
anno::usage("")
|
| 175 |
+
]],
|
| 176 |
+
uniform float opacity_threshold = 0.f
|
| 177 |
+
[[
|
| 178 |
+
anno::hard_range(0.0, 1.0),
|
| 179 |
+
anno::display_name("Opacity Threshold"),
|
| 180 |
+
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"),
|
| 181 |
+
anno::in_group("Opacity")
|
| 182 |
+
]],
|
| 183 |
+
|
| 184 |
+
// UV Projection Group
|
| 185 |
+
uniform bool project_uvw = false
|
| 186 |
+
[[
|
| 187 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 188 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 189 |
+
anno::in_group("UV")
|
| 190 |
+
]],
|
| 191 |
+
uniform bool world_or_object = false
|
| 192 |
+
[[
|
| 193 |
+
anno::display_name("Enable World Space"),
|
| 194 |
+
anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
|
| 195 |
+
anno::in_group("UV")
|
| 196 |
+
]],
|
| 197 |
+
|
| 198 |
+
// UV Space Selector
|
| 199 |
+
uniform int uv_space_index = 0
|
| 200 |
+
[[
|
| 201 |
+
anno::display_name("UV Space Index"),
|
| 202 |
+
anno::description("Choose the UV Space Index to be used"),
|
| 203 |
+
anno::in_group("UV"),
|
| 204 |
+
anno::hard_range(0, 3)
|
| 205 |
+
]],
|
| 206 |
+
uniform float2 texture_translate = float2(0.0f)
|
| 207 |
+
[[
|
| 208 |
+
anno::display_name("Texture Translate"),
|
| 209 |
+
anno::description("Controls the position of the texture."),
|
| 210 |
+
anno::in_group("UV")
|
| 211 |
+
]],
|
| 212 |
+
uniform float texture_rotate = 0.f
|
| 213 |
+
[[
|
| 214 |
+
anno::display_name("Texture Rotate"),
|
| 215 |
+
anno::description("Rotates angle of the texture in degrees."),
|
| 216 |
+
anno::in_group("UV")
|
| 217 |
+
]],
|
| 218 |
+
uniform float2 texture_scale = float2(1.0f)
|
| 219 |
+
[[
|
| 220 |
+
anno::display_name("Texture Tiling"),
|
| 221 |
+
anno::description("Controls repetition of the texture."),
|
| 222 |
+
anno::in_group("UV")
|
| 223 |
+
]]
|
| 224 |
+
)
|
| 225 |
+
[[
|
| 226 |
+
anno::author("NVIDIA CORPORATION"),
|
| 227 |
+
anno::display_name("Omni Glass"),
|
| 228 |
+
anno::version( 1, 0, 0),
|
| 229 |
+
anno::in_group("Base"),
|
| 230 |
+
anno::description("Omni Glass Material V2"),
|
| 231 |
+
anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
|
| 232 |
+
distill_off()
|
| 233 |
+
]]
|
| 234 |
+
= OmniGlass_Opacity(
|
| 235 |
+
glass_color: glass_color,
|
| 236 |
+
glass_color_texture: glass_color_texture,
|
| 237 |
+
frosting_roughness: frosting_roughness,
|
| 238 |
+
glass_ior: glass_ior,
|
| 239 |
+
thin_walled: thin_walled,
|
| 240 |
+
depth: depth,
|
| 241 |
+
roughness_texture_influence: roughness_texture_influence,
|
| 242 |
+
roughness_texture: roughness_texture,
|
| 243 |
+
reflection_color_texture: reflection_color_texture,
|
| 244 |
+
reflection_color: reflection_color,
|
| 245 |
+
normal_map_texture: normal_map_texture,
|
| 246 |
+
normal_map_strength: normal_map_strength,
|
| 247 |
+
geometry_normal_roughness_strength: geometry_normal_roughness_strength,
|
| 248 |
+
flip_tangent_u: flip_tangent_u,
|
| 249 |
+
flip_tangent_v: flip_tangent_v,
|
| 250 |
+
enable_opacity: enable_opacity,
|
| 251 |
+
cutout_opacity: cutout_opacity,
|
| 252 |
+
cutout_opacity_texture: cutout_opacity_texture,
|
| 253 |
+
cutout_opacity_mono_source: cutout_opacity_mono_source,
|
| 254 |
+
opacity_threshold: opacity_threshold,
|
| 255 |
+
project_uvw: project_uvw,
|
| 256 |
+
world_or_object: world_or_object,
|
| 257 |
+
uv_space_index: uv_space_index,
|
| 258 |
+
texture_translate: texture_translate,
|
| 259 |
+
texture_rotate: texture_rotate,
|
| 260 |
+
texture_scale: texture_scale
|
| 261 |
+
);
|
testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniGlass_Opacity.mdl
ADDED
|
@@ -0,0 +1,487 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2020 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
mdl 1.4;
|
| 31 |
+
|
| 32 |
+
import ::tex::*;
|
| 33 |
+
import ::base::*;
|
| 34 |
+
import ::math::*;
|
| 35 |
+
import ::anno::*;
|
| 36 |
+
import ::df::*;
|
| 37 |
+
import ::state::*;
|
| 38 |
+
import OmniPBRBase::*;
|
| 39 |
+
|
| 40 |
+
const string COPYRIGHT =
|
| 41 |
+
" Copyright 1986, 2020 NVIDIA Corporation. All rights reserved.\n"
|
| 42 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 43 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 44 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 45 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 46 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 47 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 48 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 49 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 50 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 51 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 52 |
+
|
| 53 |
+
export annotation distill_off();
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
float get_float(
|
| 57 |
+
uniform texture_2d t,
|
| 58 |
+
float f,
|
| 59 |
+
base::texture_coordinate_info uvw,
|
| 60 |
+
uniform base::mono_mode mono_source = base::mono_maximum
|
| 61 |
+
)
|
| 62 |
+
{
|
| 63 |
+
return tex::texture_isvalid(t) ?
|
| 64 |
+
base::file_texture(
|
| 65 |
+
t,
|
| 66 |
+
color(0.f, 0.f, 0.f),
|
| 67 |
+
color(1.f, 1.f, 1.f),
|
| 68 |
+
mono_source,
|
| 69 |
+
uvw,
|
| 70 |
+
float2(0.f, 1.f),
|
| 71 |
+
float2(0.f, 1.f),
|
| 72 |
+
tex::wrap_repeat,
|
| 73 |
+
tex::wrap_repeat,
|
| 74 |
+
false
|
| 75 |
+
).mono :
|
| 76 |
+
f;
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
color get_color(
|
| 80 |
+
uniform texture_2d t,
|
| 81 |
+
color c,
|
| 82 |
+
base::texture_coordinate_info uvw
|
| 83 |
+
)
|
| 84 |
+
{
|
| 85 |
+
return tex::texture_isvalid(t) ?
|
| 86 |
+
base::file_texture(
|
| 87 |
+
t,
|
| 88 |
+
color(0.f, 0.f, 0.f),
|
| 89 |
+
color(1.f, 1.f, 1.f),
|
| 90 |
+
base::mono_alpha,
|
| 91 |
+
uvw,
|
| 92 |
+
float2(0.f, 1.f),
|
| 93 |
+
float2(0.f, 1.f),
|
| 94 |
+
tex::wrap_repeat,
|
| 95 |
+
tex::wrap_repeat,
|
| 96 |
+
false
|
| 97 |
+
).tint :
|
| 98 |
+
c;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
float apply_roughness_influence(
|
| 102 |
+
uniform texture_2d roughness_texture,
|
| 103 |
+
float constant_roughness,
|
| 104 |
+
float roughness_influence,
|
| 105 |
+
base::texture_coordinate_info uvw
|
| 106 |
+
)
|
| 107 |
+
{
|
| 108 |
+
return math::lerp(
|
| 109 |
+
constant_roughness,
|
| 110 |
+
get_float(roughness_texture, constant_roughness, uvw),
|
| 111 |
+
roughness_influence
|
| 112 |
+
);
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
uniform float4x4 rotation_translation_scale(
|
| 116 |
+
uniform float3 rotation = float3(0.)
|
| 117 |
+
[[
|
| 118 |
+
anno::description("Rotation applied to every UVW coordinate")
|
| 119 |
+
]],
|
| 120 |
+
uniform float3 translation = float3(0.)
|
| 121 |
+
[[
|
| 122 |
+
anno::description("Offset applied to every UVW coordinate")
|
| 123 |
+
]],
|
| 124 |
+
uniform float3 scaling = float3(1.)
|
| 125 |
+
[[
|
| 126 |
+
anno::description("Scale applied to every UVW coordinate")
|
| 127 |
+
]]
|
| 128 |
+
)
|
| 129 |
+
[[
|
| 130 |
+
anno::description("Construct transformation matrix from Euler rotation, translation and scale"),
|
| 131 |
+
anno::hidden()
|
| 132 |
+
]]
|
| 133 |
+
{
|
| 134 |
+
float4x4 scale = float4x4(
|
| 135 |
+
scaling.x , 0. , 0. , 0.,
|
| 136 |
+
0. , scaling.y , 0. , 0.,
|
| 137 |
+
0. , 0. , scaling.z , 0.,
|
| 138 |
+
translation.x, translation.y, translation.z, 1.
|
| 139 |
+
);
|
| 140 |
+
|
| 141 |
+
float3 s = math::sin(rotation);
|
| 142 |
+
float3 c = math::cos(rotation);
|
| 143 |
+
float4x4 rotate = float4x4(
|
| 144 |
+
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,
|
| 145 |
+
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,
|
| 146 |
+
-s.y , s.x*c.y , c.x*c.y , 0.0,
|
| 147 |
+
0. , 0. , 0. , 1.
|
| 148 |
+
);
|
| 149 |
+
|
| 150 |
+
return scale*rotate;
|
| 151 |
+
}
|
| 152 |
+
|
| 153 |
+
|
| 154 |
+
export material OmniGlass_Opacity
|
| 155 |
+
(
|
| 156 |
+
color absorption_coeff = color(0.f, 0.f, 0.f) // hiding this parameter as it does not exist in the new material
|
| 157 |
+
[[
|
| 158 |
+
anno::hidden(),
|
| 159 |
+
anno::unused()
|
| 160 |
+
]],
|
| 161 |
+
uniform bool use_glass_color_texture = false
|
| 162 |
+
[[
|
| 163 |
+
anno::hidden(),
|
| 164 |
+
anno::unused()
|
| 165 |
+
]],
|
| 166 |
+
uniform color glass_color = color(1.f, 1.f, 1.f)
|
| 167 |
+
[[
|
| 168 |
+
anno::display_name("Glass Color"),
|
| 169 |
+
anno::description("Sets the color of the glass"),
|
| 170 |
+
anno::hard_range(color(0.0), color(1.0)),
|
| 171 |
+
anno::in_group("Color")
|
| 172 |
+
]],
|
| 173 |
+
uniform texture_2d glass_color_texture = texture_2d()
|
| 174 |
+
[[
|
| 175 |
+
anno::display_name("Glass Color Texture"),
|
| 176 |
+
anno::description("Specifies the texture to be used for the glass color of the material"),
|
| 177 |
+
anno::in_group("Color")
|
| 178 |
+
]],
|
| 179 |
+
float frosting_roughness = 0.f
|
| 180 |
+
[[
|
| 181 |
+
anno::display_name("Glass Roughness"),
|
| 182 |
+
anno::description("Sets the roughness of the glass material "),
|
| 183 |
+
anno::hard_range(0.0, 1.0),
|
| 184 |
+
anno::in_group("Roughness")
|
| 185 |
+
]],
|
| 186 |
+
uniform float glass_ior = 1.491f
|
| 187 |
+
[[
|
| 188 |
+
anno::display_name("Glass IOR"),
|
| 189 |
+
anno::description("Sets IOR of the glass material "),
|
| 190 |
+
anno::soft_range(1.0f, 4.0f),
|
| 191 |
+
anno::in_group("Refraction")
|
| 192 |
+
]],
|
| 193 |
+
uniform bool thin_walled = false
|
| 194 |
+
[[
|
| 195 |
+
anno::display_name("Thin Walled"),
|
| 196 |
+
anno::description("When enabled, the material is considered thin-walled. Use this, when you have glass surfaces that are modeled with a single plane"),
|
| 197 |
+
anno::in_group("Refraction")
|
| 198 |
+
]],
|
| 199 |
+
uniform float depth = 0.001f
|
| 200 |
+
[[
|
| 201 |
+
anno::description("Controls how much light is absorbed through the surface"),
|
| 202 |
+
anno::display_name("Volume Absorption Scale"),
|
| 203 |
+
anno::in_group("Color"),
|
| 204 |
+
anno::soft_range(0.f, 1.f),
|
| 205 |
+
anno::hard_range(0.f, 1000.f)
|
| 206 |
+
]],
|
| 207 |
+
float roughness_texture_influence = 1.f
|
| 208 |
+
[[
|
| 209 |
+
anno::display_name("Roughness Texture Influence"),
|
| 210 |
+
anno::in_group("Roughness"),
|
| 211 |
+
anno::hard_range(0.0f, 1.0f)
|
| 212 |
+
]],
|
| 213 |
+
uniform texture_2d roughness_texture = texture_2d()
|
| 214 |
+
[[
|
| 215 |
+
anno::description("The roughness texture"),
|
| 216 |
+
anno::display_name("Roughness Texture"),
|
| 217 |
+
anno::in_group("Roughness"),
|
| 218 |
+
anno::usage("")
|
| 219 |
+
]],
|
| 220 |
+
uniform texture_2d reflection_color_texture = texture_2d()
|
| 221 |
+
[[
|
| 222 |
+
anno::description("The reflection color texture"),
|
| 223 |
+
anno::display_name("Reflection Color Texture"),
|
| 224 |
+
anno::in_group("Reflection")
|
| 225 |
+
]],
|
| 226 |
+
uniform color reflection_color = color(1.f, 1.f, 1.f)
|
| 227 |
+
[[
|
| 228 |
+
anno::display_name("Reflection Color"),
|
| 229 |
+
anno::in_group("Reflection")
|
| 230 |
+
]],
|
| 231 |
+
uniform texture_2d normal_map_texture = texture_2d()
|
| 232 |
+
[[
|
| 233 |
+
anno::description("The normal map texture"),
|
| 234 |
+
anno::display_name("Normal Map Texture"),
|
| 235 |
+
anno::in_group("Normal"),
|
| 236 |
+
anno::usage("")
|
| 237 |
+
]],
|
| 238 |
+
uniform float normal_map_strength = 1.0
|
| 239 |
+
[[
|
| 240 |
+
anno::description("Determines the degree of bumpiness"),
|
| 241 |
+
anno::display_name("Normal Map Strength"),
|
| 242 |
+
anno::in_group("Normal"),
|
| 243 |
+
anno::usage(""),
|
| 244 |
+
anno::soft_range(0.f, 1.f)
|
| 245 |
+
]],
|
| 246 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 247 |
+
[[
|
| 248 |
+
anno::hard_range(0.f, 1.f),
|
| 249 |
+
anno::display_name("Normal map to roughness weight"),
|
| 250 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 251 |
+
anno::in_group("Normal")
|
| 252 |
+
]],
|
| 253 |
+
uniform bool flip_tangent_u = false
|
| 254 |
+
[[
|
| 255 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 256 |
+
anno::in_group("Normal")
|
| 257 |
+
]],
|
| 258 |
+
uniform bool flip_tangent_v = true
|
| 259 |
+
[[
|
| 260 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 261 |
+
anno::in_group("Normal")
|
| 262 |
+
]],
|
| 263 |
+
|
| 264 |
+
// Cutout Opacity
|
| 265 |
+
uniform bool enable_opacity = true
|
| 266 |
+
[[
|
| 267 |
+
anno::display_name("Enable Opacity"),
|
| 268 |
+
anno::description("Enables the use of cutout opacity"),
|
| 269 |
+
anno::in_group("Opacity")
|
| 270 |
+
]],
|
| 271 |
+
uniform float cutout_opacity = 1.0f
|
| 272 |
+
[[
|
| 273 |
+
anno::hard_range(0.0, 1.0),
|
| 274 |
+
anno::display_name("Opacity Amount"),
|
| 275 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 276 |
+
anno::in_group("Opacity")
|
| 277 |
+
]],
|
| 278 |
+
uniform texture_2d cutout_opacity_texture = texture_2d()
|
| 279 |
+
[[
|
| 280 |
+
anno::description("The opacity map"),
|
| 281 |
+
anno::display_name("Opacity Map"),
|
| 282 |
+
anno::in_group("Opacity")
|
| 283 |
+
]],
|
| 284 |
+
uniform base::mono_mode cutout_opacity_mono_source = base::mono_alpha
|
| 285 |
+
[[
|
| 286 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 287 |
+
anno::display_name("Opacity Mono Source"),
|
| 288 |
+
anno::in_group("Opacity"),
|
| 289 |
+
anno::usage("")
|
| 290 |
+
]],
|
| 291 |
+
uniform float opacity_threshold = 0.f
|
| 292 |
+
[[
|
| 293 |
+
anno::hard_range(0.0, 1.0),
|
| 294 |
+
anno::display_name("Opacity Threshold"),
|
| 295 |
+
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"),
|
| 296 |
+
anno::in_group("Opacity")
|
| 297 |
+
]],
|
| 298 |
+
|
| 299 |
+
// UV Projection Group
|
| 300 |
+
uniform bool project_uvw = false
|
| 301 |
+
[[
|
| 302 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 303 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 304 |
+
anno::in_group("UV")
|
| 305 |
+
]],
|
| 306 |
+
uniform bool world_or_object = false
|
| 307 |
+
[[
|
| 308 |
+
anno::display_name("Enable World Space"),
|
| 309 |
+
anno::description("When set to 'true' uses world space for projection, when 'false' object space is used"),
|
| 310 |
+
anno::in_group("UV")
|
| 311 |
+
]],
|
| 312 |
+
|
| 313 |
+
// UV Space Selector
|
| 314 |
+
uniform int uv_space_index = 0
|
| 315 |
+
[[
|
| 316 |
+
anno::display_name("UV Space Index"),
|
| 317 |
+
anno::description("Choose the UV Space Index to be used"),
|
| 318 |
+
anno::in_group("UV"),
|
| 319 |
+
anno::hard_range(0, 3)
|
| 320 |
+
]],
|
| 321 |
+
uniform float2 texture_translate = float2(0.0f)
|
| 322 |
+
[[
|
| 323 |
+
anno::display_name("Texture Translate"),
|
| 324 |
+
anno::description("Controls the position of the texture."),
|
| 325 |
+
anno::in_group("UV")
|
| 326 |
+
]],
|
| 327 |
+
uniform float texture_rotate = 0.f
|
| 328 |
+
[[
|
| 329 |
+
anno::display_name("Texture Rotate"),
|
| 330 |
+
anno::description("Rotates angle of the texture in degrees."),
|
| 331 |
+
anno::in_group("UV")
|
| 332 |
+
]],
|
| 333 |
+
uniform float2 texture_scale = float2(1.0f)
|
| 334 |
+
[[
|
| 335 |
+
anno::display_name("Texture Scale"),
|
| 336 |
+
anno::description("Larger numbers increase the size."),
|
| 337 |
+
anno::in_group("UV")
|
| 338 |
+
]]
|
| 339 |
+
)
|
| 340 |
+
[[
|
| 341 |
+
anno::copyright_notice(COPYRIGHT),
|
| 342 |
+
anno::author("NVIDIA CORPORATION"),
|
| 343 |
+
anno::display_name("Omni Glass Opacity"),
|
| 344 |
+
anno::version( 1, 0, 0),
|
| 345 |
+
anno::description("Omni Glass Opacity Material"),
|
| 346 |
+
anno::in_group("Base"),
|
| 347 |
+
anno::key_words(string[]("omni", "omniverse", "glass", "transparent", "window", "transparency", "workflow")),
|
| 348 |
+
distill_off()
|
| 349 |
+
]]
|
| 350 |
+
= let {
|
| 351 |
+
// Material Properties
|
| 352 |
+
bool local_thin_walled = (tex::texture_isvalid(cutout_opacity_texture) || cutout_opacity != 1.f) ? true : thin_walled;
|
| 353 |
+
color local_glass_ior = glass_ior;
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
// UVW Properties
|
| 357 |
+
// Generating the texture coordinates for the texture lookups
|
| 358 |
+
base::texture_coordinate_system the_system = world_or_object ?
|
| 359 |
+
base::texture_coordinate_world :
|
| 360 |
+
base::texture_coordinate_object;
|
| 361 |
+
|
| 362 |
+
base::texture_coordinate_info uvw = project_uvw ?
|
| 363 |
+
base::coordinate_projection(
|
| 364 |
+
coordinate_system: the_system,
|
| 365 |
+
texture_space: uv_space_index,
|
| 366 |
+
projection_type: base::projection_cubic
|
| 367 |
+
) :
|
| 368 |
+
base::coordinate_source(
|
| 369 |
+
coordinate_system: base::texture_coordinate_uvw,
|
| 370 |
+
texture_space: uv_space_index
|
| 371 |
+
);
|
| 372 |
+
|
| 373 |
+
base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
|
| 374 |
+
transform: rotation_translation_scale(
|
| 375 |
+
scaling: float3(texture_scale.x, texture_scale.y, 1.0),
|
| 376 |
+
rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI),
|
| 377 |
+
translation: float3(texture_translate.x, texture_translate.y, 0.0)
|
| 378 |
+
),
|
| 379 |
+
coordinate: uvw
|
| 380 |
+
);
|
| 381 |
+
|
| 382 |
+
|
| 383 |
+
// Opacity Properties
|
| 384 |
+
float opacity_value = get_float(cutout_opacity_texture, cutout_opacity, transformed_uvw, cutout_opacity_mono_source);
|
| 385 |
+
|
| 386 |
+
// The opacity_threshold is interpreted as follows:
|
| 387 |
+
// 1. opacity_threshold > 0: binary opacity masking mode
|
| 388 |
+
// i.e.: if opacity_value > opacity_threshold we remap opacity_value to 1.0, otherwise to 0.0
|
| 389 |
+
// 2. opacity_threshold == 0: fractional opacity mode. Leaves the opacity_value untouched,
|
| 390 |
+
// allowing the renderer to use fractional cutout_opacity values, if it supports this feature
|
| 391 |
+
//
|
| 392 |
+
// NOTE: when the renderer does not enable 'fractional cutout opacity' it interprets
|
| 393 |
+
// cutout_opacity values of 1.0 as opaque and anything below as fully transparent
|
| 394 |
+
float local_cutout_opacity = enable_opacity ?
|
| 395 |
+
((opacity_threshold == 0.0) ?
|
| 396 |
+
opacity_value :
|
| 397 |
+
((opacity_value >= opacity_threshold) ? 1.0 : 0)
|
| 398 |
+
) :
|
| 399 |
+
1.0;
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
// Surface Properties
|
| 403 |
+
color local_reflection_color = get_color(reflection_color_texture, reflection_color, transformed_uvw);
|
| 404 |
+
color local_transmission_color = get_color(glass_color_texture, glass_color, transformed_uvw);
|
| 405 |
+
|
| 406 |
+
OmniPBRBase::NormalData defaultData(state::normal(), float2(0.f));
|
| 407 |
+
OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normal_map_texture) ?
|
| 408 |
+
OmniPBRBase::tangent_space_normal_roughness_texture(
|
| 409 |
+
normal_map_texture,
|
| 410 |
+
normal_map_strength,
|
| 411 |
+
flip_tangent_u,
|
| 412 |
+
flip_tangent_v,
|
| 413 |
+
transformed_uvw,
|
| 414 |
+
float2(0.f, 1.f),
|
| 415 |
+
float2(0.f, 1.f),
|
| 416 |
+
tex::wrap_repeat,
|
| 417 |
+
tex::wrap_repeat,
|
| 418 |
+
false,
|
| 419 |
+
1.f,
|
| 420 |
+
0.f,
|
| 421 |
+
0.f,
|
| 422 |
+
int2(0),
|
| 423 |
+
tex::wrap_repeat,
|
| 424 |
+
30.f
|
| 425 |
+
) :
|
| 426 |
+
defaultData;
|
| 427 |
+
|
| 428 |
+
float local_roughness = apply_roughness_influence(
|
| 429 |
+
roughness_texture,
|
| 430 |
+
frosting_roughness,
|
| 431 |
+
roughness_texture_influence,
|
| 432 |
+
transformed_uvw
|
| 433 |
+
);
|
| 434 |
+
float2 local_roughness_squared(
|
| 435 |
+
(local_roughness * local_roughness +
|
| 436 |
+
geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x),
|
| 437 |
+
(local_roughness * local_roughness +
|
| 438 |
+
geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)
|
| 439 |
+
);
|
| 440 |
+
|
| 441 |
+
float3 the_normal = normal_data.normal;
|
| 442 |
+
|
| 443 |
+
bsdf ggx_1 = ::df::microfacet_ggx_smith_bsdf(
|
| 444 |
+
roughness_u: local_roughness_squared.x,
|
| 445 |
+
roughness_v: local_roughness_squared.y,
|
| 446 |
+
tint: local_reflection_color,
|
| 447 |
+
tangent_u: ::state::texture_tangent_u(0),
|
| 448 |
+
mode: ::df::scatter_reflect
|
| 449 |
+
);
|
| 450 |
+
|
| 451 |
+
bsdf ggx_2 = ::df::microfacet_ggx_smith_bsdf(
|
| 452 |
+
roughness_u: local_roughness_squared.x,
|
| 453 |
+
roughness_v: local_roughness_squared.y,
|
| 454 |
+
tint: local_transmission_color,
|
| 455 |
+
tangent_u: ::state::texture_tangent_u(0),
|
| 456 |
+
mode: ::df::scatter_transmit
|
| 457 |
+
);
|
| 458 |
+
|
| 459 |
+
material_surface local_surface(
|
| 460 |
+
::df::fresnel_layer(
|
| 461 |
+
ior: glass_ior,
|
| 462 |
+
weight: 1.f,
|
| 463 |
+
layer: ggx_1,
|
| 464 |
+
base: ggx_2,
|
| 465 |
+
normal: the_normal
|
| 466 |
+
),
|
| 467 |
+
material_emission()
|
| 468 |
+
);
|
| 469 |
+
|
| 470 |
+
|
| 471 |
+
// Volume Properties
|
| 472 |
+
color local_volume_absorption = depth;
|
| 473 |
+
color local_volume_scattering = color(0.f, 0.f, 0.f);
|
| 474 |
+
|
| 475 |
+
material_volume local_volume(vdf(), local_volume_absorption, local_volume_scattering);
|
| 476 |
+
|
| 477 |
+
|
| 478 |
+
// Geometry Properties
|
| 479 |
+
material_geometry local_geometry(float3(0.f), local_cutout_opacity, the_normal);
|
| 480 |
+
|
| 481 |
+
} in material(
|
| 482 |
+
thin_walled: local_thin_walled,
|
| 483 |
+
surface: local_surface,
|
| 484 |
+
ior: local_glass_ior,
|
| 485 |
+
volume: local_volume,
|
| 486 |
+
geometry: local_geometry
|
| 487 |
+
);
|
testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/OmniPBR.mdl
ADDED
|
@@ -0,0 +1,419 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
|
| 31 |
+
import ::df::*;
|
| 32 |
+
import ::state::*;
|
| 33 |
+
import ::math::*;
|
| 34 |
+
import ::base::*;
|
| 35 |
+
import ::state::*;
|
| 36 |
+
import ::tex::*;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
|
| 39 |
+
import ::debug::*;
|
| 40 |
+
|
| 41 |
+
import ::nvidia::core_definitions::file_texture;
|
| 42 |
+
import ::nvidia::core_definitions::normalmap_texture;
|
| 43 |
+
|
| 44 |
+
import OmniPBR_ClearCoat::*;
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
// OmniPBR //
|
| 48 |
+
|
| 49 |
+
export material OmniPBR(
|
| 50 |
+
|
| 51 |
+
// Albdeo //
|
| 52 |
+
|
| 53 |
+
color diffuse_color_constant = color(0.2) [[
|
| 54 |
+
anno::display_name("Albedo Color"),
|
| 55 |
+
anno::description("This is the albedo base color"),
|
| 56 |
+
anno::in_group("Albedo")
|
| 57 |
+
]],
|
| 58 |
+
uniform texture_2d diffuse_texture = texture_2d() [[
|
| 59 |
+
anno::display_name("Albedo Map"),
|
| 60 |
+
anno::in_group("Albedo")
|
| 61 |
+
]],
|
| 62 |
+
float albedo_desaturation = float(0.0) [[
|
| 63 |
+
anno::display_name("Albedo Map Desaturation"),
|
| 64 |
+
anno::description("Desaturates the albedo map"),
|
| 65 |
+
anno::in_group("Albedo"),
|
| 66 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 67 |
+
]],
|
| 68 |
+
float albedo_add = float(0.0) [[
|
| 69 |
+
anno::display_name("Albedo Add"),
|
| 70 |
+
anno::description("Adds a constant value to the diffuse color "),
|
| 71 |
+
anno::in_group("Albedo"),
|
| 72 |
+
anno::soft_range(float(-1.0), float(1.0))
|
| 73 |
+
]],
|
| 74 |
+
float albedo_brightness = float(1.0) [[
|
| 75 |
+
anno::display_name("Albedo Brightness"),
|
| 76 |
+
anno::description("Multiplier for the diffuse color "),
|
| 77 |
+
anno::in_group("Albedo"),
|
| 78 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 79 |
+
]],
|
| 80 |
+
color diffuse_tint = color(1.0) [[
|
| 81 |
+
anno::display_name("Color Tint"),
|
| 82 |
+
anno::description("When enabled, this color value is multiplied over the final albedo color"),
|
| 83 |
+
anno::in_group("Albedo")
|
| 84 |
+
]],
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
// Reflectivity //
|
| 88 |
+
|
| 89 |
+
float reflection_roughness_constant = float(0.5) [[
|
| 90 |
+
anno::display_name("Roughness Amount"),
|
| 91 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 92 |
+
anno::in_group("Reflectivity"),
|
| 93 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 94 |
+
]],
|
| 95 |
+
float reflection_roughness_texture_influence = float(0.0) [[
|
| 96 |
+
anno::display_name("Roughness Map Influence"),
|
| 97 |
+
anno::description("Blends between the constant value and the lookup of the roughness texture"),
|
| 98 |
+
anno::in_group("Reflectivity"),
|
| 99 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 100 |
+
]],
|
| 101 |
+
uniform texture_2d reflectionroughness_texture = texture_2d() [[
|
| 102 |
+
anno::display_name("Roughness Map"),
|
| 103 |
+
anno::in_group("Reflectivity"),
|
| 104 |
+
anno::usage("roughness")
|
| 105 |
+
]],
|
| 106 |
+
float metallic_constant = float(0.0) [[
|
| 107 |
+
anno::display_name("Metallic Amount"),
|
| 108 |
+
anno::description("Metallic Material"),
|
| 109 |
+
anno::in_group("Reflectivity"),
|
| 110 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 111 |
+
]],
|
| 112 |
+
float metallic_texture_influence = float(0.0) [[
|
| 113 |
+
anno::display_name("Metallic Map Influence"),
|
| 114 |
+
anno::description("Blends between the constant value and the lookup of the metallic texture"),
|
| 115 |
+
anno::in_group("Reflectivity"),
|
| 116 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 117 |
+
]],
|
| 118 |
+
uniform texture_2d metallic_texture = texture_2d() [[
|
| 119 |
+
anno::display_name("Metallic Map"),
|
| 120 |
+
anno::in_group("Reflectivity"),
|
| 121 |
+
anno::usage("metalness")
|
| 122 |
+
]],
|
| 123 |
+
float specular_level = float(0.5) [[
|
| 124 |
+
anno::display_name("Specular"),
|
| 125 |
+
anno::description("The specular level (intensity) of the material"),
|
| 126 |
+
anno::in_group("Reflectivity"),
|
| 127 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 128 |
+
]],
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
// ORM //
|
| 132 |
+
|
| 133 |
+
uniform bool enable_ORM_texture = false [[
|
| 134 |
+
anno::display_name("Enable ORM Texture"),
|
| 135 |
+
anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
|
| 136 |
+
anno::in_group("Reflectivity")
|
| 137 |
+
]],
|
| 138 |
+
uniform texture_2d ORM_texture = texture_2d() [[
|
| 139 |
+
anno::display_name("ORM Map"),
|
| 140 |
+
anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
|
| 141 |
+
anno::in_group("Reflectivity"),
|
| 142 |
+
anno::usage("roughness")
|
| 143 |
+
]],
|
| 144 |
+
|
| 145 |
+
|
| 146 |
+
// AO Group //
|
| 147 |
+
|
| 148 |
+
float ao_to_diffuse = 0.0 [[
|
| 149 |
+
anno::display_name("AO to diffuse"),
|
| 150 |
+
anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
|
| 151 |
+
anno::in_group("AO"),
|
| 152 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 153 |
+
]],
|
| 154 |
+
uniform texture_2d ao_texture = texture_2d() [[
|
| 155 |
+
anno::display_name("Ambient Occlusion Map"),
|
| 156 |
+
anno::description("The ambient occlusion texture for the material"),
|
| 157 |
+
anno::in_group("AO"),
|
| 158 |
+
anno::usage("occlusion")
|
| 159 |
+
]],
|
| 160 |
+
|
| 161 |
+
|
| 162 |
+
// Emission //
|
| 163 |
+
|
| 164 |
+
uniform bool enable_emission = false [[
|
| 165 |
+
anno::display_name("Enable Emission"),
|
| 166 |
+
anno::description("Enables the emission of light from the material"),
|
| 167 |
+
anno::in_group("Emissive")
|
| 168 |
+
]],
|
| 169 |
+
color emissive_color = color(1.0,0.1,0.1) [[
|
| 170 |
+
anno::display_name("Emissive Color"),
|
| 171 |
+
anno::description("The emission color"),
|
| 172 |
+
anno::in_group("Emissive"),
|
| 173 |
+
anno::enable_if("enable_emission == true")
|
| 174 |
+
]],
|
| 175 |
+
uniform texture_2d emissive_color_texture = texture_2d() [[
|
| 176 |
+
anno::display_name("Emissive Color map"),
|
| 177 |
+
anno::in_group("Emissive"),
|
| 178 |
+
anno::description("The emissive color texture"),
|
| 179 |
+
anno::enable_if("enable_emission == true")
|
| 180 |
+
]],
|
| 181 |
+
uniform texture_2d emissive_mask_texture = texture_2d() [[
|
| 182 |
+
anno::display_name("Emissive Mask map"),
|
| 183 |
+
anno::description("The texture masking the emissive color"),
|
| 184 |
+
anno::in_group("Emissive"),
|
| 185 |
+
anno::enable_if("enable_emission == true"),
|
| 186 |
+
anno::usage("occlusion")
|
| 187 |
+
]],
|
| 188 |
+
float emissive_intensity = float(40.0) [[
|
| 189 |
+
anno::display_name("Emissive Intensity"),
|
| 190 |
+
anno::description("Intensity of the emission"),
|
| 191 |
+
anno::in_group("Emissive"),
|
| 192 |
+
anno::enable_if("enable_emission == true")
|
| 193 |
+
]],
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
// Cutout Opacity //
|
| 197 |
+
|
| 198 |
+
uniform bool enable_opacity = false [[
|
| 199 |
+
anno::display_name("Enable Opacity"),
|
| 200 |
+
anno::description("Enables the use of cutout opacity"),
|
| 201 |
+
anno::in_group("Opacity")
|
| 202 |
+
]],
|
| 203 |
+
uniform texture_2d opacity_texture = texture_2d() [[
|
| 204 |
+
anno::display_name("Opacity Map"),
|
| 205 |
+
anno::in_group("Opacity"),
|
| 206 |
+
anno::usage("opacity")
|
| 207 |
+
]],
|
| 208 |
+
float opacity_constant = float(1.0) [[
|
| 209 |
+
anno::display_name("Opacity Amount"),
|
| 210 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 211 |
+
anno::in_group("Opacity"),
|
| 212 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 213 |
+
]],
|
| 214 |
+
uniform bool enable_opacity_texture = false [[
|
| 215 |
+
anno::display_name("Enable Opacity Texture"),
|
| 216 |
+
anno::description("Enables or disables the usage of the opacity texture map"),
|
| 217 |
+
anno::in_group("Opacity")
|
| 218 |
+
]],
|
| 219 |
+
uniform base::mono_mode opacity_mode = base::mono_average [[
|
| 220 |
+
anno::display_name("Opacity Mono Source"),
|
| 221 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 222 |
+
anno::in_group("Opacity")
|
| 223 |
+
]],
|
| 224 |
+
uniform float opacity_threshold = float(0.0) [[
|
| 225 |
+
anno::hard_range(0.0, 1.0),
|
| 226 |
+
anno::display_name("Opacity Threshold"),
|
| 227 |
+
anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 228 |
+
anno::in_group("Opacity")
|
| 229 |
+
]],
|
| 230 |
+
|
| 231 |
+
|
| 232 |
+
// Normal //
|
| 233 |
+
|
| 234 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 235 |
+
[[
|
| 236 |
+
anno::hard_range(0.0, 1.0),
|
| 237 |
+
anno::display_name("Normal map to roughness weight"),
|
| 238 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 239 |
+
anno::in_group("Normal")
|
| 240 |
+
]],
|
| 241 |
+
uniform float bump_factor = float(1.0) [[
|
| 242 |
+
anno::display_name("Normal Strength"),
|
| 243 |
+
anno::description("Strength of normal map"),
|
| 244 |
+
anno::in_group("Normal"),
|
| 245 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 246 |
+
]],
|
| 247 |
+
uniform texture_2d normalmap_texture = texture_2d() [[
|
| 248 |
+
anno::display_name("Normal Map"),
|
| 249 |
+
anno::in_group("Normal"),
|
| 250 |
+
anno::usage("normal")
|
| 251 |
+
]],
|
| 252 |
+
uniform float detail_bump_factor = float(0.3) [[
|
| 253 |
+
anno::display_name("Detail Normal Strength"),
|
| 254 |
+
anno::in_group("Normal"),
|
| 255 |
+
anno::description("Strength of the detail normal"),
|
| 256 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 257 |
+
]],
|
| 258 |
+
uniform texture_2d detail_normalmap_texture = texture_2d() [[
|
| 259 |
+
anno::display_name("Detail Normal Map"),
|
| 260 |
+
anno::in_group("Normal"),
|
| 261 |
+
anno::usage("normal")
|
| 262 |
+
]],
|
| 263 |
+
uniform bool flip_tangent_u = false [[
|
| 264 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 265 |
+
anno::in_group("Normal")
|
| 266 |
+
]],
|
| 267 |
+
uniform bool flip_tangent_v = true [[
|
| 268 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 269 |
+
anno::in_group("Normal")
|
| 270 |
+
]],
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
// UVW Projection Group //
|
| 274 |
+
|
| 275 |
+
uniform bool project_uvw = false [[
|
| 276 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 277 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 278 |
+
anno::in_group("UV")
|
| 279 |
+
]],
|
| 280 |
+
uniform bool world_or_object = false [[
|
| 281 |
+
anno::display_name("Enable World Space"),
|
| 282 |
+
anno::description("When enabled, uses world space for projection, otherwise object space is used"),
|
| 283 |
+
anno::in_group("UV"),
|
| 284 |
+
anno::enable_if("project_uvw == true")
|
| 285 |
+
]],
|
| 286 |
+
uniform int uv_space_index = 0 [[
|
| 287 |
+
anno::display_name("UV Space Index"),
|
| 288 |
+
anno::description("UV Space Index."),
|
| 289 |
+
anno::in_group("UV"),
|
| 290 |
+
anno::enable_if("project_uvw == true"),
|
| 291 |
+
anno::hard_range(int(0), int(3))
|
| 292 |
+
]],
|
| 293 |
+
|
| 294 |
+
|
| 295 |
+
// UVW Adjustments Group //
|
| 296 |
+
|
| 297 |
+
uniform float2 texture_translate = float2(0.0) [[
|
| 298 |
+
anno::display_name("Texture Translate"),
|
| 299 |
+
anno::description("Controls position of texture."),
|
| 300 |
+
anno::in_group("UV"),
|
| 301 |
+
anno::enable_if("project_uvw == true")
|
| 302 |
+
]],
|
| 303 |
+
uniform float texture_rotate = float(0.0) [[
|
| 304 |
+
anno::display_name("Texture Rotate"),
|
| 305 |
+
anno::description("Rotates angle of texture in degrees."),
|
| 306 |
+
anno::in_group("UV"),
|
| 307 |
+
anno::enable_if("project_uvw == true")
|
| 308 |
+
]],
|
| 309 |
+
uniform float2 texture_scale = float2(1.0) [[
|
| 310 |
+
anno::display_name("Texture Tiling"),
|
| 311 |
+
anno::description("Controls the repetition of the texture."),
|
| 312 |
+
anno::in_group("UV"),
|
| 313 |
+
anno::enable_if("project_uvw == true")
|
| 314 |
+
]],
|
| 315 |
+
uniform float2 detail_texture_translate = float2(0.0) [[
|
| 316 |
+
anno::display_name("Detail Texture Translate"),
|
| 317 |
+
anno::description("Controls the position of the detail texture."),
|
| 318 |
+
anno::in_group("UV"),
|
| 319 |
+
anno::enable_if("project_uvw == true")
|
| 320 |
+
]],
|
| 321 |
+
uniform float detail_texture_rotate = float(0.0) [[
|
| 322 |
+
anno::display_name("Detail Texture Rotate"),
|
| 323 |
+
anno::description("Rotates angle of the detail texture in degrees."),
|
| 324 |
+
anno::in_group("UV"),
|
| 325 |
+
anno::enable_if("project_uvw == true")
|
| 326 |
+
]],
|
| 327 |
+
uniform float2 detail_texture_scale = float2(1.0) [[
|
| 328 |
+
anno::display_name("Detail Texture Tiling"),
|
| 329 |
+
anno::description("Controls the repetition of the detail texture."),
|
| 330 |
+
anno::in_group("UV"),
|
| 331 |
+
anno::enable_if("project_uvw == true")
|
| 332 |
+
]],
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
// Geometry //
|
| 336 |
+
|
| 337 |
+
uniform float round_edges_radius = float(0.0) [[
|
| 338 |
+
anno::display_name("Round Edge Radius"),
|
| 339 |
+
anno::description("Influence radius around the edges in meters"),
|
| 340 |
+
anno::in_group("Geometry"),
|
| 341 |
+
anno::soft_range(0.0, 1.0)
|
| 342 |
+
]],
|
| 343 |
+
uniform float round_edges_roundness = float(1.0) [[
|
| 344 |
+
anno::display_name("Round Edge Roundness"),
|
| 345 |
+
anno::description("Determines how round the edge will look"),
|
| 346 |
+
anno::in_group("Geometry"),
|
| 347 |
+
anno::hard_range(0.0, 1.0)
|
| 348 |
+
]],
|
| 349 |
+
uniform bool round_edges_across_materials = false [[
|
| 350 |
+
anno::display_name("Round Edge Across Materials"),
|
| 351 |
+
anno::description("Normal smoothing happens only between facets of equal material, \n"
|
| 352 |
+
"\t\tunless this parameter is set true, in which case the smoothing \n"
|
| 353 |
+
"\t\thappens between facets irrespective of their materials"),
|
| 354 |
+
anno::in_group("Geometry")
|
| 355 |
+
]]
|
| 356 |
+
)
|
| 357 |
+
[[
|
| 358 |
+
anno::display_name("OmniPBR"),
|
| 359 |
+
anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
|
| 360 |
+
anno::in_group("Base"),
|
| 361 |
+
anno::version( 2, 1, 2),
|
| 362 |
+
anno::author("NVIDIA CORPORATION"),
|
| 363 |
+
anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
|
| 364 |
+
]] = let {
|
| 365 |
+
|
| 366 |
+
material base = OmniPBR_ClearCoat::OmniPBR_ClearCoat(
|
| 367 |
+
diffuse_color_constant: diffuse_color_constant,
|
| 368 |
+
diffuse_texture: diffuse_texture,
|
| 369 |
+
albedo_desaturation: albedo_desaturation,
|
| 370 |
+
albedo_add: albedo_add,
|
| 371 |
+
albedo_brightness: albedo_brightness,
|
| 372 |
+
diffuse_tint: diffuse_tint,
|
| 373 |
+
reflection_roughness_constant: reflection_roughness_constant,
|
| 374 |
+
reflection_roughness_texture_influence: reflection_roughness_texture_influence,
|
| 375 |
+
reflectionroughness_texture: reflectionroughness_texture,
|
| 376 |
+
metallic_constant: metallic_constant,
|
| 377 |
+
metallic_texture_influence: metallic_texture_influence,
|
| 378 |
+
metallic_texture: metallic_texture,
|
| 379 |
+
specular_level: specular_level,
|
| 380 |
+
enable_ORM_texture: enable_ORM_texture,
|
| 381 |
+
ORM_texture: ORM_texture,
|
| 382 |
+
ao_to_diffuse: ao_to_diffuse,
|
| 383 |
+
ao_texture: ao_texture,
|
| 384 |
+
enable_emission: enable_emission,
|
| 385 |
+
emissive_color: emissive_color,
|
| 386 |
+
emissive_color_texture: emissive_color_texture,
|
| 387 |
+
emissive_mask_texture: emissive_mask_texture,
|
| 388 |
+
emissive_intensity: emissive_intensity,
|
| 389 |
+
enable_opacity: enable_opacity,
|
| 390 |
+
opacity_texture: opacity_texture,
|
| 391 |
+
opacity_constant: opacity_constant,
|
| 392 |
+
enable_opacity_texture: enable_opacity_texture,
|
| 393 |
+
opacity_mode: opacity_mode,
|
| 394 |
+
opacity_threshold: opacity_threshold,
|
| 395 |
+
geometry_normal_roughness_strength: geometry_normal_roughness_strength,
|
| 396 |
+
bump_factor: bump_factor,
|
| 397 |
+
normalmap_texture: normalmap_texture,
|
| 398 |
+
detail_bump_factor: detail_bump_factor,
|
| 399 |
+
detail_normalmap_texture: detail_normalmap_texture,
|
| 400 |
+
flip_tangent_u: flip_tangent_u,
|
| 401 |
+
flip_tangent_v: flip_tangent_v,
|
| 402 |
+
project_uvw: project_uvw,
|
| 403 |
+
world_or_object: world_or_object,
|
| 404 |
+
uv_space_index: uv_space_index,
|
| 405 |
+
texture_translate: texture_translate,
|
| 406 |
+
texture_rotate: texture_rotate,
|
| 407 |
+
texture_scale: texture_scale,
|
| 408 |
+
detail_texture_translate: detail_texture_translate,
|
| 409 |
+
detail_texture_rotate: detail_texture_rotate,
|
| 410 |
+
detail_texture_scale: detail_texture_scale,
|
| 411 |
+
round_edges_radius: round_edges_radius,
|
| 412 |
+
round_edges_roundness: round_edges_roundness,
|
| 413 |
+
round_edges_across_materials: round_edges_across_materials
|
| 414 |
+
);
|
| 415 |
+
|
| 416 |
+
} in material(
|
| 417 |
+
surface: base.surface,
|
| 418 |
+
geometry: base.geometry
|
| 419 |
+
);
|
testingTool_battery_analyzer_b01/simready_usd/materials/OmniPBR/Om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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
|
| 31 |
+
import ::df::*;
|
| 32 |
+
import ::state::*;
|
| 33 |
+
import ::math::*;
|
| 34 |
+
import ::base::*;
|
| 35 |
+
import ::tex::*;
|
| 36 |
+
import ::anno::*;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
|
| 39 |
+
export float3 HemiOctahedronToUnitVector( float2 Oct ) [[
|
| 40 |
+
anno::hidden()
|
| 41 |
+
]]
|
| 42 |
+
{
|
| 43 |
+
Oct = float2( Oct.x + Oct.y, Oct.x - Oct.y ) * 0.5;
|
| 44 |
+
float3 N = float3( Oct.x, Oct.y, 1.0 - math::dot( float2(1.0), math::abs(Oct) ) );
|
| 45 |
+
return math::normalize(N);
|
| 46 |
+
}
|
| 47 |
+
|
| 48 |
+
export struct NormalData [[
|
| 49 |
+
anno::hidden()
|
| 50 |
+
]]
|
| 51 |
+
{
|
| 52 |
+
float3 normal;
|
| 53 |
+
float2 roughness;
|
| 54 |
+
};
|
| 55 |
+
|
| 56 |
+
export NormalData tangent_space_normal_roughness_texture(
|
| 57 |
+
uniform texture_2d texture
|
| 58 |
+
[[
|
| 59 |
+
anno::description("The input texture"),
|
| 60 |
+
anno::usage("normal")
|
| 61 |
+
]],
|
| 62 |
+
uniform float factor = 1.0f
|
| 63 |
+
[[ anno::description("Determines the degree of bumpiness") ]],
|
| 64 |
+
uniform bool flip_tangent_u = false
|
| 65 |
+
[[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
|
| 66 |
+
uniform bool flip_tangent_v = false
|
| 67 |
+
[[ anno::description("Can be used to fix mismatches between the object's tangent space and the normal map's tangent space") ]],
|
| 68 |
+
base::texture_coordinate_info uvw = base::texture_coordinate_info()
|
| 69 |
+
[[ anno::description("Parameterization to be used for texture mapping. Defaults to texture channel 0.") ]],
|
| 70 |
+
uniform float2 crop_u = float2( 0.0, 1.0)
|
| 71 |
+
[[ anno::description("Restricts the texture access to sub-domain of the texture in the u direction") ]],
|
| 72 |
+
uniform float2 crop_v = float2( 0.0, 1.0)
|
| 73 |
+
[[ anno::description("Restricts the texture access to sub-domain of the texture in the v direction") ]],
|
| 74 |
+
uniform tex::wrap_mode wrap_u = tex::wrap_repeat
|
| 75 |
+
[[ anno::description("Wrapping mode in the u direction") ]],
|
| 76 |
+
uniform tex::wrap_mode wrap_v = tex::wrap_repeat
|
| 77 |
+
[[ anno::description("Wrapping mode in the v direction") ]],
|
| 78 |
+
uniform bool clip = false
|
| 79 |
+
[[
|
| 80 |
+
anno::description("deprecated, usewrap_mode=tex::wrap_clip. Defines wrap_clamp behavior. If true, lookup outside [0,1] results in no bump"),
|
| 81 |
+
anno::hidden()
|
| 82 |
+
]],
|
| 83 |
+
uniform float scale = 1.
|
| 84 |
+
[[
|
| 85 |
+
anno::description("Scales the value red from the texture file. Can be used to adapt to different normal map formats"),
|
| 86 |
+
anno::unused()
|
| 87 |
+
]],
|
| 88 |
+
uniform float offset = 0.
|
| 89 |
+
[[
|
| 90 |
+
anno::description("Offset applied to the value red from the texture file. Can be used to adapt to different normal map formats"),
|
| 91 |
+
anno::unused()
|
| 92 |
+
]],
|
| 93 |
+
uniform float animation_start_time = 0.
|
| 94 |
+
[[ anno::description("When to start playing first frame of the animation ") ]],
|
| 95 |
+
uniform int2 animation_crop = int2(0, 0)
|
| 96 |
+
[[ anno::description("If the texture is an animation, the range of frames to be played can be specified.") ]],
|
| 97 |
+
uniform tex::wrap_mode animation_wrap = tex::wrap_repeat
|
| 98 |
+
[[ anno::description("Defines what to do outside of regular animation time") ]],
|
| 99 |
+
uniform float animation_fps = 30
|
| 100 |
+
[[ anno::description("Framerate to use for animation playback") ]]
|
| 101 |
+
)
|
| 102 |
+
[[
|
| 103 |
+
anno::description("Interprets the color values of a bitmap as a vector in tangent space"),
|
| 104 |
+
anno::hidden(),
|
| 105 |
+
anno::noinline()
|
| 106 |
+
]]
|
| 107 |
+
{
|
| 108 |
+
NormalData normalData;
|
| 109 |
+
normalData.roughness = float2(0);
|
| 110 |
+
normalData.normal = state::normal();
|
| 111 |
+
|
| 112 |
+
float frame = 0.0;
|
| 113 |
+
if(animation_crop != int2(0,0)) //only if we have an animation
|
| 114 |
+
{
|
| 115 |
+
frame = (::state::animation_time()-animation_start_time) * animation_fps ; //start playing at first frame of the animation
|
| 116 |
+
switch ( animation_wrap) {
|
| 117 |
+
case tex::wrap_repeat:
|
| 118 |
+
frame=frame>0? math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.x:
|
| 119 |
+
math::fmod(frame,animation_crop.y-animation_crop.x)+animation_crop.y;
|
| 120 |
+
break;
|
| 121 |
+
case tex::wrap_mirrored_repeat:
|
| 122 |
+
float animation_crop_2y = 2.0*animation_crop.y;
|
| 123 |
+
frame=frame>0? math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop.x:
|
| 124 |
+
math::fmod(frame,(animation_crop.y-animation_crop.x)*2.0)+animation_crop_2y-animation_crop.x;
|
| 125 |
+
if(frame>animation_crop.y)
|
| 126 |
+
frame = animation_crop_2y-frame;
|
| 127 |
+
break;
|
| 128 |
+
case tex::wrap_clamp:
|
| 129 |
+
frame = math::clamp( frame+animation_crop.x, animation_crop.x, animation_crop.y);
|
| 130 |
+
break;
|
| 131 |
+
case tex::wrap_clip:
|
| 132 |
+
frame += animation_crop.x;
|
| 133 |
+
if(frame < animation_crop.x || frame > animation_crop.y) return normalData;
|
| 134 |
+
break;
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
|
| 138 |
+
if (tex::width(texture) == 0 || tex::height(texture) == 0 || // avoid division by zero in texremapu for invalid resource
|
| 139 |
+
factor == 0.0f)
|
| 140 |
+
return normalData;
|
| 141 |
+
{
|
| 142 |
+
if (clip) {
|
| 143 |
+
if (wrap_u == tex::wrap_clamp && (uvw.position.x < 0. || uvw.position.x > 1.)) {
|
| 144 |
+
return normalData;
|
| 145 |
+
}
|
| 146 |
+
if (wrap_v == tex::wrap_clamp && (uvw.position.y < 0. || uvw.position.y > 1.)) {
|
| 147 |
+
return normalData;
|
| 148 |
+
}
|
| 149 |
+
}
|
| 150 |
+
if (wrap_u == tex::wrap_clip && (uvw.position.x < 0. || uvw.position.x > 1.)) {
|
| 151 |
+
return normalData;
|
| 152 |
+
}
|
| 153 |
+
if (wrap_v == tex::wrap_clip && (uvw.position.y < 0. || uvw.position.y > 1.)) {
|
| 154 |
+
return normalData;
|
| 155 |
+
}
|
| 156 |
+
}
|
| 157 |
+
bool pixel_flip_u = flip_tangent_u;
|
| 158 |
+
bool pixel_flip_v = flip_tangent_v;
|
| 159 |
+
//if we mirror repeat a tangent space texture, tangent space needs to be flipped for every other tile
|
| 160 |
+
if (wrap_u == tex::wrap_mirrored_repeat) {
|
| 161 |
+
if( uvw.position.x > 0. && int(uvw.position.x) % 2 == 1)
|
| 162 |
+
pixel_flip_u = ! pixel_flip_u;
|
| 163 |
+
else if( uvw.position.x < 0. && int(uvw.position.x) % 2 == 0)
|
| 164 |
+
pixel_flip_u = ! pixel_flip_u;
|
| 165 |
+
}
|
| 166 |
+
if (wrap_v == tex::wrap_mirrored_repeat) {
|
| 167 |
+
if( uvw.position.y > 0. && int(uvw.position.y) % 2 == 1)
|
| 168 |
+
pixel_flip_v = ! pixel_flip_v;
|
| 169 |
+
else if( uvw.position.y < 0. && int(uvw.position.y) % 2 == 0)
|
| 170 |
+
pixel_flip_v = ! pixel_flip_v;
|
| 171 |
+
}
|
| 172 |
+
|
| 173 |
+
float3 transformed_tangent_u = uvw.tangent_u;
|
| 174 |
+
float3 transformed_tangent_v = uvw.tangent_v;
|
| 175 |
+
|
| 176 |
+
if (pixel_flip_u)
|
| 177 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 178 |
+
if (pixel_flip_v)
|
| 179 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 180 |
+
|
| 181 |
+
float3 tangent_space_normal;
|
| 182 |
+
float4 normal_raw = tex::lookup_float4(texture,float2(uvw.position.x,uvw.position.y), wrap_u, wrap_v, crop_u, crop_v, frame);
|
| 183 |
+
if(normal_raw.x > 1.5)
|
| 184 |
+
{
|
| 185 |
+
// octahedron packed by OV
|
| 186 |
+
normal_raw.x -= 2.0;
|
| 187 |
+
normal_raw.x -= 0.5;
|
| 188 |
+
normal_raw.y -= 0.5;
|
| 189 |
+
tangent_space_normal = HemiOctahedronToUnitVector(float2(normal_raw.x, normal_raw.y) * 2.0);
|
| 190 |
+
normalData.roughness = float2(normal_raw.z, normal_raw.w);
|
| 191 |
+
}
|
| 192 |
+
else
|
| 193 |
+
{
|
| 194 |
+
// regular
|
| 195 |
+
tangent_space_normal = (float3(normal_raw.x, normal_raw.y, normal_raw.z) - float3(0.5)) * 2.0;
|
| 196 |
+
normalData.roughness = float2(0);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
normalData.normal = math::normalize(
|
| 200 |
+
transformed_tangent_u * tangent_space_normal.x * factor +
|
| 201 |
+
transformed_tangent_v * tangent_space_normal.y * factor +
|
| 202 |
+
state::normal() * tangent_space_normal.z);
|
| 203 |
+
|
| 204 |
+
return normalData;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
export material OmniPBRBase(
|
| 209 |
+
|
| 210 |
+
|
| 211 |
+
// Albdeo //
|
| 212 |
+
|
| 213 |
+
color diffuse_reflection_color = color(0.2) [[
|
| 214 |
+
anno::display_name("Albedo Color"),
|
| 215 |
+
anno::description("This is the albedo base color"),
|
| 216 |
+
anno::in_group("Albedo")
|
| 217 |
+
]],
|
| 218 |
+
color diffuse_tint = color(1.0) [[
|
| 219 |
+
anno::display_name("Albedo Tint"),
|
| 220 |
+
anno::description("When enabled, this color value is multiplied over the final albedo color"),
|
| 221 |
+
anno::in_group("Albedo")
|
| 222 |
+
]],
|
| 223 |
+
|
| 224 |
+
|
| 225 |
+
// Reflecitivity //
|
| 226 |
+
|
| 227 |
+
float specular_reflection_roughness = float(0.0) [[
|
| 228 |
+
anno::display_name("Roughness"),
|
| 229 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 230 |
+
anno::in_group("Reflectivity"),
|
| 231 |
+
anno::hard_range(0.0, 1.0)
|
| 232 |
+
]],
|
| 233 |
+
float2 specular_reflection_aniso_roughness = float2(0.0, 0.0) [[
|
| 234 |
+
anno::display_name("Aniso roughness"),
|
| 235 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 236 |
+
anno::in_group("Reflectivity"),
|
| 237 |
+
anno::hidden()
|
| 238 |
+
]],
|
| 239 |
+
float metalness = float(0.0) [[
|
| 240 |
+
anno::display_name("Metalness"),
|
| 241 |
+
anno::description("Bias towards pure specular reflection"),
|
| 242 |
+
anno::in_group("Reflectivity"),
|
| 243 |
+
anno::hard_range(0.0, 1.0)
|
| 244 |
+
]],
|
| 245 |
+
float specular_level = float(0.5) [[
|
| 246 |
+
anno::display_name("Specular"),
|
| 247 |
+
anno::description("The specular level (intensity) of the material"),
|
| 248 |
+
anno::in_group("Reflectivity"),
|
| 249 |
+
anno::soft_range(0.0, 1.0)
|
| 250 |
+
]],
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
// Emission //
|
| 254 |
+
|
| 255 |
+
uniform bool enable_emission = false [[
|
| 256 |
+
anno::display_name("Enable Emission"),
|
| 257 |
+
anno::description("Enables the emission of light from the material"),
|
| 258 |
+
anno::in_group("Emissive")
|
| 259 |
+
]],
|
| 260 |
+
color emission_color = color(1.0,0.1,0.1) [[
|
| 261 |
+
anno::display_name("Emissive Color"),
|
| 262 |
+
anno::description("The emission color"),
|
| 263 |
+
anno::in_group("Emissive"),
|
| 264 |
+
anno::enable_if("enable_emission == true")
|
| 265 |
+
]],
|
| 266 |
+
float emission_intensity = float(40.0) [[
|
| 267 |
+
anno::display_name("Emissive Intensity"),
|
| 268 |
+
anno::description("Intensity of the emission"),
|
| 269 |
+
anno::in_group("Emissive"),
|
| 270 |
+
anno::soft_range(0.0, 1000.0),
|
| 271 |
+
anno::enable_if("enable_emission == true")
|
| 272 |
+
]],
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
// Geometry Opacity //
|
| 276 |
+
|
| 277 |
+
uniform bool enable_opacity = false [[
|
| 278 |
+
anno::display_name("Enable Opacity"),
|
| 279 |
+
anno::description("Enables the use of cutout opacity"),
|
| 280 |
+
anno::in_group("Opacity")
|
| 281 |
+
]],
|
| 282 |
+
float geometry_opacity = float(1.0) [[
|
| 283 |
+
anno::display_name("Opacity Amount"),
|
| 284 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 285 |
+
anno::in_group("Opacity"),
|
| 286 |
+
anno::hard_range(0.0, 1.0)
|
| 287 |
+
]],
|
| 288 |
+
uniform float geometry_opacity_threshold = 0.f
|
| 289 |
+
[[
|
| 290 |
+
anno::display_name("Opacity Threshold"),
|
| 291 |
+
anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 292 |
+
anno::in_group("Opacity"),
|
| 293 |
+
anno::hard_range(0.0, 1.0)
|
| 294 |
+
]],
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
// Clearcoat //
|
| 298 |
+
|
| 299 |
+
uniform bool enable_coat = false [[
|
| 300 |
+
anno::display_name("Enable Clearcoat Layer"),
|
| 301 |
+
anno::description("Adds a coat layer on top of the material when enabled"),
|
| 302 |
+
anno::in_group("Clearcoat")
|
| 303 |
+
]],
|
| 304 |
+
float coat_weight = float(1.0) [[
|
| 305 |
+
anno::display_name("Clearcoat Weight"),
|
| 306 |
+
anno::description("Sets the weight for coat layer"),
|
| 307 |
+
anno::in_group("Clearcoat"),
|
| 308 |
+
anno::hard_range(0.0, 1.0)
|
| 309 |
+
]],
|
| 310 |
+
color coat_color = color(1.0) [[
|
| 311 |
+
anno::display_name("Clearcoat Tint"),
|
| 312 |
+
anno::description("Clearcoat is tinted and affects the underlying material"),
|
| 313 |
+
anno::in_group("Clearcoat")
|
| 314 |
+
]],
|
| 315 |
+
float coat_transparency = float(1.0) [[
|
| 316 |
+
anno::display_name("Clearcoat Transparency"),
|
| 317 |
+
anno::description("Adjusts the transparency of the coat. Can be turned into a fully opaque coat covering the underlying layer"),
|
| 318 |
+
anno::in_group("Clearcoat"),
|
| 319 |
+
anno::hard_range(0.0, 1.0)
|
| 320 |
+
]],
|
| 321 |
+
float coat_roughness = float(0.0) [[
|
| 322 |
+
anno::display_name("Clearcoat Roughness"),
|
| 323 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 324 |
+
anno::in_group("Clearcoat"),
|
| 325 |
+
anno::hard_range(0.0, 1.0)
|
| 326 |
+
]],
|
| 327 |
+
float2 coat_aniso_roughness = float2(0.0, 0.0) [[
|
| 328 |
+
anno::display_name("Clearcoat aniso roughness"),
|
| 329 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 330 |
+
anno::in_group("Clearcoat"),
|
| 331 |
+
anno::hidden()
|
| 332 |
+
]],
|
| 333 |
+
float coat_ior = float(1.56) [[
|
| 334 |
+
anno::display_name("Clearcoat IOR"),
|
| 335 |
+
anno::description("Sets the Index of refraction for the coat layer"),
|
| 336 |
+
anno::in_group("Clearcoat"),
|
| 337 |
+
anno::soft_range(0.0, 4.0)
|
| 338 |
+
]],
|
| 339 |
+
float3 clearcoat_geometry_normal = state::normal() [[
|
| 340 |
+
anno::display_name("Clearcoat Normal"),
|
| 341 |
+
anno::in_group("Clearcoat"),
|
| 342 |
+
anno::usage("normal")
|
| 343 |
+
]],
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
// Geometry //
|
| 347 |
+
|
| 348 |
+
uniform float round_edges_radius = float(0.0) [[
|
| 349 |
+
anno::display_name("Round Edge Radius"),
|
| 350 |
+
anno::description("Influence radius around the edges in meters"),
|
| 351 |
+
anno::in_group("Geometry"),
|
| 352 |
+
anno::soft_range(0.0, 1.0)
|
| 353 |
+
]],
|
| 354 |
+
uniform float round_edges_roundness = float(1.0) [[
|
| 355 |
+
anno::display_name("Round Edge Roundness"),
|
| 356 |
+
anno::description("Determines how round the edge will look"),
|
| 357 |
+
anno::in_group("Geometry"),
|
| 358 |
+
anno::hard_range(0.0, 1.0)
|
| 359 |
+
]],
|
| 360 |
+
uniform bool round_edges_across_materials = false [[
|
| 361 |
+
anno::display_name("Round Edge Across Materials"),
|
| 362 |
+
anno::description("Normal smoothing happens only between facets of equal material, \n"
|
| 363 |
+
"\t\tunless this parameter is set true, in which case the smoothing \n"
|
| 364 |
+
"\t\thappens between facets irrespective of their materials"),
|
| 365 |
+
anno::in_group("Geometry")
|
| 366 |
+
]],
|
| 367 |
+
float3 geometry_normal = state::normal() [[
|
| 368 |
+
anno::display_name("Geometry Normal"),
|
| 369 |
+
anno::in_group("Geometry"),
|
| 370 |
+
anno::usage("normal")
|
| 371 |
+
]]
|
| 372 |
+
|
| 373 |
+
)
|
| 374 |
+
[[
|
| 375 |
+
anno::display_name("OmniPBR Base"),
|
| 376 |
+
anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
|
| 377 |
+
anno::in_group("Omni Materials"),
|
| 378 |
+
anno::version( 2, 1, 1),
|
| 379 |
+
anno::author("NVIDIA CORPORATION"),
|
| 380 |
+
anno::key_words(string[]("omni", "PBR", "opacity", "omniverse", "generic"))
|
| 381 |
+
]]
|
| 382 |
+
= let{
|
| 383 |
+
|
| 384 |
+
// Diffuse Bsdf //
|
| 385 |
+
|
| 386 |
+
color tinted_diffuse_color = diffuse_reflection_color * diffuse_tint;
|
| 387 |
+
|
| 388 |
+
color base_color = tinted_diffuse_color;
|
| 389 |
+
|
| 390 |
+
bsdf diffuse_bsdf = df::weighted_layer(
|
| 391 |
+
weight: 1.0,
|
| 392 |
+
layer: df::diffuse_reflection_bsdf(
|
| 393 |
+
tint: base_color,
|
| 394 |
+
roughness: float(0.0)
|
| 395 |
+
),
|
| 396 |
+
base: bsdf(),
|
| 397 |
+
normal: geometry_normal
|
| 398 |
+
);
|
| 399 |
+
|
| 400 |
+
// Glossy Reflection Bsdf //
|
| 401 |
+
|
| 402 |
+
float roughness_u = math::clamp(specular_reflection_roughness * specular_reflection_roughness
|
| 403 |
+
+ specular_reflection_aniso_roughness.x * specular_reflection_aniso_roughness.x, 0, 1);
|
| 404 |
+
float roughness_v = math::clamp(specular_reflection_roughness * specular_reflection_roughness
|
| 405 |
+
+ specular_reflection_aniso_roughness.y * specular_reflection_aniso_roughness.y, 0, 1);
|
| 406 |
+
bsdf ggx_smith_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 407 |
+
roughness_u: roughness_u,
|
| 408 |
+
roughness_v: roughness_v,
|
| 409 |
+
tint: color(1.0),
|
| 410 |
+
mode: df::scatter_reflect
|
| 411 |
+
);
|
| 412 |
+
|
| 413 |
+
bsdf custom_curve_layer_bsdf = df::custom_curve_layer(
|
| 414 |
+
normal_reflectivity: 0.08,
|
| 415 |
+
grazing_reflectivity: 1.0,
|
| 416 |
+
exponent: 5.0,
|
| 417 |
+
weight: specular_level,
|
| 418 |
+
layer: ggx_smith_bsdf,
|
| 419 |
+
base: diffuse_bsdf,
|
| 420 |
+
normal: geometry_normal
|
| 421 |
+
);
|
| 422 |
+
|
| 423 |
+
bsdf directional_factor_bsdf = df::tint(base_color, ggx_smith_bsdf);
|
| 424 |
+
|
| 425 |
+
bsdf omni_PBR_bsdf = df::weighted_layer(
|
| 426 |
+
weight: metalness,
|
| 427 |
+
layer: directional_factor_bsdf,
|
| 428 |
+
base: custom_curve_layer_bsdf,
|
| 429 |
+
normal: geometry_normal
|
| 430 |
+
);
|
| 431 |
+
|
| 432 |
+
// Clear Coat //
|
| 433 |
+
|
| 434 |
+
float coat_roughness_u = math::clamp(coat_roughness * coat_roughness
|
| 435 |
+
+ coat_aniso_roughness.x * coat_aniso_roughness.x, 0, 1);
|
| 436 |
+
float coat_roughness_v = math::clamp(coat_roughness * coat_roughness
|
| 437 |
+
+ coat_aniso_roughness.y * coat_aniso_roughness.y, 0, 1);
|
| 438 |
+
bsdf coat_bsdf = df::microfacet_ggx_smith_bsdf(
|
| 439 |
+
roughness_u: coat_roughness_u,
|
| 440 |
+
roughness_v: coat_roughness_v,
|
| 441 |
+
tint: color(1.0),
|
| 442 |
+
mode: df::scatter_reflect
|
| 443 |
+
);
|
| 444 |
+
|
| 445 |
+
bsdf opaque_coat = df::weighted_layer(
|
| 446 |
+
weight: coat_transparency,
|
| 447 |
+
layer: ::df::tint(
|
| 448 |
+
tint: coat_color,
|
| 449 |
+
base: omni_PBR_bsdf
|
| 450 |
+
),
|
| 451 |
+
base: ::df::diffuse_reflection_bsdf(
|
| 452 |
+
tint: coat_color
|
| 453 |
+
)
|
| 454 |
+
);
|
| 455 |
+
|
| 456 |
+
bsdf omni_PBR_coated_bsdf = df::fresnel_layer(
|
| 457 |
+
ior: coat_ior,
|
| 458 |
+
weight: coat_weight,
|
| 459 |
+
layer: coat_bsdf,
|
| 460 |
+
base: opaque_coat,
|
| 461 |
+
normal: clearcoat_geometry_normal
|
| 462 |
+
);
|
| 463 |
+
|
| 464 |
+
bsdf final_bsdf = enable_coat ? omni_PBR_coated_bsdf : omni_PBR_bsdf;
|
| 465 |
+
|
| 466 |
+
color emission_value = enable_emission ? emission_color * color(emission_intensity) : color(0.0);
|
| 467 |
+
|
| 468 |
+
float opacity_value = geometry_opacity;
|
| 469 |
+
float cutout_opacity = enable_opacity ? ((geometry_opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= geometry_opacity_threshold) ? 1.0 : 0)) : 1.0;
|
| 470 |
+
|
| 471 |
+
material_emission emission = material_emission(
|
| 472 |
+
df::diffuse_edf(),
|
| 473 |
+
intensity: emission_value
|
| 474 |
+
);
|
| 475 |
+
|
| 476 |
+
material_surface surface = material_surface(
|
| 477 |
+
scattering: final_bsdf,
|
| 478 |
+
emission: emission
|
| 479 |
+
);
|
| 480 |
+
|
| 481 |
+
material_geometry geometry = material_geometry(
|
| 482 |
+
normal: state::rounded_corner_normal(
|
| 483 |
+
radius: round_edges_radius,
|
| 484 |
+
across_materials: round_edges_across_materials,
|
| 485 |
+
roundness: round_edges_roundness
|
| 486 |
+
),
|
| 487 |
+
cutout_opacity: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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/***************************************************************************************************
|
| 2 |
+
* Copyright 2022 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
*
|
| 4 |
+
* Redistribution and use in source and binary forms, with or without
|
| 5 |
+
* modification, are permitted provided that the following conditions
|
| 6 |
+
* are met:
|
| 7 |
+
* * Redistributions of source code must retain the above copyright
|
| 8 |
+
* notice, this list of conditions and the following disclaimer.
|
| 9 |
+
* * Redistributions in binary form must reproduce the above copyright
|
| 10 |
+
* notice, this list of conditions and the following disclaimer in the
|
| 11 |
+
* documentation and/or other materials provided with the distribution.
|
| 12 |
+
* * Neither the name of NVIDIA CORPORATION nor the names of its
|
| 13 |
+
* contributors may be used to endorse or promote products derived
|
| 14 |
+
* from this software without specific prior written permission.
|
| 15 |
+
*
|
| 16 |
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
|
| 17 |
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
| 18 |
+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
| 19 |
+
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
| 20 |
+
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
| 21 |
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
| 22 |
+
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
| 23 |
+
* PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
|
| 24 |
+
* OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
| 25 |
+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| 26 |
+
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| 27 |
+
**************************************************************************************************/
|
| 28 |
+
|
| 29 |
+
mdl 1.7;
|
| 30 |
+
|
| 31 |
+
import ::df::*;
|
| 32 |
+
import ::state::*;
|
| 33 |
+
import ::math::*;
|
| 34 |
+
import ::base::*;
|
| 35 |
+
import ::state::*;
|
| 36 |
+
import ::tex::*;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
|
| 39 |
+
import ::debug::*;
|
| 40 |
+
|
| 41 |
+
import ::nvidia::core_definitions::file_texture;
|
| 42 |
+
import ::nvidia::core_definitions::normalmap_texture;
|
| 43 |
+
|
| 44 |
+
import OmniPBRBase::*;
|
| 45 |
+
|
| 46 |
+
// Functions //
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
// Returns a matrix from R,T,S. inputs //
|
| 50 |
+
|
| 51 |
+
uniform float4x4 rotation_translation_scale(
|
| 52 |
+
uniform float3 rotation = float3(0.)
|
| 53 |
+
[[ anno::description("Rotation applied to every UVW coordinate") ]],
|
| 54 |
+
uniform float3 translation = float3(0.)
|
| 55 |
+
[[ anno::description("Offset applied to every UVW coordinate") ]],
|
| 56 |
+
uniform float3 scaling = float3(1.)
|
| 57 |
+
[[ anno::description("Scale applied to every UVW coordinate") ]]
|
| 58 |
+
)
|
| 59 |
+
[[
|
| 60 |
+
anno::description("Construct a transformation matrix from euler rotation, translation and scale"),
|
| 61 |
+
anno::hidden()
|
| 62 |
+
]]
|
| 63 |
+
{
|
| 64 |
+
float4x4 scale =
|
| 65 |
+
float4x4(scaling.x , 0.0 , 0.0 , 0.0,
|
| 66 |
+
0.0 , scaling.y , 0.0 , 0.0,
|
| 67 |
+
0.0 , 0.0 , scaling.z , 0.0,
|
| 68 |
+
translation.x , translation.y , translation.z , 1.0);
|
| 69 |
+
|
| 70 |
+
float3 s = math::sin(rotation);
|
| 71 |
+
float3 c = math::cos(rotation);
|
| 72 |
+
|
| 73 |
+
float4x4 rotate =
|
| 74 |
+
float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0,
|
| 75 |
+
c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0,
|
| 76 |
+
-s.y , s.x*c.y , c.x*c.y , 0.0,
|
| 77 |
+
0.0 , 0.0 , 0 , 1.0);
|
| 78 |
+
|
| 79 |
+
return scale * rotate;
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
// Returns the normal n in tangent space, given n is in internal space. //
|
| 83 |
+
|
| 84 |
+
float3 transform_internal_to_tangent(float3 n)
|
| 85 |
+
{
|
| 86 |
+
/* flip_tangent_v */
|
| 87 |
+
return
|
| 88 |
+
n.x* float3(state::texture_tangent_u(0).x,-state::texture_tangent_v(0).x,state::normal().x)+
|
| 89 |
+
n.y* float3(state::texture_tangent_u(0).y,-state::texture_tangent_v(0).y,state::normal().y)+
|
| 90 |
+
n.z* float3(state::texture_tangent_u(0).z,-state::texture_tangent_v(0).z,state::normal().z);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
// Returns the normal n in internal space, given n is in tangent space.
|
| 94 |
+
float3 transform_tangent_to_internal(float3 n)
|
| 95 |
+
{
|
| 96 |
+
return state::texture_tangent_u(0) * n.x -
|
| 97 |
+
state::texture_tangent_v(0) * n.y + /* flip_tangent_v */
|
| 98 |
+
state::normal() * n.z;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
// Returns a normal by adding a detail normal to a global normal.
|
| 102 |
+
export float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal())
|
| 103 |
+
{
|
| 104 |
+
// http://blog.selfshadow.com/publications/blending-in-detail/
|
| 105 |
+
float3 n_t = transform_internal_to_tangent(n);
|
| 106 |
+
float3 nd_t = transform_internal_to_tangent(nd);
|
| 107 |
+
n_t = n_t + float3(0.,0.,1.);
|
| 108 |
+
nd_t = nd_t * float3(-1.,-1.,1.);
|
| 109 |
+
n = n_t * math::dot(n_t, nd_t)/n_t.z - nd_t;
|
| 110 |
+
return math::normalize(transform_tangent_to_internal(n));
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
base::texture_return multiply_colors(
|
| 114 |
+
color color_1 = color(1.0, 1.0, 1.0),
|
| 115 |
+
color color_2 = color(.5, .5, .5),
|
| 116 |
+
float weight = 1.0
|
| 117 |
+
)
|
| 118 |
+
[[
|
| 119 |
+
anno::hidden()
|
| 120 |
+
]]
|
| 121 |
+
{
|
| 122 |
+
return base::blend_color_layers(
|
| 123 |
+
layers: base::color_layer[](
|
| 124 |
+
base::color_layer(
|
| 125 |
+
layer_color: color_2,
|
| 126 |
+
weight: weight,
|
| 127 |
+
mode: base::color_layer_multiply
|
| 128 |
+
)),
|
| 129 |
+
base: color_1
|
| 130 |
+
);
|
| 131 |
+
}
|
| 132 |
+
|
| 133 |
+
|
| 134 |
+
// OmniPBR Clearcoat //
|
| 135 |
+
|
| 136 |
+
export material OmniPBR_ClearCoat(
|
| 137 |
+
|
| 138 |
+
// Albdeo //
|
| 139 |
+
|
| 140 |
+
color diffuse_color_constant = color(0.2) [[
|
| 141 |
+
anno::display_name("Albedo Color"),
|
| 142 |
+
anno::description("This is the albedo base color"),
|
| 143 |
+
anno::in_group("Albedo")
|
| 144 |
+
]],
|
| 145 |
+
uniform texture_2d diffuse_texture = texture_2d() [[
|
| 146 |
+
anno::display_name("Albedo Map"),
|
| 147 |
+
anno::in_group("Albedo")
|
| 148 |
+
]],
|
| 149 |
+
float albedo_desaturation = float(0.0) [[
|
| 150 |
+
anno::display_name("Albedo Map Desaturation"),
|
| 151 |
+
anno::description("Desaturates the albedo map"),
|
| 152 |
+
anno::in_group("Albedo"),
|
| 153 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 154 |
+
]],
|
| 155 |
+
float albedo_add = float(0.0) [[
|
| 156 |
+
anno::display_name("Albedo Add"),
|
| 157 |
+
anno::description("Adds a constant value to the diffuse color "),
|
| 158 |
+
anno::in_group("Albedo"),
|
| 159 |
+
anno::soft_range(float(-1.0), float(1.0))
|
| 160 |
+
]],
|
| 161 |
+
float albedo_brightness = float(1.0) [[
|
| 162 |
+
anno::display_name("Albedo Brightness"),
|
| 163 |
+
anno::description("Multiplier for the diffuse color "),
|
| 164 |
+
anno::in_group("Albedo"),
|
| 165 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 166 |
+
]],
|
| 167 |
+
color diffuse_tint = color(1.0) [[
|
| 168 |
+
anno::display_name("Color Tint"),
|
| 169 |
+
anno::description("When enabled, this color value is multiplied over the final albedo color"),
|
| 170 |
+
anno::in_group("Albedo")
|
| 171 |
+
]],
|
| 172 |
+
|
| 173 |
+
|
| 174 |
+
// Reflectivity //
|
| 175 |
+
|
| 176 |
+
float reflection_roughness_constant = float(0.5) [[
|
| 177 |
+
anno::display_name("Roughness Amount"),
|
| 178 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 179 |
+
anno::in_group("Reflectivity"),
|
| 180 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 181 |
+
]],
|
| 182 |
+
float reflection_roughness_texture_influence = float(0.0) [[
|
| 183 |
+
anno::display_name("Roughness Map Influence"),
|
| 184 |
+
anno::description("Blends between the constant value and the lookup of the roughness texture"),
|
| 185 |
+
anno::in_group("Reflectivity"),
|
| 186 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 187 |
+
]],
|
| 188 |
+
uniform texture_2d reflectionroughness_texture = texture_2d() [[
|
| 189 |
+
anno::display_name("Roughness Map"),
|
| 190 |
+
anno::in_group("Reflectivity"),
|
| 191 |
+
anno::usage("roughness")
|
| 192 |
+
]],
|
| 193 |
+
float metallic_constant = float(0.0) [[
|
| 194 |
+
anno::display_name("Metallic Amount"),
|
| 195 |
+
anno::description("Metallic Material"),
|
| 196 |
+
anno::in_group("Reflectivity"),
|
| 197 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 198 |
+
]],
|
| 199 |
+
float metallic_texture_influence = float(0.0) [[
|
| 200 |
+
anno::display_name("Metallic Map Influence"),
|
| 201 |
+
anno::description("Blends between the constant value and the lookup of the metallic texture"),
|
| 202 |
+
anno::in_group("Reflectivity"),
|
| 203 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 204 |
+
]],
|
| 205 |
+
uniform texture_2d metallic_texture = texture_2d() [[
|
| 206 |
+
anno::display_name("Metallic Map"),
|
| 207 |
+
anno::in_group("Reflectivity"),
|
| 208 |
+
anno::usage("metalness")
|
| 209 |
+
]],
|
| 210 |
+
float specular_level = float(0.5) [[
|
| 211 |
+
anno::display_name("Specular"),
|
| 212 |
+
anno::description("The specular level (intensity) of the material"),
|
| 213 |
+
anno::in_group("Reflectivity"),
|
| 214 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 215 |
+
]],
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
// ORM //
|
| 219 |
+
|
| 220 |
+
uniform bool enable_ORM_texture = false [[
|
| 221 |
+
anno::display_name("Enable ORM Texture"),
|
| 222 |
+
anno::description("The ORM texture will be used to extract the Occlusion, Roughness and Metallic textures from R,G,B channels"),
|
| 223 |
+
anno::in_group("Reflectivity")
|
| 224 |
+
]],
|
| 225 |
+
uniform texture_2d ORM_texture = texture_2d() [[
|
| 226 |
+
anno::display_name("ORM Map"),
|
| 227 |
+
anno::description("Texture that has Occlusion, Roughness and Metallic maps stored in their respective R, G and B channels"),
|
| 228 |
+
anno::in_group("Reflectivity"),
|
| 229 |
+
anno::usage("roughness")
|
| 230 |
+
]],
|
| 231 |
+
|
| 232 |
+
|
| 233 |
+
// AO Group //
|
| 234 |
+
|
| 235 |
+
float ao_to_diffuse = 0.0 [[
|
| 236 |
+
anno::display_name("AO to diffuse"),
|
| 237 |
+
anno::description("Controls the amount of ambient occlusion multiplied against the diffuse color channel"),
|
| 238 |
+
anno::in_group("AO"),
|
| 239 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 240 |
+
]],
|
| 241 |
+
uniform texture_2d ao_texture = texture_2d() [[
|
| 242 |
+
anno::display_name("Ambient Occlusion Map"),
|
| 243 |
+
anno::description("The ambient occlusion texture for the material"),
|
| 244 |
+
anno::in_group("AO"),
|
| 245 |
+
anno::usage("occlusion")
|
| 246 |
+
]],
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
// Emission //
|
| 250 |
+
|
| 251 |
+
uniform bool enable_emission = false [[
|
| 252 |
+
anno::display_name("Enable Emission"),
|
| 253 |
+
anno::description("Enables the emission of light from the material"),
|
| 254 |
+
anno::in_group("Emissive")
|
| 255 |
+
]],
|
| 256 |
+
color emissive_color = color(1.0,0.1,0.1) [[
|
| 257 |
+
anno::display_name("Emissive Color"),
|
| 258 |
+
anno::description("The emission color"),
|
| 259 |
+
anno::in_group("Emissive"),
|
| 260 |
+
anno::enable_if("enable_emission == true")
|
| 261 |
+
]],
|
| 262 |
+
uniform texture_2d emissive_color_texture = texture_2d() [[
|
| 263 |
+
anno::display_name("Emissive Color map"),
|
| 264 |
+
anno::in_group("Emissive"),
|
| 265 |
+
anno::description("The emissive color texture"),
|
| 266 |
+
anno::enable_if("enable_emission == true")
|
| 267 |
+
]],
|
| 268 |
+
uniform texture_2d emissive_mask_texture = texture_2d() [[
|
| 269 |
+
anno::display_name("Emissive Mask map"),
|
| 270 |
+
anno::description("The texture masking the emissive color"),
|
| 271 |
+
anno::in_group("Emissive"),
|
| 272 |
+
anno::enable_if("enable_emission == true"),
|
| 273 |
+
anno::usage("occlusion")
|
| 274 |
+
]],
|
| 275 |
+
float emissive_intensity = float(40.0) [[
|
| 276 |
+
anno::display_name("Emissive Intensity"),
|
| 277 |
+
anno::description("Intensity of the emission"),
|
| 278 |
+
anno::in_group("Emissive"),
|
| 279 |
+
anno::enable_if("enable_emission == true")
|
| 280 |
+
]],
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
// Cutout Opacity //
|
| 284 |
+
|
| 285 |
+
uniform bool enable_opacity = false [[
|
| 286 |
+
anno::display_name("Enable Opacity"),
|
| 287 |
+
anno::description("Enables the use of cutout opacity"),
|
| 288 |
+
anno::in_group("Opacity")
|
| 289 |
+
]],
|
| 290 |
+
uniform texture_2d opacity_texture = texture_2d() [[
|
| 291 |
+
anno::display_name("Opacity Map"),
|
| 292 |
+
anno::in_group("Opacity"),
|
| 293 |
+
anno::usage("opacity")
|
| 294 |
+
]],
|
| 295 |
+
float opacity_constant = float(1.0) [[
|
| 296 |
+
anno::display_name("Opacity Amount"),
|
| 297 |
+
anno::description("Opacity value between 0 and 1, when Opacity Map is not valid"),
|
| 298 |
+
anno::in_group("Opacity"),
|
| 299 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 300 |
+
]],
|
| 301 |
+
uniform bool enable_opacity_texture = false [[
|
| 302 |
+
anno::display_name("Enable Opacity Texture"),
|
| 303 |
+
anno::description("Enables or disables the usage of the opacity texture map"),
|
| 304 |
+
anno::in_group("Opacity")
|
| 305 |
+
]],
|
| 306 |
+
uniform base::mono_mode opacity_mode = base::mono_average [[
|
| 307 |
+
anno::display_name("Opacity Mono Source"),
|
| 308 |
+
anno::description("Determines how to lookup opacity from the supplied texture. mono_alpha, mono_average, mono_luminance, mono_maximum"),
|
| 309 |
+
anno::in_group("Opacity")
|
| 310 |
+
]],
|
| 311 |
+
uniform float opacity_threshold = float(0.0) [[
|
| 312 |
+
anno::display_name("Opacity Threshold"),
|
| 313 |
+
anno::description("If 0, use fractional opacity values 'as is'; if > 0, remap opacity values to 1 when >= threshold and to 0 otherwise"),
|
| 314 |
+
anno::in_group("Opacity"),
|
| 315 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 316 |
+
]],
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
// Clearcoat //
|
| 320 |
+
|
| 321 |
+
uniform bool enable_clearcoat = false [[
|
| 322 |
+
anno::display_name("Enable Clearcoat Layer"),
|
| 323 |
+
anno::description("Adds a clearcoat layer on top of the material when enabled"),
|
| 324 |
+
anno::in_group("Clearcoat")
|
| 325 |
+
]],
|
| 326 |
+
float clearcoat_weight = float(1.0) [[
|
| 327 |
+
anno::display_name("Clearcoat Weight"),
|
| 328 |
+
anno::description("Sets the weight for clearcoat layer"),
|
| 329 |
+
anno::in_group("Clearcoat"),
|
| 330 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 331 |
+
]],
|
| 332 |
+
color clearcoat_tint = color(1.0) [[
|
| 333 |
+
anno::display_name("Clearcoat Tint"),
|
| 334 |
+
anno::description("Clearcoat is tinted and affects the underlying material"),
|
| 335 |
+
anno::in_group("Clearcoat")
|
| 336 |
+
]],
|
| 337 |
+
float clearcoat_transparency = float(1.0) [[
|
| 338 |
+
anno::display_name("Clearcoat Transparency"),
|
| 339 |
+
anno::description("Adjusts the transparency of the clearcoat. Can be turned into a fully opaque clearcoat covering the underlying layer"),
|
| 340 |
+
anno::in_group("Clearcoat"),
|
| 341 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 342 |
+
]],
|
| 343 |
+
float clearcoat_reflection_roughness = float(0.0) [[
|
| 344 |
+
anno::display_name("Clearcoat Roughness"),
|
| 345 |
+
anno::description("Higher roughness values lead to more blurry reflections"),
|
| 346 |
+
anno::in_group("Clearcoat"),
|
| 347 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 348 |
+
]],
|
| 349 |
+
float clearcoat_ior = float(1.56) [[
|
| 350 |
+
anno::display_name("Clearcoat IOR"),
|
| 351 |
+
anno::description("Sets the Index of refraction for the clearcoat layer"),
|
| 352 |
+
anno::in_group("Clearcoat"),
|
| 353 |
+
anno::soft_range(float(0.0), float(4.0))
|
| 354 |
+
]],
|
| 355 |
+
uniform float clearcoat_bump_factor = float(1.0) [[
|
| 356 |
+
anno::display_name("Clearcoat Normal Map Strength"),
|
| 357 |
+
anno::description("Strength of normal map."),
|
| 358 |
+
anno::in_group("Clearcoat"),
|
| 359 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 360 |
+
]],
|
| 361 |
+
uniform texture_2d clearcoat_normalmap_texture = texture_2d() [[
|
| 362 |
+
anno::display_name("Clearcoat Normal Map"),
|
| 363 |
+
anno::description("Enables the usage of the normalmap texture"),
|
| 364 |
+
anno::in_group("Clearcoat"),
|
| 365 |
+
anno::usage("normal")
|
| 366 |
+
]],
|
| 367 |
+
uniform float2 clearcoat_texture_translate = float2(0.0) [[
|
| 368 |
+
anno::display_name("Clearcoat Texture Translate"),
|
| 369 |
+
anno::description("Controls the position of the clearcoat texture"),
|
| 370 |
+
anno::ui_order(1),
|
| 371 |
+
anno::in_group("UV")
|
| 372 |
+
]],
|
| 373 |
+
uniform float clearcoat_texture_rotate = float(0.0) [[
|
| 374 |
+
anno::display_name("Clearcoat Texture Rotate"),
|
| 375 |
+
anno::description("Rotates angle of the clearcoat texture in degrees"),
|
| 376 |
+
anno::ui_order(2),
|
| 377 |
+
anno::in_group("UV")
|
| 378 |
+
]],
|
| 379 |
+
uniform float2 clearcoat_texture_scale = float2(1.0) [[
|
| 380 |
+
anno::display_name("Clearcoat Texture Tiling"),
|
| 381 |
+
anno::description("Controls the repetition of the clearcoat texture"),
|
| 382 |
+
anno::ui_order(3),
|
| 383 |
+
anno::in_group("UV")
|
| 384 |
+
]],
|
| 385 |
+
float clearcoat_flatten = float(1.0) [[
|
| 386 |
+
anno::display_name("Clearcoat Flatten"),
|
| 387 |
+
anno::description("Flattens the clearcoat to even out the underlying bump maps"),
|
| 388 |
+
anno::in_group("Clearcoat"),
|
| 389 |
+
anno::hard_range(float(0.0), float(1.0))
|
| 390 |
+
]],
|
| 391 |
+
|
| 392 |
+
|
| 393 |
+
// Normal //
|
| 394 |
+
|
| 395 |
+
uniform float geometry_normal_roughness_strength = 1.f
|
| 396 |
+
[[
|
| 397 |
+
anno::hard_range(0.0, 1.0),
|
| 398 |
+
anno::display_name("Normal map to roughness weight"),
|
| 399 |
+
anno::description("Enables and weights roughness induced by normal maps"),
|
| 400 |
+
anno::in_group("Normal")
|
| 401 |
+
]],
|
| 402 |
+
uniform float bump_factor = float(1.0) [[
|
| 403 |
+
anno::display_name("Normal Strength"),
|
| 404 |
+
anno::description("Strength of normal map"),
|
| 405 |
+
anno::in_group("Normal"),
|
| 406 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 407 |
+
]],
|
| 408 |
+
uniform texture_2d normalmap_texture = texture_2d() [[
|
| 409 |
+
anno::display_name("Normal Map"),
|
| 410 |
+
anno::in_group("Normal"),
|
| 411 |
+
anno::usage("normal")
|
| 412 |
+
]],
|
| 413 |
+
uniform float detail_bump_factor = float(0.3) [[
|
| 414 |
+
anno::display_name("Detail Normal Strength"),
|
| 415 |
+
anno::in_group("Normal"),
|
| 416 |
+
anno::description("Strength of the detail normal"),
|
| 417 |
+
anno::soft_range(float(0.0), float(1.0))
|
| 418 |
+
]],
|
| 419 |
+
uniform texture_2d detail_normalmap_texture = texture_2d() [[
|
| 420 |
+
anno::display_name("Detail Normal Map"),
|
| 421 |
+
anno::in_group("Normal"),
|
| 422 |
+
anno::usage("normal")
|
| 423 |
+
]],
|
| 424 |
+
uniform bool flip_tangent_u = false [[
|
| 425 |
+
anno::display_name("Normal Map Flip U Tangent"),
|
| 426 |
+
anno::in_group("Normal")
|
| 427 |
+
]],
|
| 428 |
+
uniform bool flip_tangent_v = true [[
|
| 429 |
+
anno::display_name("Normal Map Flip V Tangent"),
|
| 430 |
+
anno::in_group("Normal")
|
| 431 |
+
]],
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
// UVW Projection Group //
|
| 435 |
+
|
| 436 |
+
uniform bool project_uvw = false [[
|
| 437 |
+
anno::display_name("Enable Project UVW Coordinates"),
|
| 438 |
+
anno::description("When enabled, UV coordinates will be generated by projecting them from a coordinate system"),
|
| 439 |
+
anno::in_group("UV")
|
| 440 |
+
]],
|
| 441 |
+
uniform bool world_or_object = false [[
|
| 442 |
+
anno::display_name("Enable World Space"),
|
| 443 |
+
anno::description("When enabled, uses world space for projection, otherwise object space is used"),
|
| 444 |
+
anno::in_group("UV"),
|
| 445 |
+
anno::enable_if("project_uvw == true")
|
| 446 |
+
]],
|
| 447 |
+
uniform int uv_space_index = 0 [[
|
| 448 |
+
anno::display_name("UV Space Index"),
|
| 449 |
+
anno::description("UV Space Index"),
|
| 450 |
+
anno::in_group("UV"),
|
| 451 |
+
anno::enable_if("project_uvw == true"),
|
| 452 |
+
anno::hard_range(int(0), int(3))
|
| 453 |
+
]],
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
// UVW Adjustments Group //
|
| 457 |
+
|
| 458 |
+
uniform float2 texture_translate = float2(0.0) [[
|
| 459 |
+
anno::display_name("Texture Translate"),
|
| 460 |
+
anno::description("Controls position of texture."),
|
| 461 |
+
anno::in_group("UV"),
|
| 462 |
+
anno::enable_if("project_uvw == true")
|
| 463 |
+
]],
|
| 464 |
+
uniform float texture_rotate = float(0.0) [[
|
| 465 |
+
anno::display_name("Texture Rotate"),
|
| 466 |
+
anno::description("Rotates angle of texture in degrees."),
|
| 467 |
+
anno::in_group("UV"),
|
| 468 |
+
anno::enable_if("project_uvw == true")
|
| 469 |
+
]],
|
| 470 |
+
uniform float2 texture_scale = float2(1.0) [[
|
| 471 |
+
anno::display_name("Texture Tiling"),
|
| 472 |
+
anno::description("Controls repetition of the texture."),
|
| 473 |
+
anno::in_group("UV"),
|
| 474 |
+
anno::enable_if("project_uvw == true")
|
| 475 |
+
]],
|
| 476 |
+
uniform float2 detail_texture_translate = float2(0.0) [[
|
| 477 |
+
anno::display_name("Detail Texture Translate"),
|
| 478 |
+
anno::description("Controls the position of the detail texture."),
|
| 479 |
+
anno::in_group("UV"),
|
| 480 |
+
anno::enable_if("project_uvw == true")
|
| 481 |
+
]],
|
| 482 |
+
uniform float detail_texture_rotate = float(0.0) [[
|
| 483 |
+
anno::display_name("Detail Texture Rotate"),
|
| 484 |
+
anno::description("Rotates angle of the detail texture in degrees."),
|
| 485 |
+
anno::in_group("UV"),
|
| 486 |
+
anno::enable_if("project_uvw == true")
|
| 487 |
+
]],
|
| 488 |
+
uniform float2 detail_texture_scale = float2(1.0) [[
|
| 489 |
+
anno::display_name("Detail Texture Tiling"),
|
| 490 |
+
anno::description("Controls repetition of the detail texture."),
|
| 491 |
+
anno::in_group("UV"),
|
| 492 |
+
anno::enable_if("project_uvw == true")
|
| 493 |
+
]],
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
// Geometry //
|
| 497 |
+
|
| 498 |
+
uniform float round_edges_radius = float(0.0) [[
|
| 499 |
+
anno::display_name("Round Edge Radius"),
|
| 500 |
+
anno::description("Influence radius around the edges in meters"),
|
| 501 |
+
anno::in_group("Geometry"),
|
| 502 |
+
anno::soft_range(0.0, 1.0)
|
| 503 |
+
]],
|
| 504 |
+
uniform float round_edges_roundness = float(1.0) [[
|
| 505 |
+
anno::display_name("Round Edge Roundness"),
|
| 506 |
+
anno::description("Determines how round the edge will look"),
|
| 507 |
+
anno::in_group("Geometry"),
|
| 508 |
+
anno::hard_range(0.0, 1.0)
|
| 509 |
+
]],
|
| 510 |
+
uniform bool round_edges_across_materials = false [[
|
| 511 |
+
anno::display_name("Round Edge Across Materials"),
|
| 512 |
+
anno::description("Normal smoothing happens only between facets of equal material, \n"
|
| 513 |
+
"\t\tunless this parameter is set true, in which case the smoothing \n"
|
| 514 |
+
"\t\thappens between facets irrespective of their materials"),
|
| 515 |
+
anno::in_group("Geometry")
|
| 516 |
+
]]
|
| 517 |
+
)
|
| 518 |
+
[[
|
| 519 |
+
anno::display_name("OmniPBR ClearCoat "),
|
| 520 |
+
anno::description("OmniPBR Base with support for clear coat, opacity and ORM textures."),
|
| 521 |
+
anno::in_group("Base"),
|
| 522 |
+
anno::version( 2, 1, 1),
|
| 523 |
+
anno::author("NVIDIA CORPORATION"),
|
| 524 |
+
anno::key_words(string[]("omni", "PBR", "opacity", "clearcoat", "omniverse", "generic"))
|
| 525 |
+
]] = let {
|
| 526 |
+
|
| 527 |
+
// UVW lookup and transformation //
|
| 528 |
+
base::texture_coordinate_system the_system = world_or_object ? base::texture_coordinate_world : base::texture_coordinate_object;
|
| 529 |
+
|
| 530 |
+
base::texture_coordinate_info uvw = project_uvw ? base::coordinate_projection(
|
| 531 |
+
coordinate_system: the_system,
|
| 532 |
+
texture_space: uv_space_index,
|
| 533 |
+
projection_type: base::projection_cubic
|
| 534 |
+
) :
|
| 535 |
+
base::coordinate_source(
|
| 536 |
+
coordinate_system: base::texture_coordinate_uvw,
|
| 537 |
+
texture_space: uv_space_index
|
| 538 |
+
);
|
| 539 |
+
|
| 540 |
+
base::texture_coordinate_info transformed_uvw = base::transform_coordinate(
|
| 541 |
+
transform: rotation_translation_scale(
|
| 542 |
+
scaling: float3(texture_scale.x, texture_scale.y, 1.0),
|
| 543 |
+
rotation: float3(0.0, 0.0, texture_rotate/180.*math::PI ),
|
| 544 |
+
translation: float3(texture_translate.x, texture_translate.y, 0.0)
|
| 545 |
+
),
|
| 546 |
+
coordinate: uvw
|
| 547 |
+
);
|
| 548 |
+
|
| 549 |
+
base::texture_coordinate_info detail_transformed_uvw = base::transform_coordinate(
|
| 550 |
+
transform: rotation_translation_scale(
|
| 551 |
+
scaling: float3(detail_texture_scale.x, detail_texture_scale.y, 1.0),
|
| 552 |
+
rotation: float3(0.0, 0.0, detail_texture_rotate/180.*math::PI ),
|
| 553 |
+
translation: float3(detail_texture_translate.x, detail_texture_translate.y, 0.0)
|
| 554 |
+
),
|
| 555 |
+
coordinate: uvw
|
| 556 |
+
);
|
| 557 |
+
|
| 558 |
+
base::texture_coordinate_info clearcoat_transformed_uvw = base::transform_coordinate(
|
| 559 |
+
transform: rotation_translation_scale(
|
| 560 |
+
scaling: float3(clearcoat_texture_scale.x, clearcoat_texture_scale.y, 1.0),
|
| 561 |
+
rotation: float3(0.0, 0.0, clearcoat_texture_rotate/180.*math::PI ),
|
| 562 |
+
translation: float3(clearcoat_texture_translate.x, clearcoat_texture_translate.y, 0.f)
|
| 563 |
+
),
|
| 564 |
+
coordinate: uvw
|
| 565 |
+
);
|
| 566 |
+
|
| 567 |
+
// Normal calculations //
|
| 568 |
+
OmniPBRBase::NormalData defaultData = OmniPBRBase::NormalData(state::normal(), float2(0));
|
| 569 |
+
|
| 570 |
+
OmniPBRBase::NormalData normal_data = tex::texture_isvalid(normalmap_texture) ?
|
| 571 |
+
OmniPBRBase::tangent_space_normal_roughness_texture(
|
| 572 |
+
texture: normalmap_texture,
|
| 573 |
+
factor: bump_factor,
|
| 574 |
+
uvw: transformed_uvw,
|
| 575 |
+
flip_tangent_u: flip_tangent_u,
|
| 576 |
+
flip_tangent_v: flip_tangent_v // true for dx, false for opengl
|
| 577 |
+
//flip_tangent_v: true
|
| 578 |
+
|
| 579 |
+
) : defaultData;
|
| 580 |
+
float3 the_normal = normal_data.normal;
|
| 581 |
+
|
| 582 |
+
OmniPBRBase::NormalData detail_normal_data = tex::texture_isvalid(detail_normalmap_texture) ?
|
| 583 |
+
OmniPBRBase::tangent_space_normal_roughness_texture(
|
| 584 |
+
texture: detail_normalmap_texture,
|
| 585 |
+
factor: detail_bump_factor,
|
| 586 |
+
uvw: detail_transformed_uvw,
|
| 587 |
+
flip_tangent_u: flip_tangent_u,
|
| 588 |
+
flip_tangent_v: flip_tangent_v // true for dx, false for opengl
|
| 589 |
+
) : defaultData;
|
| 590 |
+
float3 detail_normal = detail_normal_data.normal;
|
| 591 |
+
|
| 592 |
+
OmniPBRBase::NormalData clearcoat_normal_data = tex::texture_isvalid(clearcoat_normalmap_texture) ?
|
| 593 |
+
OmniPBRBase::tangent_space_normal_roughness_texture(
|
| 594 |
+
texture: clearcoat_normalmap_texture,
|
| 595 |
+
factor: clearcoat_bump_factor,
|
| 596 |
+
uvw: clearcoat_transformed_uvw,
|
| 597 |
+
flip_tangent_u: flip_tangent_u,
|
| 598 |
+
flip_tangent_v: flip_tangent_v // true for dx, false for opengl
|
| 599 |
+
) : defaultData;
|
| 600 |
+
float3 clearcoat_normal = clearcoat_normal_data.normal;
|
| 601 |
+
|
| 602 |
+
|
| 603 |
+
float3 diffuse_gloss_normal = tex::texture_isvalid(detail_normalmap_texture) ? add_detail_normal(detail_normal, the_normal) : the_normal;
|
| 604 |
+
float3 flattened_clearcoat_normal = ::math::lerp(diffuse_gloss_normal, ::state::normal(), clearcoat_flatten);
|
| 605 |
+
float3 final_clearcoat_normal = tex::texture_isvalid(clearcoat_normalmap_texture) ? add_detail_normal(flattened_clearcoat_normal, clearcoat_normal)
|
| 606 |
+
: flattened_clearcoat_normal;
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
// ORM Handling //
|
| 610 |
+
|
| 611 |
+
float3 ORM_lookup = tex::lookup_float3(
|
| 612 |
+
tex: ORM_texture,
|
| 613 |
+
coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
|
| 614 |
+
);
|
| 615 |
+
|
| 616 |
+
|
| 617 |
+
float3 roughness_lookup = tex::lookup_float3(
|
| 618 |
+
tex: reflectionroughness_texture,
|
| 619 |
+
coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
|
| 620 |
+
);
|
| 621 |
+
|
| 622 |
+
float roughness_selection = enable_ORM_texture ? ORM_lookup.y : roughness_lookup.x;
|
| 623 |
+
float reflection_roughness_s = math::lerp(reflection_roughness_constant, roughness_selection, reflection_roughness_texture_influence);
|
| 624 |
+
float2 reflection_roughness = float2(math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.x * normal_data.roughness.x)),
|
| 625 |
+
math::sqrt(reflection_roughness_s*reflection_roughness_s + (geometry_normal_roughness_strength * normal_data.roughness.y * normal_data.roughness.y)));
|
| 626 |
+
|
| 627 |
+
float2 clearcoat_reflection_roughness2 = float2(math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.x * clearcoat_normal_data.roughness.x)),
|
| 628 |
+
math::sqrt(clearcoat_reflection_roughness*clearcoat_reflection_roughness + (geometry_normal_roughness_strength * clearcoat_normal_data.roughness.y * clearcoat_normal_data.roughness.y)));
|
| 629 |
+
|
| 630 |
+
// Diffuse Color Lookup and AO //
|
| 631 |
+
|
| 632 |
+
base::texture_return base_lookup = base::file_texture(
|
| 633 |
+
texture: diffuse_texture,
|
| 634 |
+
color_offset: color(albedo_add),
|
| 635 |
+
color_scale: color(albedo_brightness),
|
| 636 |
+
mono_source: base::mono_luminance,
|
| 637 |
+
uvw: transformed_uvw,
|
| 638 |
+
clip: false
|
| 639 |
+
);
|
| 640 |
+
|
| 641 |
+
base::texture_return ao_lookup = base::file_texture(
|
| 642 |
+
texture: ao_texture,
|
| 643 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 644 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 645 |
+
mono_source: base::mono_average,
|
| 646 |
+
uvw: transformed_uvw,
|
| 647 |
+
clip: false
|
| 648 |
+
);
|
| 649 |
+
|
| 650 |
+
|
| 651 |
+
color ao_color = enable_ORM_texture ? color(ORM_lookup.x) : ao_lookup.tint;
|
| 652 |
+
color desaturated_base = math::lerp(base_lookup.tint, color(base_lookup.mono), albedo_desaturation);
|
| 653 |
+
color diffuse = tex::texture_isvalid(diffuse_texture)? desaturated_base : diffuse_color_constant;
|
| 654 |
+
color tinted_diffuse = multiply_colors(diffuse, diffuse_tint, 1.0).tint;
|
| 655 |
+
|
| 656 |
+
color base_color = multiply_colors(
|
| 657 |
+
color_1: tinted_diffuse,
|
| 658 |
+
color_2: ao_color,
|
| 659 |
+
weight: ao_to_diffuse
|
| 660 |
+
).tint;
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
// Metalness //
|
| 664 |
+
|
| 665 |
+
float3 metallic_lookup = tex::lookup_float3(
|
| 666 |
+
tex: metallic_texture,
|
| 667 |
+
coord: float2(transformed_uvw.position.x, transformed_uvw.position.y)
|
| 668 |
+
);
|
| 669 |
+
|
| 670 |
+
float metallic_selection = enable_ORM_texture ? ORM_lookup.z : metallic_lookup.x;
|
| 671 |
+
float metallic = math::lerp(metallic_constant, metallic_selection, metallic_texture_influence);
|
| 672 |
+
|
| 673 |
+
|
| 674 |
+
// Emission //
|
| 675 |
+
|
| 676 |
+
color emission_color_texture = tex::texture_isvalid(emissive_color_texture) ?
|
| 677 |
+
base::file_texture(
|
| 678 |
+
texture: emissive_color_texture,
|
| 679 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 680 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 681 |
+
mono_source: base::mono_average,
|
| 682 |
+
uvw: transformed_uvw,
|
| 683 |
+
clip: false
|
| 684 |
+
).tint : emissive_color;
|
| 685 |
+
|
| 686 |
+
color emission_mask_texture = tex::texture_isvalid(emissive_mask_texture) ?
|
| 687 |
+
base::file_texture(
|
| 688 |
+
texture: emissive_mask_texture,
|
| 689 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 690 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 691 |
+
mono_source: base::mono_average,
|
| 692 |
+
uvw: transformed_uvw,
|
| 693 |
+
clip: false
|
| 694 |
+
).tint : color(1.0);
|
| 695 |
+
|
| 696 |
+
color final_emission_color = enable_emission ? emission_color_texture * emission_mask_texture: color(0.0);
|
| 697 |
+
|
| 698 |
+
// Opacity //
|
| 699 |
+
|
| 700 |
+
float opacity_value = enable_opacity_texture ? base::file_texture(
|
| 701 |
+
texture: opacity_texture,
|
| 702 |
+
mono_source: opacity_mode,
|
| 703 |
+
uvw: transformed_uvw
|
| 704 |
+
).mono : opacity_constant;
|
| 705 |
+
|
| 706 |
+
float cutout_opacity = enable_opacity ? ((opacity_threshold == 0.0) ? opacity_value : ((opacity_value >= opacity_threshold) ? 1.0 : 0)) : 1.0;
|
| 707 |
+
|
| 708 |
+
material base = OmniPBRBase::OmniPBRBase(
|
| 709 |
+
diffuse_reflection_color: base_color,
|
| 710 |
+
specular_reflection_aniso_roughness: reflection_roughness,
|
| 711 |
+
specular_level: specular_level,
|
| 712 |
+
metalness: metallic,
|
| 713 |
+
enable_emission: enable_emission,
|
| 714 |
+
emission_color: final_emission_color,
|
| 715 |
+
emission_intensity: emissive_intensity,
|
| 716 |
+
enable_coat: enable_clearcoat,
|
| 717 |
+
coat_weight: clearcoat_weight,
|
| 718 |
+
coat_color: clearcoat_tint,
|
| 719 |
+
coat_transparency: clearcoat_transparency,
|
| 720 |
+
coat_aniso_roughness: clearcoat_reflection_roughness2,
|
| 721 |
+
coat_ior: clearcoat_ior,
|
| 722 |
+
enable_opacity: enable_opacity,
|
| 723 |
+
geometry_opacity: cutout_opacity,
|
| 724 |
+
clearcoat_geometry_normal: final_clearcoat_normal,
|
| 725 |
+
round_edges_radius: round_edges_radius,
|
| 726 |
+
round_edges_roundness: round_edges_roundness,
|
| 727 |
+
round_edges_across_materials: round_edges_across_materials,
|
| 728 |
+
geometry_normal: diffuse_gloss_normal
|
| 729 |
+
);
|
| 730 |
+
|
| 731 |
+
} in material(
|
| 732 |
+
surface: base.surface,
|
| 733 |
+
geometry: base.geometry
|
| 734 |
+
);
|
testingTool_battery_analyzer_b01/simready_usd/runnables/physics/mujoco.usda
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7e3a366a86a15f1e9efc051bef5da25c375b24ed665e3a430fdf0c057f2ed6bb
|
| 3 |
+
size 1080
|
testingTool_battery_analyzer_b01/simready_usd/runnables/physics/newton.usda
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e1520c0aac71e4a1955751df57ed7fe480b921b54ed9a4437b1f78f44a0933e7
|
| 3 |
+
size 4236
|
testingTool_battery_analyzer_b01/simready_usd/runnables/physics/physx.usda
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf187a62a1ab85985d46fc218acfd40254199139432fd69da2c3ccf4edf241f3
|
| 3 |
+
size 1026
|
testingTool_battery_analyzer_b01/simready_usd/sm_testingTool_battery_analyzer_b01_01.usd
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:08d2551256ae98c0a7d5fdcafbbf5a8ccd9875925bee97f207424e649e0f7435
|
| 3 |
+
size 8524972
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_metal_glossy_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_glossy_white_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_gray_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_green_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_red_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_plastic_yellow_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_rubber_new_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/256x256/t_tweed_herringbone_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_metal_glossy_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_glossy_white_a01_tile_orm.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_alb.png.png
ADDED
|
|
Git LFS Details
|
testingTool_battery_analyzer_b01/simready_usd/textures/.thumbs/512x512/t_plastic_gray_a01_tile_nor.png.png
ADDED
|
|
Git LFS Details
|