Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- assets/miscs/curobo/piper100/piper100/configuration/piper100_physics.usd +0 -0
- assets/miscs/curobo/piper100/piper100/configuration/piper100_sensor.usd +0 -0
- assets/miscs/curobo/piper100/piper_description/meshes/dae/link5.dae +0 -0
- assets/miscs/mdl/ebench/mdl/KooPbr.mdl +462 -0
- assets/miscs/mdl/ebench/mdl/KooPbr_maps.mdl +515 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/.collect.mapping.json +77 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/0309dcb2f1cff82e56b5928b8258b489_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/SubUSDs/materials/Num6526327829931a0001adab0d.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/.collect.mapping.json +65 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/173e246d5eb10f81265e2c174de2101d_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/.collect.mapping.json +65 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/1a900e94264d9104f45200db6e0b5e5c_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/.collect.mapping.json +53 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/23f1d3ecc9f811bdcd7b4f9a169f9f9f_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/.collect.mapping.json +77 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/2475b1d276562a0152bb481253b15d9a_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/SubUSDs/materials/Num6526327829931a0001adab0d.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/.collect.mapping.json +65 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/45d5b1701028fc00adc75c5c76042cde_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/.collect.mapping.json +41 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/471d4d7acbc09edb085f4bfdac8bb2cc_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/SubUSDs/materials/Num614415bd5c26590001b09b16.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/.collect.mapping.json +47 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/501a5ac3cbdae92226c51c349e4e6a17_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/.collect.mapping.json +77 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/55c75d1633a577833010793d58dfee58_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl +284 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/SubUSDs/materials/Num6526327829931a0001adab0d.mdl +307 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/5f2adebdda754e40915d1330a61fa70c/.collect.mapping.json +23 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/5f2adebdda754e40915d1330a61fa70c/5f2adebdda754e40915d1330a61fa70c_annotation.json +18 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/6bbab9de-26d1-4136-a232-72d4fdf0d4cb/6bbab9de-26d1-4136-a232-72d4fdf0d4cb_annotation.json +18 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/7218c60ede56775d76d74bf9a709cd7e/.collect.mapping.json +77 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/7218c60ede56775d76d74bf9a709cd7e/7218c60ede56775d76d74bf9a709cd7e_annotation.json +15 -0
- assets/object_usds/custom_usd/ebench_usds/salt_bottle/ready/5ba5959ecc044c5fa44dded4c75ea25a/5ba5959ecc044c5fa44dded4c75ea25a.usd +0 -0
- assets/object_usds/custom_usd/ebench_usds/salt_new/subset_manifest.json +161 -0
- assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/DayMaterial.mdl +67 -0
- assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/KooPbr.mdl +462 -0
- assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0333071a0001d129d2.mdl +30 -0
- assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0340eb7c0001b6b6f1.mdl +30 -0
- assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0355f6830001519201.mdl +30 -0
assets/miscs/curobo/piper100/piper100/configuration/piper100_physics.usd
ADDED
|
Binary file (5.74 kB). View file
|
|
|
assets/miscs/curobo/piper100/piper100/configuration/piper100_sensor.usd
ADDED
|
Binary file (652 Bytes). View file
|
|
|
assets/miscs/curobo/piper100/piper_description/meshes/dae/link5.dae
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
assets/miscs/mdl/ebench/mdl/KooPbr.mdl
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::anno::*;
|
| 6 |
+
import ::df::*;
|
| 7 |
+
import ::df::color_weighted_layer;
|
| 8 |
+
import ::math::*;
|
| 9 |
+
import ::state::*;
|
| 10 |
+
|
| 11 |
+
export material KooMtl2Sided(
|
| 12 |
+
material frontMtl = material() [[
|
| 13 |
+
anno::in_group("Parameters"),
|
| 14 |
+
anno::display_name("Front material")
|
| 15 |
+
]],
|
| 16 |
+
material backMtl = frontMtl [[
|
| 17 |
+
anno::in_group("Parameters"),
|
| 18 |
+
anno::display_name("Back material")
|
| 19 |
+
]],
|
| 20 |
+
uniform bool use_backMtl = false [[
|
| 21 |
+
anno::in_group("Parameters"),
|
| 22 |
+
anno::display_name("Use back material")
|
| 23 |
+
]],
|
| 24 |
+
color translucency = color(0.5f, 0.5f, 0.5f) [[
|
| 25 |
+
anno::in_group("Basic parameters"),
|
| 26 |
+
anno::display_name("Translucency")
|
| 27 |
+
]],
|
| 28 |
+
color front_tint = color(1.f, 1.f, 1.f) [[
|
| 29 |
+
anno::in_group("Parameters"),
|
| 30 |
+
anno::display_name("Front tint"),
|
| 31 |
+
anno::hidden()
|
| 32 |
+
]],
|
| 33 |
+
color back_tint = color(1.f, 1.f, 1.f) [[
|
| 34 |
+
anno::in_group("Parameters"),
|
| 35 |
+
anno::display_name("Back tint"),
|
| 36 |
+
anno::hidden()
|
| 37 |
+
]],
|
| 38 |
+
uniform bool multiply_by_front_diffuse = false [[
|
| 39 |
+
anno::in_group("Basic parameters"),
|
| 40 |
+
anno::display_name("Multiply by front diffuse"),
|
| 41 |
+
anno::unused(),
|
| 42 |
+
anno::hidden()
|
| 43 |
+
]])
|
| 44 |
+
[[
|
| 45 |
+
anno::author("KooLab")
|
| 46 |
+
]]
|
| 47 |
+
=
|
| 48 |
+
let {
|
| 49 |
+
bsdf transmission_bsdf =
|
| 50 |
+
df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f);
|
| 51 |
+
|
| 52 |
+
bsdf front_bsdf =
|
| 53 |
+
df::color_weighted_layer
|
| 54 |
+
(
|
| 55 |
+
weight : translucency,
|
| 56 |
+
layer : transmission_bsdf,
|
| 57 |
+
base : frontMtl.surface.scattering
|
| 58 |
+
);
|
| 59 |
+
|
| 60 |
+
bsdf back_bsdf =
|
| 61 |
+
df::color_weighted_layer
|
| 62 |
+
(
|
| 63 |
+
weight : translucency,
|
| 64 |
+
layer : transmission_bsdf,
|
| 65 |
+
base : backMtl.surface.scattering
|
| 66 |
+
);
|
| 67 |
+
} in
|
| 68 |
+
material(
|
| 69 |
+
thin_walled: true,
|
| 70 |
+
ior: frontMtl.ior,
|
| 71 |
+
surface: material_surface(scattering: front_bsdf),
|
| 72 |
+
backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf),
|
| 73 |
+
volume: frontMtl.volume,
|
| 74 |
+
geometry: frontMtl.geometry
|
| 75 |
+
);
|
| 76 |
+
|
| 77 |
+
float emissive_multiplier() uniform
|
| 78 |
+
[[
|
| 79 |
+
anno::description("unit conversion from pbrjson emission to mdl"),
|
| 80 |
+
anno::noinline()
|
| 81 |
+
]]
|
| 82 |
+
{
|
| 83 |
+
return 2560.f;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
export material KooLightMtl(
|
| 87 |
+
color emission = color(1.f, 1.f, 1.f) [[
|
| 88 |
+
anno::in_group("Parameters"),
|
| 89 |
+
anno::display_name("Emission")
|
| 90 |
+
]],
|
| 91 |
+
uniform float emission_mult = 1.f [[
|
| 92 |
+
anno::in_group("Parameters"),
|
| 93 |
+
anno::display_name("Mutliplier")
|
| 94 |
+
]],
|
| 95 |
+
color opacity = color(1.f, 1.f, 1.f) [[
|
| 96 |
+
anno::in_group("Parameters"),
|
| 97 |
+
anno::display_name("Opacity")
|
| 98 |
+
]],
|
| 99 |
+
uniform bool emit_on_backside = false [[
|
| 100 |
+
anno::in_group("Parameters"),
|
| 101 |
+
anno::display_name("Emit light on back side")
|
| 102 |
+
]])
|
| 103 |
+
[[
|
| 104 |
+
anno::author("KooLab")
|
| 105 |
+
]]
|
| 106 |
+
=
|
| 107 |
+
let {
|
| 108 |
+
color emission_color = (emission*opacity)*emission_mult * emissive_multiplier();
|
| 109 |
+
|
| 110 |
+
bsdf surface_bsdf =
|
| 111 |
+
df::simple_glossy_bsdf
|
| 112 |
+
(
|
| 113 |
+
mode: df::scatter_transmit,
|
| 114 |
+
tint: color(1.f) - opacity,
|
| 115 |
+
roughness_u: 0
|
| 116 |
+
);
|
| 117 |
+
|
| 118 |
+
material_surface emit_surface = material_surface(
|
| 119 |
+
scattering: surface_bsdf,
|
| 120 |
+
emission: material_emission(
|
| 121 |
+
emission: df::diffuse_edf(),
|
| 122 |
+
intensity: emission_color)
|
| 123 |
+
);
|
| 124 |
+
} in
|
| 125 |
+
material(
|
| 126 |
+
thin_walled: emit_on_backside,
|
| 127 |
+
ior: color(1.f),
|
| 128 |
+
surface: emit_surface,
|
| 129 |
+
backface: emit_on_backside ? emit_surface : material_surface()
|
| 130 |
+
);
|
| 131 |
+
|
| 132 |
+
export material KooMtl(
|
| 133 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 134 |
+
anno::in_group("Diffuse Parameters"),
|
| 135 |
+
anno::display_name("diffuse")
|
| 136 |
+
]],
|
| 137 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 138 |
+
anno::in_group("Reflections"),
|
| 139 |
+
anno::display_name("reflect")
|
| 140 |
+
]],
|
| 141 |
+
float reflect_glossiness = 1.f [[
|
| 142 |
+
anno::in_group("Reflections"),
|
| 143 |
+
anno::display_name("Glossiness"),
|
| 144 |
+
anno::hard_range(0.f, 1.f)
|
| 145 |
+
]],
|
| 146 |
+
uniform bool fresnel = true [[
|
| 147 |
+
anno::in_group("Reflections"),
|
| 148 |
+
anno::display_name("Fresnel reflections")
|
| 149 |
+
]],
|
| 150 |
+
float fresnel_ior = 1.6f [[
|
| 151 |
+
anno::in_group("Reflections"),
|
| 152 |
+
anno::display_name("Fresnel IOR"),
|
| 153 |
+
anno::hard_range(0.2f, 5.f)
|
| 154 |
+
]],
|
| 155 |
+
uniform bool fresnel_ior_lock = true [[
|
| 156 |
+
anno::in_group("Reflections"),
|
| 157 |
+
anno::display_name("Lock IOR")
|
| 158 |
+
]],
|
| 159 |
+
uniform bool invert_reflection_ior = false [[
|
| 160 |
+
anno::in_group("Reflections"),
|
| 161 |
+
anno::hidden()
|
| 162 |
+
]],
|
| 163 |
+
float reflection_metalness = 0.f [[
|
| 164 |
+
anno::in_group("Reflections"),
|
| 165 |
+
anno::display_name("Metalness"),
|
| 166 |
+
anno::hard_range(0.f, 1.f)
|
| 167 |
+
]],
|
| 168 |
+
uniform float refract_ior = 1.6f [[
|
| 169 |
+
anno::in_group("Refractions"),
|
| 170 |
+
anno::display_name("IOR"),
|
| 171 |
+
anno::soft_range(0.2f, 5.f),
|
| 172 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 173 |
+
]],
|
| 174 |
+
uniform bool invert_refraction_ior = false [[
|
| 175 |
+
anno::in_group("Refractions"),
|
| 176 |
+
anno::hidden()
|
| 177 |
+
]],
|
| 178 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 179 |
+
anno::in_group("Self-Illumination"),
|
| 180 |
+
anno::display_name("Self-illumination")
|
| 181 |
+
]],
|
| 182 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 183 |
+
anno::in_group("Self-Illumination"),
|
| 184 |
+
anno::display_name("Self-Illumination Intensity")
|
| 185 |
+
]],
|
| 186 |
+
float anisotropy = 0.f [[
|
| 187 |
+
anno::in_group("BRDF"),
|
| 188 |
+
anno::display_name("Anisotropy"),
|
| 189 |
+
anno::hard_range(-1.f, 1.f),
|
| 190 |
+
anno::unused(),
|
| 191 |
+
anno::hidden()
|
| 192 |
+
]],
|
| 193 |
+
float anisotropy_rotation = 0.f [[
|
| 194 |
+
anno::in_group("BRDF"),
|
| 195 |
+
anno::display_name("Rotation"),
|
| 196 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 197 |
+
anno::unused(),
|
| 198 |
+
anno::hidden()
|
| 199 |
+
]],
|
| 200 |
+
float3 texmap_bump = state::normal() [[
|
| 201 |
+
anno::in_group("Maps"),
|
| 202 |
+
anno::display_name("Bump Map")
|
| 203 |
+
]],
|
| 204 |
+
float opacity = 1.f [[
|
| 205 |
+
anno::in_group("Maps"),
|
| 206 |
+
anno::display_name("Opacity Map")
|
| 207 |
+
]],
|
| 208 |
+
uniform bool thin_walled = false [[
|
| 209 |
+
anno::in_group("Options"),
|
| 210 |
+
anno::hidden()
|
| 211 |
+
]])
|
| 212 |
+
[[
|
| 213 |
+
anno::author("KooLab")
|
| 214 |
+
]]
|
| 215 |
+
=
|
| 216 |
+
let {
|
| 217 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 218 |
+
|
| 219 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 220 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 221 |
+
|
| 222 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 223 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 224 |
+
|
| 225 |
+
bsdf diffuse_bsdf =
|
| 226 |
+
df::weighted_layer
|
| 227 |
+
(
|
| 228 |
+
weight : 1.f,
|
| 229 |
+
layer : df::diffuse_reflection_bsdf
|
| 230 |
+
(
|
| 231 |
+
tint : diffuse,
|
| 232 |
+
roughness : 0.0f
|
| 233 |
+
),
|
| 234 |
+
normal : texmap_bump
|
| 235 |
+
);
|
| 236 |
+
|
| 237 |
+
bsdf glossy_reflection_bsdf =
|
| 238 |
+
df::simple_glossy_bsdf(
|
| 239 |
+
mode: df::scatter_reflect,
|
| 240 |
+
tint: fresnel ? reflect : color(1.f),
|
| 241 |
+
roughness_u: reflection_roughness
|
| 242 |
+
);
|
| 243 |
+
|
| 244 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 245 |
+
df::simple_glossy_bsdf(
|
| 246 |
+
mode: df::scatter_reflect,
|
| 247 |
+
tint: diffuse,
|
| 248 |
+
roughness_u: reflection_roughness
|
| 249 |
+
);
|
| 250 |
+
|
| 251 |
+
bsdf surface_bsdf =
|
| 252 |
+
df::color_custom_curve_layer
|
| 253 |
+
(
|
| 254 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 255 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 256 |
+
layer : glossy_reflection_bsdf,
|
| 257 |
+
base :
|
| 258 |
+
df::weighted_layer
|
| 259 |
+
(
|
| 260 |
+
weight : reflection_metalness,
|
| 261 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 262 |
+
base : diffuse_bsdf,
|
| 263 |
+
normal : texmap_bump
|
| 264 |
+
),
|
| 265 |
+
normal : texmap_bump
|
| 266 |
+
);
|
| 267 |
+
} in
|
| 268 |
+
material
|
| 269 |
+
(
|
| 270 |
+
ior : color(refr_ior),
|
| 271 |
+
thin_walled : thin_walled,
|
| 272 |
+
surface : material_surface
|
| 273 |
+
(
|
| 274 |
+
scattering : surface_bsdf,
|
| 275 |
+
emission : material_emission
|
| 276 |
+
(
|
| 277 |
+
emission : df::diffuse_edf(),
|
| 278 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 279 |
+
)
|
| 280 |
+
),
|
| 281 |
+
geometry : material_geometry
|
| 282 |
+
(
|
| 283 |
+
cutout_opacity: opacity
|
| 284 |
+
)
|
| 285 |
+
);
|
| 286 |
+
|
| 287 |
+
export material KooTranslucentMtl(
|
| 288 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 289 |
+
anno::in_group("Diffuse Parameters"),
|
| 290 |
+
anno::display_name("Diffuse")
|
| 291 |
+
]],
|
| 292 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 293 |
+
anno::in_group("Reflections"),
|
| 294 |
+
anno::display_name("Reflect")
|
| 295 |
+
]],
|
| 296 |
+
float reflect_glossiness = 1.f [[
|
| 297 |
+
anno::in_group("Reflections"),
|
| 298 |
+
anno::display_name("Glossiness"),
|
| 299 |
+
anno::hard_range(0.f, 1.f)
|
| 300 |
+
]],
|
| 301 |
+
uniform bool fresnel = true [[
|
| 302 |
+
anno::in_group("Reflections"),
|
| 303 |
+
anno::display_name("Fresnel reflections")
|
| 304 |
+
]],
|
| 305 |
+
float fresnel_ior = 1.6f [[
|
| 306 |
+
anno::in_group("Reflections"),
|
| 307 |
+
anno::display_name("Fresnel IOR"),
|
| 308 |
+
anno::soft_range(0.2, 5.f),
|
| 309 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 310 |
+
]],
|
| 311 |
+
uniform bool fresnel_ior_lock = true [[
|
| 312 |
+
anno::in_group("Reflections"),
|
| 313 |
+
anno::display_name("Lock IOR")
|
| 314 |
+
]],
|
| 315 |
+
uniform bool invert_reflection_ior = false [[
|
| 316 |
+
anno::in_group("Reflections"),
|
| 317 |
+
anno::hidden()
|
| 318 |
+
]],
|
| 319 |
+
float reflection_metalness = 0.f [[
|
| 320 |
+
anno::in_group("Reflections"),
|
| 321 |
+
anno::display_name("Metalness"),
|
| 322 |
+
anno::hard_range(0.f, 1.f)
|
| 323 |
+
]],
|
| 324 |
+
color refract = color(0.f, 0.f, 0.f) [[
|
| 325 |
+
anno::in_group("Refractions"),
|
| 326 |
+
anno::display_name("Refract")
|
| 327 |
+
]],
|
| 328 |
+
float refract_glossiness = 1.f [[
|
| 329 |
+
anno::in_group("Refractions"),
|
| 330 |
+
anno::display_name("Glossiness"),
|
| 331 |
+
anno::hard_range(0.f, 1.f)
|
| 332 |
+
]],
|
| 333 |
+
uniform float refract_ior = 1.6f [[
|
| 334 |
+
anno::in_group("Refractions"),
|
| 335 |
+
anno::display_name("IOR"),
|
| 336 |
+
anno::soft_range(0.2f, 5.f),
|
| 337 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 338 |
+
]],
|
| 339 |
+
uniform bool invert_refraction_ior = false [[
|
| 340 |
+
anno::in_group("Refractions"),
|
| 341 |
+
anno::hidden()
|
| 342 |
+
]],
|
| 343 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 344 |
+
anno::in_group("Self-Illumination"),
|
| 345 |
+
anno::display_name("Self-illumination")
|
| 346 |
+
]],
|
| 347 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 348 |
+
anno::in_group("Self-Illumination"),
|
| 349 |
+
anno::display_name("Multiplier")
|
| 350 |
+
]],
|
| 351 |
+
float anisotropy = 0.f [[
|
| 352 |
+
anno::in_group("BRDF"),
|
| 353 |
+
anno::display_name("Anisotropy"),
|
| 354 |
+
anno::hard_range(-1.f, 1.f),
|
| 355 |
+
anno::unused(),
|
| 356 |
+
anno::hidden()
|
| 357 |
+
]],
|
| 358 |
+
float anisotropy_rotation = 0.f [[
|
| 359 |
+
anno::in_group("BRDF"),
|
| 360 |
+
anno::display_name("Rotation"),
|
| 361 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 362 |
+
anno::unused(),
|
| 363 |
+
anno::hidden()
|
| 364 |
+
]],
|
| 365 |
+
float3 texmap_bump = state::normal() [[
|
| 366 |
+
anno::in_group("Maps"),
|
| 367 |
+
anno::display_name("Bump Map")
|
| 368 |
+
]],
|
| 369 |
+
float texmap_opacity = 1.f [[
|
| 370 |
+
anno::in_group("Maps"),
|
| 371 |
+
anno::display_name("Opacity Map")
|
| 372 |
+
]],
|
| 373 |
+
uniform bool thin_walled = false [[
|
| 374 |
+
anno::in_group("Options"),
|
| 375 |
+
anno::hidden()
|
| 376 |
+
]])
|
| 377 |
+
[[
|
| 378 |
+
anno::author("KooLab")
|
| 379 |
+
]]
|
| 380 |
+
=
|
| 381 |
+
let {
|
| 382 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 383 |
+
|
| 384 |
+
float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f);
|
| 385 |
+
|
| 386 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 387 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 388 |
+
|
| 389 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 390 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 391 |
+
|
| 392 |
+
bsdf diffuse_bsdf =
|
| 393 |
+
df::weighted_layer
|
| 394 |
+
(
|
| 395 |
+
weight : 1.f,
|
| 396 |
+
layer : df::diffuse_reflection_bsdf
|
| 397 |
+
(
|
| 398 |
+
tint : diffuse,
|
| 399 |
+
roughness : 0.f
|
| 400 |
+
),
|
| 401 |
+
normal : texmap_bump
|
| 402 |
+
);
|
| 403 |
+
|
| 404 |
+
bsdf glossy_transmission_bsdf =
|
| 405 |
+
df::simple_glossy_bsdf(
|
| 406 |
+
mode: df::scatter_transmit,
|
| 407 |
+
tint: color(1.f),
|
| 408 |
+
roughness_u: refraction_roughness
|
| 409 |
+
);
|
| 410 |
+
|
| 411 |
+
bsdf glossy_reflection_bsdf =
|
| 412 |
+
df::simple_glossy_bsdf(
|
| 413 |
+
mode: df::scatter_reflect,
|
| 414 |
+
tint: fresnel ? reflect : color(1.f),
|
| 415 |
+
roughness_u: reflection_roughness
|
| 416 |
+
);
|
| 417 |
+
|
| 418 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 419 |
+
df::simple_glossy_bsdf(
|
| 420 |
+
mode: df::scatter_reflect,
|
| 421 |
+
tint: diffuse,
|
| 422 |
+
roughness_u: reflection_roughness
|
| 423 |
+
);
|
| 424 |
+
|
| 425 |
+
bsdf surface_bsdf =
|
| 426 |
+
df::color_custom_curve_layer
|
| 427 |
+
(
|
| 428 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 429 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 430 |
+
layer : glossy_reflection_bsdf,
|
| 431 |
+
base :
|
| 432 |
+
df::weighted_layer
|
| 433 |
+
(
|
| 434 |
+
weight : reflection_metalness,
|
| 435 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 436 |
+
base :
|
| 437 |
+
df::color_weighted_layer
|
| 438 |
+
(
|
| 439 |
+
weight : refract,
|
| 440 |
+
layer : glossy_transmission_bsdf,
|
| 441 |
+
base : diffuse_bsdf,
|
| 442 |
+
normal : texmap_bump
|
| 443 |
+
),
|
| 444 |
+
normal : texmap_bump
|
| 445 |
+
),
|
| 446 |
+
normal : texmap_bump
|
| 447 |
+
);
|
| 448 |
+
} in
|
| 449 |
+
material(
|
| 450 |
+
thin_walled : thin_walled,
|
| 451 |
+
ior : color(refr_ior),
|
| 452 |
+
surface : material_surface
|
| 453 |
+
(
|
| 454 |
+
scattering : surface_bsdf,
|
| 455 |
+
emission : material_emission
|
| 456 |
+
(
|
| 457 |
+
emission : df::diffuse_edf(),
|
| 458 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 459 |
+
)
|
| 460 |
+
),
|
| 461 |
+
geometry : material_geometry(cutout_opacity: texmap_opacity)
|
| 462 |
+
);
|
assets/miscs/mdl/ebench/mdl/KooPbr_maps.mdl
ADDED
|
@@ -0,0 +1,515 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::anno::*;
|
| 6 |
+
import ::base::*;
|
| 7 |
+
import ::math::*;
|
| 8 |
+
import ::state::*;
|
| 9 |
+
import ::tex::*;
|
| 10 |
+
export using ::base import texture_return;
|
| 11 |
+
|
| 12 |
+
uniform float4x4 rotation_translation_scale_2_matrix(
|
| 13 |
+
uniform float3 rotation = float3(0.f) [[
|
| 14 |
+
anno::description("Rotation applied to every UVW coordinate")
|
| 15 |
+
]],
|
| 16 |
+
uniform float3 translation = float3(0.f) [[
|
| 17 |
+
anno::description("Offset applied to every UVW coordinate")
|
| 18 |
+
]],
|
| 19 |
+
uniform float3 scaling = float3(1.f) [[
|
| 20 |
+
anno::description("Scale applied to every UVW coordinate")
|
| 21 |
+
]],
|
| 22 |
+
uniform bool u_mirror = false [[
|
| 23 |
+
anno::description("Mirror repeat has twice the number of textures in the same space")
|
| 24 |
+
]],
|
| 25 |
+
uniform bool v_mirror = false [[
|
| 26 |
+
anno::description("Mirror repeat has twice the number of textures in the same space")
|
| 27 |
+
]]) uniform
|
| 28 |
+
[[
|
| 29 |
+
anno::description("Construct transformation matrix from Euler rotation, translation and scale")
|
| 30 |
+
]]
|
| 31 |
+
{
|
| 32 |
+
float4x4 scale =
|
| 33 |
+
float4x4(u_mirror?scaling.x*2.:scaling.x , 0. , 0. , 0.,
|
| 34 |
+
0. , v_mirror?scaling.y*2.:scaling.y , 0. , 0.,
|
| 35 |
+
0. , 0. , scaling.z , 0.,
|
| 36 |
+
u_mirror?1.:.5 , v_mirror?1.:.5 , .5 , 1.);
|
| 37 |
+
|
| 38 |
+
float4x4 translate =
|
| 39 |
+
float4x4(1. , 0. , 0. , 0.,
|
| 40 |
+
0. , 1. , 0. , 0.,
|
| 41 |
+
0. , 0. , 1. , 0.,
|
| 42 |
+
-0.5-translation.x, -0.5-translation.y, -0.5-translation.z, 1.);
|
| 43 |
+
|
| 44 |
+
float3 s = math::sin(rotation);
|
| 45 |
+
float3 c = math::cos(rotation);
|
| 46 |
+
float4x4 rotate =
|
| 47 |
+
float4x4( c.y*c.z , c.y*s.z , -s.y , 0.0,
|
| 48 |
+
-c.x*s.z + s.x*s.y*c.z, c.x*c.z + s.x*s.y*s.z , s.x*c.y , 0.0,
|
| 49 |
+
s.x*s.z + c.x*s.y*c.z , -s.x*c.z + c.x*s.y*s.z, c.x*c.y , 0.0,
|
| 50 |
+
0. , 0. , 0. , 1.);
|
| 51 |
+
return scale * rotate * translate;
|
| 52 |
+
}
|
| 53 |
+
|
| 54 |
+
export enum KooPbr_mono_output [[
|
| 55 |
+
anno::hidden()
|
| 56 |
+
]] {
|
| 57 |
+
mono_output_rgb_intensity,
|
| 58 |
+
mono_output_alpha
|
| 59 |
+
};
|
| 60 |
+
|
| 61 |
+
export enum KooPbr_rgb_output [[
|
| 62 |
+
anno::hidden()
|
| 63 |
+
]] {
|
| 64 |
+
rgb_output_rgb,
|
| 65 |
+
rgb_output_alpha
|
| 66 |
+
};
|
| 67 |
+
|
| 68 |
+
export enum KooPbr_alpha_source [[
|
| 69 |
+
anno::hidden()
|
| 70 |
+
]] {
|
| 71 |
+
alpha_source_alpha,
|
| 72 |
+
alpha_source_rgb_intensity,
|
| 73 |
+
alpha_source_none
|
| 74 |
+
};
|
| 75 |
+
|
| 76 |
+
export ::texture_return KooPbr_bitmap(
|
| 77 |
+
uniform int mapChannel = 1 [[
|
| 78 |
+
anno::in_group("Coordinates"),
|
| 79 |
+
anno::display_name("Map channel")
|
| 80 |
+
]],
|
| 81 |
+
uniform float U_Offset = 0.f [[
|
| 82 |
+
anno::in_group("Coordinates"),
|
| 83 |
+
anno::display_name("U Offset")
|
| 84 |
+
]],
|
| 85 |
+
uniform float V_Offset = 0.f [[
|
| 86 |
+
anno::in_group("Coordinates"),
|
| 87 |
+
anno::display_name("V Offset")
|
| 88 |
+
]],
|
| 89 |
+
uniform float U_Tiling = 1.f [[
|
| 90 |
+
anno::in_group("Coordinates"),
|
| 91 |
+
anno::display_name("U Tiling")
|
| 92 |
+
]],
|
| 93 |
+
uniform float V_Tiling = 1.f [[
|
| 94 |
+
anno::in_group("Coordinates"),
|
| 95 |
+
anno::display_name("V Tiling")
|
| 96 |
+
]],
|
| 97 |
+
uniform bool U_Tile = true [[
|
| 98 |
+
anno::in_group("Coordinates"),
|
| 99 |
+
anno::display_name("U Tile")
|
| 100 |
+
]],
|
| 101 |
+
uniform bool U_Mirror = false [[
|
| 102 |
+
anno::in_group("Coordinates"),
|
| 103 |
+
anno::display_name("U Mirror")
|
| 104 |
+
]],
|
| 105 |
+
uniform bool V_Tile = true [[
|
| 106 |
+
anno::in_group("Coordinates"),
|
| 107 |
+
anno::display_name("V Tile")
|
| 108 |
+
]],
|
| 109 |
+
uniform bool V_Mirror = false [[
|
| 110 |
+
anno::in_group("Coordinates"),
|
| 111 |
+
anno::display_name("V Mirror")
|
| 112 |
+
]],
|
| 113 |
+
uniform float U_angle = 0.f [[
|
| 114 |
+
anno::in_group("Coordinates"),
|
| 115 |
+
anno::display_name("U Angle")
|
| 116 |
+
]],
|
| 117 |
+
uniform float V_angle = 0.f [[
|
| 118 |
+
anno::in_group("Coordinates"),
|
| 119 |
+
anno::display_name("V Angle")
|
| 120 |
+
]],
|
| 121 |
+
uniform float W_angle = 0.f [[
|
| 122 |
+
anno::in_group("Coordinates"),
|
| 123 |
+
anno::display_name("W Angle")
|
| 124 |
+
]],
|
| 125 |
+
uniform int UVW_Type = 0 [[
|
| 126 |
+
anno::in_group("Coordinates"),
|
| 127 |
+
anno::display_name("UVW Type"),
|
| 128 |
+
anno::unused(),
|
| 129 |
+
anno::hidden()
|
| 130 |
+
]],
|
| 131 |
+
uniform texture_2d filename = texture_2d() [[
|
| 132 |
+
anno::in_group("Bitmap parameters"),
|
| 133 |
+
anno::display_name("Bitmap")
|
| 134 |
+
]],
|
| 135 |
+
uniform float clipu = 0.f [[
|
| 136 |
+
anno::in_group("Bitmap parameters"),
|
| 137 |
+
anno::display_name("U Clip"),
|
| 138 |
+
anno::hard_range(0.f, 1.f)
|
| 139 |
+
]],
|
| 140 |
+
uniform float clipw = 1.f [[
|
| 141 |
+
anno::in_group("Bitmap parameters"),
|
| 142 |
+
anno::display_name("W Clip"),
|
| 143 |
+
anno::hard_range(0.f, 1.f)
|
| 144 |
+
]],
|
| 145 |
+
uniform float clipv = 0.f [[
|
| 146 |
+
anno::in_group("Bitmap parameters"),
|
| 147 |
+
anno::display_name("V Clip"),
|
| 148 |
+
anno::hard_range(0.f, 1.f)
|
| 149 |
+
]],
|
| 150 |
+
uniform float cliph = 1.f [[
|
| 151 |
+
anno::in_group("Bitmap parameters"),
|
| 152 |
+
anno::display_name("H Clip"),
|
| 153 |
+
anno::hard_range(0.f, 1.f)
|
| 154 |
+
]],
|
| 155 |
+
uniform ::KooPbr_mono_output mono_output = ::mono_output_rgb_intensity [[
|
| 156 |
+
anno::in_group("Mono Output"),
|
| 157 |
+
anno::display_name("Mono Output")
|
| 158 |
+
]],
|
| 159 |
+
uniform ::KooPbr_rgb_output rgb_output = ::rgb_output_rgb [[
|
| 160 |
+
anno::in_group("RGB Output"),
|
| 161 |
+
anno::display_name("RGB Output")
|
| 162 |
+
]],
|
| 163 |
+
uniform ::KooPbr_alpha_source alpha_source = ::alpha_source_none [[
|
| 164 |
+
anno::in_group("Alpha Source"),
|
| 165 |
+
anno::display_name("Alpha Source")
|
| 166 |
+
]],
|
| 167 |
+
uniform float bump_amount = 1.f [[
|
| 168 |
+
anno::in_group("Output"),
|
| 169 |
+
anno::display_name("Bump amount"),
|
| 170 |
+
anno::unused(),
|
| 171 |
+
anno::hidden()
|
| 172 |
+
]],
|
| 173 |
+
uniform bool clamp = false [[
|
| 174 |
+
anno::in_group("Output"),
|
| 175 |
+
anno::display_name("Clamp"),
|
| 176 |
+
anno::unused(),
|
| 177 |
+
anno::hidden()
|
| 178 |
+
]],
|
| 179 |
+
uniform bool invert = false [[
|
| 180 |
+
anno::in_group("Output"),
|
| 181 |
+
anno::display_name("Invert")
|
| 182 |
+
]],
|
| 183 |
+
uniform bool alphaFromRGB = false [[
|
| 184 |
+
anno::in_group("Output"),
|
| 185 |
+
anno::display_name("Alpha from RGB intensity"),
|
| 186 |
+
anno::unused(),
|
| 187 |
+
anno::hidden()
|
| 188 |
+
]],
|
| 189 |
+
uniform float output_amount = 1.f [[
|
| 190 |
+
anno::in_group("Output"),
|
| 191 |
+
anno::display_name("Output amount")
|
| 192 |
+
]],
|
| 193 |
+
uniform float rgb_level = 1.f [[
|
| 194 |
+
anno::in_group("Output"),
|
| 195 |
+
anno::display_name("RGB level")
|
| 196 |
+
]],
|
| 197 |
+
uniform float rgb_offset = 0.f [[
|
| 198 |
+
anno::in_group("Output"),
|
| 199 |
+
anno::display_name("RGB Offset")
|
| 200 |
+
]]) varying
|
| 201 |
+
[[
|
| 202 |
+
anno::author("KooLab")
|
| 203 |
+
]]
|
| 204 |
+
{
|
| 205 |
+
texture_return result = base::file_texture
|
| 206 |
+
(
|
| 207 |
+
texture: filename,
|
| 208 |
+
mono_source: (alpha_source == alpha_source_alpha) ? base::mono_alpha : base::mono_average,
|
| 209 |
+
crop_u: float2(clipu, clipw+clipu),
|
| 210 |
+
crop_v: float2(1.-clipv-cliph, 1.-clipv),
|
| 211 |
+
uvw: base::transform_coordinate(
|
| 212 |
+
transform: rotation_translation_scale_2_matrix(
|
| 213 |
+
scaling: float3(U_Tiling,V_Tiling,1.0),
|
| 214 |
+
rotation: float3(U_angle,V_angle,W_angle)/180.*math::PI,
|
| 215 |
+
translation: float3(U_Offset,V_Offset,0.0),u_mirror: U_Mirror,v_mirror: V_Mirror
|
| 216 |
+
),
|
| 217 |
+
coordinate: base::coordinate_source(texture_space: mapChannel-1)
|
| 218 |
+
),
|
| 219 |
+
wrap_u: U_Tile?tex::wrap_repeat:U_Mirror?tex::wrap_mirrored_repeat:tex::wrap_clip,
|
| 220 |
+
wrap_v: V_Tile?tex::wrap_repeat:V_Mirror?tex::wrap_mirrored_repeat:tex::wrap_clip
|
| 221 |
+
);
|
| 222 |
+
|
| 223 |
+
result.tint = invert ? result.tint * (-rgb_level * output_amount ) + (1.f - rgb_offset) : result.tint * (rgb_level * output_amount ) + rgb_offset;
|
| 224 |
+
|
| 225 |
+
float alpha = (alpha_source != alpha_source_none) ? result.mono : 1.f;
|
| 226 |
+
result.tint = result.tint*alpha;
|
| 227 |
+
|
| 228 |
+
if(mono_output == mono_output_alpha)
|
| 229 |
+
result.mono = alpha;
|
| 230 |
+
else
|
| 231 |
+
result.mono = math::average(result.tint);
|
| 232 |
+
if (int(rgb_output) == 1)
|
| 233 |
+
result.tint = color(alpha);
|
| 234 |
+
return result;
|
| 235 |
+
}
|
| 236 |
+
|
| 237 |
+
export float3 KooPbr_bitmap_bump(
|
| 238 |
+
uniform int mapChannel = 1 [[
|
| 239 |
+
anno::in_group("Coordinates"),
|
| 240 |
+
anno::display_name("Map channel")
|
| 241 |
+
]],
|
| 242 |
+
uniform bool U_Tile = true [[
|
| 243 |
+
anno::in_group("Coordinates"),
|
| 244 |
+
anno::display_name("U Tile")
|
| 245 |
+
]],
|
| 246 |
+
uniform bool U_Mirror = false [[
|
| 247 |
+
anno::in_group("Coordinates"),
|
| 248 |
+
anno::display_name("U Mirror")
|
| 249 |
+
]],
|
| 250 |
+
uniform bool V_Tile = true [[
|
| 251 |
+
anno::in_group("Coordinates"),
|
| 252 |
+
anno::display_name("V Tile")
|
| 253 |
+
]],
|
| 254 |
+
uniform bool V_Mirror = false [[
|
| 255 |
+
anno::in_group("Coordinates"),
|
| 256 |
+
anno::display_name("V Mirror")
|
| 257 |
+
]],
|
| 258 |
+
uniform float U_angle = 0.f [[
|
| 259 |
+
anno::in_group("Coordinates"),
|
| 260 |
+
anno::display_name("U Angle")
|
| 261 |
+
]],
|
| 262 |
+
uniform float V_angle = 0.f [[
|
| 263 |
+
anno::in_group("Coordinates"),
|
| 264 |
+
anno::display_name("V Angle")
|
| 265 |
+
]],
|
| 266 |
+
uniform float W_angle = 0.f [[
|
| 267 |
+
anno::in_group("Coordinates"),
|
| 268 |
+
anno::display_name("W Angle")
|
| 269 |
+
]],
|
| 270 |
+
uniform float U_Offset = 0.f [[
|
| 271 |
+
anno::in_group("Coordinates"),
|
| 272 |
+
anno::display_name("U Offset")
|
| 273 |
+
]],
|
| 274 |
+
uniform float V_Offset = 0.f [[
|
| 275 |
+
anno::in_group("Coordinates"),
|
| 276 |
+
anno::display_name("V Offset")
|
| 277 |
+
]],
|
| 278 |
+
uniform float U_Tiling = 1.f [[
|
| 279 |
+
anno::in_group("Coordinates"),
|
| 280 |
+
anno::display_name("U Tiling")
|
| 281 |
+
]],
|
| 282 |
+
uniform float V_Tiling = 1.f [[
|
| 283 |
+
anno::in_group("Coordinates"),
|
| 284 |
+
anno::display_name("V Tiling")
|
| 285 |
+
]],
|
| 286 |
+
uniform int UVW_Type = 0 [[
|
| 287 |
+
anno::in_group("Coordinates"),
|
| 288 |
+
anno::display_name("UVW Type"),
|
| 289 |
+
anno::unused()
|
| 290 |
+
]],
|
| 291 |
+
uniform texture_2d filename = texture_2d() [[
|
| 292 |
+
anno::in_group("Bitmap parameters"),
|
| 293 |
+
anno::display_name("Bitmap")
|
| 294 |
+
]],
|
| 295 |
+
uniform float clipu = 0.f [[
|
| 296 |
+
anno::in_group("Bitmap parameters"),
|
| 297 |
+
anno::display_name("U Clip"),
|
| 298 |
+
anno::hard_range(0.f, 1.f)
|
| 299 |
+
]],
|
| 300 |
+
uniform float clipw = 1.f [[
|
| 301 |
+
anno::in_group("Bitmap parameters"),
|
| 302 |
+
anno::display_name("W Clip"),
|
| 303 |
+
anno::hard_range(0.f, 1.f)
|
| 304 |
+
]],
|
| 305 |
+
uniform float clipv = 0.f [[
|
| 306 |
+
anno::in_group("Bitmap parameters"),
|
| 307 |
+
anno::display_name("V Clip"),
|
| 308 |
+
anno::hard_range(0.f, 1.f)
|
| 309 |
+
]],
|
| 310 |
+
uniform float cliph = 1.f [[
|
| 311 |
+
anno::in_group("Bitmap parameters"),
|
| 312 |
+
anno::display_name("H Clip"),
|
| 313 |
+
anno::hard_range(0.f, 1.f)
|
| 314 |
+
]],
|
| 315 |
+
uniform float factor = 1.f [[
|
| 316 |
+
anno::in_group("Bitmap parameters"),
|
| 317 |
+
anno::display_name("Bump amount")
|
| 318 |
+
]],
|
| 319 |
+
uniform float bump_amount = 1.f [[
|
| 320 |
+
anno::in_group("Output"),
|
| 321 |
+
anno::display_name("Bump output")
|
| 322 |
+
]],
|
| 323 |
+
uniform bool clamp = false [[
|
| 324 |
+
anno::in_group("Output"),
|
| 325 |
+
anno::display_name("Clamp"),
|
| 326 |
+
anno::unused()
|
| 327 |
+
]],
|
| 328 |
+
uniform bool invert = false [[
|
| 329 |
+
anno::in_group("Output"),
|
| 330 |
+
anno::display_name("Invert")
|
| 331 |
+
]],
|
| 332 |
+
uniform bool alphaFromRGB = false [[
|
| 333 |
+
anno::in_group("Output"),
|
| 334 |
+
anno::display_name("Alpha from RGB intensity"),
|
| 335 |
+
anno::unused()
|
| 336 |
+
]],
|
| 337 |
+
uniform float output_amount = 1.f [[
|
| 338 |
+
anno::in_group("Output"),
|
| 339 |
+
anno::display_name("Output amount"),
|
| 340 |
+
anno::unused()
|
| 341 |
+
]],
|
| 342 |
+
uniform float rgb_level = 1.f [[
|
| 343 |
+
anno::in_group("Output"),
|
| 344 |
+
anno::display_name("RGB level"),
|
| 345 |
+
anno::unused()
|
| 346 |
+
]],
|
| 347 |
+
uniform float rgb_offset = 0.f [[
|
| 348 |
+
anno::in_group("Output"),
|
| 349 |
+
anno::display_name("RGB Offset"),
|
| 350 |
+
anno::unused()
|
| 351 |
+
]]) varying
|
| 352 |
+
[[
|
| 353 |
+
anno::author("KooLab")
|
| 354 |
+
]]
|
| 355 |
+
{
|
| 356 |
+
return base::file_bump_texture
|
| 357 |
+
(
|
| 358 |
+
texture : filename,
|
| 359 |
+
crop_u : float2(clipu, clipw + clipu),
|
| 360 |
+
crop_v : float2(1.f - clipv - cliph, 1.f - clipv),
|
| 361 |
+
uvw : base::transform_coordinate
|
| 362 |
+
(
|
| 363 |
+
transform: rotation_translation_scale_2_matrix
|
| 364 |
+
(
|
| 365 |
+
scaling : float3(U_Tiling, V_Tiling, 1.f),
|
| 366 |
+
rotation : float3(U_angle, V_angle, W_angle)/(180.f*math::PI),
|
| 367 |
+
translation : float3(U_Offset, V_Offset, 0.f),
|
| 368 |
+
u_mirror : U_Mirror,
|
| 369 |
+
v_mirror : V_Mirror
|
| 370 |
+
),
|
| 371 |
+
coordinate: base::coordinate_source(texture_space: mapChannel - 1)
|
| 372 |
+
),
|
| 373 |
+
wrap_u : U_Tile ? tex::wrap_repeat : U_Mirror ? tex::wrap_mirrored_repeat : tex::wrap_clip,
|
| 374 |
+
wrap_v : V_Tile ? tex::wrap_repeat : V_Mirror ? tex::wrap_mirrored_repeat : tex::wrap_clip,
|
| 375 |
+
factor : invert ? -10.f*factor*bump_amount : 10.f*factor*bump_amount
|
| 376 |
+
);
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
export float3 NormalMap_bump(
|
| 380 |
+
::texture_return normal_map = ::texture_return() [[
|
| 381 |
+
anno::in_group("NormalMap Parameters"),
|
| 382 |
+
anno::display_name("Normal map")
|
| 383 |
+
]],
|
| 384 |
+
float3 bump_map = state::normal() [[
|
| 385 |
+
anno::in_group("NormalMap Parameters"),
|
| 386 |
+
anno::display_name("Bump map")
|
| 387 |
+
]],
|
| 388 |
+
uniform float normal_amount = 1.f [[
|
| 389 |
+
anno::in_group("NormalMap Parameters"),
|
| 390 |
+
anno::display_name("Normal amount"),
|
| 391 |
+
anno::hard_range(-1000.f, 1000.f)
|
| 392 |
+
]],
|
| 393 |
+
uniform float bump_amount = 1.f [[
|
| 394 |
+
anno::in_group("NormalMap Parameters"),
|
| 395 |
+
anno::display_name("Bump amount"),
|
| 396 |
+
anno::hard_range(-1000.f, 1000.f)
|
| 397 |
+
]],
|
| 398 |
+
uniform bool flip_red = false [[
|
| 399 |
+
anno::in_group("NormalMap Parameters"),
|
| 400 |
+
anno::display_name("Flip red")
|
| 401 |
+
]],
|
| 402 |
+
uniform bool flip_green = false [[
|
| 403 |
+
anno::in_group("NormalMap Parameters"),
|
| 404 |
+
anno::display_name("Flip green")
|
| 405 |
+
]],
|
| 406 |
+
uniform bool swap_rg = false [[
|
| 407 |
+
anno::in_group("NormalMap Parameters"),
|
| 408 |
+
anno::display_name("Swap red and green")
|
| 409 |
+
]],
|
| 410 |
+
uniform int map_channel = 1 [[
|
| 411 |
+
anno::in_group("NormalMap Parameters"),
|
| 412 |
+
anno::display_name("Map channel"),
|
| 413 |
+
anno::hidden(),
|
| 414 |
+
anno::unused()
|
| 415 |
+
]],
|
| 416 |
+
uniform float map_rotation = 0.f [[
|
| 417 |
+
anno::in_group("NormalMap Parameters"),
|
| 418 |
+
anno::display_name("Map rotation"),
|
| 419 |
+
anno::hard_range(0.f, 360.f),
|
| 420 |
+
anno::hidden(),
|
| 421 |
+
anno::unused()
|
| 422 |
+
]],
|
| 423 |
+
uniform float normal_map_amount = 1.f [[
|
| 424 |
+
anno::in_group("NormalMap Parameters"),
|
| 425 |
+
anno::display_name("Map amount"),
|
| 426 |
+
anno::hard_range(-10.f, 10.f)
|
| 427 |
+
]]) varying
|
| 428 |
+
[[
|
| 429 |
+
anno::author("KooLab")
|
| 430 |
+
]]
|
| 431 |
+
{
|
| 432 |
+
float3 tangent_space_normal = float3(normal_map.tint);
|
| 433 |
+
|
| 434 |
+
if(flip_red)
|
| 435 |
+
tangent_space_normal.x = 1.f - tangent_space_normal.x;
|
| 436 |
+
|
| 437 |
+
if(flip_green)
|
| 438 |
+
tangent_space_normal.y = 1.f - tangent_space_normal.y;
|
| 439 |
+
|
| 440 |
+
if(swap_rg)
|
| 441 |
+
{
|
| 442 |
+
float tmp = tangent_space_normal.x;
|
| 443 |
+
tangent_space_normal.x = tangent_space_normal.y;
|
| 444 |
+
tangent_space_normal.y = tmp;
|
| 445 |
+
}
|
| 446 |
+
|
| 447 |
+
float normal_factor = normal_amount*(normal_map_amount);
|
| 448 |
+
tangent_space_normal = (tangent_space_normal - float3(0.5f))*(2.f*normal_factor);
|
| 449 |
+
|
| 450 |
+
float3 mapped_normal = math::normalize(
|
| 451 |
+
state::texture_tangent_u(0) * tangent_space_normal.x +
|
| 452 |
+
state::texture_tangent_v(0) * tangent_space_normal.y +
|
| 453 |
+
state::normal() * (tangent_space_normal.z + (1.f - normal_factor)));
|
| 454 |
+
|
| 455 |
+
float3 bumped_normal = math::normalize(math::lerp(state::normal(), bump_map, bump_amount*normal_map_amount));
|
| 456 |
+
|
| 457 |
+
return math::normalize(mapped_normal + bumped_normal);
|
| 458 |
+
}
|
| 459 |
+
|
| 460 |
+
export ::texture_return KooPbr_mix(
|
| 461 |
+
::texture_return color1 = ::texture_return() [[
|
| 462 |
+
anno::in_group("Mix parameters"),
|
| 463 |
+
anno::display_name("Color #1")
|
| 464 |
+
]],
|
| 465 |
+
::texture_return color2 = ::texture_return() [[
|
| 466 |
+
anno::in_group("Mix parameters"),
|
| 467 |
+
anno::display_name("Color #2")
|
| 468 |
+
]],
|
| 469 |
+
float mixAmount = 0.f [[
|
| 470 |
+
anno::in_group("Mix parameters"),
|
| 471 |
+
anno::display_name("Mix amount"),
|
| 472 |
+
anno::hard_range(0.f, 1.f)
|
| 473 |
+
]],
|
| 474 |
+
uniform bool useCurve = false [[
|
| 475 |
+
anno::in_group("Mix parameters"),
|
| 476 |
+
anno::display_name("Use curve")
|
| 477 |
+
]],
|
| 478 |
+
uniform float lower = 0.3f [[
|
| 479 |
+
anno::in_group("Mix parameters"),
|
| 480 |
+
anno::display_name("Lower"),
|
| 481 |
+
anno::hard_range(0.f, 1.f)
|
| 482 |
+
]],
|
| 483 |
+
uniform float upper = 0.7f [[
|
| 484 |
+
anno::in_group("Mix parameters"),
|
| 485 |
+
anno::display_name("Upper"),
|
| 486 |
+
anno::hard_range(0.f, 1.f)
|
| 487 |
+
]])
|
| 488 |
+
[[
|
| 489 |
+
anno::author("KooLab")
|
| 490 |
+
]]
|
| 491 |
+
{
|
| 492 |
+
float t = useCurve ? math::smoothstep(lower, upper, mixAmount) : math::smoothstep(0.0, 1.0, mixAmount);
|
| 493 |
+
|
| 494 |
+
return texture_return(
|
| 495 |
+
math::lerp(color1.tint,color2.tint, t),
|
| 496 |
+
math::lerp(color1.mono,color2.mono, t));
|
| 497 |
+
}
|
| 498 |
+
|
| 499 |
+
export ::texture_return KooPbr_falloff(
|
| 500 |
+
::texture_return color1 = ::texture_return() [[
|
| 501 |
+
anno::in_group("Falloff"),
|
| 502 |
+
anno::display_name("Color #1")
|
| 503 |
+
]],
|
| 504 |
+
::texture_return color2 = ::texture_return() [[
|
| 505 |
+
anno::in_group("Falloff"),
|
| 506 |
+
anno::display_name("Color #1"),
|
| 507 |
+
anno::hidden()
|
| 508 |
+
]])
|
| 509 |
+
[[
|
| 510 |
+
anno::author("KooLab")
|
| 511 |
+
]]
|
| 512 |
+
{
|
| 513 |
+
return ::KooPbr_mix(color1, color2, 0.5f);
|
| 514 |
+
//return color1;
|
| 515 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/.collect.mapping.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/0309dcb2f1cff82e56b5928b8258b489/usd/0309dcb2f1cff82e56b5928b8258b489.usd",
|
| 6 |
+
"source_hash": "e2b88f31c63e62788b59caab8723704342223dd9",
|
| 7 |
+
"target_url": "./0309dcb2f1cff82e56b5928b8258b489.usd",
|
| 8 |
+
"target_hash": "17e46b463b459b4eef35bad0e63eadb84f458acf"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_color.png",
|
| 12 |
+
"source_hash": "781a5fed536e495efc14d6f1bdd0145198f43ed6",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_color.png",
|
| 14 |
+
"target_hash": "059ddd89c606cff19511e5482b7251ab4ab89b8d"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_normal.png",
|
| 18 |
+
"source_hash": "5eb2f2d9708a7be8887cb63c4fb3a0d02bb82b79",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_normal.png",
|
| 20 |
+
"target_hash": "5056f54ea461def22a1c89594119e93a337f5b3a"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e9034845b896900019658f8_color.png",
|
| 24 |
+
"source_hash": "7fcf64242785090e59e31d0001322d685a92ecd8",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5e9034845b896900019658f8_color.png",
|
| 26 |
+
"target_hash": "c088ec1c4398f4792574fae186fe7e129f958eb2"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e9034845b896900019658f8_normal.png",
|
| 30 |
+
"source_hash": "7616a48c07d5289bcc147016cec590cf733efa96",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5e9034845b896900019658f8_normal.png",
|
| 32 |
+
"target_hash": "e98c7c3f725180338c6c54849900b15e9c7bb9c0"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 36 |
+
"source_hash": "fd12e1ba80ae34fab4f7811e8b00542d1690f6c3",
|
| 37 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 38 |
+
"target_hash": "0e2a2882dc241810bc3cc2b0210e1706d6787d1b"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 42 |
+
"source_hash": "c80a5f14da319c6b29f9a0d9d9b4075f40c690d9",
|
| 43 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 44 |
+
"target_hash": "99eb52e17ec8f0c55216500b29ca8ddfb0f44c7f"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 48 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 49 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 50 |
+
"target_hash": "56d376c83a8e95c3c52035195d9dc92551e8753d"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 54 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 55 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 56 |
+
"target_hash": "a824b90de794cbac3104786073534ef98616bd1e"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 60 |
+
"source_hash": "32170c3613fafbf1b151b15aeeb63ed713a5e4af",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 62 |
+
"target_hash": "5666309ff0ad5081891615dde332c9f614faf036"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num6526327829931a0001adab0d.mdl",
|
| 66 |
+
"source_hash": "421a5a23c87e789d4ed510635e6ad4c5c7f977d2",
|
| 67 |
+
"target_url": "./SubUSDs/materials/Num6526327829931a0001adab0d.mdl",
|
| 68 |
+
"target_hash": "4850afe1c8b4381781ef6808f813fe0de85089cb"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 72 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 73 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 74 |
+
"target_hash": "ade9d485e58964c26df49d584e89efefbdc5f983"
|
| 75 |
+
}
|
| 76 |
+
]
|
| 77 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/0309dcb2f1cff82e56b5928b8258b489_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "0309dcb2f1cff82e56b5928b8258b489",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.08 * 0.16 * 0.08",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 6.861549377441406,
|
| 11 |
+
"usd_size": 7.550846099853516,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d4e3b9f0340ad000170b34b(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/0309dcb2f1cff82e56b5928b8258b489/SubUSDs/materials/Num6526327829931a0001adab0d.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num6526327829931a0001adab0d(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/.collect.mapping.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/173e246d5eb10f81265e2c174de2101d/usd/173e246d5eb10f81265e2c174de2101d.usd",
|
| 6 |
+
"source_hash": "074519f79d9cabdc863bd87427489eaa392da361",
|
| 7 |
+
"target_url": "./173e246d5eb10f81265e2c174de2101d.usd",
|
| 8 |
+
"target_hash": "68d397d9c4fc21e7499bd141d5c332a473bd9935"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/60b34372c9c5fa000140d16c_color.png",
|
| 12 |
+
"source_hash": "5daeb14fa8be4720a70358df61943d0e515f3d41",
|
| 13 |
+
"target_url": "./SubUSDs/textures/60b34372c9c5fa000140d16c_color.png",
|
| 14 |
+
"target_hash": "91f1a1e5860e3bf23cd549cb71834bba84dd1cd4"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/60b34372c9c5fa000140d16c_metallic.png",
|
| 18 |
+
"source_hash": "7c8c107754c42e0672a15322044a058d1540ba6e",
|
| 19 |
+
"target_url": "./SubUSDs/textures/60b34372c9c5fa000140d16c_metallic.png",
|
| 20 |
+
"target_hash": "be83fcb2958f7da46f1ac82ed2de48f728a56aa9"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/60b34372efa6d0000156e00f_color.png",
|
| 24 |
+
"source_hash": "4b1865e5b55dfc26b02de699a6c97e7d924b061e",
|
| 25 |
+
"target_url": "./SubUSDs/textures/60b34372efa6d0000156e00f_color.png",
|
| 26 |
+
"target_hash": "d6449834b4b6d2ed17d11118b80909801901cc1b"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/60b34372efa6d0000156e00f_metallic.png",
|
| 30 |
+
"source_hash": "11dff10a4e75521f41f52f9e79962ce031cdae99",
|
| 31 |
+
"target_url": "./SubUSDs/textures/60b34372efa6d0000156e00f_metallic.png",
|
| 32 |
+
"target_hash": "f0fa7e1d5718541f34fd29a0d03646c5d0e7c122"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/60b34372efa6d0000156e00f_normal.png",
|
| 36 |
+
"source_hash": "2d55902439032d20ac70175c3c7fbdfcbba06234",
|
| 37 |
+
"target_url": "./SubUSDs/textures/60b34372efa6d0000156e00f_normal.png",
|
| 38 |
+
"target_hash": "9633ebfce91822e55b7222fe3538aaed748c06ea"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 42 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 43 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 44 |
+
"target_hash": "23ae780c7681327ccbcaa5c6ff4e3a968b748430"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 48 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 49 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 50 |
+
"target_hash": "cf23cc220419987538485ded366c606b1669749a"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 54 |
+
"source_hash": "32a590ac65271a3744ee102bdf64cfe925a5f371",
|
| 55 |
+
"target_url": "./SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 56 |
+
"target_hash": "118241bf200a0a75c5867425a1d20fd073d7a5de"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 60 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 61 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 62 |
+
"target_hash": "de783c39330f62a2265bed9bbbecfb68af9d1eb2"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/173e246d5eb10f81265e2c174de2101d_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "173e246d5eb10f81265e2c174de2101d",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.08 * 0.15 * 0.10",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 3.0636863708496094,
|
| 11 |
+
"usd_size": 3.423457145690918,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/173e246d5eb10f81265e2c174de2101d/SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5b7bd4d1b21bf209e7fbfc92(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/.collect.mapping.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/1a900e94264d9104f45200db6e0b5e5c/usd/1a900e94264d9104f45200db6e0b5e5c.usd",
|
| 6 |
+
"source_hash": "c41404899886d821e4eafcbcfaf8051292045382",
|
| 7 |
+
"target_url": "./1a900e94264d9104f45200db6e0b5e5c.usd",
|
| 8 |
+
"target_hash": "dfc27bc36d93fe785a3cfaa58c92a553e1580230"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97597_color.png",
|
| 12 |
+
"source_hash": "2a0cd08a8e9e73bd9fd08e9fe404527fb8d91938",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97597_color.png",
|
| 14 |
+
"target_hash": "13fc6f7368b05cf1bddd4b3296f6a43812cb9b49"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97597_metallic.png",
|
| 18 |
+
"source_hash": "0ac0bea7ef08651c69697031a65f05fa8ef3230e",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97597_metallic.png",
|
| 20 |
+
"target_hash": "4a4fc9e73f85dd1a31ff12f2e908f3768d3baa32"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97598_color.png",
|
| 24 |
+
"source_hash": "60194d7673ce9e49a993717899015421c3353a66",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97598_color.png",
|
| 26 |
+
"target_hash": "b4f30a69874022f0dd2072109b56a1cbddeab22f"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97598_metallic.png",
|
| 30 |
+
"source_hash": "ccc0b3f645da748af39fd21441df31c855491939",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97598_metallic.png",
|
| 32 |
+
"target_hash": "346b774db4aa8be9092620f0fd9ab0cdebcc78fb"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 36 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 37 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 38 |
+
"target_hash": "e949fedf3d397aadc9a4002417f7cf38077ef431"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 42 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 43 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 44 |
+
"target_hash": "a8579c7686a33b0b74266297c70a902dc13c548c"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 48 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 49 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 50 |
+
"target_hash": "adfa1e45fa4c1c250b19fe7aecbdcedaf4480c8e"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5c42abdd0b160a309e6794aa.mdl",
|
| 54 |
+
"source_hash": "39118ec23f5e0fec50f1a21e9bd0009bd985b9ea",
|
| 55 |
+
"target_url": "./SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl",
|
| 56 |
+
"target_hash": "c62769f80e4f15a1effb9b4e306969e07a1e52ec"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d56604a620e2c0001aa6833.mdl",
|
| 60 |
+
"source_hash": "302d18408d005bc3f55a1ac1b0f9f0a9bde80e4e",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl",
|
| 62 |
+
"target_hash": "b9608176ccd1fda63edae73967a7c969b1b0ee1e"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/1a900e94264d9104f45200db6e0b5e5c_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "1a900e94264d9104f45200db6e0b5e5c",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.17 * 0.18 * 0.17",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 12.887805938720703,
|
| 11 |
+
"usd_size": 12.890887260437012,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5c42abdd0b160a309e6794aa(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/1a900e94264d9104f45200db6e0b5e5c/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d56604a620e2c0001aa6833(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/.collect.mapping.json
ADDED
|
@@ -0,0 +1,53 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/usd/23f1d3ecc9f811bdcd7b4f9a169f9f9f.usd",
|
| 6 |
+
"source_hash": "fd51297934db3a039bf00500c08a09920ddea926",
|
| 7 |
+
"target_url": "./23f1d3ecc9f811bdcd7b4f9a169f9f9f.usd",
|
| 8 |
+
"target_hash": "abf594f43169a4cffa3e17f380d2fa5ec426498d"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d7360d2447e4e0001b659f3_color.png",
|
| 12 |
+
"source_hash": "b12f89064912d1423b4a2a24cf1bbd1d813d8579",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5d7360d2447e4e0001b659f3_color.png",
|
| 14 |
+
"target_hash": "3dfe1c61a927161abef20c086e127bd3c257865f"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d7360d2447e4e0001b659f3_normal.png",
|
| 18 |
+
"source_hash": "ee3a022a597842215c3e5fd19e501613d91fd76a",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5d7360d2447e4e0001b659f3_normal.png",
|
| 20 |
+
"target_hash": "9bff8c3c306e49105fc8100f4c4c1a3adca893c9"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 24 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 25 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 26 |
+
"target_hash": "e5d618bd3f19083635afc4cafd818c46c7a8107e"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 30 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 31 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 32 |
+
"target_hash": "c0bd3d652bef501a9a8d6cd02019c077f015bead"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 36 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 37 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 38 |
+
"target_hash": "203870fd6670d8cb2b455ba7d55680f4e35f3afa"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5c42abdd0b160a309e6794aa.mdl",
|
| 42 |
+
"source_hash": "39118ec23f5e0fec50f1a21e9bd0009bd985b9ea",
|
| 43 |
+
"target_url": "./SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl",
|
| 44 |
+
"target_hash": "84bb10a30c27f91d6111c7afa1c85b59fc531ae5"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d56604a620e2c0001aa6833.mdl",
|
| 48 |
+
"source_hash": "302d18408d005bc3f55a1ac1b0f9f0a9bde80e4e",
|
| 49 |
+
"target_url": "./SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl",
|
| 50 |
+
"target_hash": "7a52108857b9271453f0da04089ba6d7df13cceb"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/23f1d3ecc9f811bdcd7b4f9a169f9f9f_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "23f1d3ecc9f811bdcd7b4f9a169f9f9f",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.08 * 0.17 * 0.08",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 7.597206115722656,
|
| 11 |
+
"usd_size": 7.562780380249023,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/.collect.mapping.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/2475b1d276562a0152bb481253b15d9a/usd/2475b1d276562a0152bb481253b15d9a.usd",
|
| 6 |
+
"source_hash": "25c2cb4bd177bc4eef4ccb66a9be1c87758361e1",
|
| 7 |
+
"target_url": "./2475b1d276562a0152bb481253b15d9a.usd",
|
| 8 |
+
"target_hash": "43e8801139afbce4356522ff92e1585eb7f310c7"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_color.png",
|
| 12 |
+
"source_hash": "781a5fed536e495efc14d6f1bdd0145198f43ed6",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_color.png",
|
| 14 |
+
"target_hash": "278b1a81024101e7e9a6e9a3dd3e9ddace11e9bf"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_normal.png",
|
| 18 |
+
"source_hash": "5eb2f2d9708a7be8887cb63c4fb3a0d02bb82b79",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_normal.png",
|
| 20 |
+
"target_hash": "89d5c07eef3e4ff2b055983a5bd4f5b6731b527e"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 24 |
+
"source_hash": "fd12e1ba80ae34fab4f7811e8b00542d1690f6c3",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 26 |
+
"target_hash": "93861caf1ec59016edb1c5f55c4b35c9bc9f0a62"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 30 |
+
"source_hash": "c80a5f14da319c6b29f9a0d9d9b4075f40c690d9",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 32 |
+
"target_hash": "5582c491521dff0079b33747d357ec6e3a7cf2e4"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484e113f600019cef4d_color.png",
|
| 36 |
+
"source_hash": "c53968cb55eed415584ff6434b6012f27c7805cd",
|
| 37 |
+
"target_url": "./SubUSDs/textures/5e903484e113f600019cef4d_color.png",
|
| 38 |
+
"target_hash": "0548470b16fc0ca42eaabec4e6b0af73eb661430"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484e113f600019cef4d_normal.png",
|
| 42 |
+
"source_hash": "013facdaaa9b52b220f8a677974e51d76a459e75",
|
| 43 |
+
"target_url": "./SubUSDs/textures/5e903484e113f600019cef4d_normal.png",
|
| 44 |
+
"target_hash": "ad01315b3e4aea1918cd4327d002373b78e2773c"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 48 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 49 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 50 |
+
"target_hash": "f18fcea7cb689de6ff44fb4f1f894a6b75c2061c"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 54 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 55 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 56 |
+
"target_hash": "8d30c911ffc63120814e7884df3da09ab31d21c1"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 60 |
+
"source_hash": "32170c3613fafbf1b151b15aeeb63ed713a5e4af",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 62 |
+
"target_hash": "e9176f9e252c70a71e73ae07a0c28c2f49eb4453"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num6526327829931a0001adab0d.mdl",
|
| 66 |
+
"source_hash": "421a5a23c87e789d4ed510635e6ad4c5c7f977d2",
|
| 67 |
+
"target_url": "./SubUSDs/materials/Num6526327829931a0001adab0d.mdl",
|
| 68 |
+
"target_hash": "52a1e38d7b7f91efb1d5473af58904bb477030fe"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 72 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 73 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 74 |
+
"target_hash": "95fed4a969a089eca77d810b6d933e6aa906b5da"
|
| 75 |
+
}
|
| 76 |
+
]
|
| 77 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/2475b1d276562a0152bb481253b15d9a_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "2475b1d276562a0152bb481253b15d9a",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.10 * 0.19 * 0.10",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 6.108814239501953,
|
| 11 |
+
"usd_size": 7.101225852966309,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d4e3b9f0340ad000170b34b(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/2475b1d276562a0152bb481253b15d9a/SubUSDs/materials/Num6526327829931a0001adab0d.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num6526327829931a0001adab0d(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/.collect.mapping.json
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/45d5b1701028fc00adc75c5c76042cde/usd/45d5b1701028fc00adc75c5c76042cde.usd",
|
| 6 |
+
"source_hash": "d5c4330fa6fbf07f261861defbf5ed9bb672542b",
|
| 7 |
+
"target_url": "./45d5b1701028fc00adc75c5c76042cde.usd",
|
| 8 |
+
"target_hash": "bcf8dafa2b9cd715c5016b4a016594ae1c2128e4"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97597_color.png",
|
| 12 |
+
"source_hash": "2a0cd08a8e9e73bd9fd08e9fe404527fb8d91938",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97597_color.png",
|
| 14 |
+
"target_hash": "6bb0497497a7b67f8e67f155b50a79511bc8521e"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97597_metallic.png",
|
| 18 |
+
"source_hash": "0ac0bea7ef08651c69697031a65f05fa8ef3230e",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97597_metallic.png",
|
| 20 |
+
"target_hash": "e3800a3665ad6489bc06de38efb07688f53cf221"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97598_color.png",
|
| 24 |
+
"source_hash": "60194d7673ce9e49a993717899015421c3353a66",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97598_color.png",
|
| 26 |
+
"target_hash": "4e4e07fbc1909ed9fd8a53562d34d79619375a45"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d5d2e370b160a0001c97598_metallic.png",
|
| 30 |
+
"source_hash": "ccc0b3f645da748af39fd21441df31c855491939",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5d5d2e370b160a0001c97598_metallic.png",
|
| 32 |
+
"target_hash": "1ae5bf7abdf47442c3beebc997d774b2bded4d7d"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 36 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 37 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 38 |
+
"target_hash": "131b57098509445062cb716fae9b2883667bf500"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 42 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 43 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 44 |
+
"target_hash": "800ad73420157d242a8e039e796da7e65bd6de89"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 48 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 49 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 50 |
+
"target_hash": "98ca6d20f9eb27d90566a497bda0cb8e443b21f8"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5c42abdd0b160a309e6794aa.mdl",
|
| 54 |
+
"source_hash": "39118ec23f5e0fec50f1a21e9bd0009bd985b9ea",
|
| 55 |
+
"target_url": "./SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl",
|
| 56 |
+
"target_hash": "b3c3cf368e2d1345115985efd044864f1593babc"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d56604a620e2c0001aa6833.mdl",
|
| 60 |
+
"source_hash": "302d18408d005bc3f55a1ac1b0f9f0a9bde80e4e",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl",
|
| 62 |
+
"target_hash": "19e921cc32aef3e79731d9afc86d3070e1ab179a"
|
| 63 |
+
}
|
| 64 |
+
]
|
| 65 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/45d5b1701028fc00adc75c5c76042cde_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "45d5b1701028fc00adc75c5c76042cde",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.15 * 0.15 * 0.14",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 12.887821197509766,
|
| 11 |
+
"usd_size": 12.882529258728027,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5c42abdd0b160a309e6794aa(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/45d5b1701028fc00adc75c5c76042cde/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d56604a620e2c0001aa6833(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/.collect.mapping.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/471d4d7acbc09edb085f4bfdac8bb2cc/usd/471d4d7acbc09edb085f4bfdac8bb2cc.usd",
|
| 6 |
+
"source_hash": "e6faef7891be92917ba099159b2c6181549cf712",
|
| 7 |
+
"target_url": "./471d4d7acbc09edb085f4bfdac8bb2cc.usd",
|
| 8 |
+
"target_hash": "8dfca2a5c3fa06810d3a309632d4b488ecd75a04"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 12 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 13 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 14 |
+
"target_hash": "84766808d8ec1089de6fbe32575d6ab61df0e041"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 18 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 19 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 20 |
+
"target_hash": "0d175dae03d51147469d550a780ecd8be4498dff"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 24 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 25 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 26 |
+
"target_hash": "cace28fe91834cd422af1de94f345fcfe2bfa47f"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 30 |
+
"source_hash": "32a590ac65271a3744ee102bdf64cfe925a5f371",
|
| 31 |
+
"target_url": "./SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 32 |
+
"target_hash": "06ba49fc4d584d826595785fa5621df79cd37022"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num614415bd5c26590001b09b16.mdl",
|
| 36 |
+
"source_hash": "5b31cd5a118f6dd0ffa74037356889cd6df16ee7",
|
| 37 |
+
"target_url": "./SubUSDs/materials/Num614415bd5c26590001b09b16.mdl",
|
| 38 |
+
"target_hash": "23cd0798a3403844471e351cd6e4786da94fe33a"
|
| 39 |
+
}
|
| 40 |
+
]
|
| 41 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/471d4d7acbc09edb085f4bfdac8bb2cc_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "471d4d7acbc09edb085f4bfdac8bb2cc",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.12 * 0.15 * 0.10",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 0.24395751953125,
|
| 11 |
+
"usd_size": 0.27880859375,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/SubUSDs/materials/Num5b7bd4d1b21bf209e7fbfc92.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5b7bd4d1b21bf209e7fbfc92(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/471d4d7acbc09edb085f4bfdac8bb2cc/SubUSDs/materials/Num614415bd5c26590001b09b16.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num614415bd5c26590001b09b16(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/.collect.mapping.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/501a5ac3cbdae92226c51c349e4e6a17/usd/501a5ac3cbdae92226c51c349e4e6a17.usd",
|
| 6 |
+
"source_hash": "7cb9408a9387efabb9478c789cfae2824b33c791",
|
| 7 |
+
"target_url": "./501a5ac3cbdae92226c51c349e4e6a17.usd",
|
| 8 |
+
"target_hash": "2f6ed41c5d7d985ce71013cb85d8cdf32eb8ad64"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5d7360d2447e4e0001b659f4_color.png",
|
| 12 |
+
"source_hash": "b21715c3a9481b9c6fa22f5006487c97751c36c7",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5d7360d2447e4e0001b659f4_color.png",
|
| 14 |
+
"target_hash": "589825127b3a8cc14e15efd7d70ae5d0e2b87a89"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 18 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 19 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 20 |
+
"target_hash": "ee7203859633bdf4f7520f4bc3ad6cd2b7ec9a15"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 24 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 25 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 26 |
+
"target_hash": "bfe2cf23fd03dc00f5d38a28b087381aaa0cd10a"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 30 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 31 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 32 |
+
"target_hash": "67e98222e08507221d31afc61fbc54aacafafe40"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5c42abdd0b160a309e6794aa.mdl",
|
| 36 |
+
"source_hash": "39118ec23f5e0fec50f1a21e9bd0009bd985b9ea",
|
| 37 |
+
"target_url": "./SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl",
|
| 38 |
+
"target_hash": "3fccfac073ebeb995c30d937efed11d9502109a8"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d56604a620e2c0001aa6833.mdl",
|
| 42 |
+
"source_hash": "302d18408d005bc3f55a1ac1b0f9f0a9bde80e4e",
|
| 43 |
+
"target_url": "./SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl",
|
| 44 |
+
"target_hash": "6ecf70f95e9bd1a8db0bd13af97cf3bd4a21cc89"
|
| 45 |
+
}
|
| 46 |
+
]
|
| 47 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/501a5ac3cbdae92226c51c349e4e6a17_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "501a5ac3cbdae92226c51c349e4e6a17",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.10 * 0.20 * 0.10",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 6.755847930908203,
|
| 11 |
+
"usd_size": 6.6764421463012695,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/SubUSDs/materials/Num5c42abdd0b160a309e6794aa.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5c42abdd0b160a309e6794aa(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/501a5ac3cbdae92226c51c349e4e6a17/SubUSDs/materials/Num5d56604a620e2c0001aa6833.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d56604a620e2c0001aa6833(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/.collect.mapping.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/55c75d1633a577833010793d58dfee58/usd/55c75d1633a577833010793d58dfee58.usd",
|
| 6 |
+
"source_hash": "69e3ff102dc7ac20e3de754a9848c603f2f05c07",
|
| 7 |
+
"target_url": "./55c75d1633a577833010793d58dfee58.usd",
|
| 8 |
+
"target_hash": "8bd7ebf4b271cab28bf3c0cc83c1594567312cb1"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_color.png",
|
| 12 |
+
"source_hash": "781a5fed536e495efc14d6f1bdd0145198f43ed6",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_color.png",
|
| 14 |
+
"target_hash": "962a430e7a411411b7310ad8220aad9b04d18bc2"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_normal.png",
|
| 18 |
+
"source_hash": "5eb2f2d9708a7be8887cb63c4fb3a0d02bb82b79",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_normal.png",
|
| 20 |
+
"target_hash": "7640bcffb4cedcc48573704a0dd72b93eb517c26"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e9034847d6a630001d276aa_color.png",
|
| 24 |
+
"source_hash": "446622f1a7420a23d6c3f1223d610f3275ddda3a",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5e9034847d6a630001d276aa_color.png",
|
| 26 |
+
"target_hash": "f97eb1995a85d1cb5a38b1cf4a743144230ae17d"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e9034847d6a630001d276aa_normal.png",
|
| 30 |
+
"source_hash": "2f40b82ee6fa0bd7e42abd88c40455f70362271f",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5e9034847d6a630001d276aa_normal.png",
|
| 32 |
+
"target_hash": "f399f4c952fe3c846a413ea84397e964ae1ac884"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 36 |
+
"source_hash": "fd12e1ba80ae34fab4f7811e8b00542d1690f6c3",
|
| 37 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 38 |
+
"target_hash": "a58fc7f58e6de319452311ccbcb2e49b8c57abad"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 42 |
+
"source_hash": "c80a5f14da319c6b29f9a0d9d9b4075f40c690d9",
|
| 43 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 44 |
+
"target_hash": "c398a32d292b63ee1f79b1360de81b806d85b7f0"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 48 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 49 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 50 |
+
"target_hash": "4c0dac804b6f44d655b3f79b78e0cee103605ca1"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 54 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 55 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 56 |
+
"target_hash": "3d675351e6fd945cb6de9730e1101825a86c3571"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 60 |
+
"source_hash": "32170c3613fafbf1b151b15aeeb63ed713a5e4af",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 62 |
+
"target_hash": "a8029bd82fac5d4ee929e67834353cc23c6ed8ba"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num6526327829931a0001adab0d.mdl",
|
| 66 |
+
"source_hash": "421a5a23c87e789d4ed510635e6ad4c5c7f977d2",
|
| 67 |
+
"target_url": "./SubUSDs/materials/Num6526327829931a0001adab0d.mdl",
|
| 68 |
+
"target_hash": "2dba4691bbe1a581bf27fe4a06af9f3db3c50573"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 72 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 73 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 74 |
+
"target_hash": "3941c5f37c4e575a4569a64d2e5c4a8ca7084437"
|
| 75 |
+
}
|
| 76 |
+
]
|
| 77 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/55c75d1633a577833010793d58dfee58_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "55c75d1633a577833010793d58dfee58",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.08 * 0.16 * 0.08",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 6.333808898925781,
|
| 11 |
+
"usd_size": 7.075676918029785,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl
ADDED
|
@@ -0,0 +1,284 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Base import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num5d4e3b9f0340ad000170b34b(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float PolygonOffset = 0.0
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("PolygonOffset"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("WorldPosition")
|
| 164 |
+
]],
|
| 165 |
+
int MaxTexCoordIndex = 3
|
| 166 |
+
[[
|
| 167 |
+
anno::hidden()
|
| 168 |
+
]])
|
| 169 |
+
=
|
| 170 |
+
let {
|
| 171 |
+
float3 Local82 = ::camera_position();
|
| 172 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 173 |
+
float Local84 = math::dot(Local83, Local83);
|
| 174 |
+
float Local85 = math::sqrt(Local84);
|
| 175 |
+
float3 Local86 = (Local83 / Local85);
|
| 176 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 177 |
+
|
| 178 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 179 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 180 |
+
|
| 181 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 182 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 183 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 184 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 185 |
+
float Local4 = (3.141592 * -2.0);
|
| 186 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 187 |
+
float Local6 = (Local5 * 6.283185);
|
| 188 |
+
float Local7 = math::cos(Local6);
|
| 189 |
+
float Local8 = math::sin(Local6);
|
| 190 |
+
float Local9 = (Local8 * -1.0);
|
| 191 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 192 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 193 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 194 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 195 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 196 |
+
|
| 197 |
+
float3 Normal_mdl = Local14;
|
| 198 |
+
|
| 199 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 200 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 201 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 202 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 203 |
+
float Local19 = (Local18 * 6.283185);
|
| 204 |
+
float Local20 = math::cos(Local19);
|
| 205 |
+
float Local21 = math::sin(Local19);
|
| 206 |
+
float Local22 = (Local21 * -1.0);
|
| 207 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 208 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 209 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 210 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 211 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 212 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 213 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 214 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 215 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 216 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 217 |
+
float Local33 = (Local32 * 6.283185);
|
| 218 |
+
float Local34 = math::cos(Local33);
|
| 219 |
+
float Local35 = math::sin(Local33);
|
| 220 |
+
float Local36 = (Local35 * -1.0);
|
| 221 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 222 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 223 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 224 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 225 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 226 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 227 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 228 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 229 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 230 |
+
float Local46 = (Local45 * 6.283185);
|
| 231 |
+
float Local47 = math::cos(Local46);
|
| 232 |
+
float Local48 = math::sin(Local46);
|
| 233 |
+
float Local49 = (Local48 * -1.0);
|
| 234 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 235 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 236 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 237 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 238 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 239 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 240 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 241 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 242 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 243 |
+
float Local59 = (Local58 * 6.283185);
|
| 244 |
+
float Local60 = math::cos(Local59);
|
| 245 |
+
float Local61 = math::sin(Local59);
|
| 246 |
+
float Local62 = (Local61 * -1.0);
|
| 247 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 248 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 249 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 250 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 251 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 252 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 253 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 254 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 255 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 256 |
+
float Local72 = (Local71 * 6.283185);
|
| 257 |
+
float Local73 = math::cos(Local72);
|
| 258 |
+
float Local74 = math::sin(Local72);
|
| 259 |
+
float Local75 = (Local74 * -1.0);
|
| 260 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 261 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 262 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 263 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 264 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 265 |
+
float3 Local81 = (1.0 - Local80);
|
| 266 |
+
|
| 267 |
+
float3 EmissiveColor_mdl = Local28;
|
| 268 |
+
float OpacityMask_mdl = 1.0;
|
| 269 |
+
float3 BaseColor_mdl = Local41;
|
| 270 |
+
float Metallic_mdl = Local54.x;
|
| 271 |
+
float Specular_mdl = Local67.x;
|
| 272 |
+
float Roughness_mdl = Local81.x;
|
| 273 |
+
|
| 274 |
+
} in
|
| 275 |
+
::OmniUe4Base(
|
| 276 |
+
base_color: BaseColor_mdl,
|
| 277 |
+
metallic: Metallic_mdl,
|
| 278 |
+
roughness: Roughness_mdl,
|
| 279 |
+
specular: Specular_mdl,
|
| 280 |
+
normal: Normal_mdl,
|
| 281 |
+
opacity: OpacityMask_mdl,
|
| 282 |
+
emissive_color: EmissiveColor_mdl,
|
| 283 |
+
displacement: WorldPositionOffset_mdl,
|
| 284 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/55c75d1633a577833010793d58dfee58/SubUSDs/materials/Num6526327829931a0001adab0d.mdl
ADDED
|
@@ -0,0 +1,307 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using .::OmniUe4Function import *;
|
| 8 |
+
using .::OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material Num6526327829931a0001adab0d(
|
| 20 |
+
uniform texture_2d Normal_Tex = texture_2d("../textures/normal.png",::tex::gamma_linear)
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Normal_Tex"),
|
| 23 |
+
anno::ui_order(32),
|
| 24 |
+
anno::in_group("Normal"),
|
| 25 |
+
sampler_normal()
|
| 26 |
+
]],
|
| 27 |
+
float4 Normal_UVA = float4(1.0,1.0,0.0,0.0)
|
| 28 |
+
[[
|
| 29 |
+
anno::display_name("Normal_UVA"),
|
| 30 |
+
anno::ui_order(32),
|
| 31 |
+
anno::in_group("Normal")
|
| 32 |
+
]],
|
| 33 |
+
float EmissiveIntensity = 0.0
|
| 34 |
+
[[
|
| 35 |
+
anno::display_name("EmissiveIntensity"),
|
| 36 |
+
anno::ui_order(32),
|
| 37 |
+
anno::in_group("EmissiveColor")
|
| 38 |
+
]],
|
| 39 |
+
float IsEmissiveTex = 0.0
|
| 40 |
+
[[
|
| 41 |
+
anno::display_name("IsEmissiveTex"),
|
| 42 |
+
anno::in_group("EmissiveColor")
|
| 43 |
+
]],
|
| 44 |
+
float4 Emissive_Color = float4(1.0,1.0,1.0,1.0)
|
| 45 |
+
[[
|
| 46 |
+
anno::display_name("Emissive_Color"),
|
| 47 |
+
anno::ui_order(32),
|
| 48 |
+
anno::in_group("EmissiveColor")
|
| 49 |
+
]],
|
| 50 |
+
uniform texture_2d Emissive_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 51 |
+
[[
|
| 52 |
+
anno::display_name("Emissive_Tex"),
|
| 53 |
+
anno::ui_order(32),
|
| 54 |
+
anno::in_group("EmissiveColor"),
|
| 55 |
+
sampler_color()
|
| 56 |
+
]],
|
| 57 |
+
float4 Emissive_UVA = float4(1.0,1.0,0.0,0.0)
|
| 58 |
+
[[
|
| 59 |
+
anno::display_name("Emissive_UVA"),
|
| 60 |
+
anno::ui_order(32),
|
| 61 |
+
anno::in_group("EmissiveColor")
|
| 62 |
+
]],
|
| 63 |
+
float IsBaseColorTex = 0.0
|
| 64 |
+
[[
|
| 65 |
+
anno::display_name("IsBaseColorTex"),
|
| 66 |
+
anno::in_group("BaseColor")
|
| 67 |
+
]],
|
| 68 |
+
float4 BaseColor_Color = float4(1.0,1.0,1.0,1.0)
|
| 69 |
+
[[
|
| 70 |
+
anno::display_name("BaseColor_Color"),
|
| 71 |
+
anno::ui_order(32),
|
| 72 |
+
anno::in_group("BaseColor")
|
| 73 |
+
]],
|
| 74 |
+
uniform texture_2d BaseColor_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 75 |
+
[[
|
| 76 |
+
anno::display_name("BaseColor_Tex"),
|
| 77 |
+
anno::ui_order(32),
|
| 78 |
+
anno::in_group("BaseColor"),
|
| 79 |
+
sampler_color()
|
| 80 |
+
]],
|
| 81 |
+
float4 BaseColor_UVA = float4(1.0,1.0,0.0,0.0)
|
| 82 |
+
[[
|
| 83 |
+
anno::display_name("BaseColor_UVA"),
|
| 84 |
+
anno::ui_order(32),
|
| 85 |
+
anno::in_group("BaseColor")
|
| 86 |
+
]],
|
| 87 |
+
float IsMetallicTex = 0.0
|
| 88 |
+
[[
|
| 89 |
+
anno::display_name("IsMetallicTex"),
|
| 90 |
+
anno::in_group("Metallic")
|
| 91 |
+
]],
|
| 92 |
+
float4 Metallic_Color = float4(0.0,0.0,0.0,1.0)
|
| 93 |
+
[[
|
| 94 |
+
anno::display_name("Metallic_Color"),
|
| 95 |
+
anno::ui_order(32),
|
| 96 |
+
anno::in_group("Metallic")
|
| 97 |
+
]],
|
| 98 |
+
uniform texture_2d Metallic_Tex = texture_2d("../textures/black.png",::tex::gamma_srgb)
|
| 99 |
+
[[
|
| 100 |
+
anno::display_name("Metallic_Tex"),
|
| 101 |
+
anno::ui_order(32),
|
| 102 |
+
anno::in_group("Metallic"),
|
| 103 |
+
sampler_color()
|
| 104 |
+
]],
|
| 105 |
+
float4 Metallic_UVA = float4(1.0,1.0,0.0,0.0)
|
| 106 |
+
[[
|
| 107 |
+
anno::display_name("Metallic_UVA"),
|
| 108 |
+
anno::ui_order(32),
|
| 109 |
+
anno::in_group("Metallic")
|
| 110 |
+
]],
|
| 111 |
+
float IsSpecularTex = 0.0
|
| 112 |
+
[[
|
| 113 |
+
anno::display_name("IsSpecularTex"),
|
| 114 |
+
anno::in_group("Specular")
|
| 115 |
+
]],
|
| 116 |
+
float4 Specular_Color = float4(1.0,1.0,1.0,1.0)
|
| 117 |
+
[[
|
| 118 |
+
anno::display_name("Specular_Color"),
|
| 119 |
+
anno::ui_order(32),
|
| 120 |
+
anno::in_group("Specular")
|
| 121 |
+
]],
|
| 122 |
+
uniform texture_2d Specular_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 123 |
+
[[
|
| 124 |
+
anno::display_name("Specular_Tex"),
|
| 125 |
+
anno::ui_order(32),
|
| 126 |
+
anno::in_group("Specular"),
|
| 127 |
+
sampler_color()
|
| 128 |
+
]],
|
| 129 |
+
float4 Specular_UVA = float4(1.0,1.0,0.0,0.0)
|
| 130 |
+
[[
|
| 131 |
+
anno::display_name("Specular_UVA"),
|
| 132 |
+
anno::ui_order(32),
|
| 133 |
+
anno::in_group("Specular")
|
| 134 |
+
]],
|
| 135 |
+
float IsGlossTex = 0.0
|
| 136 |
+
[[
|
| 137 |
+
anno::display_name("IsGlossTex"),
|
| 138 |
+
anno::in_group("Roughness")
|
| 139 |
+
]],
|
| 140 |
+
float4 Gloss_Color = float4(0.1,0.1,0.1,1.0)
|
| 141 |
+
[[
|
| 142 |
+
anno::display_name("Gloss_Color"),
|
| 143 |
+
anno::ui_order(32),
|
| 144 |
+
anno::in_group("Roughness")
|
| 145 |
+
]],
|
| 146 |
+
uniform texture_2d Gloss_Tex = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 147 |
+
[[
|
| 148 |
+
anno::display_name("Gloss_Tex"),
|
| 149 |
+
anno::ui_order(32),
|
| 150 |
+
anno::in_group("Roughness"),
|
| 151 |
+
sampler_color()
|
| 152 |
+
]],
|
| 153 |
+
float4 Gloss_UVA = float4(1.0,1.0,0.0,0.0)
|
| 154 |
+
[[
|
| 155 |
+
anno::display_name("Gloss_UVA"),
|
| 156 |
+
anno::ui_order(32),
|
| 157 |
+
anno::in_group("Roughness")
|
| 158 |
+
]],
|
| 159 |
+
float Opacity = 0.5
|
| 160 |
+
[[
|
| 161 |
+
anno::display_name("Opacity"),
|
| 162 |
+
anno::ui_order(32),
|
| 163 |
+
anno::in_group("Translucent")
|
| 164 |
+
]],
|
| 165 |
+
float PolygonOffset = 0.0
|
| 166 |
+
[[
|
| 167 |
+
anno::display_name("PolygonOffset"),
|
| 168 |
+
anno::ui_order(32),
|
| 169 |
+
anno::in_group("WorldPosition")
|
| 170 |
+
]],
|
| 171 |
+
uniform float SwitchRefraction = 0.0
|
| 172 |
+
[[
|
| 173 |
+
anno::display_name("SwitchRefraction"),
|
| 174 |
+
anno::ui_order(32),
|
| 175 |
+
anno::in_group("Refraction")
|
| 176 |
+
]],
|
| 177 |
+
uniform float FresnelB = 1.517
|
| 178 |
+
[[
|
| 179 |
+
anno::display_name("FresnelB"),
|
| 180 |
+
anno::ui_order(32),
|
| 181 |
+
anno::in_group("Refraction")
|
| 182 |
+
]],
|
| 183 |
+
int MaxTexCoordIndex = 3
|
| 184 |
+
[[
|
| 185 |
+
anno::hidden()
|
| 186 |
+
]])
|
| 187 |
+
=
|
| 188 |
+
let {
|
| 189 |
+
float3 Local82 = ::camera_position();
|
| 190 |
+
float3 Local83 = (Local82 - (::convert_to_left_hand(state::transform_point(state::coordinate_internal,state::coordinate_world,state::position()), true)*state::meters_per_scene_unit()*100.0));
|
| 191 |
+
float Local84 = math::dot(Local83, Local83);
|
| 192 |
+
float Local85 = math::sqrt(Local84);
|
| 193 |
+
float3 Local86 = (Local83 / Local85);
|
| 194 |
+
float3 Local87 = (Local86 * PolygonOffset);
|
| 195 |
+
|
| 196 |
+
float3 WorldPositionOffset_mdl = Local87;
|
| 197 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 198 |
+
|
| 199 |
+
float2 Local0 = (float2(0.5,0.5) * -1.0);
|
| 200 |
+
float Local1 = (CustomizedUV0_mdl.x * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).x);
|
| 201 |
+
float Local2 = (CustomizedUV0_mdl.y * float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).y);
|
| 202 |
+
float2 Local3 = (Local0 + float2(Local1,Local2));
|
| 203 |
+
float Local4 = (3.141592 * -2.0);
|
| 204 |
+
float Local5 = (float3(Normal_UVA.x,Normal_UVA.y,Normal_UVA.z).z / Local4);
|
| 205 |
+
float Local6 = (Local5 * 6.283185);
|
| 206 |
+
float Local7 = math::cos(Local6);
|
| 207 |
+
float Local8 = math::sin(Local6);
|
| 208 |
+
float Local9 = (Local8 * -1.0);
|
| 209 |
+
float Local10 = math::dot(Local3, float2(Local7,Local9));
|
| 210 |
+
float Local11 = math::dot(Local3, float2(Local8,Local7));
|
| 211 |
+
float2 Local12 = (float2(0.5,0.5) + float2(Local10,Local11));
|
| 212 |
+
float4 Local13 = ::unpack_normal_map(tex::lookup_float4(Normal_Tex,float2(Local12.x,1.0-Local12.y),tex::wrap_repeat,tex::wrap_repeat));
|
| 213 |
+
float3 Local14 = ((math::abs(1.0 - 1.0) > 0.00001) ? (float3(0.0,0.0,0.0)) : float3(Local13.x,Local13.y,Local13.z));
|
| 214 |
+
|
| 215 |
+
float3 Normal_mdl = Local14;
|
| 216 |
+
|
| 217 |
+
float Local15 = (CustomizedUV0_mdl.x * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).x);
|
| 218 |
+
float Local16 = (CustomizedUV0_mdl.y * float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).y);
|
| 219 |
+
float2 Local17 = (Local0 + float2(Local15,Local16));
|
| 220 |
+
float Local18 = (float3(Emissive_UVA.x,Emissive_UVA.y,Emissive_UVA.z).z / Local4);
|
| 221 |
+
float Local19 = (Local18 * 6.283185);
|
| 222 |
+
float Local20 = math::cos(Local19);
|
| 223 |
+
float Local21 = math::sin(Local19);
|
| 224 |
+
float Local22 = (Local21 * -1.0);
|
| 225 |
+
float Local23 = math::dot(Local17, float2(Local20,Local22));
|
| 226 |
+
float Local24 = math::dot(Local17, float2(Local21,Local20));
|
| 227 |
+
float2 Local25 = (float2(0.5,0.5) + float2(Local23,Local24));
|
| 228 |
+
float4 Local26 = tex::lookup_float4(Emissive_Tex,float2(Local25.x,1.0-Local25.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 229 |
+
float3 Local27 = ((math::abs(IsEmissiveTex - 1.0) > 0.00001) ? (float3(Emissive_Color.x,Emissive_Color.y,Emissive_Color.z)) : float3(Local26.x,Local26.y,Local26.z));
|
| 230 |
+
float3 Local28 = (EmissiveIntensity * Local27);
|
| 231 |
+
float Local29 = (CustomizedUV0_mdl.x * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).x);
|
| 232 |
+
float Local30 = (CustomizedUV0_mdl.y * float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).y);
|
| 233 |
+
float2 Local31 = (Local0 + float2(Local29,Local30));
|
| 234 |
+
float Local32 = (float3(BaseColor_UVA.x,BaseColor_UVA.y,BaseColor_UVA.z).z / Local4);
|
| 235 |
+
float Local33 = (Local32 * 6.283185);
|
| 236 |
+
float Local34 = math::cos(Local33);
|
| 237 |
+
float Local35 = math::sin(Local33);
|
| 238 |
+
float Local36 = (Local35 * -1.0);
|
| 239 |
+
float Local37 = math::dot(Local31, float2(Local34,Local36));
|
| 240 |
+
float Local38 = math::dot(Local31, float2(Local35,Local34));
|
| 241 |
+
float2 Local39 = (float2(0.5,0.5) + float2(Local37,Local38));
|
| 242 |
+
float4 Local40 = tex::lookup_float4(BaseColor_Tex,float2(Local39.x,1.0-Local39.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 243 |
+
float3 Local41 = ((math::abs(IsBaseColorTex - 1.0) > 0.00001) ? (float3(BaseColor_Color.x,BaseColor_Color.y,BaseColor_Color.z)) : float3(Local40.x,Local40.y,Local40.z));
|
| 244 |
+
float Local42 = (CustomizedUV0_mdl.x * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).x);
|
| 245 |
+
float Local43 = (CustomizedUV0_mdl.y * float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).y);
|
| 246 |
+
float2 Local44 = (Local0 + float2(Local42,Local43));
|
| 247 |
+
float Local45 = (float3(Metallic_UVA.x,Metallic_UVA.y,Metallic_UVA.z).z / Local4);
|
| 248 |
+
float Local46 = (Local45 * 6.283185);
|
| 249 |
+
float Local47 = math::cos(Local46);
|
| 250 |
+
float Local48 = math::sin(Local46);
|
| 251 |
+
float Local49 = (Local48 * -1.0);
|
| 252 |
+
float Local50 = math::dot(Local44, float2(Local47,Local49));
|
| 253 |
+
float Local51 = math::dot(Local44, float2(Local48,Local47));
|
| 254 |
+
float2 Local52 = (float2(0.5,0.5) + float2(Local50,Local51));
|
| 255 |
+
float4 Local53 = tex::lookup_float4(Metallic_Tex,float2(Local52.x,1.0-Local52.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 256 |
+
float3 Local54 = ((math::abs(IsMetallicTex - 1.0) > 0.00001) ? (float3(Metallic_Color.x,Metallic_Color.y,Metallic_Color.z)) : float3(Local53.x,Local53.y,Local53.z));
|
| 257 |
+
float Local55 = (CustomizedUV0_mdl.x * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).x);
|
| 258 |
+
float Local56 = (CustomizedUV0_mdl.y * float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).y);
|
| 259 |
+
float2 Local57 = (Local0 + float2(Local55,Local56));
|
| 260 |
+
float Local58 = (float3(Specular_UVA.x,Specular_UVA.y,Specular_UVA.z).z / Local4);
|
| 261 |
+
float Local59 = (Local58 * 6.283185);
|
| 262 |
+
float Local60 = math::cos(Local59);
|
| 263 |
+
float Local61 = math::sin(Local59);
|
| 264 |
+
float Local62 = (Local61 * -1.0);
|
| 265 |
+
float Local63 = math::dot(Local57, float2(Local60,Local62));
|
| 266 |
+
float Local64 = math::dot(Local57, float2(Local61,Local60));
|
| 267 |
+
float2 Local65 = (float2(0.5,0.5) + float2(Local63,Local64));
|
| 268 |
+
float4 Local66 = tex::lookup_float4(Specular_Tex,float2(Local65.x,1.0-Local65.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 269 |
+
float3 Local67 = ((math::abs(IsSpecularTex - 1.0) > 0.00001) ? (float3(Specular_Color.x,Specular_Color.y,Specular_Color.z)) : float3(Local66.x,Local66.y,Local66.z));
|
| 270 |
+
float Local68 = (CustomizedUV0_mdl.x * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).x);
|
| 271 |
+
float Local69 = (CustomizedUV0_mdl.y * float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).y);
|
| 272 |
+
float2 Local70 = (Local0 + float2(Local68,Local69));
|
| 273 |
+
float Local71 = (float3(Gloss_UVA.x,Gloss_UVA.y,Gloss_UVA.z).z / Local4);
|
| 274 |
+
float Local72 = (Local71 * 6.283185);
|
| 275 |
+
float Local73 = math::cos(Local72);
|
| 276 |
+
float Local74 = math::sin(Local72);
|
| 277 |
+
float Local75 = (Local74 * -1.0);
|
| 278 |
+
float Local76 = math::dot(Local70, float2(Local73,Local75));
|
| 279 |
+
float Local77 = math::dot(Local70, float2(Local74,Local73));
|
| 280 |
+
float2 Local78 = (float2(0.5,0.5) + float2(Local76,Local77));
|
| 281 |
+
float4 Local79 = tex::lookup_float4(Gloss_Tex,float2(Local78.x,1.0-Local78.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 282 |
+
float3 Local80 = ((math::abs(IsGlossTex - 1.0) > 0.00001) ? (float3(Gloss_Color.x,Gloss_Color.y,Gloss_Color.z)) : float3(Local79.x,Local79.y,Local79.z));
|
| 283 |
+
float3 Local81 = (1.0 - Local80);
|
| 284 |
+
float Local89 = ((math::abs(SwitchRefraction - 1.0) > 0.01) ? (1.0) : FresnelB);
|
| 285 |
+
|
| 286 |
+
float3 EmissiveColor_mdl = Local28;
|
| 287 |
+
float Opacity_mdl = Opacity;
|
| 288 |
+
float OpacityMask_mdl = (math::saturate(Opacity) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 289 |
+
float3 BaseColor_mdl = Local41;
|
| 290 |
+
float Metallic_mdl = Local54.x;
|
| 291 |
+
float Specular_mdl = Local67.x;
|
| 292 |
+
float Roughness_mdl = Local81.x;
|
| 293 |
+
float2 Refraction_mdl = float2(Local89,Local89);
|
| 294 |
+
|
| 295 |
+
} in
|
| 296 |
+
::OmniUe4Translucent(
|
| 297 |
+
base_color: BaseColor_mdl,
|
| 298 |
+
metallic: Metallic_mdl,
|
| 299 |
+
roughness: Roughness_mdl,
|
| 300 |
+
specular: Specular_mdl,
|
| 301 |
+
normal: Normal_mdl,
|
| 302 |
+
opacity: Opacity_mdl,
|
| 303 |
+
opacity_mask: OpacityMask_mdl,
|
| 304 |
+
emissive_color: EmissiveColor_mdl,
|
| 305 |
+
displacement: WorldPositionOffset_mdl,
|
| 306 |
+
refraction: Refraction_mdl.x,
|
| 307 |
+
two_sided: false);
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/5f2adebdda754e40915d1330a61fa70c/.collect.mapping.json
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/5f2adebdda754e40915d1330a61fa70c/usd/5f2adebdda754e40915d1330a61fa70c.usd",
|
| 6 |
+
"source_hash": "8fb7ae4fd100b5a9032ce7294a499e679d19c5fd",
|
| 7 |
+
"target_url": "./5f2adebdda754e40915d1330a61fa70c.usd",
|
| 8 |
+
"target_hash": "6e044346d75a6c71b3068cf1543e17e8b6c64b4c"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/5f2adebdda754e40915d1330a61fa70c/usd/textures/5f2adebdda754e40915d1330a61fa70c_texture0.png",
|
| 12 |
+
"source_hash": "adb713b40290135e58fd324f108da6ac7f6e71b5",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5f2adebdda754e40915d1330a61fa70c_texture0.png",
|
| 14 |
+
"target_hash": "30389bf40cf9e537a39bdc97b4d22fbceb2086a6"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/5f2adebdda754e40915d1330a61fa70c/usd/textures/5f2adebdda754e40915d1330a61fa70c_texture1.png",
|
| 18 |
+
"source_hash": "f25e6ce8c7458a7cb7ef9b9e7d0e10cf61e2dab9",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5f2adebdda754e40915d1330a61fa70c_texture1.png",
|
| 20 |
+
"target_hash": "ff07b9bbe143252b114290c2ff7052d057a495d9"
|
| 21 |
+
}
|
| 22 |
+
]
|
| 23 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/5f2adebdda754e40915d1330a61fa70c/5f2adebdda754e40915d1330a61fa70c_annotation.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "5f2adebdda754e40915d1330a61fa70c",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "Cylindrical salt shaker with a smooth surface, rounded body, and a glossy finish.",
|
| 5 |
+
"material": "glass, plastic, metal",
|
| 6 |
+
"dimensions": "0.1 * 0.08 * 0.15",
|
| 7 |
+
"mass": 0.05,
|
| 8 |
+
"placement": [
|
| 9 |
+
"OnFloor",
|
| 10 |
+
"OnObject",
|
| 11 |
+
"OnTable"
|
| 12 |
+
],
|
| 13 |
+
"asset_type": "rigid",
|
| 14 |
+
"glb_size": 2.51,
|
| 15 |
+
"usd_size": 2.53,
|
| 16 |
+
"usd_material_softlink": false,
|
| 17 |
+
"source": "holodeck"
|
| 18 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/6bbab9de-26d1-4136-a232-72d4fdf0d4cb/6bbab9de-26d1-4136-a232-72d4fdf0d4cb_annotation.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "6bbab9de-26d1-4136-a232-72d4fdf0d4cb",
|
| 3 |
+
"category": "others",
|
| 4 |
+
"description": "Modern sugar bowl with a cylindrical white body, wooden lid, and circular metallic base.",
|
| 5 |
+
"material": "ceramic, wood, metal",
|
| 6 |
+
"dimensions": "0.2 * 0.2 * 0.15",
|
| 7 |
+
"mass": 0.35,
|
| 8 |
+
"placement": [
|
| 9 |
+
"OnObject",
|
| 10 |
+
"OnTable"
|
| 11 |
+
],
|
| 12 |
+
"asset_type": "rigid",
|
| 13 |
+
"glb_size": 1.36,
|
| 14 |
+
"usd_size": 1.45,
|
| 15 |
+
"usd_material_softlink": false,
|
| 16 |
+
"source": "blenderkit",
|
| 17 |
+
"internal": true
|
| 18 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/7218c60ede56775d76d74bf9a709cd7e/.collect.mapping.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"version": "1.0",
|
| 3 |
+
"file_records": [
|
| 4 |
+
{
|
| 5 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/GRScenes_assets/bottle/7218c60ede56775d76d74bf9a709cd7e/usd/7218c60ede56775d76d74bf9a709cd7e.usd",
|
| 6 |
+
"source_hash": "efef74e02589fdca82eba33db411bc5a7126deba",
|
| 7 |
+
"target_url": "./7218c60ede56775d76d74bf9a709cd7e.usd",
|
| 8 |
+
"target_hash": "ee415a882adda34d885080126009c4862e1c75a3"
|
| 9 |
+
},
|
| 10 |
+
{
|
| 11 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_color.png",
|
| 12 |
+
"source_hash": "781a5fed536e495efc14d6f1bdd0145198f43ed6",
|
| 13 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_color.png",
|
| 14 |
+
"target_hash": "c90cd7166b5ee59241e673fd6d525e52ee88deb9"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348400e3a30001d37701_normal.png",
|
| 18 |
+
"source_hash": "5eb2f2d9708a7be8887cb63c4fb3a0d02bb82b79",
|
| 19 |
+
"target_url": "./SubUSDs/textures/5e90348400e3a30001d37701_normal.png",
|
| 20 |
+
"target_hash": "c8155ca3235d9ef93711266be99344e8d37b2c22"
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348423bc840001617d7a_color.png",
|
| 24 |
+
"source_hash": "ff9f7fb7887e6a5e1614c46c89a62698b1f866bf",
|
| 25 |
+
"target_url": "./SubUSDs/textures/5e90348423bc840001617d7a_color.png",
|
| 26 |
+
"target_hash": "c5c2ddbf7d59870a591851619afbe5a00f8e15a1"
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e90348423bc840001617d7a_normal.png",
|
| 30 |
+
"source_hash": "b587ae15ea3c42a21f20e6a6d405a0916593c226",
|
| 31 |
+
"target_url": "./SubUSDs/textures/5e90348423bc840001617d7a_normal.png",
|
| 32 |
+
"target_hash": "89e0e71ea77a17f95cdd81fb3ad7bfa02aedb196"
|
| 33 |
+
},
|
| 34 |
+
{
|
| 35 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 36 |
+
"source_hash": "fd12e1ba80ae34fab4f7811e8b00542d1690f6c3",
|
| 37 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_gloss.png",
|
| 38 |
+
"target_hash": "bec524f9a72024484f7736684698b82a73d211b0"
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 42 |
+
"source_hash": "c80a5f14da319c6b29f9a0d9d9b4075f40c690d9",
|
| 43 |
+
"target_url": "./SubUSDs/textures/5e903484c6ff5a0001fe5b05_normal.png",
|
| 44 |
+
"target_hash": "dc425fafbea008492d834fd26273f9cc5ac74586"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/black.png",
|
| 48 |
+
"source_hash": "6451ba87de9c991758b87f310f3cdc035495c4ad",
|
| 49 |
+
"target_url": "./SubUSDs/textures/black.png",
|
| 50 |
+
"target_hash": "8738a474d682100d65194897f8b6e305cc66296c"
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/white.png",
|
| 54 |
+
"source_hash": "105ba82f4ce55892916c2f99a7dc9205dca034b8",
|
| 55 |
+
"target_url": "./SubUSDs/textures/white.png",
|
| 56 |
+
"target_hash": "1fc4a3eaba4beb70e41fc4038e0c8f14d2a838e0"
|
| 57 |
+
},
|
| 58 |
+
{
|
| 59 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 60 |
+
"source_hash": "32170c3613fafbf1b151b15aeeb63ed713a5e4af",
|
| 61 |
+
"target_url": "./SubUSDs/materials/Num5d4e3b9f0340ad000170b34b.mdl",
|
| 62 |
+
"target_hash": "1276727d6eaa7ea5a1febd6eb62b496a84660214"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/Num6526327829931a0001adab0d.mdl",
|
| 66 |
+
"source_hash": "421a5a23c87e789d4ed510635e6ad4c5c7f977d2",
|
| 67 |
+
"target_url": "./SubUSDs/materials/Num6526327829931a0001adab0d.mdl",
|
| 68 |
+
"target_hash": "0bfdc0431b171c3e598aa31fcffa852fff2dc5c2"
|
| 69 |
+
},
|
| 70 |
+
{
|
| 71 |
+
"source_url": "/cpfs/shared/simulation/maojian/benchmark_use_processed/salt_bottle/GRScenes/Material/mdl/textures/normal.png",
|
| 72 |
+
"source_hash": "046867163ab89ce073a449af37f963786e03c43e",
|
| 73 |
+
"target_url": "./SubUSDs/textures/normal.png",
|
| 74 |
+
"target_hash": "97160317a2ee2d9ec34eff4b75f442a01c78ee05"
|
| 75 |
+
}
|
| 76 |
+
]
|
| 77 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/7218c60ede56775d76d74bf9a709cd7e/7218c60ede56775d76d74bf9a709cd7e_annotation.json
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"uid": "7218c60ede56775d76d74bf9a709cd7e",
|
| 3 |
+
"category": "bottle",
|
| 4 |
+
"description": "",
|
| 5 |
+
"material": "",
|
| 6 |
+
"dimensions": "0.08 * 0.15 * 0.08",
|
| 7 |
+
"mass": "",
|
| 8 |
+
"placement": [],
|
| 9 |
+
"asset_type": "rigid",
|
| 10 |
+
"glb_size": 4.670234680175781,
|
| 11 |
+
"usd_size": 5.309653282165527,
|
| 12 |
+
"urdf_size": null,
|
| 13 |
+
"orientation": 0,
|
| 14 |
+
"usd_material_softlink": true
|
| 15 |
+
}
|
assets/object_usds/custom_usd/ebench_usds/salt_bottle/ready/5ba5959ecc044c5fa44dded4c75ea25a/5ba5959ecc044c5fa44dded4c75ea25a.usd
ADDED
|
Binary file (27.9 kB). View file
|
|
|
assets/object_usds/custom_usd/ebench_usds/salt_new/subset_manifest.json
ADDED
|
@@ -0,0 +1,161 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"src_root": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1",
|
| 3 |
+
"dst_root": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10",
|
| 4 |
+
"uids": [
|
| 5 |
+
"0309dcb2f1cff82e56b5928b8258b489",
|
| 6 |
+
"1a900e94264d9104f45200db6e0b5e5c",
|
| 7 |
+
"2475b1d276562a0152bb481253b15d9a",
|
| 8 |
+
"471d4d7acbc09edb085f4bfdac8bb2cc",
|
| 9 |
+
"55c75d1633a577833010793d58dfee58",
|
| 10 |
+
"173e246d5eb10f81265e2c174de2101d",
|
| 11 |
+
"23f1d3ecc9f811bdcd7b4f9a169f9f9f",
|
| 12 |
+
"45d5b1701028fc00adc75c5c76042cde",
|
| 13 |
+
"501a5ac3cbdae92226c51c349e4e6a17",
|
| 14 |
+
"7218c60ede56775d76d74bf9a709cd7e"
|
| 15 |
+
],
|
| 16 |
+
"dry_run": false,
|
| 17 |
+
"incremental": true,
|
| 18 |
+
"assets": [
|
| 19 |
+
{
|
| 20 |
+
"category": "bottle",
|
| 21 |
+
"uid": "0309dcb2f1cff82e56b5928b8258b489",
|
| 22 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/0309dcb2f1cff82e56b5928b8258b489",
|
| 23 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/0309dcb2f1cff82e56b5928b8258b489"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"category": "bottle",
|
| 27 |
+
"uid": "1a900e94264d9104f45200db6e0b5e5c",
|
| 28 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/1a900e94264d9104f45200db6e0b5e5c",
|
| 29 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/1a900e94264d9104f45200db6e0b5e5c"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"category": "bottle",
|
| 33 |
+
"uid": "2475b1d276562a0152bb481253b15d9a",
|
| 34 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/2475b1d276562a0152bb481253b15d9a",
|
| 35 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/2475b1d276562a0152bb481253b15d9a"
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"category": "bottle",
|
| 39 |
+
"uid": "471d4d7acbc09edb085f4bfdac8bb2cc",
|
| 40 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/471d4d7acbc09edb085f4bfdac8bb2cc",
|
| 41 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/471d4d7acbc09edb085f4bfdac8bb2cc"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"category": "bottle",
|
| 45 |
+
"uid": "55c75d1633a577833010793d58dfee58",
|
| 46 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/55c75d1633a577833010793d58dfee58",
|
| 47 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/55c75d1633a577833010793d58dfee58"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"category": "bottle",
|
| 51 |
+
"uid": "173e246d5eb10f81265e2c174de2101d",
|
| 52 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/173e246d5eb10f81265e2c174de2101d",
|
| 53 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/173e246d5eb10f81265e2c174de2101d"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"category": "bottle",
|
| 57 |
+
"uid": "23f1d3ecc9f811bdcd7b4f9a169f9f9f",
|
| 58 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f",
|
| 59 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f"
|
| 60 |
+
},
|
| 61 |
+
{
|
| 62 |
+
"category": "bottle",
|
| 63 |
+
"uid": "45d5b1701028fc00adc75c5c76042cde",
|
| 64 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/45d5b1701028fc00adc75c5c76042cde",
|
| 65 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/45d5b1701028fc00adc75c5c76042cde"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"category": "bottle",
|
| 69 |
+
"uid": "501a5ac3cbdae92226c51c349e4e6a17",
|
| 70 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/501a5ac3cbdae92226c51c349e4e6a17",
|
| 71 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/501a5ac3cbdae92226c51c349e4e6a17"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"category": "bottle",
|
| 75 |
+
"uid": "7218c60ede56775d76d74bf9a709cd7e",
|
| 76 |
+
"src_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/7218c60ede56775d76d74bf9a709cd7e",
|
| 77 |
+
"dst_dir": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/GRScenes_assets/bottle/7218c60ede56775d76d74bf9a709cd7e"
|
| 78 |
+
}
|
| 79 |
+
],
|
| 80 |
+
"usd_files_scanned": [
|
| 81 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/0309dcb2f1cff82e56b5928b8258b489/usd/0309dcb2f1cff82e56b5928b8258b489.usd",
|
| 82 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/173e246d5eb10f81265e2c174de2101d/usd/173e246d5eb10f81265e2c174de2101d.usd",
|
| 83 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/1a900e94264d9104f45200db6e0b5e5c/usd/1a900e94264d9104f45200db6e0b5e5c.usd",
|
| 84 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/23f1d3ecc9f811bdcd7b4f9a169f9f9f/usd/23f1d3ecc9f811bdcd7b4f9a169f9f9f.usd",
|
| 85 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/2475b1d276562a0152bb481253b15d9a/usd/2475b1d276562a0152bb481253b15d9a.usd",
|
| 86 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/45d5b1701028fc00adc75c5c76042cde/usd/45d5b1701028fc00adc75c5c76042cde.usd",
|
| 87 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/471d4d7acbc09edb085f4bfdac8bb2cc/usd/471d4d7acbc09edb085f4bfdac8bb2cc.usd",
|
| 88 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/501a5ac3cbdae92226c51c349e4e6a17/usd/501a5ac3cbdae92226c51c349e4e6a17.usd",
|
| 89 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/55c75d1633a577833010793d58dfee58/usd/55c75d1633a577833010793d58dfee58.usd",
|
| 90 |
+
"/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/GRScenes_assets/bottle/7218c60ede56775d76d74bf9a709cd7e/usd/7218c60ede56775d76d74bf9a709cd7e.usd"
|
| 91 |
+
],
|
| 92 |
+
"asset_copy": {
|
| 93 |
+
"copied_files": 70,
|
| 94 |
+
"skipped_files": 0
|
| 95 |
+
},
|
| 96 |
+
"material": {
|
| 97 |
+
"src_mdl_root": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/GRScenes-test1/Material/mdl",
|
| 98 |
+
"dst_mdl_root": "/cpfs/shared/simulation/zhuzihou/dev/usd-scene-physics-prep/subsets/grscenes_uid_subset_10/Material/mdl",
|
| 99 |
+
"initial_mdl_rel": [
|
| 100 |
+
"Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 101 |
+
"Num5c42abdd0b160a309e6794aa.mdl",
|
| 102 |
+
"Num5d4e3b9f0340ad000170b34b.mdl",
|
| 103 |
+
"Num5d56604a620e2c0001aa6833.mdl",
|
| 104 |
+
"Num614415bd5c26590001b09b16.mdl",
|
| 105 |
+
"Num6526327829931a0001adab0d.mdl"
|
| 106 |
+
],
|
| 107 |
+
"all_mdl_rel": [
|
| 108 |
+
"Num5b7bd4d1b21bf209e7fbfc92.mdl",
|
| 109 |
+
"Num5c42abdd0b160a309e6794aa.mdl",
|
| 110 |
+
"Num5d4e3b9f0340ad000170b34b.mdl",
|
| 111 |
+
"Num5d56604a620e2c0001aa6833.mdl",
|
| 112 |
+
"Num614415bd5c26590001b09b16.mdl",
|
| 113 |
+
"Num6526327829931a0001adab0d.mdl",
|
| 114 |
+
"OmniUe4Base.mdl",
|
| 115 |
+
"OmniUe4Function.mdl",
|
| 116 |
+
"OmniUe4Translucent.mdl"
|
| 117 |
+
],
|
| 118 |
+
"missing_mdls": [],
|
| 119 |
+
"copied_mdls": 9,
|
| 120 |
+
"skipped_mdls": 0,
|
| 121 |
+
"textures_suffixes": [
|
| 122 |
+
"5d5d2e370b160a0001c97597_color.png",
|
| 123 |
+
"5d5d2e370b160a0001c97597_metallic.png",
|
| 124 |
+
"5d5d2e370b160a0001c97598_color.png",
|
| 125 |
+
"5d5d2e370b160a0001c97598_metallic.png",
|
| 126 |
+
"5d7360d2447e4e0001b659f3_color.png",
|
| 127 |
+
"5d7360d2447e4e0001b659f3_normal.png",
|
| 128 |
+
"5d7360d2447e4e0001b659f4_color.png",
|
| 129 |
+
"5e90348400e3a30001d37701_color.png",
|
| 130 |
+
"5e90348400e3a30001d37701_normal.png",
|
| 131 |
+
"5e90348423bc840001617d7a_color.png",
|
| 132 |
+
"5e90348423bc840001617d7a_normal.png",
|
| 133 |
+
"5e9034845b896900019658f8_color.png",
|
| 134 |
+
"5e9034845b896900019658f8_normal.png",
|
| 135 |
+
"5e9034847d6a630001d276aa_color.png",
|
| 136 |
+
"5e9034847d6a630001d276aa_normal.png",
|
| 137 |
+
"5e903484c6ff5a0001fe5b05_gloss.png",
|
| 138 |
+
"5e903484c6ff5a0001fe5b05_normal.png",
|
| 139 |
+
"5e903484e113f600019cef4d_color.png",
|
| 140 |
+
"5e903484e113f600019cef4d_normal.png",
|
| 141 |
+
"60b34372c9c5fa000140d16c_color.png",
|
| 142 |
+
"60b34372c9c5fa000140d16c_metallic.png",
|
| 143 |
+
"60b34372efa6d0000156e00f_color.png",
|
| 144 |
+
"60b34372efa6d0000156e00f_metallic.png",
|
| 145 |
+
"60b34372efa6d0000156e00f_normal.png",
|
| 146 |
+
"black.png",
|
| 147 |
+
"normal.png",
|
| 148 |
+
"white.png"
|
| 149 |
+
],
|
| 150 |
+
"missing_textures": [],
|
| 151 |
+
"copied_textures": 27,
|
| 152 |
+
"skipped_textures": 0,
|
| 153 |
+
"usd_missing_asset_refs": []
|
| 154 |
+
},
|
| 155 |
+
"verify": {
|
| 156 |
+
"usd_count": 10,
|
| 157 |
+
"missing_asset_refs": [],
|
| 158 |
+
"missing_count": 0
|
| 159 |
+
},
|
| 160 |
+
"usd_textures_symlink": null
|
| 161 |
+
}
|
assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/DayMaterial.mdl
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.6;
|
| 2 |
+
|
| 3 |
+
import ::math::*;
|
| 4 |
+
import ::state::*;
|
| 5 |
+
import ::tex::*;
|
| 6 |
+
import ::anno::*;
|
| 7 |
+
using OmniUe4Function import *;
|
| 8 |
+
using OmniUe4Translucent import *;
|
| 9 |
+
|
| 10 |
+
export annotation sampler_color();
|
| 11 |
+
export annotation sampler_normal();
|
| 12 |
+
export annotation sampler_grayscale();
|
| 13 |
+
export annotation sampler_alpha();
|
| 14 |
+
export annotation sampler_masks();
|
| 15 |
+
export annotation sampler_distancefield();
|
| 16 |
+
export annotation dither_masked_off();
|
| 17 |
+
export annotation world_space_normal();
|
| 18 |
+
|
| 19 |
+
export material DayMaterial(
|
| 20 |
+
float Flat = 1.0
|
| 21 |
+
[[
|
| 22 |
+
anno::display_name("Flat"),
|
| 23 |
+
anno::ui_order(32)
|
| 24 |
+
]],
|
| 25 |
+
uniform texture_2d img = texture_2d("../textures/white.png",::tex::gamma_srgb)
|
| 26 |
+
[[
|
| 27 |
+
anno::display_name("img"),
|
| 28 |
+
anno::ui_order(32),
|
| 29 |
+
sampler_color()
|
| 30 |
+
]],
|
| 31 |
+
int MaxTexCoordIndex = 3
|
| 32 |
+
[[
|
| 33 |
+
anno::hidden()
|
| 34 |
+
]])
|
| 35 |
+
=
|
| 36 |
+
let {
|
| 37 |
+
float3 WorldPositionOffset_mdl = float3(0.0,0.0,0.0);
|
| 38 |
+
float2 CustomizedUV0_mdl = float2(state::texture_coordinate(math::min(0,MaxTexCoordIndex)).x,1.0-state::texture_coordinate(math::min(0,MaxTexCoordIndex)).y);
|
| 39 |
+
|
| 40 |
+
|
| 41 |
+
float3 Normal_mdl = float3(0.0,0.0,1.0);
|
| 42 |
+
|
| 43 |
+
float4 Local0 = tex::lookup_float4(img,float2(CustomizedUV0_mdl.x,1.0-CustomizedUV0_mdl.y),tex::wrap_repeat,tex::wrap_repeat);
|
| 44 |
+
float3 Local1 = (Flat * float3(Local0.x,Local0.y,Local0.z));
|
| 45 |
+
|
| 46 |
+
float3 EmissiveColor_mdl = Local1;
|
| 47 |
+
float Opacity_mdl = Local0.w;
|
| 48 |
+
float OpacityMask_mdl = (math::saturate(Local0.w) - 1.0f / 255.0f) < 0.0f ? 0.0f : 1.0f;
|
| 49 |
+
float3 BaseColor_mdl = float3(0.0,0.0,0.0);
|
| 50 |
+
float Metallic_mdl = 0.0;
|
| 51 |
+
float Specular_mdl = 0.5;
|
| 52 |
+
float Roughness_mdl = 0.5;
|
| 53 |
+
float2 Refraction_mdl = float2(float2(1.0,0.0).x,float2(1.0,0.0).x);
|
| 54 |
+
|
| 55 |
+
} in
|
| 56 |
+
::OmniUe4Translucent(
|
| 57 |
+
base_color: BaseColor_mdl,
|
| 58 |
+
metallic: Metallic_mdl,
|
| 59 |
+
roughness: Roughness_mdl,
|
| 60 |
+
specular: Specular_mdl,
|
| 61 |
+
normal: Normal_mdl,
|
| 62 |
+
opacity: Opacity_mdl,
|
| 63 |
+
opacity_mask: OpacityMask_mdl,
|
| 64 |
+
emissive_color: EmissiveColor_mdl,
|
| 65 |
+
displacement: WorldPositionOffset_mdl,
|
| 66 |
+
refraction: Refraction_mdl.x,
|
| 67 |
+
two_sided: false);
|
assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/KooPbr.mdl
ADDED
|
@@ -0,0 +1,462 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::anno::*;
|
| 6 |
+
import ::df::*;
|
| 7 |
+
import ::df::color_weighted_layer;
|
| 8 |
+
import ::math::*;
|
| 9 |
+
import ::state::*;
|
| 10 |
+
|
| 11 |
+
export material KooMtl2Sided(
|
| 12 |
+
material frontMtl = material() [[
|
| 13 |
+
anno::in_group("Parameters"),
|
| 14 |
+
anno::display_name("Front material")
|
| 15 |
+
]],
|
| 16 |
+
material backMtl = frontMtl [[
|
| 17 |
+
anno::in_group("Parameters"),
|
| 18 |
+
anno::display_name("Back material")
|
| 19 |
+
]],
|
| 20 |
+
uniform bool use_backMtl = false [[
|
| 21 |
+
anno::in_group("Parameters"),
|
| 22 |
+
anno::display_name("Use back material")
|
| 23 |
+
]],
|
| 24 |
+
color translucency = color(0.5f, 0.5f, 0.5f) [[
|
| 25 |
+
anno::in_group("Basic parameters"),
|
| 26 |
+
anno::display_name("Translucency")
|
| 27 |
+
]],
|
| 28 |
+
color front_tint = color(1.f, 1.f, 1.f) [[
|
| 29 |
+
anno::in_group("Parameters"),
|
| 30 |
+
anno::display_name("Front tint"),
|
| 31 |
+
anno::hidden()
|
| 32 |
+
]],
|
| 33 |
+
color back_tint = color(1.f, 1.f, 1.f) [[
|
| 34 |
+
anno::in_group("Parameters"),
|
| 35 |
+
anno::display_name("Back tint"),
|
| 36 |
+
anno::hidden()
|
| 37 |
+
]],
|
| 38 |
+
uniform bool multiply_by_front_diffuse = false [[
|
| 39 |
+
anno::in_group("Basic parameters"),
|
| 40 |
+
anno::display_name("Multiply by front diffuse"),
|
| 41 |
+
anno::unused(),
|
| 42 |
+
anno::hidden()
|
| 43 |
+
]])
|
| 44 |
+
[[
|
| 45 |
+
anno::author("KooLab")
|
| 46 |
+
]]
|
| 47 |
+
=
|
| 48 |
+
let {
|
| 49 |
+
bsdf transmission_bsdf =
|
| 50 |
+
df::diffuse_transmission_bsdf(tint: (front_tint + back_tint)*0.5f);
|
| 51 |
+
|
| 52 |
+
bsdf front_bsdf =
|
| 53 |
+
df::color_weighted_layer
|
| 54 |
+
(
|
| 55 |
+
weight : translucency,
|
| 56 |
+
layer : transmission_bsdf,
|
| 57 |
+
base : frontMtl.surface.scattering
|
| 58 |
+
);
|
| 59 |
+
|
| 60 |
+
bsdf back_bsdf =
|
| 61 |
+
df::color_weighted_layer
|
| 62 |
+
(
|
| 63 |
+
weight : translucency,
|
| 64 |
+
layer : transmission_bsdf,
|
| 65 |
+
base : backMtl.surface.scattering
|
| 66 |
+
);
|
| 67 |
+
} in
|
| 68 |
+
material(
|
| 69 |
+
thin_walled: true,
|
| 70 |
+
ior: frontMtl.ior,
|
| 71 |
+
surface: material_surface(scattering: front_bsdf),
|
| 72 |
+
backface: material_surface(scattering: use_backMtl ? back_bsdf : front_bsdf),
|
| 73 |
+
volume: frontMtl.volume,
|
| 74 |
+
geometry: frontMtl.geometry
|
| 75 |
+
);
|
| 76 |
+
|
| 77 |
+
float emissive_multiplier() uniform
|
| 78 |
+
[[
|
| 79 |
+
anno::description("unit conversion from pbrjson emission to mdl"),
|
| 80 |
+
anno::noinline()
|
| 81 |
+
]]
|
| 82 |
+
{
|
| 83 |
+
return 2560.f;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
export material KooLightMtl(
|
| 87 |
+
color emission = color(1.f, 1.f, 1.f) [[
|
| 88 |
+
anno::in_group("Parameters"),
|
| 89 |
+
anno::display_name("Emission")
|
| 90 |
+
]],
|
| 91 |
+
uniform float emission_mult = 1.f [[
|
| 92 |
+
anno::in_group("Parameters"),
|
| 93 |
+
anno::display_name("Mutliplier")
|
| 94 |
+
]],
|
| 95 |
+
color opacity = color(1.f, 1.f, 1.f) [[
|
| 96 |
+
anno::in_group("Parameters"),
|
| 97 |
+
anno::display_name("Opacity")
|
| 98 |
+
]],
|
| 99 |
+
uniform bool emit_on_backside = false [[
|
| 100 |
+
anno::in_group("Parameters"),
|
| 101 |
+
anno::display_name("Emit light on back side")
|
| 102 |
+
]])
|
| 103 |
+
[[
|
| 104 |
+
anno::author("KooLab")
|
| 105 |
+
]]
|
| 106 |
+
=
|
| 107 |
+
let {
|
| 108 |
+
color emission_color = (emission*opacity)*emission_mult * emissive_multiplier();
|
| 109 |
+
|
| 110 |
+
bsdf surface_bsdf =
|
| 111 |
+
df::simple_glossy_bsdf
|
| 112 |
+
(
|
| 113 |
+
mode: df::scatter_transmit,
|
| 114 |
+
tint: color(1.f) - opacity,
|
| 115 |
+
roughness_u: 0
|
| 116 |
+
);
|
| 117 |
+
|
| 118 |
+
material_surface emit_surface = material_surface(
|
| 119 |
+
scattering: surface_bsdf,
|
| 120 |
+
emission: material_emission(
|
| 121 |
+
emission: df::diffuse_edf(),
|
| 122 |
+
intensity: emission_color)
|
| 123 |
+
);
|
| 124 |
+
} in
|
| 125 |
+
material(
|
| 126 |
+
thin_walled: emit_on_backside,
|
| 127 |
+
ior: color(1.f),
|
| 128 |
+
surface: emit_surface,
|
| 129 |
+
backface: emit_on_backside ? emit_surface : material_surface()
|
| 130 |
+
);
|
| 131 |
+
|
| 132 |
+
export material KooMtl(
|
| 133 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 134 |
+
anno::in_group("Diffuse Parameters"),
|
| 135 |
+
anno::display_name("diffuse")
|
| 136 |
+
]],
|
| 137 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 138 |
+
anno::in_group("Reflections"),
|
| 139 |
+
anno::display_name("reflect")
|
| 140 |
+
]],
|
| 141 |
+
float reflect_glossiness = 1.f [[
|
| 142 |
+
anno::in_group("Reflections"),
|
| 143 |
+
anno::display_name("Glossiness"),
|
| 144 |
+
anno::hard_range(0.f, 1.f)
|
| 145 |
+
]],
|
| 146 |
+
uniform bool fresnel = true [[
|
| 147 |
+
anno::in_group("Reflections"),
|
| 148 |
+
anno::display_name("Fresnel reflections")
|
| 149 |
+
]],
|
| 150 |
+
float fresnel_ior = 1.6f [[
|
| 151 |
+
anno::in_group("Reflections"),
|
| 152 |
+
anno::display_name("Fresnel IOR"),
|
| 153 |
+
anno::hard_range(0.2f, 5.f)
|
| 154 |
+
]],
|
| 155 |
+
uniform bool fresnel_ior_lock = true [[
|
| 156 |
+
anno::in_group("Reflections"),
|
| 157 |
+
anno::display_name("Lock IOR")
|
| 158 |
+
]],
|
| 159 |
+
uniform bool invert_reflection_ior = false [[
|
| 160 |
+
anno::in_group("Reflections"),
|
| 161 |
+
anno::hidden()
|
| 162 |
+
]],
|
| 163 |
+
float reflection_metalness = 0.f [[
|
| 164 |
+
anno::in_group("Reflections"),
|
| 165 |
+
anno::display_name("Metalness"),
|
| 166 |
+
anno::hard_range(0.f, 1.f)
|
| 167 |
+
]],
|
| 168 |
+
uniform float refract_ior = 1.6f [[
|
| 169 |
+
anno::in_group("Refractions"),
|
| 170 |
+
anno::display_name("IOR"),
|
| 171 |
+
anno::soft_range(0.2f, 5.f),
|
| 172 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 173 |
+
]],
|
| 174 |
+
uniform bool invert_refraction_ior = false [[
|
| 175 |
+
anno::in_group("Refractions"),
|
| 176 |
+
anno::hidden()
|
| 177 |
+
]],
|
| 178 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 179 |
+
anno::in_group("Self-Illumination"),
|
| 180 |
+
anno::display_name("Self-illumination")
|
| 181 |
+
]],
|
| 182 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 183 |
+
anno::in_group("Self-Illumination"),
|
| 184 |
+
anno::display_name("Self-Illumination Intensity")
|
| 185 |
+
]],
|
| 186 |
+
float anisotropy = 0.f [[
|
| 187 |
+
anno::in_group("BRDF"),
|
| 188 |
+
anno::display_name("Anisotropy"),
|
| 189 |
+
anno::hard_range(-1.f, 1.f),
|
| 190 |
+
anno::unused(),
|
| 191 |
+
anno::hidden()
|
| 192 |
+
]],
|
| 193 |
+
float anisotropy_rotation = 0.f [[
|
| 194 |
+
anno::in_group("BRDF"),
|
| 195 |
+
anno::display_name("Rotation"),
|
| 196 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 197 |
+
anno::unused(),
|
| 198 |
+
anno::hidden()
|
| 199 |
+
]],
|
| 200 |
+
float3 texmap_bump = state::normal() [[
|
| 201 |
+
anno::in_group("Maps"),
|
| 202 |
+
anno::display_name("Bump Map")
|
| 203 |
+
]],
|
| 204 |
+
float opacity = 1.f [[
|
| 205 |
+
anno::in_group("Maps"),
|
| 206 |
+
anno::display_name("Opacity Map")
|
| 207 |
+
]],
|
| 208 |
+
uniform bool thin_walled = false [[
|
| 209 |
+
anno::in_group("Options"),
|
| 210 |
+
anno::hidden()
|
| 211 |
+
]])
|
| 212 |
+
[[
|
| 213 |
+
anno::author("KooLab")
|
| 214 |
+
]]
|
| 215 |
+
=
|
| 216 |
+
let {
|
| 217 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 218 |
+
|
| 219 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 220 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 221 |
+
|
| 222 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 223 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 224 |
+
|
| 225 |
+
bsdf diffuse_bsdf =
|
| 226 |
+
df::weighted_layer
|
| 227 |
+
(
|
| 228 |
+
weight : 1.f,
|
| 229 |
+
layer : df::diffuse_reflection_bsdf
|
| 230 |
+
(
|
| 231 |
+
tint : diffuse,
|
| 232 |
+
roughness : 0.0f
|
| 233 |
+
),
|
| 234 |
+
normal : texmap_bump
|
| 235 |
+
);
|
| 236 |
+
|
| 237 |
+
bsdf glossy_reflection_bsdf =
|
| 238 |
+
df::simple_glossy_bsdf(
|
| 239 |
+
mode: df::scatter_reflect,
|
| 240 |
+
tint: fresnel ? reflect : color(1.f),
|
| 241 |
+
roughness_u: reflection_roughness
|
| 242 |
+
);
|
| 243 |
+
|
| 244 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 245 |
+
df::simple_glossy_bsdf(
|
| 246 |
+
mode: df::scatter_reflect,
|
| 247 |
+
tint: diffuse,
|
| 248 |
+
roughness_u: reflection_roughness
|
| 249 |
+
);
|
| 250 |
+
|
| 251 |
+
bsdf surface_bsdf =
|
| 252 |
+
df::color_custom_curve_layer
|
| 253 |
+
(
|
| 254 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 255 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 256 |
+
layer : glossy_reflection_bsdf,
|
| 257 |
+
base :
|
| 258 |
+
df::weighted_layer
|
| 259 |
+
(
|
| 260 |
+
weight : reflection_metalness,
|
| 261 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 262 |
+
base : diffuse_bsdf,
|
| 263 |
+
normal : texmap_bump
|
| 264 |
+
),
|
| 265 |
+
normal : texmap_bump
|
| 266 |
+
);
|
| 267 |
+
} in
|
| 268 |
+
material
|
| 269 |
+
(
|
| 270 |
+
ior : color(refr_ior),
|
| 271 |
+
thin_walled : thin_walled,
|
| 272 |
+
surface : material_surface
|
| 273 |
+
(
|
| 274 |
+
scattering : surface_bsdf,
|
| 275 |
+
emission : material_emission
|
| 276 |
+
(
|
| 277 |
+
emission : df::diffuse_edf(),
|
| 278 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 279 |
+
)
|
| 280 |
+
),
|
| 281 |
+
geometry : material_geometry
|
| 282 |
+
(
|
| 283 |
+
cutout_opacity: opacity
|
| 284 |
+
)
|
| 285 |
+
);
|
| 286 |
+
|
| 287 |
+
export material KooTranslucentMtl(
|
| 288 |
+
color diffuse = color(0.5f, 0.5f, 0.5f) [[
|
| 289 |
+
anno::in_group("Diffuse Parameters"),
|
| 290 |
+
anno::display_name("Diffuse")
|
| 291 |
+
]],
|
| 292 |
+
color reflect = color(0.f, 0.f, 0.f) [[
|
| 293 |
+
anno::in_group("Reflections"),
|
| 294 |
+
anno::display_name("Reflect")
|
| 295 |
+
]],
|
| 296 |
+
float reflect_glossiness = 1.f [[
|
| 297 |
+
anno::in_group("Reflections"),
|
| 298 |
+
anno::display_name("Glossiness"),
|
| 299 |
+
anno::hard_range(0.f, 1.f)
|
| 300 |
+
]],
|
| 301 |
+
uniform bool fresnel = true [[
|
| 302 |
+
anno::in_group("Reflections"),
|
| 303 |
+
anno::display_name("Fresnel reflections")
|
| 304 |
+
]],
|
| 305 |
+
float fresnel_ior = 1.6f [[
|
| 306 |
+
anno::in_group("Reflections"),
|
| 307 |
+
anno::display_name("Fresnel IOR"),
|
| 308 |
+
anno::soft_range(0.2, 5.f),
|
| 309 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 310 |
+
]],
|
| 311 |
+
uniform bool fresnel_ior_lock = true [[
|
| 312 |
+
anno::in_group("Reflections"),
|
| 313 |
+
anno::display_name("Lock IOR")
|
| 314 |
+
]],
|
| 315 |
+
uniform bool invert_reflection_ior = false [[
|
| 316 |
+
anno::in_group("Reflections"),
|
| 317 |
+
anno::hidden()
|
| 318 |
+
]],
|
| 319 |
+
float reflection_metalness = 0.f [[
|
| 320 |
+
anno::in_group("Reflections"),
|
| 321 |
+
anno::display_name("Metalness"),
|
| 322 |
+
anno::hard_range(0.f, 1.f)
|
| 323 |
+
]],
|
| 324 |
+
color refract = color(0.f, 0.f, 0.f) [[
|
| 325 |
+
anno::in_group("Refractions"),
|
| 326 |
+
anno::display_name("Refract")
|
| 327 |
+
]],
|
| 328 |
+
float refract_glossiness = 1.f [[
|
| 329 |
+
anno::in_group("Refractions"),
|
| 330 |
+
anno::display_name("Glossiness"),
|
| 331 |
+
anno::hard_range(0.f, 1.f)
|
| 332 |
+
]],
|
| 333 |
+
uniform float refract_ior = 1.6f [[
|
| 334 |
+
anno::in_group("Refractions"),
|
| 335 |
+
anno::display_name("IOR"),
|
| 336 |
+
anno::soft_range(0.2f, 5.f),
|
| 337 |
+
anno::hard_range(1.0e-06f, 100.f)
|
| 338 |
+
]],
|
| 339 |
+
uniform bool invert_refraction_ior = false [[
|
| 340 |
+
anno::in_group("Refractions"),
|
| 341 |
+
anno::hidden()
|
| 342 |
+
]],
|
| 343 |
+
color self_illumination = color(0.f, 0.f, 0.f) [[
|
| 344 |
+
anno::in_group("Self-Illumination"),
|
| 345 |
+
anno::display_name("Self-illumination")
|
| 346 |
+
]],
|
| 347 |
+
uniform float self_illumination_multiplier = 1.f [[
|
| 348 |
+
anno::in_group("Self-Illumination"),
|
| 349 |
+
anno::display_name("Multiplier")
|
| 350 |
+
]],
|
| 351 |
+
float anisotropy = 0.f [[
|
| 352 |
+
anno::in_group("BRDF"),
|
| 353 |
+
anno::display_name("Anisotropy"),
|
| 354 |
+
anno::hard_range(-1.f, 1.f),
|
| 355 |
+
anno::unused(),
|
| 356 |
+
anno::hidden()
|
| 357 |
+
]],
|
| 358 |
+
float anisotropy_rotation = 0.f [[
|
| 359 |
+
anno::in_group("BRDF"),
|
| 360 |
+
anno::display_name("Rotation"),
|
| 361 |
+
anno::hard_range(-10000.f, 10000.f),
|
| 362 |
+
anno::unused(),
|
| 363 |
+
anno::hidden()
|
| 364 |
+
]],
|
| 365 |
+
float3 texmap_bump = state::normal() [[
|
| 366 |
+
anno::in_group("Maps"),
|
| 367 |
+
anno::display_name("Bump Map")
|
| 368 |
+
]],
|
| 369 |
+
float texmap_opacity = 1.f [[
|
| 370 |
+
anno::in_group("Maps"),
|
| 371 |
+
anno::display_name("Opacity Map")
|
| 372 |
+
]],
|
| 373 |
+
uniform bool thin_walled = false [[
|
| 374 |
+
anno::in_group("Options"),
|
| 375 |
+
anno::hidden()
|
| 376 |
+
]])
|
| 377 |
+
[[
|
| 378 |
+
anno::author("KooLab")
|
| 379 |
+
]]
|
| 380 |
+
=
|
| 381 |
+
let {
|
| 382 |
+
float reflection_roughness = math::pow((1.f - reflect_glossiness), 2.f);
|
| 383 |
+
|
| 384 |
+
float refraction_roughness = math::pow((1.f - refract_glossiness), 2.f);
|
| 385 |
+
|
| 386 |
+
float refl_ior = invert_reflection_ior ? 1.f/(fresnel_ior + 0.01f) : fresnel_ior;
|
| 387 |
+
float refr_ior = invert_refraction_ior ? 1.f/(refract_ior + 0.01f) : refract_ior;
|
| 388 |
+
|
| 389 |
+
float ior = fresnel_ior_lock ? refr_ior : refl_ior;
|
| 390 |
+
float R0 = math::pow((1.f - ior)/(1.f + ior), 2.f);
|
| 391 |
+
|
| 392 |
+
bsdf diffuse_bsdf =
|
| 393 |
+
df::weighted_layer
|
| 394 |
+
(
|
| 395 |
+
weight : 1.f,
|
| 396 |
+
layer : df::diffuse_reflection_bsdf
|
| 397 |
+
(
|
| 398 |
+
tint : diffuse,
|
| 399 |
+
roughness : 0.f
|
| 400 |
+
),
|
| 401 |
+
normal : texmap_bump
|
| 402 |
+
);
|
| 403 |
+
|
| 404 |
+
bsdf glossy_transmission_bsdf =
|
| 405 |
+
df::simple_glossy_bsdf(
|
| 406 |
+
mode: df::scatter_transmit,
|
| 407 |
+
tint: color(1.f),
|
| 408 |
+
roughness_u: refraction_roughness
|
| 409 |
+
);
|
| 410 |
+
|
| 411 |
+
bsdf glossy_reflection_bsdf =
|
| 412 |
+
df::simple_glossy_bsdf(
|
| 413 |
+
mode: df::scatter_reflect,
|
| 414 |
+
tint: fresnel ? reflect : color(1.f),
|
| 415 |
+
roughness_u: reflection_roughness
|
| 416 |
+
);
|
| 417 |
+
|
| 418 |
+
bsdf diffuse_glossy_reflection_bsdf =
|
| 419 |
+
df::simple_glossy_bsdf(
|
| 420 |
+
mode: df::scatter_reflect,
|
| 421 |
+
tint: diffuse,
|
| 422 |
+
roughness_u: reflection_roughness
|
| 423 |
+
);
|
| 424 |
+
|
| 425 |
+
bsdf surface_bsdf =
|
| 426 |
+
df::color_custom_curve_layer
|
| 427 |
+
(
|
| 428 |
+
normal_reflectivity : fresnel ? color(R0) : reflect,
|
| 429 |
+
grazing_reflectivity: fresnel ? color(1.f) : reflect,
|
| 430 |
+
layer : glossy_reflection_bsdf,
|
| 431 |
+
base :
|
| 432 |
+
df::weighted_layer
|
| 433 |
+
(
|
| 434 |
+
weight : reflection_metalness,
|
| 435 |
+
layer : diffuse_glossy_reflection_bsdf,
|
| 436 |
+
base :
|
| 437 |
+
df::color_weighted_layer
|
| 438 |
+
(
|
| 439 |
+
weight : refract,
|
| 440 |
+
layer : glossy_transmission_bsdf,
|
| 441 |
+
base : diffuse_bsdf,
|
| 442 |
+
normal : texmap_bump
|
| 443 |
+
),
|
| 444 |
+
normal : texmap_bump
|
| 445 |
+
),
|
| 446 |
+
normal : texmap_bump
|
| 447 |
+
);
|
| 448 |
+
} in
|
| 449 |
+
material(
|
| 450 |
+
thin_walled : thin_walled,
|
| 451 |
+
ior : color(refr_ior),
|
| 452 |
+
surface : material_surface
|
| 453 |
+
(
|
| 454 |
+
scattering : surface_bsdf,
|
| 455 |
+
emission : material_emission
|
| 456 |
+
(
|
| 457 |
+
emission : df::diffuse_edf(),
|
| 458 |
+
intensity : self_illumination*self_illumination_multiplier
|
| 459 |
+
)
|
| 460 |
+
),
|
| 461 |
+
geometry : material_geometry(cutout_opacity: texmap_opacity)
|
| 462 |
+
);
|
assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0333071a0001d129d2.mdl
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
import ::KooPbr::KooMtl;
|
| 7 |
+
import ::anno::description;
|
| 8 |
+
|
| 9 |
+
export material MI_6576cd0333071a0001d129d2(*)
|
| 10 |
+
[[
|
| 11 |
+
anno::description("{\"status\":0,\"tag\":[0,14,998],\"version\":\"1.4.0\"}")
|
| 12 |
+
]]
|
| 13 |
+
= KooPbr::KooMtl(
|
| 14 |
+
diffuse: color(0.003899999894f, 0.003899999894f, 0.003899999894f),
|
| 15 |
+
reflect: color(0.5490000248f, 0.5490000248f, 0.5490000248f),
|
| 16 |
+
reflect_glossiness: 1.f,
|
| 17 |
+
fresnel: true,
|
| 18 |
+
fresnel_ior: 1.600000024f,
|
| 19 |
+
fresnel_ior_lock: true,
|
| 20 |
+
invert_reflection_ior: false,
|
| 21 |
+
reflection_metalness: 0.f,
|
| 22 |
+
refract_ior: 1.600000024f,
|
| 23 |
+
invert_refraction_ior: false,
|
| 24 |
+
self_illumination: color(0.f, 0.f, 0.f),
|
| 25 |
+
self_illumination_multiplier: 1.f,
|
| 26 |
+
anisotropy: 0.f,
|
| 27 |
+
anisotropy_rotation: 0.f,
|
| 28 |
+
texmap_bump: state::normal(),
|
| 29 |
+
opacity: 1.f,
|
| 30 |
+
thin_walled: false);
|
assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0340eb7c0001b6b6f1.mdl
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
import ::KooPbr::KooMtl;
|
| 7 |
+
import ::anno::description;
|
| 8 |
+
|
| 9 |
+
export material MI_6576cd0340eb7c0001b6b6f1(*)
|
| 10 |
+
[[
|
| 11 |
+
anno::description("{\"status\":0,\"tag\":[0,28,998],\"version\":\"1.4.0\"}")
|
| 12 |
+
]]
|
| 13 |
+
= KooPbr::KooMtl(
|
| 14 |
+
diffuse: color(0.f, 0.f, 0.f),
|
| 15 |
+
reflect: color(0.05999999866f, 0.05999999866f, 0.05999999866f),
|
| 16 |
+
reflect_glossiness: 0.8500000238f,
|
| 17 |
+
fresnel: false,
|
| 18 |
+
fresnel_ior: 1.600000024f,
|
| 19 |
+
fresnel_ior_lock: true,
|
| 20 |
+
invert_reflection_ior: false,
|
| 21 |
+
reflection_metalness: 0.f,
|
| 22 |
+
refract_ior: 1.600000024f,
|
| 23 |
+
invert_refraction_ior: false,
|
| 24 |
+
self_illumination: color(0.f, 0.f, 0.f),
|
| 25 |
+
self_illumination_multiplier: 1.f,
|
| 26 |
+
anisotropy: 0.f,
|
| 27 |
+
anisotropy_rotation: 0.f,
|
| 28 |
+
texmap_bump: state::normal(),
|
| 29 |
+
opacity: 1.f,
|
| 30 |
+
thin_walled: false);
|
assets/scene_usds/ebench/simple_pnp/task10/SubUSDs/materials/MI_6576cd0355f6830001519201.mdl
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// auto generated by pbrjson2mdl
|
| 2 |
+
// version = cc4b850
|
| 3 |
+
mdl 1.6;
|
| 4 |
+
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
import ::KooPbr::KooMtl;
|
| 7 |
+
import ::anno::description;
|
| 8 |
+
|
| 9 |
+
export material MI_6576cd0355f6830001519201(*)
|
| 10 |
+
[[
|
| 11 |
+
anno::description("{\"status\":0,\"tag\":[0,28,998],\"version\":\"1.4.0\"}")
|
| 12 |
+
]]
|
| 13 |
+
= KooPbr::KooMtl(
|
| 14 |
+
diffuse: color(0.007799999788f, 0.007799999788f, 0.007799999788f),
|
| 15 |
+
reflect: color(0.05900000036f, 0.05900000036f, 0.05900000036f),
|
| 16 |
+
reflect_glossiness: 0.8000000119f,
|
| 17 |
+
fresnel: false,
|
| 18 |
+
fresnel_ior: 1.600000024f,
|
| 19 |
+
fresnel_ior_lock: true,
|
| 20 |
+
invert_reflection_ior: false,
|
| 21 |
+
reflection_metalness: 0.f,
|
| 22 |
+
refract_ior: 1.600000024f,
|
| 23 |
+
invert_refraction_ior: false,
|
| 24 |
+
self_illumination: color(0.f, 0.f, 0.f),
|
| 25 |
+
self_illumination_multiplier: 1.f,
|
| 26 |
+
anisotropy: 0.f,
|
| 27 |
+
anisotropy_rotation: 0.f,
|
| 28 |
+
texmap_bump: state::normal(),
|
| 29 |
+
opacity: 1.f,
|
| 30 |
+
thin_walled: false);
|