Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- Layouts/RoboDojo/stack_bowls/stack_bowls_21.json +277 -0
- Layouts/RoboDojo/stack_bowls/stack_bowls_31.json +277 -0
- Layouts/RoboDojo/stack_bowls/stack_bowls_35.json +277 -0
- Layouts/RoboDojo/stack_bowls/stack_bowls_5.json +277 -0
- Material/material_0005/Carpet_Berber_Gray.mdl +42 -0
- Material/material_0006/Carpet_Berber_Multi.mdl +42 -0
- Material/material_0021/Concrete_Formed.mdl +42 -0
- Material/material_0042/Metal_Door.mdl +42 -0
- Material/material_0043/Metal_Seamed_Roof.mdl +43 -0
- Material/material_0051/Paint_Gloss.mdl +42 -0
- Material/material_0057/Asphalt.mdl +54 -0
- Material/material_0059/Grass_Countryside.mdl +42 -0
- Material/material_0060/Grass_Cut.mdl +42 -0
- Material/material_0073/Adobe_Octagon_Dots.mdl +54 -0
- Material/material_0080/Granite_Light.mdl +54 -0
- Material/material_0081/Gravel.mdl +54 -0
- Material/material_0097/Terrazzo.mdl +54 -0
- Material/material_0105/Linen_White.mdl +47 -0
- Material/material_0108/MDF.mdl +42 -0
- Material/material_0110/Plaster.mdl +54 -0
- Material/material_0117/Birch_Planks.mdl +54 -0
- Material/material_0118/Cherry.mdl +54 -0
- Material/material_0131/MDF.mdl +42 -0
- Material/material_0132/Paper.mdl +42 -0
- Material/material_0134/Walnut.mdl +54 -0
- Material/material_0135/Walnut_Planks.mdl +54 -0
- Material/material_0143/Carpaint_04.mdl +177 -0
- Material/material_0153/Carpaint_Metallic_04.mdl +177 -0
- Material/material_0156/Carpaint_Metallic_07.mdl +177 -0
- Material/material_0169/Fabric_Polyester_04.mdl +177 -0
- Material/material_0172/Netting_Thread_01.mdl +177 -0
- Material/material_0190/Leather_Grain_03.mdl +177 -0
- Material/material_0201/Suede_06.mdl +177 -0
- Material/material_0203/Suede_08.mdl +177 -0
- Material/material_0205/Suede_10.mdl +177 -0
- Material/material_0206/Metal_Black_Paint.mdl +177 -0
- Material/material_0215/Metal_Polished_01.mdl +177 -0
- Material/material_0222/Metal_White_Paint.mdl +177 -0
- Material/material_0240/Plastic_Pattern_Lrg_Dot_03.mdl +177 -0
- Material/material_0242/Reflectors_01_Glow_Red.mdl +177 -0
- Material/material_0264/UI_Screen_02.mdl +177 -0
- Material/material_0277/Tire_Truck_Jeep_03.mdl +177 -0
- Material/material_0279/Wood_Grain_Raw_01.mdl +177 -0
- Material/material_0291/Rug_Carpet.mdl +698 -0
- Material/material_0293/Ceramic_Tiles_Glazed_Diamond_Offset.mdl +0 -0
- Material/material_0317/Stone_Pores_Weathered.mdl +706 -0
- Material/material_0325/Fabric_Cotton_Fine_Woven.mdl +519 -0
- Material/material_0355/Ground_Hard_Court.mdl +570 -0
- Material/material_0357/Ground_Leaves_Oak.mdl +375 -0
- Material/material_0363/ABS_Hard_Leather.mdl +1648 -0
Layouts/RoboDojo/stack_bowls/stack_bowls_21.json
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Rigid": {
|
| 3 |
+
"bowl": [
|
| 4 |
+
{
|
| 5 |
+
"category": "bowl",
|
| 6 |
+
"category_idx": 10,
|
| 7 |
+
"group": null,
|
| 8 |
+
"xlim": [
|
| 9 |
+
-0.45,
|
| 10 |
+
0.45
|
| 11 |
+
],
|
| 12 |
+
"ylim": [
|
| 13 |
+
-0.25,
|
| 14 |
+
0.07
|
| 15 |
+
],
|
| 16 |
+
"zlim": null,
|
| 17 |
+
"qpos": [
|
| 18 |
+
1,
|
| 19 |
+
0,
|
| 20 |
+
0,
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"rotate_deg": 0,
|
| 24 |
+
"rotate_rand": false,
|
| 25 |
+
"relative_plane": "Table",
|
| 26 |
+
"place_tag": null,
|
| 27 |
+
"margin": 0.01,
|
| 28 |
+
"check_mode": "bbox",
|
| 29 |
+
"need_check_stable": true,
|
| 30 |
+
"label": "bowl0",
|
| 31 |
+
"default_pos": [
|
| 32 |
+
0.3790022243565138,
|
| 33 |
+
0.04956659685870095,
|
| 34 |
+
0.79
|
| 35 |
+
],
|
| 36 |
+
"default_ori": [
|
| 37 |
+
1.0,
|
| 38 |
+
0.0,
|
| 39 |
+
0.0,
|
| 40 |
+
0.0
|
| 41 |
+
],
|
| 42 |
+
"scale": [
|
| 43 |
+
1.0,
|
| 44 |
+
1.0,
|
| 45 |
+
1.0
|
| 46 |
+
],
|
| 47 |
+
"physics": {
|
| 48 |
+
"mass": 0.22,
|
| 49 |
+
"friction": 0.25,
|
| 50 |
+
"type": "rigid"
|
| 51 |
+
},
|
| 52 |
+
"visual": {}
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"category": "bowl",
|
| 56 |
+
"category_idx": 10,
|
| 57 |
+
"group": null,
|
| 58 |
+
"xlim": [
|
| 59 |
+
-0.45,
|
| 60 |
+
0.45
|
| 61 |
+
],
|
| 62 |
+
"ylim": [
|
| 63 |
+
-0.25,
|
| 64 |
+
0.07
|
| 65 |
+
],
|
| 66 |
+
"zlim": null,
|
| 67 |
+
"qpos": [
|
| 68 |
+
1,
|
| 69 |
+
0,
|
| 70 |
+
0,
|
| 71 |
+
0
|
| 72 |
+
],
|
| 73 |
+
"rotate_deg": 0,
|
| 74 |
+
"rotate_rand": false,
|
| 75 |
+
"relative_plane": "Table",
|
| 76 |
+
"place_tag": null,
|
| 77 |
+
"margin": 0.01,
|
| 78 |
+
"check_mode": "bbox",
|
| 79 |
+
"need_check_stable": true,
|
| 80 |
+
"label": "bowl1",
|
| 81 |
+
"default_pos": [
|
| 82 |
+
0.03105463591043024,
|
| 83 |
+
-0.22361179234485498,
|
| 84 |
+
0.79
|
| 85 |
+
],
|
| 86 |
+
"default_ori": [
|
| 87 |
+
1.0,
|
| 88 |
+
0.0,
|
| 89 |
+
0.0,
|
| 90 |
+
0.0
|
| 91 |
+
],
|
| 92 |
+
"scale": [
|
| 93 |
+
1.0,
|
| 94 |
+
1.0,
|
| 95 |
+
1.0
|
| 96 |
+
],
|
| 97 |
+
"physics": {
|
| 98 |
+
"mass": 0.22,
|
| 99 |
+
"friction": 0.25,
|
| 100 |
+
"type": "rigid"
|
| 101 |
+
},
|
| 102 |
+
"visual": {}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"category": "bowl",
|
| 106 |
+
"category_idx": 10,
|
| 107 |
+
"group": null,
|
| 108 |
+
"xlim": [
|
| 109 |
+
-0.45,
|
| 110 |
+
0.45
|
| 111 |
+
],
|
| 112 |
+
"ylim": [
|
| 113 |
+
-0.25,
|
| 114 |
+
0.07
|
| 115 |
+
],
|
| 116 |
+
"zlim": null,
|
| 117 |
+
"qpos": [
|
| 118 |
+
1,
|
| 119 |
+
0,
|
| 120 |
+
0,
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
"rotate_deg": 0,
|
| 124 |
+
"rotate_rand": false,
|
| 125 |
+
"relative_plane": "Table",
|
| 126 |
+
"place_tag": null,
|
| 127 |
+
"margin": 0.01,
|
| 128 |
+
"check_mode": "bbox",
|
| 129 |
+
"need_check_stable": true,
|
| 130 |
+
"label": "bowl2",
|
| 131 |
+
"default_pos": [
|
| 132 |
+
0.1590480206558747,
|
| 133 |
+
0.04121560865650907,
|
| 134 |
+
0.79
|
| 135 |
+
],
|
| 136 |
+
"default_ori": [
|
| 137 |
+
1.0,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
"scale": [
|
| 143 |
+
1.0,
|
| 144 |
+
1.0,
|
| 145 |
+
1.0
|
| 146 |
+
],
|
| 147 |
+
"physics": {
|
| 148 |
+
"mass": 0.22,
|
| 149 |
+
"friction": 0.25,
|
| 150 |
+
"type": "rigid"
|
| 151 |
+
},
|
| 152 |
+
"visual": {}
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
"Geometry": {
|
| 157 |
+
"camera_stand": [
|
| 158 |
+
{
|
| 159 |
+
"category": "camera_stand",
|
| 160 |
+
"category_idx": 0,
|
| 161 |
+
"group": null,
|
| 162 |
+
"xlim": [
|
| 163 |
+
0.0,
|
| 164 |
+
0.0
|
| 165 |
+
],
|
| 166 |
+
"ylim": [
|
| 167 |
+
-0.47,
|
| 168 |
+
-0.47
|
| 169 |
+
],
|
| 170 |
+
"zlim": [
|
| 171 |
+
0.715,
|
| 172 |
+
0.715
|
| 173 |
+
],
|
| 174 |
+
"qpos": [
|
| 175 |
+
0.707,
|
| 176 |
+
-0.707,
|
| 177 |
+
0.0,
|
| 178 |
+
0.0
|
| 179 |
+
],
|
| 180 |
+
"rotate_deg": 0,
|
| 181 |
+
"rotate_rand": false,
|
| 182 |
+
"relative_plane": "Ground",
|
| 183 |
+
"place_tag": null,
|
| 184 |
+
"margin": 0.01,
|
| 185 |
+
"check_mode": "bbox",
|
| 186 |
+
"need_check_stable": true,
|
| 187 |
+
"label": "camera_stand",
|
| 188 |
+
"default_pos": [
|
| 189 |
+
0.0,
|
| 190 |
+
-0.47,
|
| 191 |
+
0.765
|
| 192 |
+
],
|
| 193 |
+
"default_ori": [
|
| 194 |
+
0.707,
|
| 195 |
+
-0.707,
|
| 196 |
+
0.0,
|
| 197 |
+
0.0
|
| 198 |
+
],
|
| 199 |
+
"scale": [
|
| 200 |
+
1.0,
|
| 201 |
+
1.0,
|
| 202 |
+
1.0
|
| 203 |
+
],
|
| 204 |
+
"physics": {
|
| 205 |
+
"type": "geometry"
|
| 206 |
+
},
|
| 207 |
+
"visual": {}
|
| 208 |
+
}
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
"Room": {
|
| 212 |
+
"default": "Simple_Room_nolight",
|
| 213 |
+
"default_pos": [
|
| 214 |
+
0.0,
|
| 215 |
+
0.0,
|
| 216 |
+
0.0
|
| 217 |
+
],
|
| 218 |
+
"default_rot": [
|
| 219 |
+
1.0,
|
| 220 |
+
0.0,
|
| 221 |
+
0.0,
|
| 222 |
+
0.0
|
| 223 |
+
],
|
| 224 |
+
"scale": [
|
| 225 |
+
0.5,
|
| 226 |
+
0.5,
|
| 227 |
+
0.5
|
| 228 |
+
]
|
| 229 |
+
},
|
| 230 |
+
"Table": {
|
| 231 |
+
"default": "material_0122",
|
| 232 |
+
"scale": [
|
| 233 |
+
1.4,
|
| 234 |
+
1.1,
|
| 235 |
+
0.05
|
| 236 |
+
],
|
| 237 |
+
"default_pos": [
|
| 238 |
+
0.0,
|
| 239 |
+
-0.05,
|
| 240 |
+
0.74
|
| 241 |
+
],
|
| 242 |
+
"default_ori": [
|
| 243 |
+
1.0,
|
| 244 |
+
0.0,
|
| 245 |
+
0.0,
|
| 246 |
+
0.0
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
"Ground": {
|
| 250 |
+
"geometry": "cube",
|
| 251 |
+
"thickness": 0.1,
|
| 252 |
+
"axis": "Z",
|
| 253 |
+
"default_pos": [
|
| 254 |
+
0.0,
|
| 255 |
+
0.0,
|
| 256 |
+
0.0
|
| 257 |
+
],
|
| 258 |
+
"materials": {
|
| 259 |
+
"type": "mdl",
|
| 260 |
+
"default": "material_0564",
|
| 261 |
+
"random": false
|
| 262 |
+
},
|
| 263 |
+
"physics_material": {
|
| 264 |
+
"static_friction": 1.0,
|
| 265 |
+
"dynamic_friction": 1.0,
|
| 266 |
+
"restitution": 0.0,
|
| 267 |
+
"friction_combine_mode": "multiply",
|
| 268 |
+
"restitution_combine_mode": "multiply",
|
| 269 |
+
"compliant_contact_stiffness": 0.0,
|
| 270 |
+
"compliant_contact_damping": 0.0
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"Background": {
|
| 274 |
+
"intensity": 1000,
|
| 275 |
+
"category_name": "brown_photostudio_02_4k.hdr"
|
| 276 |
+
}
|
| 277 |
+
}
|
Layouts/RoboDojo/stack_bowls/stack_bowls_31.json
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Rigid": {
|
| 3 |
+
"bowl": [
|
| 4 |
+
{
|
| 5 |
+
"category": "bowl",
|
| 6 |
+
"category_idx": 8,
|
| 7 |
+
"group": null,
|
| 8 |
+
"xlim": [
|
| 9 |
+
-0.45,
|
| 10 |
+
0.45
|
| 11 |
+
],
|
| 12 |
+
"ylim": [
|
| 13 |
+
-0.25,
|
| 14 |
+
0.07
|
| 15 |
+
],
|
| 16 |
+
"zlim": null,
|
| 17 |
+
"qpos": [
|
| 18 |
+
1,
|
| 19 |
+
0,
|
| 20 |
+
0,
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"rotate_deg": 0,
|
| 24 |
+
"rotate_rand": false,
|
| 25 |
+
"relative_plane": "Table",
|
| 26 |
+
"place_tag": null,
|
| 27 |
+
"margin": 0.01,
|
| 28 |
+
"check_mode": "bbox",
|
| 29 |
+
"need_check_stable": true,
|
| 30 |
+
"label": "bowl0",
|
| 31 |
+
"default_pos": [
|
| 32 |
+
0.1982231182896335,
|
| 33 |
+
-0.05852992166814689,
|
| 34 |
+
0.7951007198659328
|
| 35 |
+
],
|
| 36 |
+
"default_ori": [
|
| 37 |
+
0.999997175011971,
|
| 38 |
+
0.0008999974575107739,
|
| 39 |
+
0.0021999937850263364,
|
| 40 |
+
0.0
|
| 41 |
+
],
|
| 42 |
+
"scale": [
|
| 43 |
+
1.0,
|
| 44 |
+
1.0,
|
| 45 |
+
1.0
|
| 46 |
+
],
|
| 47 |
+
"physics": {
|
| 48 |
+
"mass": 0.35,
|
| 49 |
+
"friction": 0.25,
|
| 50 |
+
"type": "rigid"
|
| 51 |
+
},
|
| 52 |
+
"visual": {}
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"category": "bowl",
|
| 56 |
+
"category_idx": 8,
|
| 57 |
+
"group": null,
|
| 58 |
+
"xlim": [
|
| 59 |
+
-0.45,
|
| 60 |
+
0.45
|
| 61 |
+
],
|
| 62 |
+
"ylim": [
|
| 63 |
+
-0.25,
|
| 64 |
+
0.07
|
| 65 |
+
],
|
| 66 |
+
"zlim": null,
|
| 67 |
+
"qpos": [
|
| 68 |
+
1,
|
| 69 |
+
0,
|
| 70 |
+
0,
|
| 71 |
+
0
|
| 72 |
+
],
|
| 73 |
+
"rotate_deg": 0,
|
| 74 |
+
"rotate_rand": false,
|
| 75 |
+
"relative_plane": "Table",
|
| 76 |
+
"place_tag": null,
|
| 77 |
+
"margin": 0.01,
|
| 78 |
+
"check_mode": "bbox",
|
| 79 |
+
"need_check_stable": true,
|
| 80 |
+
"label": "bowl1",
|
| 81 |
+
"default_pos": [
|
| 82 |
+
-0.3299554138559001,
|
| 83 |
+
0.04584901254418671,
|
| 84 |
+
0.7951007198659328
|
| 85 |
+
],
|
| 86 |
+
"default_ori": [
|
| 87 |
+
0.999997175011971,
|
| 88 |
+
0.0008999974575107739,
|
| 89 |
+
0.0021999937850263364,
|
| 90 |
+
0.0
|
| 91 |
+
],
|
| 92 |
+
"scale": [
|
| 93 |
+
1.0,
|
| 94 |
+
1.0,
|
| 95 |
+
1.0
|
| 96 |
+
],
|
| 97 |
+
"physics": {
|
| 98 |
+
"mass": 0.35,
|
| 99 |
+
"friction": 0.25,
|
| 100 |
+
"type": "rigid"
|
| 101 |
+
},
|
| 102 |
+
"visual": {}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"category": "bowl",
|
| 106 |
+
"category_idx": 8,
|
| 107 |
+
"group": null,
|
| 108 |
+
"xlim": [
|
| 109 |
+
-0.45,
|
| 110 |
+
0.45
|
| 111 |
+
],
|
| 112 |
+
"ylim": [
|
| 113 |
+
-0.25,
|
| 114 |
+
0.07
|
| 115 |
+
],
|
| 116 |
+
"zlim": null,
|
| 117 |
+
"qpos": [
|
| 118 |
+
1,
|
| 119 |
+
0,
|
| 120 |
+
0,
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
"rotate_deg": 0,
|
| 124 |
+
"rotate_rand": false,
|
| 125 |
+
"relative_plane": "Table",
|
| 126 |
+
"place_tag": null,
|
| 127 |
+
"margin": 0.01,
|
| 128 |
+
"check_mode": "bbox",
|
| 129 |
+
"need_check_stable": true,
|
| 130 |
+
"label": "bowl2",
|
| 131 |
+
"default_pos": [
|
| 132 |
+
-0.12335777987716966,
|
| 133 |
+
-0.20177570554586965,
|
| 134 |
+
0.7951007198659328
|
| 135 |
+
],
|
| 136 |
+
"default_ori": [
|
| 137 |
+
0.999997175011971,
|
| 138 |
+
0.0008999974575107739,
|
| 139 |
+
0.0021999937850263364,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
"scale": [
|
| 143 |
+
1.0,
|
| 144 |
+
1.0,
|
| 145 |
+
1.0
|
| 146 |
+
],
|
| 147 |
+
"physics": {
|
| 148 |
+
"mass": 0.35,
|
| 149 |
+
"friction": 0.25,
|
| 150 |
+
"type": "rigid"
|
| 151 |
+
},
|
| 152 |
+
"visual": {}
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
"Geometry": {
|
| 157 |
+
"camera_stand": [
|
| 158 |
+
{
|
| 159 |
+
"category": "camera_stand",
|
| 160 |
+
"category_idx": 0,
|
| 161 |
+
"group": null,
|
| 162 |
+
"xlim": [
|
| 163 |
+
0.0,
|
| 164 |
+
0.0
|
| 165 |
+
],
|
| 166 |
+
"ylim": [
|
| 167 |
+
-0.47,
|
| 168 |
+
-0.47
|
| 169 |
+
],
|
| 170 |
+
"zlim": [
|
| 171 |
+
0.715,
|
| 172 |
+
0.715
|
| 173 |
+
],
|
| 174 |
+
"qpos": [
|
| 175 |
+
0.707,
|
| 176 |
+
-0.707,
|
| 177 |
+
0.0,
|
| 178 |
+
0.0
|
| 179 |
+
],
|
| 180 |
+
"rotate_deg": 0,
|
| 181 |
+
"rotate_rand": false,
|
| 182 |
+
"relative_plane": "Ground",
|
| 183 |
+
"place_tag": null,
|
| 184 |
+
"margin": 0.01,
|
| 185 |
+
"check_mode": "bbox",
|
| 186 |
+
"need_check_stable": true,
|
| 187 |
+
"label": "camera_stand",
|
| 188 |
+
"default_pos": [
|
| 189 |
+
0.0,
|
| 190 |
+
-0.47,
|
| 191 |
+
0.765
|
| 192 |
+
],
|
| 193 |
+
"default_ori": [
|
| 194 |
+
0.707,
|
| 195 |
+
-0.707,
|
| 196 |
+
0.0,
|
| 197 |
+
0.0
|
| 198 |
+
],
|
| 199 |
+
"scale": [
|
| 200 |
+
1.0,
|
| 201 |
+
1.0,
|
| 202 |
+
1.0
|
| 203 |
+
],
|
| 204 |
+
"physics": {
|
| 205 |
+
"type": "geometry"
|
| 206 |
+
},
|
| 207 |
+
"visual": {}
|
| 208 |
+
}
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
"Room": {
|
| 212 |
+
"default": "Simple_Room_nolight",
|
| 213 |
+
"default_pos": [
|
| 214 |
+
0.0,
|
| 215 |
+
0.0,
|
| 216 |
+
0.0
|
| 217 |
+
],
|
| 218 |
+
"default_rot": [
|
| 219 |
+
1.0,
|
| 220 |
+
0.0,
|
| 221 |
+
0.0,
|
| 222 |
+
0.0
|
| 223 |
+
],
|
| 224 |
+
"scale": [
|
| 225 |
+
0.5,
|
| 226 |
+
0.5,
|
| 227 |
+
0.5
|
| 228 |
+
]
|
| 229 |
+
},
|
| 230 |
+
"Table": {
|
| 231 |
+
"default": "material_0122",
|
| 232 |
+
"scale": [
|
| 233 |
+
1.4,
|
| 234 |
+
1.1,
|
| 235 |
+
0.05
|
| 236 |
+
],
|
| 237 |
+
"default_pos": [
|
| 238 |
+
0.0,
|
| 239 |
+
-0.05,
|
| 240 |
+
0.74
|
| 241 |
+
],
|
| 242 |
+
"default_ori": [
|
| 243 |
+
1.0,
|
| 244 |
+
0.0,
|
| 245 |
+
0.0,
|
| 246 |
+
0.0
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
"Ground": {
|
| 250 |
+
"geometry": "cube",
|
| 251 |
+
"thickness": 0.1,
|
| 252 |
+
"axis": "Z",
|
| 253 |
+
"default_pos": [
|
| 254 |
+
0.0,
|
| 255 |
+
0.0,
|
| 256 |
+
0.0
|
| 257 |
+
],
|
| 258 |
+
"materials": {
|
| 259 |
+
"type": "mdl",
|
| 260 |
+
"default": "material_0564",
|
| 261 |
+
"random": false
|
| 262 |
+
},
|
| 263 |
+
"physics_material": {
|
| 264 |
+
"static_friction": 1.0,
|
| 265 |
+
"dynamic_friction": 1.0,
|
| 266 |
+
"restitution": 0.0,
|
| 267 |
+
"friction_combine_mode": "multiply",
|
| 268 |
+
"restitution_combine_mode": "multiply",
|
| 269 |
+
"compliant_contact_stiffness": 0.0,
|
| 270 |
+
"compliant_contact_damping": 0.0
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"Background": {
|
| 274 |
+
"intensity": 1000,
|
| 275 |
+
"category_name": "brown_photostudio_02_4k.hdr"
|
| 276 |
+
}
|
| 277 |
+
}
|
Layouts/RoboDojo/stack_bowls/stack_bowls_35.json
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Rigid": {
|
| 3 |
+
"bowl": [
|
| 4 |
+
{
|
| 5 |
+
"category": "bowl",
|
| 6 |
+
"category_idx": 5,
|
| 7 |
+
"group": null,
|
| 8 |
+
"xlim": [
|
| 9 |
+
-0.45,
|
| 10 |
+
0.45
|
| 11 |
+
],
|
| 12 |
+
"ylim": [
|
| 13 |
+
-0.25,
|
| 14 |
+
0.07
|
| 15 |
+
],
|
| 16 |
+
"zlim": null,
|
| 17 |
+
"qpos": [
|
| 18 |
+
1,
|
| 19 |
+
0,
|
| 20 |
+
0,
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"rotate_deg": 0,
|
| 24 |
+
"rotate_rand": false,
|
| 25 |
+
"relative_plane": "Table",
|
| 26 |
+
"place_tag": null,
|
| 27 |
+
"margin": 0.01,
|
| 28 |
+
"check_mode": "bbox",
|
| 29 |
+
"need_check_stable": true,
|
| 30 |
+
"label": "bowl0",
|
| 31 |
+
"default_pos": [
|
| 32 |
+
0.32624703789138637,
|
| 33 |
+
-0.21024363853466133,
|
| 34 |
+
0.7951
|
| 35 |
+
],
|
| 36 |
+
"default_ori": [
|
| 37 |
+
1.0,
|
| 38 |
+
0.0,
|
| 39 |
+
0.0,
|
| 40 |
+
0.0
|
| 41 |
+
],
|
| 42 |
+
"scale": [
|
| 43 |
+
1.0,
|
| 44 |
+
1.0,
|
| 45 |
+
1.0
|
| 46 |
+
],
|
| 47 |
+
"physics": {
|
| 48 |
+
"mass": 0.35,
|
| 49 |
+
"friction": 0.25,
|
| 50 |
+
"type": "rigid"
|
| 51 |
+
},
|
| 52 |
+
"visual": {}
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"category": "bowl",
|
| 56 |
+
"category_idx": 5,
|
| 57 |
+
"group": null,
|
| 58 |
+
"xlim": [
|
| 59 |
+
-0.45,
|
| 60 |
+
0.45
|
| 61 |
+
],
|
| 62 |
+
"ylim": [
|
| 63 |
+
-0.25,
|
| 64 |
+
0.07
|
| 65 |
+
],
|
| 66 |
+
"zlim": null,
|
| 67 |
+
"qpos": [
|
| 68 |
+
1,
|
| 69 |
+
0,
|
| 70 |
+
0,
|
| 71 |
+
0
|
| 72 |
+
],
|
| 73 |
+
"rotate_deg": 0,
|
| 74 |
+
"rotate_rand": false,
|
| 75 |
+
"relative_plane": "Table",
|
| 76 |
+
"place_tag": null,
|
| 77 |
+
"margin": 0.01,
|
| 78 |
+
"check_mode": "bbox",
|
| 79 |
+
"need_check_stable": true,
|
| 80 |
+
"label": "bowl1",
|
| 81 |
+
"default_pos": [
|
| 82 |
+
-0.356084482234274,
|
| 83 |
+
-0.04233904814131173,
|
| 84 |
+
0.7951
|
| 85 |
+
],
|
| 86 |
+
"default_ori": [
|
| 87 |
+
1.0,
|
| 88 |
+
0.0,
|
| 89 |
+
0.0,
|
| 90 |
+
0.0
|
| 91 |
+
],
|
| 92 |
+
"scale": [
|
| 93 |
+
1.0,
|
| 94 |
+
1.0,
|
| 95 |
+
1.0
|
| 96 |
+
],
|
| 97 |
+
"physics": {
|
| 98 |
+
"mass": 0.35,
|
| 99 |
+
"friction": 0.25,
|
| 100 |
+
"type": "rigid"
|
| 101 |
+
},
|
| 102 |
+
"visual": {}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"category": "bowl",
|
| 106 |
+
"category_idx": 5,
|
| 107 |
+
"group": null,
|
| 108 |
+
"xlim": [
|
| 109 |
+
-0.45,
|
| 110 |
+
0.45
|
| 111 |
+
],
|
| 112 |
+
"ylim": [
|
| 113 |
+
-0.25,
|
| 114 |
+
0.07
|
| 115 |
+
],
|
| 116 |
+
"zlim": null,
|
| 117 |
+
"qpos": [
|
| 118 |
+
1,
|
| 119 |
+
0,
|
| 120 |
+
0,
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
"rotate_deg": 0,
|
| 124 |
+
"rotate_rand": false,
|
| 125 |
+
"relative_plane": "Table",
|
| 126 |
+
"place_tag": null,
|
| 127 |
+
"margin": 0.01,
|
| 128 |
+
"check_mode": "bbox",
|
| 129 |
+
"need_check_stable": true,
|
| 130 |
+
"label": "bowl2",
|
| 131 |
+
"default_pos": [
|
| 132 |
+
0.19465811901355873,
|
| 133 |
+
0.0059677300610560535,
|
| 134 |
+
0.7951
|
| 135 |
+
],
|
| 136 |
+
"default_ori": [
|
| 137 |
+
1.0,
|
| 138 |
+
0.0,
|
| 139 |
+
0.0,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
"scale": [
|
| 143 |
+
1.0,
|
| 144 |
+
1.0,
|
| 145 |
+
1.0
|
| 146 |
+
],
|
| 147 |
+
"physics": {
|
| 148 |
+
"mass": 0.35,
|
| 149 |
+
"friction": 0.25,
|
| 150 |
+
"type": "rigid"
|
| 151 |
+
},
|
| 152 |
+
"visual": {}
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
"Geometry": {
|
| 157 |
+
"camera_stand": [
|
| 158 |
+
{
|
| 159 |
+
"category": "camera_stand",
|
| 160 |
+
"category_idx": 0,
|
| 161 |
+
"group": null,
|
| 162 |
+
"xlim": [
|
| 163 |
+
0.0,
|
| 164 |
+
0.0
|
| 165 |
+
],
|
| 166 |
+
"ylim": [
|
| 167 |
+
-0.47,
|
| 168 |
+
-0.47
|
| 169 |
+
],
|
| 170 |
+
"zlim": [
|
| 171 |
+
0.715,
|
| 172 |
+
0.715
|
| 173 |
+
],
|
| 174 |
+
"qpos": [
|
| 175 |
+
0.707,
|
| 176 |
+
-0.707,
|
| 177 |
+
0.0,
|
| 178 |
+
0.0
|
| 179 |
+
],
|
| 180 |
+
"rotate_deg": 0,
|
| 181 |
+
"rotate_rand": false,
|
| 182 |
+
"relative_plane": "Ground",
|
| 183 |
+
"place_tag": null,
|
| 184 |
+
"margin": 0.01,
|
| 185 |
+
"check_mode": "bbox",
|
| 186 |
+
"need_check_stable": true,
|
| 187 |
+
"label": "camera_stand",
|
| 188 |
+
"default_pos": [
|
| 189 |
+
0.0,
|
| 190 |
+
-0.47,
|
| 191 |
+
0.765
|
| 192 |
+
],
|
| 193 |
+
"default_ori": [
|
| 194 |
+
0.707,
|
| 195 |
+
-0.707,
|
| 196 |
+
0.0,
|
| 197 |
+
0.0
|
| 198 |
+
],
|
| 199 |
+
"scale": [
|
| 200 |
+
1.0,
|
| 201 |
+
1.0,
|
| 202 |
+
1.0
|
| 203 |
+
],
|
| 204 |
+
"physics": {
|
| 205 |
+
"type": "geometry"
|
| 206 |
+
},
|
| 207 |
+
"visual": {}
|
| 208 |
+
}
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
"Room": {
|
| 212 |
+
"default": "Simple_Room_nolight",
|
| 213 |
+
"default_pos": [
|
| 214 |
+
0.0,
|
| 215 |
+
0.0,
|
| 216 |
+
0.0
|
| 217 |
+
],
|
| 218 |
+
"default_rot": [
|
| 219 |
+
1.0,
|
| 220 |
+
0.0,
|
| 221 |
+
0.0,
|
| 222 |
+
0.0
|
| 223 |
+
],
|
| 224 |
+
"scale": [
|
| 225 |
+
0.5,
|
| 226 |
+
0.5,
|
| 227 |
+
0.5
|
| 228 |
+
]
|
| 229 |
+
},
|
| 230 |
+
"Table": {
|
| 231 |
+
"default": "material_0122",
|
| 232 |
+
"scale": [
|
| 233 |
+
1.4,
|
| 234 |
+
1.1,
|
| 235 |
+
0.05
|
| 236 |
+
],
|
| 237 |
+
"default_pos": [
|
| 238 |
+
0.0,
|
| 239 |
+
-0.05,
|
| 240 |
+
0.74
|
| 241 |
+
],
|
| 242 |
+
"default_ori": [
|
| 243 |
+
1.0,
|
| 244 |
+
0.0,
|
| 245 |
+
0.0,
|
| 246 |
+
0.0
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
"Ground": {
|
| 250 |
+
"geometry": "cube",
|
| 251 |
+
"thickness": 0.1,
|
| 252 |
+
"axis": "Z",
|
| 253 |
+
"default_pos": [
|
| 254 |
+
0.0,
|
| 255 |
+
0.0,
|
| 256 |
+
0.0
|
| 257 |
+
],
|
| 258 |
+
"materials": {
|
| 259 |
+
"type": "mdl",
|
| 260 |
+
"default": "material_0564",
|
| 261 |
+
"random": false
|
| 262 |
+
},
|
| 263 |
+
"physics_material": {
|
| 264 |
+
"static_friction": 1.0,
|
| 265 |
+
"dynamic_friction": 1.0,
|
| 266 |
+
"restitution": 0.0,
|
| 267 |
+
"friction_combine_mode": "multiply",
|
| 268 |
+
"restitution_combine_mode": "multiply",
|
| 269 |
+
"compliant_contact_stiffness": 0.0,
|
| 270 |
+
"compliant_contact_damping": 0.0
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"Background": {
|
| 274 |
+
"intensity": 1000,
|
| 275 |
+
"category_name": "brown_photostudio_02_4k.hdr"
|
| 276 |
+
}
|
| 277 |
+
}
|
Layouts/RoboDojo/stack_bowls/stack_bowls_5.json
ADDED
|
@@ -0,0 +1,277 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Rigid": {
|
| 3 |
+
"bowl": [
|
| 4 |
+
{
|
| 5 |
+
"category": "bowl",
|
| 6 |
+
"category_idx": 7,
|
| 7 |
+
"group": null,
|
| 8 |
+
"xlim": [
|
| 9 |
+
-0.45,
|
| 10 |
+
0.45
|
| 11 |
+
],
|
| 12 |
+
"ylim": [
|
| 13 |
+
-0.25,
|
| 14 |
+
0.07
|
| 15 |
+
],
|
| 16 |
+
"zlim": null,
|
| 17 |
+
"qpos": [
|
| 18 |
+
1,
|
| 19 |
+
0,
|
| 20 |
+
0,
|
| 21 |
+
0
|
| 22 |
+
],
|
| 23 |
+
"rotate_deg": 0,
|
| 24 |
+
"rotate_rand": false,
|
| 25 |
+
"relative_plane": "Table",
|
| 26 |
+
"place_tag": null,
|
| 27 |
+
"margin": 0.01,
|
| 28 |
+
"check_mode": "bbox",
|
| 29 |
+
"need_check_stable": true,
|
| 30 |
+
"label": "bowl0",
|
| 31 |
+
"default_pos": [
|
| 32 |
+
-0.03426504541963771,
|
| 33 |
+
-0.2112117852310999,
|
| 34 |
+
0.7950002065998161
|
| 35 |
+
],
|
| 36 |
+
"default_ori": [
|
| 37 |
+
0.9999995550002969,
|
| 38 |
+
0.0007999996440002375,
|
| 39 |
+
0.0004999997775001485,
|
| 40 |
+
0.0
|
| 41 |
+
],
|
| 42 |
+
"scale": [
|
| 43 |
+
1.0,
|
| 44 |
+
1.0,
|
| 45 |
+
1.0
|
| 46 |
+
],
|
| 47 |
+
"physics": {
|
| 48 |
+
"mass": 0.35,
|
| 49 |
+
"friction": 0.25,
|
| 50 |
+
"type": "rigid"
|
| 51 |
+
},
|
| 52 |
+
"visual": {}
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"category": "bowl",
|
| 56 |
+
"category_idx": 7,
|
| 57 |
+
"group": null,
|
| 58 |
+
"xlim": [
|
| 59 |
+
-0.45,
|
| 60 |
+
0.45
|
| 61 |
+
],
|
| 62 |
+
"ylim": [
|
| 63 |
+
-0.25,
|
| 64 |
+
0.07
|
| 65 |
+
],
|
| 66 |
+
"zlim": null,
|
| 67 |
+
"qpos": [
|
| 68 |
+
1,
|
| 69 |
+
0,
|
| 70 |
+
0,
|
| 71 |
+
0
|
| 72 |
+
],
|
| 73 |
+
"rotate_deg": 0,
|
| 74 |
+
"rotate_rand": false,
|
| 75 |
+
"relative_plane": "Table",
|
| 76 |
+
"place_tag": null,
|
| 77 |
+
"margin": 0.01,
|
| 78 |
+
"check_mode": "bbox",
|
| 79 |
+
"need_check_stable": true,
|
| 80 |
+
"label": "bowl1",
|
| 81 |
+
"default_pos": [
|
| 82 |
+
-0.2502381978857299,
|
| 83 |
+
-0.10770390295689386,
|
| 84 |
+
0.7950002065998161
|
| 85 |
+
],
|
| 86 |
+
"default_ori": [
|
| 87 |
+
0.9999995550002969,
|
| 88 |
+
0.0007999996440002375,
|
| 89 |
+
0.0004999997775001485,
|
| 90 |
+
0.0
|
| 91 |
+
],
|
| 92 |
+
"scale": [
|
| 93 |
+
1.0,
|
| 94 |
+
1.0,
|
| 95 |
+
1.0
|
| 96 |
+
],
|
| 97 |
+
"physics": {
|
| 98 |
+
"mass": 0.35,
|
| 99 |
+
"friction": 0.25,
|
| 100 |
+
"type": "rigid"
|
| 101 |
+
},
|
| 102 |
+
"visual": {}
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"category": "bowl",
|
| 106 |
+
"category_idx": 7,
|
| 107 |
+
"group": null,
|
| 108 |
+
"xlim": [
|
| 109 |
+
-0.45,
|
| 110 |
+
0.45
|
| 111 |
+
],
|
| 112 |
+
"ylim": [
|
| 113 |
+
-0.25,
|
| 114 |
+
0.07
|
| 115 |
+
],
|
| 116 |
+
"zlim": null,
|
| 117 |
+
"qpos": [
|
| 118 |
+
1,
|
| 119 |
+
0,
|
| 120 |
+
0,
|
| 121 |
+
0
|
| 122 |
+
],
|
| 123 |
+
"rotate_deg": 0,
|
| 124 |
+
"rotate_rand": false,
|
| 125 |
+
"relative_plane": "Table",
|
| 126 |
+
"place_tag": null,
|
| 127 |
+
"margin": 0.01,
|
| 128 |
+
"check_mode": "bbox",
|
| 129 |
+
"need_check_stable": true,
|
| 130 |
+
"label": "bowl2",
|
| 131 |
+
"default_pos": [
|
| 132 |
+
-0.38594993748692713,
|
| 133 |
+
0.06071377897439755,
|
| 134 |
+
0.7950002065998161
|
| 135 |
+
],
|
| 136 |
+
"default_ori": [
|
| 137 |
+
0.9999995550002969,
|
| 138 |
+
0.0007999996440002375,
|
| 139 |
+
0.0004999997775001485,
|
| 140 |
+
0.0
|
| 141 |
+
],
|
| 142 |
+
"scale": [
|
| 143 |
+
1.0,
|
| 144 |
+
1.0,
|
| 145 |
+
1.0
|
| 146 |
+
],
|
| 147 |
+
"physics": {
|
| 148 |
+
"mass": 0.35,
|
| 149 |
+
"friction": 0.25,
|
| 150 |
+
"type": "rigid"
|
| 151 |
+
},
|
| 152 |
+
"visual": {}
|
| 153 |
+
}
|
| 154 |
+
]
|
| 155 |
+
},
|
| 156 |
+
"Geometry": {
|
| 157 |
+
"camera_stand": [
|
| 158 |
+
{
|
| 159 |
+
"category": "camera_stand",
|
| 160 |
+
"category_idx": 0,
|
| 161 |
+
"group": null,
|
| 162 |
+
"xlim": [
|
| 163 |
+
0.0,
|
| 164 |
+
0.0
|
| 165 |
+
],
|
| 166 |
+
"ylim": [
|
| 167 |
+
-0.47,
|
| 168 |
+
-0.47
|
| 169 |
+
],
|
| 170 |
+
"zlim": [
|
| 171 |
+
0.715,
|
| 172 |
+
0.715
|
| 173 |
+
],
|
| 174 |
+
"qpos": [
|
| 175 |
+
0.707,
|
| 176 |
+
-0.707,
|
| 177 |
+
0.0,
|
| 178 |
+
0.0
|
| 179 |
+
],
|
| 180 |
+
"rotate_deg": 0,
|
| 181 |
+
"rotate_rand": false,
|
| 182 |
+
"relative_plane": "Ground",
|
| 183 |
+
"place_tag": null,
|
| 184 |
+
"margin": 0.01,
|
| 185 |
+
"check_mode": "bbox",
|
| 186 |
+
"need_check_stable": true,
|
| 187 |
+
"label": "camera_stand",
|
| 188 |
+
"default_pos": [
|
| 189 |
+
0.0,
|
| 190 |
+
-0.47,
|
| 191 |
+
0.765
|
| 192 |
+
],
|
| 193 |
+
"default_ori": [
|
| 194 |
+
0.707,
|
| 195 |
+
-0.707,
|
| 196 |
+
0.0,
|
| 197 |
+
0.0
|
| 198 |
+
],
|
| 199 |
+
"scale": [
|
| 200 |
+
1.0,
|
| 201 |
+
1.0,
|
| 202 |
+
1.0
|
| 203 |
+
],
|
| 204 |
+
"physics": {
|
| 205 |
+
"type": "geometry"
|
| 206 |
+
},
|
| 207 |
+
"visual": {}
|
| 208 |
+
}
|
| 209 |
+
]
|
| 210 |
+
},
|
| 211 |
+
"Room": {
|
| 212 |
+
"default": "Simple_Room_nolight",
|
| 213 |
+
"default_pos": [
|
| 214 |
+
0.0,
|
| 215 |
+
0.0,
|
| 216 |
+
0.0
|
| 217 |
+
],
|
| 218 |
+
"default_rot": [
|
| 219 |
+
1.0,
|
| 220 |
+
0.0,
|
| 221 |
+
0.0,
|
| 222 |
+
0.0
|
| 223 |
+
],
|
| 224 |
+
"scale": [
|
| 225 |
+
0.5,
|
| 226 |
+
0.5,
|
| 227 |
+
0.5
|
| 228 |
+
]
|
| 229 |
+
},
|
| 230 |
+
"Table": {
|
| 231 |
+
"default": "material_0122",
|
| 232 |
+
"scale": [
|
| 233 |
+
1.4,
|
| 234 |
+
1.1,
|
| 235 |
+
0.05
|
| 236 |
+
],
|
| 237 |
+
"default_pos": [
|
| 238 |
+
0.0,
|
| 239 |
+
-0.05,
|
| 240 |
+
0.74
|
| 241 |
+
],
|
| 242 |
+
"default_ori": [
|
| 243 |
+
1.0,
|
| 244 |
+
0.0,
|
| 245 |
+
0.0,
|
| 246 |
+
0.0
|
| 247 |
+
]
|
| 248 |
+
},
|
| 249 |
+
"Ground": {
|
| 250 |
+
"geometry": "cube",
|
| 251 |
+
"thickness": 0.1,
|
| 252 |
+
"axis": "Z",
|
| 253 |
+
"default_pos": [
|
| 254 |
+
0.0,
|
| 255 |
+
0.0,
|
| 256 |
+
0.0
|
| 257 |
+
],
|
| 258 |
+
"materials": {
|
| 259 |
+
"type": "mdl",
|
| 260 |
+
"default": "material_0564",
|
| 261 |
+
"random": false
|
| 262 |
+
},
|
| 263 |
+
"physics_material": {
|
| 264 |
+
"static_friction": 1.0,
|
| 265 |
+
"dynamic_friction": 1.0,
|
| 266 |
+
"restitution": 0.0,
|
| 267 |
+
"friction_combine_mode": "multiply",
|
| 268 |
+
"restitution_combine_mode": "multiply",
|
| 269 |
+
"compliant_contact_stiffness": 0.0,
|
| 270 |
+
"compliant_contact_damping": 0.0
|
| 271 |
+
}
|
| 272 |
+
},
|
| 273 |
+
"Background": {
|
| 274 |
+
"intensity": 1000,
|
| 275 |
+
"category_name": "brown_photostudio_02_4k.hdr"
|
| 276 |
+
}
|
| 277 |
+
}
|
Material/material_0005/Carpet_Berber_Gray.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Carpet_Berber_Gray(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Carpet_Berber_Gray_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.0,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.0,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Carpet_Berber_Gray_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Carpet_Berber_Gray_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0006/Carpet_Berber_Multi.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Carpet_Berber_Multi(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Carpet_Berber_Multi_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.0,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.0,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Carpet_Berber_Multi_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Carpet_Berber_Multi_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0021/Concrete_Formed.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Concrete_Formed(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Concrete_Formed_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.000000,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.000000,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Concrete_Formed_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Concrete_Formed_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0042/Metal_Door.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Metal_Door(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.439, 0.5, 0.561),
|
| 10 |
+
diffuse_texture: texture_2d(), //"./Metal_Door/Metal_Door_BaseColor.png", ::tex::gamma_srgb
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.5,
|
| 16 |
+
reflection_roughness_texture_influence: 0.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 1.0,
|
| 19 |
+
metallic_texture_influence: 0.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: false,
|
| 23 |
+
ORM_texture: texture_2d(), //"./Metal_Door/Metal_Door_ORM.png", ::tex::gamma_linear
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 0.7f,
|
| 31 |
+
normalmap_texture: texture_2d("./Metal_Door_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0043/Metal_Seamed_Roof.mdl
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Metal_Seamed_Roof(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.500000, 0.500000, 0.500000),
|
| 10 |
+
diffuse_texture: texture_2d("./Metal_Seamed_Roof_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(0.4f, 0.05f, 0.03f),
|
| 15 |
+
reflection_roughness_constant: 0.000000,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.000000,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Metal_Seamed_Roof_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(1.000000, 1.000000, 1.000000),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Metal_Seamed_Roof_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.300000012f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
| 43 |
+
|
Material/material_0051/Paint_Gloss.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Paint_Gloss(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./Paint_Gloss_Finish_BaseColor.png" /* tag 2107, version 608438266 */, ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.5f,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.f,
|
| 19 |
+
metallic_texture_influence: 0.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Paint_Gloss_Finish_ORM.png" /* tag 2109, version 4089275038 */, ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 40.f,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Paint_Gloss_Finish_N.png" /* tag 2111, version 2879886466 */, ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.300000012f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0057/Asphalt.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Asphalt(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Asphalt_BaseColor.png" /* tag 2852, version 2204418729 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 0.75f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 0.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Asphalt_ORM.png" /* tag 2856, version 3899907150 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 0.5f,
|
| 43 |
+
normalmap_texture: texture_2d("./Asphalt_N.png" /* tag 2854, version 540269590 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0059/Grass_Countryside.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Grass_Countryside(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Grass_Countryside_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 1.0,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.0,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Grass_Countryside_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Grass_Countryside_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0060/Grass_Cut.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
using ::OmniPBR import OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Grass_Cut(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Grass_Cut_BaseColor.png", ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 1.0,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.0,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Grass_Cut_ORM.png", ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(0.0, 0.0, 0.0),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 0.0,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Grass_Cut_Normal.png", ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.3f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0073/Adobe_Octagon_Dots.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Adobe_Octagon_Dots(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Adobe_Octagon_Dots_BaseColor.png" /* tag 2875, version 38440193 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Adobe_Octagon_Dots_ORM.png" /* tag 2879, version 4019933715 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Adobe_Octagon_Dots_N.png" /* tag 2877, version 1086958958 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0080/Granite_Light.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Granite_Light(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Granite_Light_BaseColor.png" /* tag 2805, version 2353977154 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 1.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Granite_Light_ORM.png" /* tag 2807, version 4253227050 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Granite_Light_N.png" /* tag 2809, version 3622057334 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0081/Gravel.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Gravel(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Gravel_BaseColor.png" /* tag 2893, version 3900052180 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 0.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Gravel_ORM.png" /* tag 2897, version 3853061844 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Gravel_N.png" /* tag 2895, version 1411071343 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0097/Terrazzo.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Terrazzo(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Terrazzo_BaseColor.png" /* tag 2812, version 3722729693 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 1.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Terrazzo_ORM.png" /* tag 2814, version 2737548837 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Terrazzo_N.png" /* tag 2816, version 2084641571 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0105/Linen_White.mdl
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Linen_White(*)
|
| 13 |
+
= ::OmniPBR::OmniPBR(
|
| 14 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 15 |
+
diffuse_texture: texture_2d("./Linen_White_BaseColor.png" /* tag 2956, version 3373013613 */, ::tex::gamma_srgb),
|
| 16 |
+
albedo_desaturation: 0.f,
|
| 17 |
+
albedo_add: 0.f,
|
| 18 |
+
albedo_brightness: 1.f,
|
| 19 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 20 |
+
reflection_roughness_constant: 0.5f,
|
| 21 |
+
reflection_roughness_texture_influence: 1.f,
|
| 22 |
+
reflectionroughness_texture: texture_2d(),
|
| 23 |
+
metallic_constant: 0.f,
|
| 24 |
+
metallic_texture_influence: 1.f,
|
| 25 |
+
metallic_texture: texture_2d(),
|
| 26 |
+
specular_level: 0.5f,
|
| 27 |
+
enable_ORM_texture: true,
|
| 28 |
+
ORM_texture: texture_2d("./Linen_White_ORM.png", ::tex::gamma_linear),
|
| 29 |
+
ao_to_diffuse: 0.f,
|
| 30 |
+
ao_texture: texture_2d(),
|
| 31 |
+
enable_emission: false,
|
| 32 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 33 |
+
emissive_mask_texture: texture_2d(),
|
| 34 |
+
emissive_intensity: 40.f,
|
| 35 |
+
bump_factor: 1.f,
|
| 36 |
+
normalmap_texture: texture_2d("./Linen_White_N.png", ::tex::gamma_linear),
|
| 37 |
+
detail_bump_factor: 1.0f,
|
| 38 |
+
detail_normalmap_texture: texture_2d("./Linen_White_DN.png", ::tex::gamma_linear),
|
| 39 |
+
project_uvw: false,
|
| 40 |
+
world_or_object: false,
|
| 41 |
+
uv_space_index: 0,
|
| 42 |
+
texture_translate: 0.f,
|
| 43 |
+
texture_rotate: 0.f,
|
| 44 |
+
texture_scale: 1.f,
|
| 45 |
+
detail_texture_translate: 0.f,
|
| 46 |
+
detail_texture_rotate: 0.f,
|
| 47 |
+
detail_texture_scale: float2(10.f,10.f));
|
Material/material_0108/MDF.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material MDF(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./MDF_BaseColor.png" /* tag 2156, version 3084118474 */, ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.5f,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.5f,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./MDF_ORM.png" /* tag 2158, version 356350774 */, ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 40.f,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./MDF_N.png" /* tag 2160, version 818451772 */, ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.300000012f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0110/Plaster.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Plaster(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Plaster_BaseColor.png" /* tag 2739, version 3703676365 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Plaster_ORM.png" /* tag 2741, version 3733936840 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Plaster_N.png" /* tag 2743, version 630160703 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0117/Birch_Planks.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Birch_Planks(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Birch_Planks_BaseColor.png" /* tag 2743, version 2730254677 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Birch_Planks_ORM.png" /* tag 2739, version 900995322 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Birch_Planks_N.png" /* tag 2741, version 282223068 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0118/Cherry.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Cherry(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Cherry_BaseColor.png" /* tag 2748, version 4095822192 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 0.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Cherry_ORM.png" /* tag 2750, version 764486907 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Cherry_N.png" /* tag 2752, version 697597338 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0131/MDF.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material MDF(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./MDF_BaseColor.png" /* tag 2156, version 3084118474 */, ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.5f,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.5f,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./MDF_ORM.png" /* tag 2158, version 356350774 */, ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 40.f,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./MDF_N.png" /* tag 2160, version 818451772 */, ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.300000012f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0132/Paper.mdl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::tex::gamma_mode;
|
| 5 |
+
import ::state::normal;
|
| 6 |
+
|
| 7 |
+
export material Paper(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./Paper_BaseColor.png" /* tag 2156, version 3084118474 */, ::tex::gamma_srgb),
|
| 11 |
+
albedo_desaturation: 0.f,
|
| 12 |
+
albedo_add: 0.f,
|
| 13 |
+
albedo_brightness: 1.f,
|
| 14 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 15 |
+
reflection_roughness_constant: 0.5f,
|
| 16 |
+
reflection_roughness_texture_influence: 1.f,
|
| 17 |
+
reflectionroughness_texture: texture_2d(),
|
| 18 |
+
metallic_constant: 0.5f,
|
| 19 |
+
metallic_texture_influence: 1.f,
|
| 20 |
+
metallic_texture: texture_2d(),
|
| 21 |
+
specular_level: 0.5f,
|
| 22 |
+
enable_ORM_texture: true,
|
| 23 |
+
ORM_texture: texture_2d("./Paper_ORM.png" /* tag 2158, version 356350774 */, ::tex::gamma_linear),
|
| 24 |
+
ao_to_diffuse: 0.f,
|
| 25 |
+
ao_texture: texture_2d(),
|
| 26 |
+
enable_emission: false,
|
| 27 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 28 |
+
emissive_mask_texture: texture_2d(),
|
| 29 |
+
emissive_intensity: 40.f,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Paper_N.png" /* tag 2160, version 818451772 */, ::tex::gamma_linear),
|
| 32 |
+
detail_bump_factor: 0.300000012f,
|
| 33 |
+
detail_normalmap_texture: texture_2d(),
|
| 34 |
+
project_uvw: false,
|
| 35 |
+
world_or_object: false,
|
| 36 |
+
uv_space_index: 0,
|
| 37 |
+
texture_translate: 0.f,
|
| 38 |
+
texture_rotate: 0.f,
|
| 39 |
+
texture_scale: 1.f,
|
| 40 |
+
detail_texture_translate: 0.f,
|
| 41 |
+
detail_texture_rotate: 0.f,
|
| 42 |
+
detail_texture_scale: 1.f);
|
Material/material_0134/Walnut.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Walnut(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Walnut_BaseColor.png" /* tag 2767, version 2362837691 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Walnut_ORM.png" /* tag 2769, version 2941301943 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Walnut_N.png" /* tag 2771, version 1355386593 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0135/Walnut_Planks.mdl
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.4;
|
| 2 |
+
|
| 3 |
+
import ::OmniPBR::OmniPBR;
|
| 4 |
+
import ::anno::author;
|
| 5 |
+
import ::anno::description;
|
| 6 |
+
import ::anno::display_name;
|
| 7 |
+
import ::anno::key_words;
|
| 8 |
+
import ::anno::version;
|
| 9 |
+
import ::tex::gamma_mode;
|
| 10 |
+
import ::state::normal;
|
| 11 |
+
|
| 12 |
+
export material Walnut_Planks(*)
|
| 13 |
+
[[
|
| 14 |
+
::anno::display_name("Omni PBR "),
|
| 15 |
+
::anno::description("Omni PBR, supports ORM textures"),
|
| 16 |
+
::anno::version(1, 0, 0, ""),
|
| 17 |
+
::anno::author("NVIDIA CORPORATION"),
|
| 18 |
+
::anno::key_words(string[]("omni", "PBR", "omniverse", "generic"))
|
| 19 |
+
]]
|
| 20 |
+
= ::OmniPBR::OmniPBR(
|
| 21 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 22 |
+
diffuse_texture: texture_2d("./Walnut_Planks_BaseColor.png" /* tag 2754, version 3523353144 */, ::tex::gamma_srgb),
|
| 23 |
+
albedo_desaturation: 0.f,
|
| 24 |
+
albedo_add: 0.f,
|
| 25 |
+
albedo_brightness: 1.f,
|
| 26 |
+
diffuse_tint: color(1.f, 1.f, 1.f),
|
| 27 |
+
reflection_roughness_constant: 0.5f,
|
| 28 |
+
reflection_roughness_texture_influence: 1.f,
|
| 29 |
+
reflectionroughness_texture: texture_2d(),
|
| 30 |
+
metallic_constant: 0.f,
|
| 31 |
+
metallic_texture_influence: 0.f,
|
| 32 |
+
metallic_texture: texture_2d(),
|
| 33 |
+
specular_level: 0.5f,
|
| 34 |
+
enable_ORM_texture: true,
|
| 35 |
+
ORM_texture: texture_2d("./Walnut_Planks_ORM.png" /* tag 2758, version 726523789 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(1.f, 0.100000001f, 0.100000001f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Walnut_Planks_N.png" /* tag 2788, version 2308929211 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.300000012f,
|
| 45 |
+
detail_normalmap_texture: texture_2d(),
|
| 46 |
+
project_uvw: false,
|
| 47 |
+
world_or_object: false,
|
| 48 |
+
uv_space_index: 0,
|
| 49 |
+
texture_translate: 0.f,
|
| 50 |
+
texture_rotate: 0.f,
|
| 51 |
+
texture_scale: 1.f,
|
| 52 |
+
detail_texture_translate: 0.f,
|
| 53 |
+
detail_texture_rotate: 0.f,
|
| 54 |
+
detail_texture_scale: 1.f);
|
Material/material_0143/Carpaint_04.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Carpaint_04(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(8.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d(),
|
| 41 |
+
diffuse_reflection_color: color(0.012373521f, 0.0941696838f, 0.234323442f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d(),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d(),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d(),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(1.f, 0.5f),
|
| 56 |
+
normal_image: texture_2d(),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: true,
|
| 157 |
+
coat_color: color(0.499994993f, 0.49999705f, 0.5f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.0599999987f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2,
|
| 172 |
+
enable_flakes: true,
|
| 173 |
+
flake_color: color(1.f, 0.999989986f, 0.999989986f),
|
| 174 |
+
flake_size: 0.0899999961f,
|
| 175 |
+
flakes_density: 0.280000001f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.25f);
|
Material/material_0153/Carpaint_Metallic_04.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Carpaint_Metallic_04(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(8.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d(),
|
| 41 |
+
diffuse_reflection_color: color(0.999989986f, 1.f, 0.999998987f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d(),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 1.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d(),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d(),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.f, 0.400000006f),
|
| 56 |
+
normal_image: texture_2d(),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: true,
|
| 157 |
+
coat_color: color(0.257425725f, 0.25722149f, 0.256576151f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.0599999987f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2,
|
| 172 |
+
enable_flakes: true,
|
| 173 |
+
flake_color: color(1.f, 0.999989986f, 0.999989986f),
|
| 174 |
+
flake_size: 0.0899999961f,
|
| 175 |
+
flakes_density: 0.280000001f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.25f);
|
Material/material_0156/Carpaint_Metallic_07.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Carpaint_Metallic_07(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(8.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d(),
|
| 41 |
+
diffuse_reflection_color: color(0.999989986f, 1.f, 0.999998987f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d(),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 1.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d(),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d(),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.f, 0.400000006f),
|
| 56 |
+
normal_image: texture_2d(),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: true,
|
| 157 |
+
coat_color: color(0.518146634f, 0.51815182f, 0.518151462f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.0599999987f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2,
|
| 172 |
+
enable_flakes: true,
|
| 173 |
+
flake_color: color(1.f, 0.999989986f, 0.999989986f),
|
| 174 |
+
flake_size: 0.0899999961f,
|
| 175 |
+
flakes_density: 0.280000001f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.25f);
|
Material/material_0169/Fabric_Polyester_04.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Fabric_Polyester_04(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(2.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(0.200000003f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_fabric_polyester_04_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.26990819f, 0.300504714f, 0.389438927f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_fabric_polyester_04_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_fabric_polyester_04_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_fabric_polyester_04_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(1.f, 0.75f),
|
| 56 |
+
normal_image: texture_2d("./ov_fabric_polyester_04_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 1.f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0172/Netting_Thread_01.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Netting_Thread_01(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::texture_coord_0,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::texture_coord_0,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::texture_coord_0,
|
| 23 |
+
uv_scale_03: float2(0.200000003f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::texture_coord_0,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: true,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d("./ov_fabric_netting_01_opacity.png", ::tex::gamma_default, ""),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::r,
|
| 38 |
+
geometry_opacity_threshold: 0.5f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_fabric_netting_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.0858085752f, 0.0858077183f, 0.0858077183f),
|
| 42 |
+
base_color_scale: 1.5999999f,
|
| 43 |
+
base_color_offset: -0.170000002f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_fabric_netting_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_fabric_netting_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_fabric_netting_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.75f, 0.649999976f),
|
| 56 |
+
normal_image: texture_2d("./ov_fabric_netting_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 1.f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0190/Leather_Grain_03.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Leather_Grain_03(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(2.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.075000003f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(0.5f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_leather_f_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.320132017f, 0.0729430765f, 0.0264135376f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.800000012f, 0.680000007f),
|
| 56 |
+
normal_image: texture_2d("./ov_leather_f_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 2.f,
|
| 59 |
+
enable_layer_1: true,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./ov_leather_f_01_roughvar.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::rgb,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d("./ov_leather_f_01_roughvar.png", ::tex::gamma_default, ""),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::rgb,
|
| 74 |
+
layer_1_blend_threshold: 0.569999993f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d("./ov_leather_f_01_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.293729365f, 0.0742696449f, 0.0329597332f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_default, ""),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_leather_f_01_orm.png", ::tex::gamma_default, ""),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.850000024f, 0.699999988f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_leather_f_01_normal.png", ::tex::gamma_linear, ""),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0201/Suede_06.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Suede_06(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.5f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.0500000007f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.0363036394f, 0.0297323614f, 0.0221655872f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.949999988f, 0.850000024f),
|
| 56 |
+
normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: true,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d("./leather_blend_mask_02.png", ::tex::gamma_default, ""),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.599999964f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.075907588f, 0.0682130978f, 0.0523586981f),
|
| 79 |
+
layer_1_base_color_offset: 0.0899999961f,
|
| 80 |
+
layer_1_base_color_scale: 0.319999993f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.850000024f, 0.75f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 0.5f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0203/Suede_08.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Suede_08(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.5f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.0500000007f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.178119794f, 0.417350799f, 0.782178223f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.949999988f, 0.850000024f),
|
| 56 |
+
normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: true,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d("./leather_blend_mask_02.png", ::tex::gamma_default, ""),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.599999964f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.164983824f, 0.31729731f, 0.617161751f),
|
| 79 |
+
layer_1_base_color_offset: 0.0899999961f,
|
| 80 |
+
layer_1_base_color_scale: 1.09000003f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.850000024f, 0.75f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 0.5f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0205/Suede_10.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Suede_10(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.5f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.0500000007f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_suede_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.312298089f, 0.44884491f, 0.0548094474f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.459999979f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.769999981f, 0.730000019f),
|
| 56 |
+
normal_image: texture_2d("./ov_suede_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: true,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_02.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 1.f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d("./ov_suede_01_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.463262737f, 0.679867983f, 0.118920818f),
|
| 79 |
+
layer_1_base_color_offset: 0.189999998f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.75f, 0.649999976f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_suede_01_normal.png", ::tex::gamma_linear, ""),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 2.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 0.5f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0206/Metal_Black_Paint.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Metal_Black_Paint(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_metal_a_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.06930691f, 0.0693062171f, 0.0693062171f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.349999994f, 0.25f),
|
| 56 |
+
normal_image: texture_2d("./ov_metal_a_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0215/Metal_Polished_01.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Metal_Polished_01(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_metal_machine_polished_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.894389451f, 0.89438051f, 0.89438051f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 1.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.449999988f, 0.349999994f),
|
| 56 |
+
normal_image: texture_2d("./ov_metal_machine_polished_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 3.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: true,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 0.0599999987f,
|
| 134 |
+
anisotropic_roughness_v: 0.0599999987f,
|
| 135 |
+
anisotropic_direction_image: texture_2d("./ov_metal_machine_polished_01_anisotropy_level.png", ::tex::gamma_default, ""),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0222/Metal_White_Paint.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Metal_White_Paint(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_metal_a_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.960386455f, 0.960389495f, 0.960396051f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_metal_a_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.349999994f, 0.25f),
|
| 56 |
+
normal_image: texture_2d("./ov_metal_a_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0240/Plastic_Pattern_Lrg_Dot_03.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Plastic_Pattern_Lrg_Dot_03(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(2.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.0500000007f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(0.5f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_plastic_pattern_03_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.0941176489f, 0.0941176489f, 0.0941176489f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.170000002f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_linear, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.850000024f, 0.699999988f),
|
| 56 |
+
normal_image: texture_2d("./ov_plastic_pattern_03_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: true,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 1.f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d("./ov_plastic_pattern_03_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.0924092531f, 0.092408672f, 0.0924083292f),
|
| 79 |
+
layer_1_base_color_offset: 0.189999998f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_default, ""),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_plastic_pattern_03_orm.png", ::tex::gamma_default, ""),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.850000024f, 0.75f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_plastic_pattern_03_normal.png", ::tex::gamma_linear, ""),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0242/Reflectors_01_Glow_Red.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Reflectors_01_Glow_Red(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::texture_coord_0,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::texture_coord_0,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::texture_coord_0,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::texture_coord_0,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_reflectors_pattern_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.488448858f, 0.135411531f, 0.f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.5f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.f, 0.125f),
|
| 56 |
+
normal_image: texture_2d("./ov_reflectors_pattern_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: true,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d("./ov_reflectors_pattern_01_mask.png", ::tex::gamma_srgb, ""),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 60000.f,
|
| 153 |
+
emission_color: color(1.f, 0.0396039486f, 0.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0264/UI_Screen_02.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material UI_Screen_02(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::texture_coord_0,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d(),
|
| 41 |
+
diffuse_reflection_color: color(9.99999997e-07f, 9.99989993e-07f, 9.99989993e-07f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d(),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 1.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d(),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./dust1.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.f, 0.0274999999f),
|
| 56 |
+
normal_image: texture_2d(),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(1.f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_1,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: false,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d(),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 1.f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: true,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d("./screen_dash2.png", ::tex::gamma_default, ""),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 600.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0277/Tire_Truck_Jeep_03.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Tire_Truck_Jeep_03(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::texture_coord_0,
|
| 11 |
+
uv_scale_01: float2(1.f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.5f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(1.f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_tire_rubber_trim_truck_04_basecolor.png", ::tex::gamma_srgb, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.999996841f, 1.f, 0.999989986f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_tire_rubber_trim_truck_04_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_tire_rubber_trim_truck_04_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_tire_rubber_trim_truck_04_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.75f, 0.550000012f),
|
| 56 |
+
normal_image: texture_2d("./ov_tire_rubber_trim_truck_04_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 0.5f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0279/Wood_Grain_Raw_01.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
mdl 1.8;
|
| 2 |
+
|
| 3 |
+
import ::state::normal;
|
| 4 |
+
import ::OmniSurface::OmniShared::emission_mode;
|
| 5 |
+
import ..::Templates::OmniUber_Automotive::*;
|
| 6 |
+
import ::tex::gamma_mode;
|
| 7 |
+
|
| 8 |
+
export material Wood_Grain_Raw_01(*)
|
| 9 |
+
= Templates::OmniUber_Automotive::OmniUber_Automotive(
|
| 10 |
+
uvs_mode_01: Templates::OmniUber_Automotive::triplanar,
|
| 11 |
+
uv_scale_01: float2(2.5f),
|
| 12 |
+
uv_offset_01: float2(0.f),
|
| 13 |
+
uv_offset_time_01: float2(0.f),
|
| 14 |
+
uv_rotation_01: 0.f,
|
| 15 |
+
triplanar_blend_range_01: 0.f,
|
| 16 |
+
uvs_mode_02: Templates::OmniUber_Automotive::triplanar,
|
| 17 |
+
uv_scale_02: float2(0.0500000007f),
|
| 18 |
+
uv_offset_02: float2(0.f),
|
| 19 |
+
uv_offset_time_02: float2(0.f),
|
| 20 |
+
uv_rotation_02: 0.f,
|
| 21 |
+
triplanar_blend_range_02: 0.5f,
|
| 22 |
+
uvs_mode_03: Templates::OmniUber_Automotive::triplanar,
|
| 23 |
+
uv_scale_03: float2(1.f),
|
| 24 |
+
uv_offset_03: float2(0.f),
|
| 25 |
+
uv_offset_time_03: float2(0.f),
|
| 26 |
+
uv_rotation_03: 0.f,
|
| 27 |
+
triplanar_blend_range_03: 0.5f,
|
| 28 |
+
uvs_mode_04: Templates::OmniUber_Automotive::triplanar,
|
| 29 |
+
uv_scale_04: float2(1.f),
|
| 30 |
+
uv_offset_04: float2(0.f),
|
| 31 |
+
uv_offset_time_04: float2(0.f),
|
| 32 |
+
uv_rotation_04: 0.f,
|
| 33 |
+
triplanar_blend_range_04: 0.5f,
|
| 34 |
+
enable_opacity: false,
|
| 35 |
+
uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1,
|
| 36 |
+
opacity_image: texture_2d(),
|
| 37 |
+
opacity_channel: Templates::OmniUber_Automotive::a,
|
| 38 |
+
geometry_opacity_threshold: 0.150000006f,
|
| 39 |
+
uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1,
|
| 40 |
+
base_color_image: texture_2d("./ov_wood_grain_a_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(1.f, 0.999989986f, 0.999989986f),
|
| 42 |
+
base_color_scale: 1.44999993f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_wood_grain_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 46 |
+
metalness_channel: Templates::OmniUber_Automotive::b,
|
| 47 |
+
metalness: 0.f,
|
| 48 |
+
specular_reflection_weight: 1.f,
|
| 49 |
+
specular_reflection_color: color(1.f, 1.f, 1.f),
|
| 50 |
+
cavity_image: texture_2d("./ov_wood_grain_a_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_wood_grain_a_01_orm.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::g,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.850000024f, 0.649999976f),
|
| 56 |
+
normal_image: texture_2d("./ov_wood_grain_a_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: true,
|
| 58 |
+
normal_scale: 1.f,
|
| 59 |
+
enable_layer_1: false,
|
| 60 |
+
layer_1_order: Templates::OmniUber_Automotive::above,
|
| 61 |
+
layer_1_blend_source: Templates::OmniUber_Automotive::texture,
|
| 62 |
+
layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1,
|
| 63 |
+
layer_1_blend_splatmap: texture_2d(),
|
| 64 |
+
layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 65 |
+
layer_1_blend_direction: float3(0.f, 1.f, 0.f),
|
| 66 |
+
layer_1_blend_axis: Templates::OmniUber_Automotive::y,
|
| 67 |
+
layer_1_blend_object_space: true,
|
| 68 |
+
layer_1_blend_scale: 1.f,
|
| 69 |
+
layer_1_blend_offset: 0.f,
|
| 70 |
+
layer_1_blend_primvar_name: "",
|
| 71 |
+
layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1,
|
| 72 |
+
layer_1_blend_detail_image: texture_2d(),
|
| 73 |
+
layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 74 |
+
layer_1_blend_threshold: 0.330000013f,
|
| 75 |
+
layer_1_blend_factor_override: 0.f,
|
| 76 |
+
uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1,
|
| 77 |
+
layer_1_base_color_image: texture_2d(),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 79 |
+
layer_1_base_color_offset: 0.f,
|
| 80 |
+
layer_1_base_color_scale: 1.f,
|
| 81 |
+
layer_1_base_color_desaturation: 0.f,
|
| 82 |
+
layer_1_metalness_image: texture_2d(),
|
| 83 |
+
layer_1_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 84 |
+
layer_1_metalness: 1.f,
|
| 85 |
+
layer_1_specular_reflection_weight: 1.f,
|
| 86 |
+
layer_1_cavity_image: texture_2d(),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d(),
|
| 89 |
+
layer_1_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 90 |
+
layer_1_roughness_u: 1.f,
|
| 91 |
+
layer_1_roughness_range_position: float2(0.949999988f, 0.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d(),
|
| 93 |
+
layer_1_normal_flip_green: true,
|
| 94 |
+
layer_1_normal_scale: 1.f,
|
| 95 |
+
enable_layer_2: false,
|
| 96 |
+
layer_2_order: Templates::OmniUber_Automotive::above,
|
| 97 |
+
layer_2_blend_source: Templates::OmniUber_Automotive::texture,
|
| 98 |
+
layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2,
|
| 99 |
+
layer_2_blend_splatmap: texture_2d(),
|
| 100 |
+
layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r,
|
| 101 |
+
layer_2_blend_direction: float3(0.f, 1.f, 0.f),
|
| 102 |
+
layer_2_blend_axis: Templates::OmniUber_Automotive::y,
|
| 103 |
+
layer_2_blend_object_space: true,
|
| 104 |
+
layer_2_blend_scale: 1.f,
|
| 105 |
+
layer_2_blend_offset: 0.f,
|
| 106 |
+
layer_2_blend_primvar_name: "",
|
| 107 |
+
layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2,
|
| 108 |
+
layer_2_blend_detail_image: texture_2d(),
|
| 109 |
+
layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r,
|
| 110 |
+
layer_2_blend_threshold: 0.330000013f,
|
| 111 |
+
layer_2_blend_factor_override: 0.f,
|
| 112 |
+
uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2,
|
| 113 |
+
layer_2_base_color_image: texture_2d(),
|
| 114 |
+
layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f),
|
| 115 |
+
layer_2_base_color_offset: 0.f,
|
| 116 |
+
layer_2_base_color_scale: 1.f,
|
| 117 |
+
layer_2_base_color_desaturation: 0.f,
|
| 118 |
+
layer_2_metalness_image: texture_2d(),
|
| 119 |
+
layer_2_metalness_channel: Templates::OmniUber_Automotive::b,
|
| 120 |
+
layer_2_metalness: 1.f,
|
| 121 |
+
layer_2_specular_reflection_weight: 1.f,
|
| 122 |
+
layer_2_cavity_image: texture_2d(),
|
| 123 |
+
layer_2_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 124 |
+
layer_2_roughness_image: texture_2d(),
|
| 125 |
+
layer_2_roughness_channel: Templates::OmniUber_Automotive::g,
|
| 126 |
+
layer_2_roughness_u: 1.f,
|
| 127 |
+
layer_2_roughness_range_position: float2(1.f, 0.5f),
|
| 128 |
+
layer_2_normal_image: texture_2d(),
|
| 129 |
+
layer_2_normal_flip_green: true,
|
| 130 |
+
layer_2_normal_scale: 1.f,
|
| 131 |
+
enable_anisotropy: false,
|
| 132 |
+
uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1,
|
| 133 |
+
anisotropic_roughness_u: 1.f,
|
| 134 |
+
anisotropic_roughness_v: 0.25f,
|
| 135 |
+
anisotropic_direction_image: texture_2d(),
|
| 136 |
+
anisotropic_direction_channel: Templates::OmniUber_Automotive::r,
|
| 137 |
+
anisotropic_direction: 0.f,
|
| 138 |
+
enable_detail_normal: true,
|
| 139 |
+
uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2,
|
| 140 |
+
uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1,
|
| 141 |
+
detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""),
|
| 142 |
+
detail_normal_flip_green: true,
|
| 143 |
+
detail_normal_scale: 0.5f,
|
| 144 |
+
detail_normal_weight_image: texture_2d(),
|
| 145 |
+
detail_normal_weight_channel: Templates::OmniUber_Automotive::r,
|
| 146 |
+
enable_emission: false,
|
| 147 |
+
uv_set_emission: Templates::OmniUber_Automotive::uv_set_1,
|
| 148 |
+
uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 149 |
+
emission_image: texture_2d(),
|
| 150 |
+
emission_mask_image: texture_2d(),
|
| 151 |
+
emission_mode: OmniSurface::OmniShared::emission_lx,
|
| 152 |
+
emission_intensity: 1.f,
|
| 153 |
+
emission_color: color(1.f, 1.f, 1.f),
|
| 154 |
+
emission_use_temperature: false,
|
| 155 |
+
emission_temperature: 6500.f,
|
| 156 |
+
enable_coat: false,
|
| 157 |
+
coat_color: color(1.f, 1.f, 1.f),
|
| 158 |
+
coat_mask_image: texture_2d(),
|
| 159 |
+
coat_mask_channel: Templates::OmniUber_Automotive::r,
|
| 160 |
+
coat_roughness_image: texture_2d(),
|
| 161 |
+
coat_roughness_channel: Templates::OmniUber_Automotive::r,
|
| 162 |
+
coat_roughness: 0.f,
|
| 163 |
+
coat_ior: 1.60000002f,
|
| 164 |
+
coat_anisotropy: 0.f,
|
| 165 |
+
coat_anisotropy_rotation: 0.f,
|
| 166 |
+
coat_affect_color: 0.f,
|
| 167 |
+
coat_affect_roughness: 0.f,
|
| 168 |
+
coat_normal_image: texture_2d(),
|
| 169 |
+
coat_normal_flip_green: true,
|
| 170 |
+
uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1,
|
| 171 |
+
uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1,
|
| 172 |
+
enable_flakes: false,
|
| 173 |
+
flake_color: color(1.f, 1.f, 1.f),
|
| 174 |
+
flake_size: 0.125f,
|
| 175 |
+
flakes_density: 0.25f,
|
| 176 |
+
flakes_spread: 0.150000006f,
|
| 177 |
+
flake_roughness: 0.0500000007f);
|
Material/material_0291/Rug_Carpet.mdl
ADDED
|
@@ -0,0 +1,698 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved. *
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
mdl 1.6;
|
| 37 |
+
|
| 38 |
+
import ::anno::*;
|
| 39 |
+
import ::base::*;
|
| 40 |
+
import ::df::*;
|
| 41 |
+
import ::math::*;
|
| 42 |
+
import ::state::*;
|
| 43 |
+
import ::tex::*;
|
| 44 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 45 |
+
import ::nvidia::core_definitions::dimension;
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
const string COPYRIGHT =
|
| 49 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 50 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 51 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 52 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 53 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 54 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 55 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 56 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 57 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 58 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 59 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 60 |
+
|
| 61 |
+
|
| 62 |
+
float remap(float input, float low, float high)
|
| 63 |
+
{
|
| 64 |
+
//return low + input * (high - low);
|
| 65 |
+
return ::math::lerp(low, high, input);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
float3 normalmap_normal(
|
| 69 |
+
uniform texture_2d texture,
|
| 70 |
+
float factor = 1.0,
|
| 71 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 72 |
+
)
|
| 73 |
+
{
|
| 74 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0);
|
| 75 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal() * (lookup.z + (1.0 - factor)));
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
::base::texture_coordinate_info transform_coordinate_2(
|
| 80 |
+
float4x4 transform
|
| 81 |
+
[[ anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]],
|
| 82 |
+
::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
|
| 83 |
+
[[ anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]]
|
| 84 |
+
) [[
|
| 85 |
+
::anno::description("Transform a texture coordinate by a matrix.") ,
|
| 86 |
+
::anno::noinline()
|
| 87 |
+
]]
|
| 88 |
+
{
|
| 89 |
+
// Version 2
|
| 90 |
+
float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
|
| 91 |
+
//try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
|
| 92 |
+
//just pretend there is no other rotation happening
|
| 93 |
+
//get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
|
| 94 |
+
float4 u = transform[0];
|
| 95 |
+
float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
|
| 96 |
+
float cos = ru.x;
|
| 97 |
+
float sin = -ru.y;
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
return ::base::texture_coordinate_info(
|
| 101 |
+
float3(r_position.x,r_position.y,r_position.z),
|
| 102 |
+
math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
|
| 103 |
+
math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
// Takes the standard input that every material has. It combines a couple of
|
| 107 |
+
// functions in one convenience function.
|
| 108 |
+
::base::texture_coordinate_info vmat_transform(
|
| 109 |
+
float2 translation = float2(0.0, 0.0),
|
| 110 |
+
float rotation = 0.0, // rotation in degrees
|
| 111 |
+
float2 scaling = float2(1.0, 1.0),
|
| 112 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 113 |
+
uniform int uv_space = 0
|
| 114 |
+
)
|
| 115 |
+
{
|
| 116 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 117 |
+
float4x4 scale =
|
| 118 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 119 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 120 |
+
0. , 0. , 1.0, 0.,
|
| 121 |
+
translation.x , translation.y , 0.0, 1.);
|
| 122 |
+
|
| 123 |
+
float s = ::math::sin(rotation_rad);
|
| 124 |
+
float c = ::math::cos(rotation_rad);
|
| 125 |
+
float4x4 rotate =
|
| 126 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 127 |
+
s , c , 0.0 , 0.0,
|
| 128 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 129 |
+
0. , 0.0 , 0.0 , 1.);
|
| 130 |
+
|
| 131 |
+
return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 132 |
+
}
|
| 133 |
+
|
| 134 |
+
::base::texture_coordinate_info vmat_transform_post_scale(
|
| 135 |
+
::base::texture_coordinate_info uvw,
|
| 136 |
+
float2 scale = 1.0f
|
| 137 |
+
)
|
| 138 |
+
{
|
| 139 |
+
return ::base::texture_coordinate_info(
|
| 140 |
+
position: float3(uvw.position.x / scale.x,
|
| 141 |
+
uvw.position.y / scale.y,
|
| 142 |
+
uvw.position.z),
|
| 143 |
+
tangent_u: uvw.tangent_u,
|
| 144 |
+
tangent_v: uvw.tangent_v
|
| 145 |
+
);
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
float3 rgb2hsl(float3 c)
|
| 150 |
+
[[
|
| 151 |
+
::anno::description("Converts a color value to HSL. The function outputs the hue to \n"
|
| 152 |
+
"lie in the range from 0.0-1.0."),
|
| 153 |
+
::anno::author("NVIDIA vMaterials")
|
| 154 |
+
]]
|
| 155 |
+
{
|
| 156 |
+
float3 hsl;
|
| 157 |
+
float cMax = ::math::max(::math::max(c.x, c.y), c.z);
|
| 158 |
+
float cMin = ::math::min(::math::min(c.x, c.y), c.z);
|
| 159 |
+
float delta = cMax - cMin;
|
| 160 |
+
|
| 161 |
+
hsl.z = (cMax + cMin) / 2.0;
|
| 162 |
+
hsl.x = ((cMax == cMin) ? 0 :
|
| 163 |
+
(cMax == c.x) ? (c.y - c.z) / delta + ((c.z > c.y) ? 6.0f : 0.0f):
|
| 164 |
+
(cMax == c.y) ? (c.z - c.x) / delta + 2.0 : (c.x - c.y) / delta + 4.0) / 6.0f;
|
| 165 |
+
hsl.y = (hsl.z == 0.0 || hsl.z == 1.0) ? 0.0 : delta / (1.0 - ::math::abs(2.0 * hsl.z - 1.0));
|
| 166 |
+
return hsl;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
// converts a HSL value back to a color
|
| 171 |
+
// The Hue is expected to lie in the range
|
| 172 |
+
float f_n(float n, float a, float h, float l) {
|
| 173 |
+
float k = ::math::fmod(n + h * 12.f, 12.f);
|
| 174 |
+
|
| 175 |
+
return l - a * ::math::max(-1.0f, ::math::min(::math::min(k-3.0f, 9.0f-k), 1.0f));
|
| 176 |
+
}
|
| 177 |
+
|
| 178 |
+
color hsl2rgb(float3 hsl)
|
| 179 |
+
[[
|
| 180 |
+
::anno::description("Converts a HSL value back to a color. Note that the hue is expected to \n"
|
| 181 |
+
"lie in the range from 0.0-1.0."),
|
| 182 |
+
::anno::author("NVIDIA vMaterials")
|
| 183 |
+
]]
|
| 184 |
+
{
|
| 185 |
+
float h = hsl.x, s = hsl.y, l = hsl.z;
|
| 186 |
+
float a = s * ::math::min(l, 1.0f - l);
|
| 187 |
+
return color(f_n(0.0, a, h, l),
|
| 188 |
+
f_n(8.0, a, h, l),
|
| 189 |
+
f_n(4.0, a, h, l));
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 193 |
+
{
|
| 194 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 195 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 196 |
+
return ::math::lerp(low, high, input);
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
base::anisotropy_return anisotropy_conversion(
|
| 200 |
+
float roughness = 0.0 ,
|
| 201 |
+
float anisotropy = 0.0 ,
|
| 202 |
+
float anisotropy_rotation = 0.0 ,
|
| 203 |
+
float3 tangent_u = state::texture_tangent_u(0)
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
base::anisotropy_return return_value(
|
| 207 |
+
roughness_u: roughness * roughness,
|
| 208 |
+
roughness_v: roughness * roughness,
|
| 209 |
+
tangent_u: tangent_u
|
| 210 |
+
);
|
| 211 |
+
if (anisotropy > 0.f) {
|
| 212 |
+
// Allows for infinite anisotropy when roughness==0, full roughness when anisotropy==0 (saturated later on)
|
| 213 |
+
return_value.roughness_u += math::pow(anisotropy,4);
|
| 214 |
+
|
| 215 |
+
if (anisotropy_rotation > 0.f && anisotropy_rotation < 1.f) {
|
| 216 |
+
float3 tangent_v = math::cross(state::normal(), tangent_u); // assumed these are normalized already
|
| 217 |
+
float rotation_angle = 2.f * math::PI * anisotropy_rotation;
|
| 218 |
+
return_value.tangent_u = tangent_u * math::cos(rotation_angle) - tangent_v * math::sin(rotation_angle);
|
| 219 |
+
}
|
| 220 |
+
}
|
| 221 |
+
return_value.roughness_u = math::min(1.f, return_value.roughness_u);
|
| 222 |
+
return_value.roughness_v = math::min(1.f, return_value.roughness_v);
|
| 223 |
+
|
| 224 |
+
return return_value;
|
| 225 |
+
}
|
| 226 |
+
|
| 227 |
+
export material Rug_Carpet_Base(
|
| 228 |
+
color carpet_color = color(0.139f, 0.139f, 0.139f) [[
|
| 229 |
+
::anno::description("Adjusts the color of the rug while keeping bright fibers well visible."),
|
| 230 |
+
::anno::display_name("Carpet Color"),
|
| 231 |
+
::anno::in_group("Appearance"),
|
| 232 |
+
::anno::ui_order(0)
|
| 233 |
+
]],
|
| 234 |
+
float roughness = 0.48f [[
|
| 235 |
+
::anno::description("Higher values lead to a less shiny appearance of the carpet."),
|
| 236 |
+
::anno::display_name("Reflection Roughness"),
|
| 237 |
+
::anno::in_group("Appearance"),
|
| 238 |
+
::anno::hard_range(0.f, 1.f),
|
| 239 |
+
::anno::ui_order(1)
|
| 240 |
+
]],
|
| 241 |
+
float roughness_variation = 0.04f [[
|
| 242 |
+
::anno::description("Adds variation to the roughness of the rug."),
|
| 243 |
+
::anno::display_name("Roughness Variation"),
|
| 244 |
+
::anno::in_group("Appearance"),
|
| 245 |
+
::anno::hard_range(0.f, 1.f),
|
| 246 |
+
::anno::ui_order(2)
|
| 247 |
+
]],
|
| 248 |
+
float pattern_AO = 0.59f [[
|
| 249 |
+
::anno::description("Adds darkening around the pattern of the rug."),
|
| 250 |
+
::anno::display_name("Pattern Visibility"),
|
| 251 |
+
::anno::in_group("Appearance"),
|
| 252 |
+
::anno::hard_range(0.f, 1.f),
|
| 253 |
+
::anno::ui_order(3)
|
| 254 |
+
]],
|
| 255 |
+
float bump_strength = 1.f [[
|
| 256 |
+
::anno::description("Adjusts the bumpiness of the pattern."),
|
| 257 |
+
::anno::display_name("Bump Strength"),
|
| 258 |
+
::anno::in_group("Appearance"),
|
| 259 |
+
::anno::hard_range(0.f, 2.f),
|
| 260 |
+
::anno::soft_range(0.f, 1.f),
|
| 261 |
+
::anno::ui_order(4)
|
| 262 |
+
]],
|
| 263 |
+
uniform float2 texture_translate = 0.f [[
|
| 264 |
+
::anno::description("Controls the position of the texture."),
|
| 265 |
+
::anno::display_name("Texture Translate"),
|
| 266 |
+
::anno::in_group("Transform"),
|
| 267 |
+
::anno::ui_order(5)
|
| 268 |
+
]],
|
| 269 |
+
uniform float texture_rotate = 0.f [[
|
| 270 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 271 |
+
::anno::display_name("Texture Rotate"),
|
| 272 |
+
::anno::in_group("Transform"),
|
| 273 |
+
::anno::soft_range(0.f, 360.f),
|
| 274 |
+
::anno::ui_order(6)
|
| 275 |
+
]],
|
| 276 |
+
uniform float2 texture_scale = 1.f [[
|
| 277 |
+
::anno::description("Larger numbers increase the size."),
|
| 278 |
+
::anno::display_name("Texture Scale"),
|
| 279 |
+
::anno::in_group("Transform"),
|
| 280 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 281 |
+
::anno::ui_order(7)
|
| 282 |
+
]],
|
| 283 |
+
uniform bool roundcorners_enable = false [[
|
| 284 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 285 |
+
::anno::display_name("Enable Round Corners"),
|
| 286 |
+
::anno::in_group("Round Corners"),
|
| 287 |
+
::anno::ui_order(8)
|
| 288 |
+
]],
|
| 289 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 290 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 291 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 292 |
+
::anno::in_group("Round Corners"),
|
| 293 |
+
::anno::soft_range(0.f, 10.f),
|
| 294 |
+
::anno::ui_order(9)
|
| 295 |
+
]],
|
| 296 |
+
uniform bool roundcorners_across_materials = false [[
|
| 297 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 298 |
+
::anno::display_name("Across Materials"),
|
| 299 |
+
::anno::in_group("Round Corners"),
|
| 300 |
+
::anno::ui_order(10)
|
| 301 |
+
]],
|
| 302 |
+
uniform int uv_space_index = 0 [[
|
| 303 |
+
::anno::description("Uses selected UV space for material."),
|
| 304 |
+
::anno::display_name("UV Space Index"),
|
| 305 |
+
::anno::in_group("Transform"),
|
| 306 |
+
::anno::ui_order(11)
|
| 307 |
+
]],
|
| 308 |
+
// the exchangeable textures
|
| 309 |
+
uniform texture_2d rug_fibers = texture_2d("./rug_carpet_multi_fibers.jpg", ::tex::gamma_linear),
|
| 310 |
+
uniform texture_2d rug_aniso = texture_2d("./rug_carpet_anisotropy.jpg", ::tex::gamma_linear),
|
| 311 |
+
uniform texture_2d rug_multi_R_rough_G_ao_B_patternao = texture_2d("./rug_carpet_01_multi_R_rough_G_ao_B_bumpao.jpg", ::tex::gamma_linear),
|
| 312 |
+
uniform texture_2d rug_normal = texture_2d("./rug_carpet_01_norm.jpg", ::tex::gamma_linear)
|
| 313 |
+
)
|
| 314 |
+
[[
|
| 315 |
+
::anno::author("NVIDIA vMaterials"),
|
| 316 |
+
::anno::contributor("Rüdiger Raab"),
|
| 317 |
+
::anno::contributor("Maik Rohland"),
|
| 318 |
+
::anno::display_name("Rug Carpet Template"),
|
| 319 |
+
::anno::description("Template for Rug Carpet Material."),
|
| 320 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 321 |
+
::anno::thumbnail("./.thumbs/Rug_Carpet.Rug_Carpet_Base.png"),
|
| 322 |
+
::anno::key_words(string[]("carpet", "fabric", "design", "automotive", "architecture", "interior", "new", "rough", "bumped", "gray")),
|
| 323 |
+
::anno::hidden()
|
| 324 |
+
]]
|
| 325 |
+
=
|
| 326 |
+
let {
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
bool tmp0 = false;
|
| 330 |
+
material_surface tmp1(::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(anisotropy_conversion(remap(roughness, 0.370000005f, 0.229999989f) * roughness_variation * ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono + histogram_range(float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.f, remap(roughness, 0.370000005f, 0.680000007f)), 0.680000007f, ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono, ::state::texture_tangent_u(0)).roughness_u, anisotropy_conversion(remap(roughness, 0.370000005f, 0.229999989f) * roughness_variation * ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono + histogram_range(float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.f, remap(roughness, 0.370000005f, 0.680000007f)), 0.680000007f, ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono, ::state::texture_tangent_u(0)).roughness_v, color(::math::lerp(1.f, float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, 0.310000002f) * float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z), color(0.f, 0.f, 0.f), anisotropy_conversion(remap(roughness, 0.370000005f, 0.229999989f) * roughness_variation * ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono + histogram_range(float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.f, remap(roughness, 0.370000005f, 0.680000007f)), 0.680000007f, ::base::file_texture(rug_aniso, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).mono, ::state::texture_tangent_u(0)).tangent_u, ::df::scatter_reflect), ::df::weighted_layer(0.5f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(hsl2rgb(rgb2hsl(float3(carpet_color)) * float3(1.f, 1.f, 0.519999981f)), carpet_color, ::base::color_layer_blend, float3(::math::pow(::base::file_texture(rug_fibers, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), 1.f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint, 2.20000005f)).x, true).tint, hsl2rgb(float3(rgb2hsl(float3(carpet_color)).x, rgb2hsl(float3(carpet_color)).y * 0.5f, remap(rgb2hsl(float3(carpet_color)).z, 0.519999981f, 1.f))), ::base::color_layer_blend, float3(::math::pow(::base::file_texture(rug_fibers, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), 1.f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint, 2.20000005f)).y, true).tint, hsl2rgb(float3(rgb2hsl(float3(carpet_color)).x, rgb2hsl(float3(carpet_color)).y, remap(rgb2hsl(float3(carpet_color)).z, 0.5f, 1.f))), ::base::color_layer_blend, float3(::math::pow(::base::file_texture(rug_fibers, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), 1.f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint, 2.20000005f)).z, true).tint, color(float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z), ::base::color_layer_multiply, pattern_AO, true).tint, color(float3(::base::file_texture(rug_multi_R_rough_G_ao_B_patternao, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y), ::base::color_layer_multiply, 0.550000012f, true).tint, 0.f), bsdf(), normalmap_normal(rug_normal, bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index))), normalmap_normal(rug_normal, bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, ::base::texture_coordinate_uvw, uv_space_index))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 331 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 332 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 333 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 334 |
+
material_geometry tmp5(float3(0.f), 1.f, roundcorners_enable ? ::state::rounded_corner_normal(roundcorners_radius_mm * 0.00100000005f, roundcorners_across_materials, 1.f) : ::state::normal());
|
| 335 |
+
} in
|
| 336 |
+
material(
|
| 337 |
+
thin_walled: tmp0,
|
| 338 |
+
surface: tmp1,
|
| 339 |
+
backface: tmp2,
|
| 340 |
+
ior: tmp3,
|
| 341 |
+
volume: tmp4,
|
| 342 |
+
geometry: tmp5);
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
// 1
|
| 346 |
+
export material Rug_Carpet_Lines(
|
| 347 |
+
color carpet_color = color(0.139f, 0.139f, 0.139f) [[
|
| 348 |
+
::anno::description("Adjusts the color of the rug while keeping bright fibers well visible."),
|
| 349 |
+
::anno::display_name("Carpet Color"),
|
| 350 |
+
::anno::in_group("Appearance"),
|
| 351 |
+
::anno::ui_order(0)
|
| 352 |
+
]],
|
| 353 |
+
float roughness = 0.48f [[
|
| 354 |
+
::anno::description("Higher values lead to a less shiny appearance of the carpet."),
|
| 355 |
+
::anno::display_name("Roughness"),
|
| 356 |
+
::anno::in_group("Appearance"),
|
| 357 |
+
::anno::hard_range(0.f, 1.f),
|
| 358 |
+
::anno::ui_order(1)
|
| 359 |
+
]],
|
| 360 |
+
float roughness_variation = 0.04f [[
|
| 361 |
+
::anno::description("Adds variation to the roughness of the rug."),
|
| 362 |
+
::anno::display_name("Roughness Variation"),
|
| 363 |
+
::anno::in_group("Appearance"),
|
| 364 |
+
::anno::hard_range(0.f, 1.f),
|
| 365 |
+
::anno::ui_order(2)
|
| 366 |
+
]],
|
| 367 |
+
float pattern_AO = 0.59f [[
|
| 368 |
+
::anno::description("Adds darkening around the pattern of the rug."),
|
| 369 |
+
::anno::display_name("Pattern Visibility"),
|
| 370 |
+
::anno::in_group("Appearance"),
|
| 371 |
+
::anno::hard_range(0.f, 1.f),
|
| 372 |
+
::anno::ui_order(3)
|
| 373 |
+
]],
|
| 374 |
+
float bump_strength = 1.f [[
|
| 375 |
+
::anno::description("Adjusts the bumpiness of the pattern."),
|
| 376 |
+
::anno::display_name("Bump Strength"),
|
| 377 |
+
::anno::in_group("Appearance"),
|
| 378 |
+
::anno::hard_range(0.f, 2.f),
|
| 379 |
+
::anno::soft_range(0.f, 1.f),
|
| 380 |
+
::anno::ui_order(4)
|
| 381 |
+
]],
|
| 382 |
+
uniform float2 texture_translate = 0.f [[
|
| 383 |
+
::anno::description("Controls the position of the texture."),
|
| 384 |
+
::anno::display_name("Texture Translate"),
|
| 385 |
+
::anno::in_group("Transform"),
|
| 386 |
+
::anno::ui_order(5)
|
| 387 |
+
]],
|
| 388 |
+
uniform float texture_rotate = 0.f [[
|
| 389 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 390 |
+
::anno::display_name("Texture Rotate"),
|
| 391 |
+
::anno::in_group("Transform"),
|
| 392 |
+
::anno::soft_range(0.f, 360.f),
|
| 393 |
+
::anno::ui_order(6)
|
| 394 |
+
]],
|
| 395 |
+
uniform float2 texture_scale = 1.f [[
|
| 396 |
+
::anno::description("Larger numbers increase the size."),
|
| 397 |
+
::anno::display_name("Texture Scale"),
|
| 398 |
+
::anno::in_group("Transform"),
|
| 399 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 400 |
+
::anno::ui_order(7)
|
| 401 |
+
]],
|
| 402 |
+
uniform bool roundcorners_enable = false [[
|
| 403 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 404 |
+
::anno::display_name("Enable Round Corners"),
|
| 405 |
+
::anno::in_group("Round Corners"),
|
| 406 |
+
::anno::ui_order(8)
|
| 407 |
+
]],
|
| 408 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 409 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 410 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 411 |
+
::anno::in_group("Round Corners"),
|
| 412 |
+
::anno::soft_range(0.f, 10.f),
|
| 413 |
+
::anno::ui_order(9)
|
| 414 |
+
]],
|
| 415 |
+
uniform bool roundcorners_across_materials = false [[
|
| 416 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 417 |
+
::anno::display_name("Across Materials"),
|
| 418 |
+
::anno::in_group("Round Corners"),
|
| 419 |
+
::anno::ui_order(10)
|
| 420 |
+
]],
|
| 421 |
+
uniform int uv_space_index = 0 [[
|
| 422 |
+
::anno::description("Uses selected UV space for material."),
|
| 423 |
+
::anno::display_name("UV Space Index"),
|
| 424 |
+
::anno::in_group("Transform"),
|
| 425 |
+
::anno::ui_order(11)
|
| 426 |
+
]]
|
| 427 |
+
)
|
| 428 |
+
[[
|
| 429 |
+
::anno::author("NVIDIA vMaterials"),
|
| 430 |
+
::anno::contributor("Rüdiger Raab"),
|
| 431 |
+
::anno::contributor("Maik Rohland"),
|
| 432 |
+
::anno::display_name("Rug Carpet - Lines Pattern"),
|
| 433 |
+
::anno::description("Rug Carpet Material with line pattern."),
|
| 434 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 435 |
+
::anno::thumbnail("./.thumbs/Rug_Carpet.Rug_Carpet_Lines.png"),
|
| 436 |
+
::anno::key_words(string[]("carpet", "fabric", "design", "automotive", "architecture", "pattern", "lines", "interior", "new", "rough", "bumped", "gray"))
|
| 437 |
+
]] = Rug_Carpet_Base(
|
| 438 |
+
carpet_color: carpet_color,
|
| 439 |
+
roughness: roughness,
|
| 440 |
+
roughness_variation: roughness_variation,
|
| 441 |
+
pattern_AO: pattern_AO,
|
| 442 |
+
bump_strength: bump_strength,
|
| 443 |
+
texture_translate: texture_translate,
|
| 444 |
+
texture_rotate: texture_rotate,
|
| 445 |
+
texture_scale: texture_scale,
|
| 446 |
+
roundcorners_enable: roundcorners_enable,
|
| 447 |
+
roundcorners_radius_mm: roundcorners_radius_mm,
|
| 448 |
+
roundcorners_across_materials: roundcorners_across_materials,
|
| 449 |
+
uv_space_index: uv_space_index,
|
| 450 |
+
rug_fibers: texture_2d("./rug_carpet_multi_fibers.jpg", ::tex::gamma_linear),
|
| 451 |
+
rug_aniso: texture_2d("./rug_carpet_anisotropy.jpg", ::tex::gamma_linear),
|
| 452 |
+
rug_multi_R_rough_G_ao_B_patternao: texture_2d("./rug_carpet_01_multi_R_rough_G_ao_B_bumpao.jpg", ::tex::gamma_linear),
|
| 453 |
+
rug_normal: texture_2d("./rug_carpet_01_norm.jpg", ::tex::gamma_linear)
|
| 454 |
+
);
|
| 455 |
+
|
| 456 |
+
|
| 457 |
+
// 2
|
| 458 |
+
export material Rug_Carpet_Hexagonal(
|
| 459 |
+
color carpet_color = color(0.139f, 0.139f, 0.139f) [[
|
| 460 |
+
::anno::description("Adjusts the color of the rug while keeping bright fibers well visible."),
|
| 461 |
+
::anno::display_name("Carpet Color"),
|
| 462 |
+
::anno::in_group("Appearance"),
|
| 463 |
+
::anno::ui_order(0)
|
| 464 |
+
]],
|
| 465 |
+
float roughness = 0.48f [[
|
| 466 |
+
::anno::description("Higher values lead to a less shiny appearance of the carpet."),
|
| 467 |
+
::anno::display_name("Roughness"),
|
| 468 |
+
::anno::in_group("Appearance"),
|
| 469 |
+
::anno::hard_range(0.f, 1.f),
|
| 470 |
+
::anno::ui_order(1)
|
| 471 |
+
]],
|
| 472 |
+
float roughness_variation = 0.04f [[
|
| 473 |
+
::anno::description("Adds variation to the roughness of the rug."),
|
| 474 |
+
::anno::display_name("Roughness Variation"),
|
| 475 |
+
::anno::in_group("Appearance"),
|
| 476 |
+
::anno::hard_range(0.f, 1.f),
|
| 477 |
+
::anno::ui_order(2)
|
| 478 |
+
]],
|
| 479 |
+
float pattern_AO = 0.59f [[
|
| 480 |
+
::anno::description("Adds darkening around the pattern of the rug."),
|
| 481 |
+
::anno::display_name("Pattern Visibility"),
|
| 482 |
+
::anno::in_group("Appearance"),
|
| 483 |
+
::anno::hard_range(0.f, 1.f),
|
| 484 |
+
::anno::ui_order(3)
|
| 485 |
+
]],
|
| 486 |
+
float bump_strength = 1.f [[
|
| 487 |
+
::anno::description("Adjusts the bumpiness of the pattern."),
|
| 488 |
+
::anno::display_name("Bump Strength"),
|
| 489 |
+
::anno::in_group("Appearance"),
|
| 490 |
+
::anno::hard_range(0.f, 2.f),
|
| 491 |
+
::anno::soft_range(0.f, 1.f),
|
| 492 |
+
::anno::ui_order(4)
|
| 493 |
+
]],
|
| 494 |
+
uniform float2 texture_translate = 0.f [[
|
| 495 |
+
::anno::description("Controls the position of the texture."),
|
| 496 |
+
::anno::display_name("Texture Translate"),
|
| 497 |
+
::anno::in_group("Transform"),
|
| 498 |
+
::anno::ui_order(5)
|
| 499 |
+
]],
|
| 500 |
+
uniform float texture_rotate = 0.f [[
|
| 501 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 502 |
+
::anno::display_name("Texture Rotate"),
|
| 503 |
+
::anno::in_group("Transform"),
|
| 504 |
+
::anno::soft_range(0.f, 360.f),
|
| 505 |
+
::anno::ui_order(6)
|
| 506 |
+
]],
|
| 507 |
+
uniform float2 texture_scale = 1.f [[
|
| 508 |
+
::anno::description("Larger numbers increase the size."),
|
| 509 |
+
::anno::display_name("Texture Scale"),
|
| 510 |
+
::anno::in_group("Transform"),
|
| 511 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 512 |
+
::anno::ui_order(7)
|
| 513 |
+
]],
|
| 514 |
+
uniform bool roundcorners_enable = false [[
|
| 515 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 516 |
+
::anno::display_name("Enable Round Corners"),
|
| 517 |
+
::anno::in_group("Round Corners"),
|
| 518 |
+
::anno::ui_order(8)
|
| 519 |
+
]],
|
| 520 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 521 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 522 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 523 |
+
::anno::in_group("Round Corners"),
|
| 524 |
+
::anno::soft_range(0.f, 10.f),
|
| 525 |
+
::anno::ui_order(9)
|
| 526 |
+
]],
|
| 527 |
+
uniform bool roundcorners_across_materials = false [[
|
| 528 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 529 |
+
::anno::display_name("Across Materials"),
|
| 530 |
+
::anno::in_group("Round Corners"),
|
| 531 |
+
::anno::ui_order(10)
|
| 532 |
+
]],
|
| 533 |
+
uniform int uv_space_index = 0 [[
|
| 534 |
+
::anno::description("Uses selected UV space for material."),
|
| 535 |
+
::anno::display_name("UV Space Index"),
|
| 536 |
+
::anno::in_group("Transform"),
|
| 537 |
+
::anno::ui_order(11)
|
| 538 |
+
]]
|
| 539 |
+
)
|
| 540 |
+
[[
|
| 541 |
+
::anno::author("NVIDIA vMaterials"),
|
| 542 |
+
::anno::contributor("Rüdiger Raab"),
|
| 543 |
+
::anno::contributor("Maik Rohland"),
|
| 544 |
+
::anno::display_name("Rug Carpet - Hexagonal Pattern"),
|
| 545 |
+
::anno::description("Rug carpet material with hexagonal pattern."),
|
| 546 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 547 |
+
::anno::thumbnail("./.thumbs/Rug_Carpet.Rug_Carpet_Hexagonal.png"),
|
| 548 |
+
::anno::key_words(string[]("carpet", "fabric", "design", "automotive", "architecture", "pattern", "hexagonal", "interior", "new", "rough", "bumped", "gray"))
|
| 549 |
+
]] = Rug_Carpet_Base(
|
| 550 |
+
carpet_color: carpet_color,
|
| 551 |
+
roughness: roughness,
|
| 552 |
+
roughness_variation: roughness_variation,
|
| 553 |
+
pattern_AO: pattern_AO,
|
| 554 |
+
bump_strength: bump_strength,
|
| 555 |
+
texture_translate: texture_translate,
|
| 556 |
+
texture_rotate: texture_rotate,
|
| 557 |
+
texture_scale: texture_scale,
|
| 558 |
+
roundcorners_enable: roundcorners_enable,
|
| 559 |
+
roundcorners_radius_mm: roundcorners_radius_mm,
|
| 560 |
+
roundcorners_across_materials: roundcorners_across_materials,
|
| 561 |
+
uv_space_index: uv_space_index,
|
| 562 |
+
rug_fibers: texture_2d("./rug_carpet_multi_fibers.jpg", ::tex::gamma_linear),
|
| 563 |
+
rug_aniso: texture_2d("./rug_carpet_anisotropy.jpg", ::tex::gamma_linear),
|
| 564 |
+
rug_multi_R_rough_G_ao_B_patternao: texture_2d("./rug_carpet_02_multi_R_rough_G_ao_B_bumpao.jpg", ::tex::gamma_linear),
|
| 565 |
+
rug_normal: texture_2d("./rug_carpet_02_norm.jpg", ::tex::gamma_linear)
|
| 566 |
+
);
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
// 3
|
| 570 |
+
export material Rug_Carpet_Honeycomb(
|
| 571 |
+
color carpet_color = color(0.139f, 0.139f, 0.139f) [[
|
| 572 |
+
::anno::description("Adjusts the color of the rug while keeping bright fibers well visible."),
|
| 573 |
+
::anno::display_name("Carpet Color"),
|
| 574 |
+
::anno::in_group("Appearance"),
|
| 575 |
+
::anno::ui_order(0)
|
| 576 |
+
]],
|
| 577 |
+
float roughness = 0.48f [[
|
| 578 |
+
::anno::description("Higher values lead to a less shiny appearance of the carpet."),
|
| 579 |
+
::anno::display_name("Roughness"),
|
| 580 |
+
::anno::in_group("Appearance"),
|
| 581 |
+
::anno::hard_range(0.f, 1.f),
|
| 582 |
+
::anno::ui_order(1)
|
| 583 |
+
]],
|
| 584 |
+
float roughness_variation = 0.04f [[
|
| 585 |
+
::anno::description("Adds variation to the roughness of the rug."),
|
| 586 |
+
::anno::display_name("Roughness Variation"),
|
| 587 |
+
::anno::in_group("Appearance"),
|
| 588 |
+
::anno::hard_range(0.f, 1.f),
|
| 589 |
+
::anno::ui_order(2)
|
| 590 |
+
]],
|
| 591 |
+
float pattern_AO = 0.59f [[
|
| 592 |
+
::anno::description("Adds darkening around the pattern of the rug."),
|
| 593 |
+
::anno::display_name("Pattern Visibility"),
|
| 594 |
+
::anno::in_group("Appearance"),
|
| 595 |
+
::anno::hard_range(0.f, 1.f),
|
| 596 |
+
::anno::ui_order(3)
|
| 597 |
+
]],
|
| 598 |
+
float bump_strength = 1.f [[
|
| 599 |
+
::anno::description("Adjusts the bumpiness of the pattern."),
|
| 600 |
+
::anno::display_name("Bump Strength"),
|
| 601 |
+
::anno::in_group("Appearance"),
|
| 602 |
+
::anno::hard_range(0.f, 2.f),
|
| 603 |
+
::anno::soft_range(0.f, 1.f),
|
| 604 |
+
::anno::ui_order(4)
|
| 605 |
+
]],
|
| 606 |
+
uniform float2 texture_translate = 0.f [[
|
| 607 |
+
::anno::description("Controls the position of the texture."),
|
| 608 |
+
::anno::display_name("Texture Translate"),
|
| 609 |
+
::anno::in_group("Transform"),
|
| 610 |
+
::anno::ui_order(5)
|
| 611 |
+
]],
|
| 612 |
+
uniform float texture_rotate = 0.f [[
|
| 613 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 614 |
+
::anno::display_name("Texture Rotate"),
|
| 615 |
+
::anno::in_group("Transform"),
|
| 616 |
+
::anno::soft_range(0.f, 360.f),
|
| 617 |
+
::anno::ui_order(6)
|
| 618 |
+
]],
|
| 619 |
+
uniform float2 texture_scale = 1.f [[
|
| 620 |
+
::anno::description("Larger numbers increase the size."),
|
| 621 |
+
::anno::display_name("Texture Scale"),
|
| 622 |
+
::anno::in_group("Transform"),
|
| 623 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 624 |
+
::anno::ui_order(7)
|
| 625 |
+
]],
|
| 626 |
+
uniform bool roundcorners_enable = false [[
|
| 627 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 628 |
+
::anno::display_name("Enable Round Corners"),
|
| 629 |
+
::anno::in_group("Round Corners"),
|
| 630 |
+
::anno::ui_order(8)
|
| 631 |
+
]],
|
| 632 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 633 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 634 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 635 |
+
::anno::in_group("Round Corners"),
|
| 636 |
+
::anno::soft_range(0.f, 10.f),
|
| 637 |
+
::anno::ui_order(9)
|
| 638 |
+
]],
|
| 639 |
+
uniform bool roundcorners_across_materials = false [[
|
| 640 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 641 |
+
::anno::display_name("Across Materials"),
|
| 642 |
+
::anno::in_group("Round Corners"),
|
| 643 |
+
::anno::ui_order(10)
|
| 644 |
+
]],
|
| 645 |
+
uniform int uv_space_index = 0 [[
|
| 646 |
+
::anno::description("Uses selected UV space for material."),
|
| 647 |
+
::anno::display_name("UV Space Index"),
|
| 648 |
+
::anno::in_group("Transform"),
|
| 649 |
+
::anno::ui_order(11)
|
| 650 |
+
]]
|
| 651 |
+
)
|
| 652 |
+
[[
|
| 653 |
+
::anno::author("NVIDIA vMaterials"),
|
| 654 |
+
::anno::contributor("Rüdiger Raab"),
|
| 655 |
+
::anno::contributor("Maik Rohland"),
|
| 656 |
+
::anno::display_name("Rug Carpet - Honeycomb"),
|
| 657 |
+
::anno::description("Rug carpet material with stylized honeycomb pattern."),
|
| 658 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 659 |
+
::anno::thumbnail("./.thumbs/Rug_Carpet.Rug_Carpet_Honeycomb.png"),
|
| 660 |
+
::anno::key_words(string[]("carpet", "fabric", "design", "automotive", "architecture", "pattern", "honeycomb", "modern", "hexagonal", "interior", "new", "rough", "bumped", "gray"))
|
| 661 |
+
]] = Rug_Carpet_Base(
|
| 662 |
+
carpet_color: carpet_color,
|
| 663 |
+
roughness: roughness,
|
| 664 |
+
roughness_variation: roughness_variation,
|
| 665 |
+
pattern_AO: pattern_AO,
|
| 666 |
+
bump_strength: bump_strength,
|
| 667 |
+
texture_translate: texture_translate,
|
| 668 |
+
texture_rotate: texture_rotate,
|
| 669 |
+
texture_scale: texture_scale,
|
| 670 |
+
roundcorners_enable: roundcorners_enable,
|
| 671 |
+
roundcorners_radius_mm: roundcorners_radius_mm,
|
| 672 |
+
roundcorners_across_materials: roundcorners_across_materials,
|
| 673 |
+
uv_space_index: uv_space_index,
|
| 674 |
+
rug_fibers: texture_2d("./rug_carpet_multi_fibers.jpg", ::tex::gamma_linear),
|
| 675 |
+
rug_aniso: texture_2d("./rug_carpet_anisotropy.jpg", ::tex::gamma_linear),
|
| 676 |
+
rug_multi_R_rough_G_ao_B_patternao: texture_2d("./rug_carpet_03_multi_R_rough_G_ao_B_bumpao.jpg", ::tex::gamma_linear),
|
| 677 |
+
rug_normal: texture_2d("./rug_carpet_03_norm.jpg", ::tex::gamma_linear)
|
| 678 |
+
);
|
| 679 |
+
|
| 680 |
+
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
|
| 687 |
+
|
| 688 |
+
|
| 689 |
+
|
| 690 |
+
|
| 691 |
+
|
| 692 |
+
|
| 693 |
+
|
| 694 |
+
|
| 695 |
+
|
| 696 |
+
|
| 697 |
+
|
| 698 |
+
|
Material/material_0293/Ceramic_Tiles_Glazed_Diamond_Offset.mdl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Material/material_0317/Stone_Pores_Weathered.mdl
ADDED
|
@@ -0,0 +1,706 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved. *
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.5;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
const string COPYRIGHT =
|
| 50 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 51 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 52 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 53 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 54 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 55 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 56 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 57 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 58 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 59 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 60 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 61 |
+
|
| 62 |
+
const string DESCRIPTION = "A stone wall material";
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
float remap(float input, float low_1, float high_1, float low_2, float high_2)
|
| 67 |
+
{
|
| 68 |
+
return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
float3 transform_internal_to_tangent(float3 n)
|
| 73 |
+
[[
|
| 74 |
+
::anno::hidden()
|
| 75 |
+
]]
|
| 76 |
+
{
|
| 77 |
+
return
|
| 78 |
+
n.x* float3(::state::texture_tangent_u(0).x,::state::texture_tangent_v(0).x,::state::normal().x)+
|
| 79 |
+
n.y* float3(::state::texture_tangent_u(0).y,::state::texture_tangent_v(0).y,::state::normal().y)+
|
| 80 |
+
n.z* float3(::state::texture_tangent_u(0).z,::state::texture_tangent_v(0).z,::state::normal().z);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
// Returns the normal n in internal space, given n is in tangent space.
|
| 84 |
+
float3 transform_tangent_to_internal(float3 n)
|
| 85 |
+
[[
|
| 86 |
+
::anno::hidden()
|
| 87 |
+
]]
|
| 88 |
+
{
|
| 89 |
+
return ::state::texture_tangent_u(0) * n.x +
|
| 90 |
+
::state::texture_tangent_v(0) * n.y +
|
| 91 |
+
::state::normal() * n.z ;
|
| 92 |
+
}
|
| 93 |
+
::base::texture_coordinate_info transform_coordinate_2(
|
| 94 |
+
float4x4 transform
|
| 95 |
+
[[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]],
|
| 96 |
+
::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
|
| 97 |
+
[[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]]
|
| 98 |
+
) [[
|
| 99 |
+
::anno::description("Transform a texture coordinate by a matrix.") ,
|
| 100 |
+
::anno::noinline()
|
| 101 |
+
]]
|
| 102 |
+
{
|
| 103 |
+
|
| 104 |
+
// Version 2
|
| 105 |
+
float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
|
| 106 |
+
//Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
|
| 107 |
+
//just pretend there is no other rotation happening
|
| 108 |
+
//get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
|
| 109 |
+
float4 u = transform[0];
|
| 110 |
+
float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
|
| 111 |
+
float cos = ru.x;
|
| 112 |
+
float sin = -ru.y;
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
return ::base::texture_coordinate_info(
|
| 116 |
+
float3(r_position.x,r_position.y,r_position.z),
|
| 117 |
+
::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
|
| 118 |
+
::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
::base::texture_coordinate_info vmat_transform(
|
| 123 |
+
float2 translation = float2(0.0, 0.0),
|
| 124 |
+
float rotation = 0.0, // rotation in degrees
|
| 125 |
+
float2 scaling = float2(1.0, 1.0),
|
| 126 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 127 |
+
uniform int uv_space = 0
|
| 128 |
+
)
|
| 129 |
+
{
|
| 130 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 131 |
+
float4x4 scale =
|
| 132 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 133 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 134 |
+
0. , 0. , 1.0, 0.,
|
| 135 |
+
translation.x , translation.y , 0.0, 1.);
|
| 136 |
+
|
| 137 |
+
float s = ::math::sin(rotation_rad);
|
| 138 |
+
float c = ::math::cos(rotation_rad);
|
| 139 |
+
float4x4 rotate =
|
| 140 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 141 |
+
s , c , 0.0 , 0.0,
|
| 142 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 143 |
+
0. , 0.0 , 0.0 , 1.);
|
| 144 |
+
|
| 145 |
+
return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 146 |
+
}
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
float3 add_detail_normal(float3 nd = ::state::normal(), float3 n = ::state::normal())
|
| 150 |
+
{
|
| 151 |
+
// http://blog.selfshadow.com/publications/blending-in-detail/
|
| 152 |
+
float3 n_t = transform_internal_to_tangent(n);
|
| 153 |
+
float3 nd_t = transform_internal_to_tangent(nd);
|
| 154 |
+
|
| 155 |
+
n_t=n_t + float3(0.,0.,1.);
|
| 156 |
+
nd_t = nd_t * float3(-1.,-1.,1.);
|
| 157 |
+
|
| 158 |
+
n = n_t*::math::dot(n_t, nd_t)/n_t.z - nd_t;
|
| 159 |
+
return ::math::normalize(transform_tangent_to_internal(n));
|
| 160 |
+
}
|
| 161 |
+
|
| 162 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 163 |
+
{
|
| 164 |
+
return (input - x)/(y - x);
|
| 165 |
+
}
|
| 166 |
+
|
| 167 |
+
float histogram_scan_small(float input, float width, float position)
|
| 168 |
+
{
|
| 169 |
+
return ::math::clamp(
|
| 170 |
+
remap_xy_to_0_1(input,
|
| 171 |
+
::math::lerp(0.0, 1.0 - width, position),
|
| 172 |
+
::math::lerp(width, 1.0 , position)),
|
| 173 |
+
0.0,
|
| 174 |
+
1.0);
|
| 175 |
+
}
|
| 176 |
+
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
float histogram_scan_big(float input, float width, float position)
|
| 180 |
+
{
|
| 181 |
+
return ::math::clamp(
|
| 182 |
+
remap_xy_to_0_1(input,
|
| 183 |
+
::math::lerp(-width, 1.0, position),
|
| 184 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 185 |
+
0.0,
|
| 186 |
+
1.0);
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
int lowbias32(int x)
|
| 190 |
+
{
|
| 191 |
+
x ^= x >>> 16;
|
| 192 |
+
x *= 0x7feb352d;
|
| 193 |
+
x ^= x >>> 15;
|
| 194 |
+
x *= 0x846ca68b;
|
| 195 |
+
x ^= x >>> 16;
|
| 196 |
+
return x;
|
| 197 |
+
}
|
| 198 |
+
|
| 199 |
+
float uint2float(int x)
|
| 200 |
+
{
|
| 201 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 202 |
+
}
|
| 203 |
+
|
| 204 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 205 |
+
{
|
| 206 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 207 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 208 |
+
return ::math::lerp(low, high, input);
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
float2 rnd22(int2 p) {
|
| 214 |
+
float2 ret_val = float2(
|
| 215 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 216 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 217 |
+
);
|
| 218 |
+
return ret_val;
|
| 219 |
+
}
|
| 220 |
+
|
| 221 |
+
float2x2 invert_2x2(float2x2 M)
|
| 222 |
+
{
|
| 223 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 224 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 225 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 226 |
+
}
|
| 227 |
+
|
| 228 |
+
color hue_shift(
|
| 229 |
+
color input = color(1.0, 0.0, 0.0),
|
| 230 |
+
float hue_adjust = 0.0f
|
| 231 |
+
)
|
| 232 |
+
{
|
| 233 |
+
float3 in_color = float3(input);
|
| 234 |
+
float3 kRGBToYPrime = float3 (0.299, 0.587, 0.114);
|
| 235 |
+
float3 kRGBToI = float3 (0.596, -0.275, -0.321);
|
| 236 |
+
float3 kRGBToQ = float3 (0.212, -0.523, 0.311);
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
//color converted = color(kRGBToQ);
|
| 240 |
+
float3 kYIQToR = float3 (1.0, 0.956, 0.621);
|
| 241 |
+
float3 kYIQToG = float3 (1.0, -0.272, -0.647);
|
| 242 |
+
float3 kYIQToB = float3 (1.0, -1.107, 1.704);
|
| 243 |
+
|
| 244 |
+
float YPrime = ::math::dot(in_color, kRGBToYPrime);
|
| 245 |
+
float I = ::math::dot(in_color, kRGBToI);
|
| 246 |
+
float Q = ::math::dot(in_color, kRGBToQ);
|
| 247 |
+
float hue = ::math::atan2(Q, I);
|
| 248 |
+
float chroma = ::math::sqrt(I * I + Q * Q);
|
| 249 |
+
|
| 250 |
+
hue += hue_adjust;
|
| 251 |
+
|
| 252 |
+
Q = chroma * ::math::sin(hue);
|
| 253 |
+
I = chroma * ::math::cos(hue);
|
| 254 |
+
|
| 255 |
+
float3 yIQ = float3 (YPrime, I, Q);
|
| 256 |
+
|
| 257 |
+
return color(::math::dot (yIQ, kYIQToR),::math::dot (yIQ, kYIQToG), ::math::dot (yIQ, kYIQToB) );
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
// Taken from https://www.shadertoy.com/view/4tlBWB
|
| 261 |
+
float3 hsv2rgb(float3 c)
|
| 262 |
+
{
|
| 263 |
+
float4 K = float4(1.0, 2.0/3.0, 1.0/3.0, 3.0);
|
| 264 |
+
float3 p = ::math::abs(::math::frac(float3(c.x) + float3(K.x, K.y, K.z)) * 6.0 - float3(K.w));
|
| 265 |
+
return c.z * ::math::lerp(float3(K.x), ::math::clamp(p - float3(K.x), 0.0, 1.0), c.y);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
|
| 269 |
+
float3 srgb2rgb(float3 val)
|
| 270 |
+
{
|
| 271 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 272 |
+
}
|
| 273 |
+
float3 nonrepeat_lookup(
|
| 274 |
+
uniform texture_2d texture = texture_2d(),
|
| 275 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 276 |
+
float texture_scale = 1.0,
|
| 277 |
+
float3 average_color = float3(0.5),
|
| 278 |
+
float patch_size = 8.0
|
| 279 |
+
)
|
| 280 |
+
{
|
| 281 |
+
|
| 282 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 283 |
+
float Z = patch_size; // patch scale inside example texture
|
| 284 |
+
float CON = 1.0f;
|
| 285 |
+
|
| 286 |
+
float3 O = float3(0.f);
|
| 287 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 288 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 289 |
+
|
| 290 |
+
float2 U = uv_in;
|
| 291 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 292 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 293 |
+
|
| 294 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 295 |
+
// average color work out, take the float value and calculate the apropriate
|
| 296 |
+
// mean value as (value^(1/2.2))
|
| 297 |
+
|
| 298 |
+
float3 m = average_color;
|
| 299 |
+
|
| 300 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 301 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 302 |
+
|
| 303 |
+
if( F[2] > 0.f )
|
| 304 |
+
|
| 305 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 306 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 307 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 308 |
+
else
|
| 309 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 310 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 311 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 312 |
+
O = m + O/::math::length(W);
|
| 313 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 314 |
+
|
| 315 |
+
return float3(O);
|
| 316 |
+
}
|
| 317 |
+
color endless_texture(
|
| 318 |
+
uniform texture_2d texture = texture_2d(),
|
| 319 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 320 |
+
float texture_scale = 10.0,
|
| 321 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 322 |
+
float patch_size = 8.0,
|
| 323 |
+
bool gamma_correct_lookup = true
|
| 324 |
+
)
|
| 325 |
+
{
|
| 326 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 327 |
+
nonrepeat_lookup (
|
| 328 |
+
texture: texture,
|
| 329 |
+
uvw: uvw,
|
| 330 |
+
texture_scale: texture_scale,
|
| 331 |
+
average_color: average_color,
|
| 332 |
+
patch_size: patch_size
|
| 333 |
+
))
|
| 334 |
+
) : color(nonrepeat_lookup (
|
| 335 |
+
texture: texture,
|
| 336 |
+
uvw: uvw,
|
| 337 |
+
texture_scale: texture_scale,
|
| 338 |
+
average_color: average_color,
|
| 339 |
+
patch_size: patch_size
|
| 340 |
+
));
|
| 341 |
+
}
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
float3 endless_normal(
|
| 346 |
+
uniform texture_2d texture = texture_2d(),
|
| 347 |
+
float factor = 1.0,
|
| 348 |
+
bool flip_tangent_u = false,
|
| 349 |
+
bool flip_tangent_v = false,
|
| 350 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 351 |
+
float texture_scale = 1.0,
|
| 352 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 353 |
+
float patch_size = 8.0
|
| 354 |
+
//bool srgb2rgb = false,
|
| 355 |
+
//bool rgb2srgb = false
|
| 356 |
+
)
|
| 357 |
+
{
|
| 358 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 359 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 360 |
+
|
| 361 |
+
if (flip_tangent_u)
|
| 362 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 363 |
+
if (flip_tangent_v)
|
| 364 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 365 |
+
|
| 366 |
+
// normalized Lookup
|
| 367 |
+
float3 tangent_space_normal =
|
| 368 |
+
(nonrepeat_lookup (
|
| 369 |
+
texture: texture,
|
| 370 |
+
uvw: uvw,
|
| 371 |
+
texture_scale: texture_scale,
|
| 372 |
+
average_color: average_color,
|
| 373 |
+
patch_size: patch_size
|
| 374 |
+
) - 0.5) * (2.0 * factor);
|
| 375 |
+
|
| 376 |
+
|
| 377 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 378 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 379 |
+
::state::normal()*1.0);
|
| 380 |
+
//return ::state::normal();
|
| 381 |
+
}
|
| 382 |
+
|
| 383 |
+
export material Stone_Pores_Weathered(
|
| 384 |
+
uniform bool infinite_tiling = true [[
|
| 385 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns. Note that depending on the material this feature changes the appearance of the material slightly.\t."),
|
| 386 |
+
::anno::display_name("Infinite Tiling"),
|
| 387 |
+
::anno::in_group("Appearance")
|
| 388 |
+
]],
|
| 389 |
+
float stone_diffuse_brightness = 0.8f [[
|
| 390 |
+
::anno::description("Adjusts the lightness of the stones and pebbles."),
|
| 391 |
+
::anno::display_name("Brightness"),
|
| 392 |
+
::anno::in_group("Appearance", "Stone"),
|
| 393 |
+
::anno::hard_range(0.f, 1.f)
|
| 394 |
+
]],
|
| 395 |
+
float reflection_roughness = 1.f [[
|
| 396 |
+
::anno::description("Controls the roughness appearance. Smaller areas are highlighted."),
|
| 397 |
+
::anno::display_name("Roughness"),
|
| 398 |
+
::anno::in_group("Appearance", "Stone"),
|
| 399 |
+
::anno::hard_range(0.f, 1.f)
|
| 400 |
+
]],
|
| 401 |
+
uniform float stones_bump_strength = 1.f [[
|
| 402 |
+
::anno::description("Drives the bumpiness of the stones."),
|
| 403 |
+
::anno::display_name("Bump Strength"),
|
| 404 |
+
::anno::in_group("Appearance", "Stone"),
|
| 405 |
+
::anno::hard_range(0.f, 1.f)
|
| 406 |
+
]],
|
| 407 |
+
float moss_brightness = 0.6f [[
|
| 408 |
+
::anno::description("Adjusts the brightness of the moss."),
|
| 409 |
+
::anno::display_name("Brightness"),
|
| 410 |
+
::anno::in_group("Appearance", "Moss"),
|
| 411 |
+
::anno::hard_range(0.f, 1.f)
|
| 412 |
+
]],
|
| 413 |
+
float moss_saturation = 0.79f [[
|
| 414 |
+
::anno::description("Controls the saturation of the moss."),
|
| 415 |
+
::anno::display_name("Saturation"),
|
| 416 |
+
::anno::in_group("Appearance", "Moss"),
|
| 417 |
+
::anno::hard_range(0.f, 1.f)
|
| 418 |
+
]],
|
| 419 |
+
float moss_distribution_amount = 0.f [[
|
| 420 |
+
::anno::description("A lower value makes the moss grow more unevenly across the surface."),
|
| 421 |
+
::anno::display_name("Coverage"),
|
| 422 |
+
::anno::in_group("Appearance", "Moss"),
|
| 423 |
+
::anno::hard_range(0.f, 1.f)
|
| 424 |
+
]],
|
| 425 |
+
float moss_height_growth = 1.f [[
|
| 426 |
+
::anno::description("Controls the growth of the moss material."),
|
| 427 |
+
::anno::display_name("Growth"),
|
| 428 |
+
::anno::in_group("Appearance", "Moss"),
|
| 429 |
+
::anno::hard_range(0.f, 1.f)
|
| 430 |
+
]],
|
| 431 |
+
float moss_weight = 1.f [[
|
| 432 |
+
::anno::description("Decreasing this parameter makes the moss layer more transparent."),
|
| 433 |
+
::anno::display_name("Weight"),
|
| 434 |
+
::anno::in_group("Appearance", "Moss"),
|
| 435 |
+
::anno::hard_range(0.f, 1.f)
|
| 436 |
+
]],
|
| 437 |
+
float moss_moisture = 1.f [[
|
| 438 |
+
::anno::description("Makes mossy areas more reflectivy to give them a wet appearance."),
|
| 439 |
+
::anno::display_name("Moisture"),
|
| 440 |
+
::anno::in_group("Appearance", "Moss"),
|
| 441 |
+
::anno::hard_range(0.f, 1.f)
|
| 442 |
+
]],
|
| 443 |
+
uniform float moss_bump_factor = 1.f [[
|
| 444 |
+
::anno::description("Determines the degree of bumpiness of the moss."),
|
| 445 |
+
::anno::display_name("Bump Strength"),
|
| 446 |
+
::anno::in_group("Appearance", "Moss"),
|
| 447 |
+
::anno::hard_range(0.f, 1.f)
|
| 448 |
+
]],
|
| 449 |
+
float2 texture_translate = 0.f [[
|
| 450 |
+
::anno::description("Controls the position of the texture."),
|
| 451 |
+
::anno::display_name("Translate"),
|
| 452 |
+
::anno::in_group("Transform")
|
| 453 |
+
]],
|
| 454 |
+
float texture_rotate = 0.f [[
|
| 455 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 456 |
+
::anno::display_name("Rotate"),
|
| 457 |
+
::anno::in_group("Transform")
|
| 458 |
+
]],
|
| 459 |
+
float2 texture_scale = 0.5f [[
|
| 460 |
+
::anno::description("Larger numbers increase the size."),
|
| 461 |
+
::anno::display_name("Scale"),
|
| 462 |
+
::nvidia::core_definitions::dimension(float2(1.2f, 1.2f)),
|
| 463 |
+
::anno::in_group("Transform")
|
| 464 |
+
]],
|
| 465 |
+
uniform bool enable_round_corners = false [[
|
| 466 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 467 |
+
::anno::display_name("Enable Round Corners"),
|
| 468 |
+
::anno::in_group("Round Corners")
|
| 469 |
+
]],
|
| 470 |
+
uniform bool across_materials = true [[
|
| 471 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 472 |
+
::anno::display_name("Across Materials"),
|
| 473 |
+
::anno::in_group("Round Corners")
|
| 474 |
+
]],
|
| 475 |
+
uniform float radius = 0.00200000009f [[
|
| 476 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 477 |
+
::anno::display_name("Round Corner Radius"),
|
| 478 |
+
::anno::in_group("Round Corners")
|
| 479 |
+
]],
|
| 480 |
+
uniform int uv_space_index = 0 [[
|
| 481 |
+
::anno::description("Use selected UV space for material."),
|
| 482 |
+
::anno::display_name("UV Space Index"),
|
| 483 |
+
::anno::in_group("Advanced")
|
| 484 |
+
]])
|
| 485 |
+
[[
|
| 486 |
+
::anno::display_name("Stone Pores Weathered"),
|
| 487 |
+
::anno::description(DESCRIPTION),
|
| 488 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 489 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial")),
|
| 490 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Stone_Pores_Weathered.png"),
|
| 491 |
+
::anno::author("NVIDIA vMaterials"),
|
| 492 |
+
::anno::contributor("Maik Rohland"),
|
| 493 |
+
::anno::contributor("Ruediger Raab")
|
| 494 |
+
]]
|
| 495 |
+
=
|
| 496 |
+
let {
|
| 497 |
+
bool tmp0 = false;
|
| 498 |
+
material_surface tmp1(::df::custom_curve_layer(0.0299999993f, 1.f, 5.f, histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.209999993f, 0.75999999f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(::math::lerp(::math::lerp(-0.419999987f, 1.75f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), 0.75f - ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.5f, 1.f, 0.f, 1.f), 0.f, 1.f) * ::math::lerp(1.20000005f, -1.f, reflection_roughness), histogram_scan_small(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.200000003f, 0.600000024f)), histogram_range(::math::lerp(1.f, 0.f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1]), 0.48999998f, ::math::lerp(1.f, 0.680000007f, moss_moisture)), ::math::lerp(0.f, ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f)), ::math::lerp(0.f, 2.f, moss_weight))) * ::math::lerp(::math::lerp(::math::lerp(-0.419999987f, 1.75f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), 0.75f - ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.5f, 1.f, 0.f, 1.f), 0.f, 1.f) * ::math::lerp(1.20000005f, -1.f, reflection_roughness), histogram_scan_small(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.200000003f, 0.600000024f)), histogram_range(::math::lerp(1.f, 0.f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1]), 0.48999998f, ::math::lerp(1.f, 0.680000007f, moss_moisture)), ::math::lerp(0.f, ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f)), ::math::lerp(0.f, 2.f, moss_weight))), ::math::lerp(::math::lerp(::math::lerp(-0.419999987f, 1.75f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), 0.75f - ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.5f, 1.f, 0.f, 1.f), 0.f, 1.f) * ::math::lerp(1.20000005f, -1.f, reflection_roughness), histogram_scan_small(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.200000003f, 0.600000024f)), histogram_range(::math::lerp(1.f, 0.f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1]), 0.48999998f, ::math::lerp(1.f, 0.680000007f, moss_moisture)), ::math::lerp(0.f, ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f)), ::math::lerp(0.f, 2.f, moss_weight))) * ::math::lerp(::math::lerp(::math::lerp(-0.419999987f, 1.75f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), 0.75f - ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.5f, 1.f, 0.f, 1.f), 0.f, 1.f) * ::math::lerp(1.20000005f, -1.f, reflection_roughness), histogram_scan_small(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.200000003f, 0.600000024f)), histogram_range(::math::lerp(1.f, 0.f, float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1]), 0.48999998f, ::math::lerp(1.f, 0.680000007f, moss_moisture)), ::math::lerp(0.f, ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f)), ::math::lerp(0.f, 2.f, moss_weight))), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(::math::lerp(nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./stone_diff.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.49019599f, 0.466666996f, 0.435294002f), 8.f, true) : ::base::file_texture(texture_2d("./stone_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.5f, 0.200000003f)), ::base::color_layer_multiply, ::math::lerp(1.f, 0.f, stone_diffuse_brightness)).tint, hue_shift(nvidia::core_definitions::blend_colors(::base::file_texture(texture_2d("./moss_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(::math::pow(hsv2rgb(float3(0.2214614f, ::math::lerp(0.f, 0.699999988f, moss_saturation), ::math::lerp(0.175000012f, 0.699999988f, moss_brightness))), 2.20000005f)), ::base::color_layer_overlay, 1.f).tint, 5.95100021f), moss_height_growth * ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f))), 0.f, ""), bsdf(), add_detail_normal(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./moss_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, moss_bump_factor), false, false, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f), ::math::lerp(0.f, 2.f, moss_weight) * ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f))), infinite_tiling ? endless_normal(texture_2d("./stone_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, stones_bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.498039007f, 0.501960993f, 0.882353008f), 3.f) : ::base::tangent_space_normal_texture(texture_2d("./stone_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, stones_bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f))), add_detail_normal(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./moss_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, moss_bump_factor), false, false, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f), ::math::lerp(0.f, 2.f, moss_weight) * ::math::lerp(histogram_scan_big(float3(::base::file_texture(texture_2d("./multi_moss.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(0.638283014f, 0.638283014f, 0.638283014f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.379000008f, ::math::lerp(0.817000031f, 0.100000001f, moss_distribution_amount)), float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], ::math::clamp(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.572548985f, 0.988234997f, 0.505882025f), 3.f, false) : ::base::file_texture(texture_2d("./multi_stone.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.150000006f, ::math::lerp(0.200000003f, 0.680000007f, moss_height_growth)), 0.f, 1.f))), infinite_tiling ? endless_normal(texture_2d("./stone_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, stones_bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.498039007f, 0.501960993f, 0.882353008f), 3.f) : ::base::tangent_space_normal_texture(texture_2d("./stone_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 2.f, stones_bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 499 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 500 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 501 |
+
material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal());
|
| 502 |
+
} in
|
| 503 |
+
material(
|
| 504 |
+
thin_walled: tmp0,
|
| 505 |
+
surface: tmp1,
|
| 506 |
+
backface: tmp2,
|
| 507 |
+
ior: tmp3,
|
| 508 |
+
geometry: tmp5);
|
| 509 |
+
|
| 510 |
+
export material Dry_Bright_Stone(*)
|
| 511 |
+
[[
|
| 512 |
+
::anno::display_name("Dry Bright Stone"),
|
| 513 |
+
::anno::description(DESCRIPTION),
|
| 514 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 515 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "bright")),
|
| 516 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Dry_Bright_Stone.png"),
|
| 517 |
+
::anno::author("NVIDIA vMaterials"),
|
| 518 |
+
::anno::contributor("Maik Rohland"),
|
| 519 |
+
::anno::contributor("Ruediger Raab")
|
| 520 |
+
]]
|
| 521 |
+
= Stone_Pores_Weathered
|
| 522 |
+
(
|
| 523 |
+
infinite_tiling: false,
|
| 524 |
+
stone_diffuse_brightness: 0.6f,
|
| 525 |
+
reflection_roughness: 0.7f,
|
| 526 |
+
stones_bump_strength: 1.f,
|
| 527 |
+
moss_brightness: 0.f,
|
| 528 |
+
moss_saturation: 0.f,
|
| 529 |
+
moss_distribution_amount: 0.f,
|
| 530 |
+
moss_height_growth: 0.f,
|
| 531 |
+
moss_weight: 0.f,
|
| 532 |
+
moss_moisture: 0.f,
|
| 533 |
+
moss_bump_factor: 0.f,
|
| 534 |
+
texture_translate: 0.0f,
|
| 535 |
+
texture_rotate: 0.0f,
|
| 536 |
+
texture_scale: 1.0f,
|
| 537 |
+
enable_round_corners: false,
|
| 538 |
+
radius: 1.5f,
|
| 539 |
+
across_materials: true,
|
| 540 |
+
uv_space_index: 0
|
| 541 |
+
);
|
| 542 |
+
|
| 543 |
+
export material Matte_Stone(*)
|
| 544 |
+
[[
|
| 545 |
+
::anno::display_name("Matte Stone"),
|
| 546 |
+
::anno::description(DESCRIPTION),
|
| 547 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 548 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "matte")),
|
| 549 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Matte_Stone.png"),
|
| 550 |
+
::anno::author("NVIDIA vMaterials"),
|
| 551 |
+
::anno::contributor("Maik Rohland"),
|
| 552 |
+
::anno::contributor("Ruediger Raab")
|
| 553 |
+
]]
|
| 554 |
+
= Stone_Pores_Weathered
|
| 555 |
+
(
|
| 556 |
+
infinite_tiling: false,
|
| 557 |
+
stone_diffuse_brightness: 0.2f,
|
| 558 |
+
reflection_roughness: 0.f,
|
| 559 |
+
stones_bump_strength: 0.8f,
|
| 560 |
+
moss_brightness: 0.f,
|
| 561 |
+
moss_saturation: 0.f,
|
| 562 |
+
moss_distribution_amount: 0.f,
|
| 563 |
+
moss_height_growth: 0.f,
|
| 564 |
+
moss_weight: 0.f,
|
| 565 |
+
moss_moisture: 0.f,
|
| 566 |
+
moss_bump_factor: 0.f,
|
| 567 |
+
texture_translate: 0.0f,
|
| 568 |
+
texture_rotate: 0.0f,
|
| 569 |
+
texture_scale: 1.0f,
|
| 570 |
+
enable_round_corners: false,
|
| 571 |
+
radius: 1.5f,
|
| 572 |
+
across_materials: true,
|
| 573 |
+
uv_space_index: 0
|
| 574 |
+
);
|
| 575 |
+
|
| 576 |
+
export material Slightly_Grown_Moss(*)
|
| 577 |
+
[[
|
| 578 |
+
::anno::display_name("Slightly Grown Moss"),
|
| 579 |
+
::anno::description(DESCRIPTION),
|
| 580 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 581 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "slightly", "grown")),
|
| 582 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Slightly_Grown_Moss.png"),
|
| 583 |
+
::anno::author("NVIDIA vMaterials"),
|
| 584 |
+
::anno::contributor("Maik Rohland"),
|
| 585 |
+
::anno::contributor("Ruediger Raab")
|
| 586 |
+
]]
|
| 587 |
+
= Stone_Pores_Weathered
|
| 588 |
+
(
|
| 589 |
+
infinite_tiling: false,
|
| 590 |
+
stone_diffuse_brightness: 1.f,
|
| 591 |
+
reflection_roughness: 0.8f,
|
| 592 |
+
stones_bump_strength: 0.5f,
|
| 593 |
+
moss_brightness: 0.8f,
|
| 594 |
+
moss_saturation: 0.89f,
|
| 595 |
+
moss_distribution_amount: 1.f,
|
| 596 |
+
moss_height_growth: 0.55f,
|
| 597 |
+
moss_weight: 1.f,
|
| 598 |
+
moss_moisture: 0.5f,
|
| 599 |
+
moss_bump_factor: 1.f,
|
| 600 |
+
texture_translate: 0.0f,
|
| 601 |
+
texture_rotate: 0.0f,
|
| 602 |
+
texture_scale: 1.0f,
|
| 603 |
+
enable_round_corners: false,
|
| 604 |
+
radius: 1.5f,
|
| 605 |
+
across_materials: true,
|
| 606 |
+
uv_space_index: 0
|
| 607 |
+
);
|
| 608 |
+
|
| 609 |
+
export material Soft_Grown_Moss(*)
|
| 610 |
+
[[
|
| 611 |
+
::anno::display_name("Soft Grown Moss"),
|
| 612 |
+
::anno::description(DESCRIPTION),
|
| 613 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 614 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "soft", "grown")),
|
| 615 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Soft_Grown_Moss.png"),
|
| 616 |
+
::anno::author("NVIDIA vMaterials"),
|
| 617 |
+
::anno::contributor("Maik Rohland"),
|
| 618 |
+
::anno::contributor("Ruediger Raab")
|
| 619 |
+
]]
|
| 620 |
+
= Stone_Pores_Weathered
|
| 621 |
+
(
|
| 622 |
+
infinite_tiling: false,
|
| 623 |
+
stone_diffuse_brightness: 1.f,
|
| 624 |
+
reflection_roughness: 0.8f,
|
| 625 |
+
stones_bump_strength: 0.5f,
|
| 626 |
+
moss_brightness: 0.8f,
|
| 627 |
+
moss_saturation: 0.9f,
|
| 628 |
+
moss_distribution_amount: 1.f,
|
| 629 |
+
moss_height_growth: 0.8f,
|
| 630 |
+
moss_weight: 1.f,
|
| 631 |
+
moss_moisture: 0.7f,
|
| 632 |
+
moss_bump_factor: 1.f,
|
| 633 |
+
texture_translate: 0.0f,
|
| 634 |
+
texture_rotate: 0.0f,
|
| 635 |
+
texture_scale: 1.0f,
|
| 636 |
+
enable_round_corners: false,
|
| 637 |
+
radius: 1.5f,
|
| 638 |
+
across_materials: true,
|
| 639 |
+
uv_space_index: 0
|
| 640 |
+
);
|
| 641 |
+
|
| 642 |
+
export material Saturated_Green_Patches(*)
|
| 643 |
+
[[
|
| 644 |
+
::anno::display_name("Saturated Green Patches"),
|
| 645 |
+
::anno::description(DESCRIPTION),
|
| 646 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 647 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "saturated", "green")),
|
| 648 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Saturated_Green_Patches.png"),
|
| 649 |
+
::anno::author("NVIDIA vMaterials"),
|
| 650 |
+
::anno::contributor("Maik Rohland"),
|
| 651 |
+
::anno::contributor("Ruediger Raab")
|
| 652 |
+
]]
|
| 653 |
+
= Stone_Pores_Weathered
|
| 654 |
+
(
|
| 655 |
+
infinite_tiling: false,
|
| 656 |
+
stone_diffuse_brightness: 0.f,
|
| 657 |
+
reflection_roughness: 1.f,
|
| 658 |
+
stones_bump_strength: 1.f,
|
| 659 |
+
moss_brightness: 0.8f,
|
| 660 |
+
moss_saturation: 0.85f,
|
| 661 |
+
moss_distribution_amount: 0.6f,
|
| 662 |
+
moss_height_growth: 0.9f,
|
| 663 |
+
moss_weight: 1.f,
|
| 664 |
+
moss_moisture: .21f,
|
| 665 |
+
moss_bump_factor: 1.f,
|
| 666 |
+
texture_translate: 0.0f,
|
| 667 |
+
texture_rotate: 0.0f,
|
| 668 |
+
texture_scale: 1.0f,
|
| 669 |
+
enable_round_corners: false,
|
| 670 |
+
radius: 1.5f,
|
| 671 |
+
across_materials: true,
|
| 672 |
+
uv_space_index: 0
|
| 673 |
+
);
|
| 674 |
+
|
| 675 |
+
export material Fadely_Yellowish_Moss(*)
|
| 676 |
+
[[
|
| 677 |
+
::anno::display_name("Fadely Yellowish Moss"),
|
| 678 |
+
::anno::description(DESCRIPTION),
|
| 679 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 680 |
+
::anno::key_words(string[]("dielectric", "infinite", "stone", "nature", "moss", "weathered", "pores", "wall", "exterior", "rough", "plant", "urban", "city", "industrial", "dry", "fadely", "yellowish")),
|
| 681 |
+
::anno::thumbnail("./.thumbs/Stone_Pores_Weathered.Fadely_Yellowish_Moss.png"),
|
| 682 |
+
::anno::author("NVIDIA vMaterials"),
|
| 683 |
+
::anno::contributor("Maik Rohland"),
|
| 684 |
+
::anno::contributor("Ruediger Raab")
|
| 685 |
+
]]
|
| 686 |
+
= Stone_Pores_Weathered
|
| 687 |
+
(
|
| 688 |
+
infinite_tiling: false,
|
| 689 |
+
stone_diffuse_brightness: 0.f,
|
| 690 |
+
reflection_roughness: 0.8f,
|
| 691 |
+
stones_bump_strength: 0.2f,
|
| 692 |
+
moss_brightness: 1.f,
|
| 693 |
+
moss_saturation: 0.f,
|
| 694 |
+
moss_distribution_amount: .69f,
|
| 695 |
+
moss_height_growth: 1.f,
|
| 696 |
+
moss_weight: 0.25f,
|
| 697 |
+
moss_moisture: 1.f,
|
| 698 |
+
moss_bump_factor: 1.f,
|
| 699 |
+
texture_translate: 0.0f,
|
| 700 |
+
texture_rotate: 0.0f,
|
| 701 |
+
texture_scale: 1.0f,
|
| 702 |
+
enable_round_corners: false,
|
| 703 |
+
radius: 1.5f,
|
| 704 |
+
across_materials: true,
|
| 705 |
+
uv_space_index: 0
|
| 706 |
+
);
|
Material/material_0325/Fabric_Cotton_Fine_Woven.mdl
ADDED
|
@@ -0,0 +1,519 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.4;
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::anno::*;
|
| 42 |
+
import ::df::*;
|
| 43 |
+
import ::math::*;
|
| 44 |
+
import ::state::*;
|
| 45 |
+
import ::tex::*;
|
| 46 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 47 |
+
import ::nvidia::core_definitions::dimension;
|
| 48 |
+
|
| 49 |
+
|
| 50 |
+
const string COPYRIGHT =
|
| 51 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 52 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 53 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 54 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 55 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 56 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 57 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 58 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 59 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 60 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 61 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
const string DESCRITPION =
|
| 65 |
+
"A fine woven cotton material with tweakable reflectivity and infinite tiling";
|
| 66 |
+
|
| 67 |
+
annotation preview_scale( float f);
|
| 68 |
+
|
| 69 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 70 |
+
{
|
| 71 |
+
return (input - x)/(y - x);
|
| 72 |
+
}
|
| 73 |
+
|
| 74 |
+
float histogram_scan_big(float input, float width, float position)
|
| 75 |
+
{
|
| 76 |
+
return ::math::clamp(
|
| 77 |
+
remap_xy_to_0_1(input,
|
| 78 |
+
::math::lerp(-width, 1.0, position),
|
| 79 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 80 |
+
0.0,
|
| 81 |
+
1.0);
|
| 82 |
+
}
|
| 83 |
+
|
| 84 |
+
float histogram_range(float input, float range, float position)
|
| 85 |
+
{
|
| 86 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 87 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 88 |
+
return ::math::lerp(low, high, input);
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
::base::texture_coordinate_info vmat_transform(
|
| 92 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 93 |
+
uniform float rotation = 0.0,
|
| 94 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 95 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 96 |
+
uniform int uv_space = 0
|
| 97 |
+
)
|
| 98 |
+
{
|
| 99 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 100 |
+
|
| 101 |
+
float4x4 scale =
|
| 102 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 103 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 104 |
+
0. , 0. , 1.0, 0.,
|
| 105 |
+
translation.x , translation.y , 0.0, 1.);
|
| 106 |
+
|
| 107 |
+
float s = ::math::sin(rotation_rad);
|
| 108 |
+
float c = ::math::cos(rotation_rad);
|
| 109 |
+
float4x4 rotate =
|
| 110 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 111 |
+
s , c , 0.0 , 0.0,
|
| 112 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 113 |
+
0. , 0.0 , 0.0 , 1.);
|
| 114 |
+
|
| 115 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 116 |
+
}
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
float3 srgb2rgb(float3 val)
|
| 120 |
+
{
|
| 121 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
float uint2float(int x)
|
| 125 |
+
{
|
| 126 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
int lowbias32(int x)
|
| 130 |
+
{
|
| 131 |
+
x ^= x >>> 16;
|
| 132 |
+
x *= 0x7feb352d;
|
| 133 |
+
x ^= x >>> 15;
|
| 134 |
+
x *= 0x846ca68b;
|
| 135 |
+
x ^= x >>> 16;
|
| 136 |
+
return x;
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
float2 rnd22(int2 p) {
|
| 140 |
+
float2 ret_val = float2(
|
| 141 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 142 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 143 |
+
);
|
| 144 |
+
return ret_val;
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
float2x2 invert_2x2(float2x2 M)
|
| 149 |
+
{
|
| 150 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 151 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 152 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 153 |
+
}
|
| 154 |
+
|
| 155 |
+
float3 nonrepeat_lookup(
|
| 156 |
+
uniform texture_2d texture = texture_2d(),
|
| 157 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 158 |
+
float texture_scale = 1.0,
|
| 159 |
+
float3 average_color = float3(0.5),
|
| 160 |
+
float patch_size = 8.0
|
| 161 |
+
)
|
| 162 |
+
{
|
| 163 |
+
|
| 164 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 165 |
+
float Z = patch_size; // patch scale inside example texture
|
| 166 |
+
float CON = 1.0f;
|
| 167 |
+
|
| 168 |
+
float3 O = float3(0.f);
|
| 169 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 170 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 171 |
+
|
| 172 |
+
float2 U = uv_in;
|
| 173 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 174 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 175 |
+
|
| 176 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 177 |
+
// average color work out, take the float value and calculate the apropriate
|
| 178 |
+
// mean value as (value^(1/2.2))
|
| 179 |
+
|
| 180 |
+
float3 m = average_color;
|
| 181 |
+
|
| 182 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 183 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 184 |
+
|
| 185 |
+
if( F[2] > 0.f )
|
| 186 |
+
|
| 187 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 188 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 189 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 190 |
+
else
|
| 191 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 192 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 193 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 194 |
+
O = m + O/::math::length(W);
|
| 195 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 196 |
+
|
| 197 |
+
return float3(O);
|
| 198 |
+
}
|
| 199 |
+
|
| 200 |
+
color endless_texture(
|
| 201 |
+
uniform texture_2d texture = texture_2d(),
|
| 202 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 203 |
+
float texture_scale = 10.0,
|
| 204 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 205 |
+
float patch_size = 8.0,
|
| 206 |
+
bool gamma_correct_lookup = true
|
| 207 |
+
)
|
| 208 |
+
{
|
| 209 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 210 |
+
nonrepeat_lookup (
|
| 211 |
+
texture: texture,
|
| 212 |
+
uvw: uvw,
|
| 213 |
+
texture_scale: texture_scale,
|
| 214 |
+
average_color: average_color,
|
| 215 |
+
patch_size: patch_size
|
| 216 |
+
))
|
| 217 |
+
) : color(nonrepeat_lookup (
|
| 218 |
+
texture: texture,
|
| 219 |
+
uvw: uvw,
|
| 220 |
+
texture_scale: texture_scale,
|
| 221 |
+
average_color: average_color,
|
| 222 |
+
patch_size: patch_size
|
| 223 |
+
));
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
float3 endless_normal(
|
| 227 |
+
uniform texture_2d texture = texture_2d(),
|
| 228 |
+
float factor = 1.0,
|
| 229 |
+
bool flip_tangent_u = false,
|
| 230 |
+
bool flip_tangent_v = false,
|
| 231 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 232 |
+
float texture_scale = 1.0,
|
| 233 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 234 |
+
float patch_size = 8.0
|
| 235 |
+
)
|
| 236 |
+
{
|
| 237 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 238 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 239 |
+
|
| 240 |
+
if (flip_tangent_u)
|
| 241 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 242 |
+
if (flip_tangent_v)
|
| 243 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 244 |
+
|
| 245 |
+
// normalized Lookup
|
| 246 |
+
float3 tangent_space_normal =
|
| 247 |
+
(nonrepeat_lookup (
|
| 248 |
+
texture: texture,
|
| 249 |
+
uvw: uvw,
|
| 250 |
+
texture_scale: texture_scale,
|
| 251 |
+
average_color: average_color,
|
| 252 |
+
patch_size: patch_size
|
| 253 |
+
) - 0.5) * (2.0 * factor);
|
| 254 |
+
|
| 255 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 256 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 257 |
+
::state::normal()*1.0);
|
| 258 |
+
}
|
| 259 |
+
|
| 260 |
+
float3 normalmap_normal(
|
| 261 |
+
uniform texture_2d texture,
|
| 262 |
+
float factor = 1.0,
|
| 263 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 264 |
+
)
|
| 265 |
+
{
|
| 266 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 267 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 268 |
+
}
|
| 269 |
+
|
| 270 |
+
export material Fabric_Cotton_Fine_Woven(
|
| 271 |
+
uniform bool infinite_tiling = false [[
|
| 272 |
+
::anno::display_name("Infinite Tiling"),
|
| 273 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns."),
|
| 274 |
+
::anno::in_group("Appearance")
|
| 275 |
+
]],
|
| 276 |
+
color fabric_color = color(0.851252f, 0.851252f, 0.851252f) [[
|
| 277 |
+
::anno::display_name("Fabric Color"),
|
| 278 |
+
::anno::description("Sets the color of the fabric."),
|
| 279 |
+
::anno::in_group("Appearance")
|
| 280 |
+
]],
|
| 281 |
+
float fabric_brightness = 0.5f [[
|
| 282 |
+
::anno::display_name("Fabric Brightness"),
|
| 283 |
+
::anno::description("Adjusts the brightness of the fabric."),
|
| 284 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 285 |
+
::anno::in_group("Appearance")
|
| 286 |
+
]],
|
| 287 |
+
float fabric_reflectivity = 0.5f [[
|
| 288 |
+
::anno::display_name("Fabric Reflectivity"),
|
| 289 |
+
::anno::description("Adjusts the amount of light that the fabric is reflecting."),
|
| 290 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 291 |
+
::anno::in_group("Appearance")
|
| 292 |
+
]],
|
| 293 |
+
float fabric_bump_factor = 1.f [[
|
| 294 |
+
::anno::display_name("Fabric Bump Factor"),
|
| 295 |
+
::anno::description("Adjusts the bump intensity of the surface."),
|
| 296 |
+
::anno::soft_range(0.0f, 1.0f),
|
| 297 |
+
::anno::hard_range(0.0f, 2.0f),
|
| 298 |
+
::anno::in_group("Appearance")
|
| 299 |
+
]],
|
| 300 |
+
uniform float2 texture_translate = 0.f [[
|
| 301 |
+
::anno::display_name("Translate"),
|
| 302 |
+
::anno::description("Offsets the position of the material."),
|
| 303 |
+
::anno::in_group("Transform")
|
| 304 |
+
]],
|
| 305 |
+
uniform float texture_rotate = 0.f [[
|
| 306 |
+
::anno::display_name("Rotate"),
|
| 307 |
+
::anno::description("Rotates the material."),
|
| 308 |
+
::anno::in_group("Transform")
|
| 309 |
+
]],
|
| 310 |
+
uniform float2 texture_scale = 1.0f [[
|
| 311 |
+
::anno::display_name("Scale"),
|
| 312 |
+
::anno::description("Scales the material."),
|
| 313 |
+
::nvidia::core_definitions::dimension(float2(.5f, .5f)),
|
| 314 |
+
::preview_scale(4.5f),
|
| 315 |
+
::anno::in_group("Transform")
|
| 316 |
+
]],
|
| 317 |
+
uniform int uv_space_index = 0 [[
|
| 318 |
+
::anno::display_name("UV Space Index"),
|
| 319 |
+
::anno::description("Use selected UV space for material."),
|
| 320 |
+
::anno::in_group("Advanced")
|
| 321 |
+
]]
|
| 322 |
+
)
|
| 323 |
+
[[
|
| 324 |
+
::anno::author("NVIDIA vMaterials"),
|
| 325 |
+
::anno::display_name("Fine Woven Cotton - Light Gray"),
|
| 326 |
+
::anno::description(DESCRITPION),
|
| 327 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 328 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven.png"),
|
| 329 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural" ))
|
| 330 |
+
]]
|
| 331 |
+
=
|
| 332 |
+
let {
|
| 333 |
+
bool tmp0 = false;
|
| 334 |
+
float2 texture_rescale = texture_scale * 0.11f; // texture covers 11 cm, scale up so it covers 1m per default
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
material_surface tmp1(
|
| 338 |
+
::df::custom_curve_layer(0.121000007f, 1.f, 5.f, histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.647000015f, 0.5f, 0.426999986f), 8.f, false) : ::base::file_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.944000065f, ::math::lerp(0.850000024f, 0.600000024f, fabric_reflectivity)), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.647000015f, 0.5f, 0.426999986f), 8.f, false) : ::base::file_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.195000008f, 0.823000014f) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.647000015f, 0.5f, 0.426999986f), 8.f, false) : ::base::file_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.195000008f, 0.823000014f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.647000015f, 0.5f, 0.426999986f), 8.f, false) : ::base::file_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.195000008f, 0.823000014f) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 1.f, float3(0.647000015f, 0.5f, 0.426999986f), 8.f, false) : ::base::file_texture(texture_2d("./fine_woven_cotton_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.195000008f, 0.823000014f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors((infinite_tiling ? endless_texture(texture_2d("./fine_woven_cotton_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.474999994f, 0.463f, 0.486000001f), 4.f, true) : ::base::file_texture(texture_2d("./fine_woven_cotton_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint) * color(::math::lerp(0.649999976f, 1.f, fabric_brightness)), fabric_color, ::base::color_layer_overlay, 1.f).tint, 0.f, ""), ::state::normal()),
|
| 339 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 340 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 341 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 342 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 343 |
+
material_geometry tmp5(
|
| 344 |
+
float3(0.f),
|
| 345 |
+
1.f,
|
| 346 |
+
infinite_tiling ? endless_normal(texture_2d("./fine_woven_cotton_norm.jpg", ::tex::gamma_linear), fabric_bump_factor, false, false, vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.5f, 0.5f, 1.f), 4.f) : normalmap_normal(texture_2d("./fine_woven_cotton_norm.jpg", ::tex::gamma_linear), fabric_bump_factor, vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index)));
|
| 347 |
+
} in
|
| 348 |
+
material(
|
| 349 |
+
thin_walled: tmp0,
|
| 350 |
+
surface: tmp1,
|
| 351 |
+
backface: tmp2,
|
| 352 |
+
ior: tmp3,
|
| 353 |
+
volume: tmp4,
|
| 354 |
+
geometry: tmp5);
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
// 2
|
| 358 |
+
export material Fabric_Cotton_Fine_Woven_Yellow(*)
|
| 359 |
+
[[
|
| 360 |
+
::anno::author("NVIDIA vMaterials"),
|
| 361 |
+
::anno::display_name("Fine Woven Cotton - Yellow"),
|
| 362 |
+
::anno::description(DESCRITPION),
|
| 363 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 364 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Yellow.png"),
|
| 365 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "yellow", "warm" ))
|
| 366 |
+
]]
|
| 367 |
+
= Fabric_Cotton_Fine_Woven (
|
| 368 |
+
infinite_tiling: false,
|
| 369 |
+
fabric_color: color(0.673049f, 0.409826f, 0.005028f),
|
| 370 |
+
fabric_brightness: 0.5f,
|
| 371 |
+
fabric_reflectivity: 0.5f,
|
| 372 |
+
fabric_bump_factor: 1.0f,
|
| 373 |
+
texture_translate: 0.0f,
|
| 374 |
+
texture_rotate: 0.0f,
|
| 375 |
+
texture_scale: 1.0f,
|
| 376 |
+
uv_space_index: 0
|
| 377 |
+
);
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
// 3
|
| 381 |
+
export material Fabric_Cotton_Fine_Woven_Orange(*)
|
| 382 |
+
[[
|
| 383 |
+
::anno::author("NVIDIA vMaterials"),
|
| 384 |
+
::anno::display_name("Fine Woven Cotton - Orange"),
|
| 385 |
+
::anno::description(DESCRITPION),
|
| 386 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 387 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Orange.png"),
|
| 388 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "orange", "warm" ))
|
| 389 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 390 |
+
infinite_tiling: false,
|
| 391 |
+
fabric_color: color(0.673049f, 0.227137f, 0.018913),
|
| 392 |
+
fabric_brightness: 0.5f,
|
| 393 |
+
fabric_reflectivity: 0.5f,
|
| 394 |
+
fabric_bump_factor: 1.0f,
|
| 395 |
+
texture_translate: 0.0f,
|
| 396 |
+
texture_rotate: 0.0f,
|
| 397 |
+
texture_scale: 1.0f,
|
| 398 |
+
uv_space_index: 0
|
| 399 |
+
);
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
// 4
|
| 403 |
+
export material Fabric_Cotton_Fine_Woven_Cheery_Red(*)
|
| 404 |
+
[[
|
| 405 |
+
::anno::author("NVIDIA vMaterials"),
|
| 406 |
+
::anno::display_name("Fine Woven Cotton - Cherry Red"),
|
| 407 |
+
::anno::description(DESCRITPION),
|
| 408 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 409 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Cheery_Red.png"),
|
| 410 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "red", "cherry", "warm" ))
|
| 411 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 412 |
+
infinite_tiling: false,
|
| 413 |
+
fabric_color: color(0.659224f, 0.054592f, 0.030257f),
|
| 414 |
+
fabric_brightness: 0.5f,
|
| 415 |
+
fabric_reflectivity: 0.5f,
|
| 416 |
+
fabric_bump_factor: 1.0f,
|
| 417 |
+
texture_translate: 0.0f,
|
| 418 |
+
texture_rotate: 0.0f,
|
| 419 |
+
texture_scale: 1.0f,
|
| 420 |
+
uv_space_index: 0
|
| 421 |
+
);
|
| 422 |
+
|
| 423 |
+
|
| 424 |
+
// 5
|
| 425 |
+
export material Fabric_Cotton_Fine_Woven_Dark_Red(*)
|
| 426 |
+
[[
|
| 427 |
+
::anno::author("NVIDIA vMaterials"),
|
| 428 |
+
::anno::display_name("Fine Woven Cotton - Dark Red"),
|
| 429 |
+
::anno::description(DESCRITPION),
|
| 430 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 431 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Dark_Red.png"),
|
| 432 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "dark", "red", "warm" ))
|
| 433 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 434 |
+
infinite_tiling: false,
|
| 435 |
+
fabric_color: color(0.242796f, 0.010398f, 0.026549f),
|
| 436 |
+
fabric_brightness: 0.5f,
|
| 437 |
+
fabric_reflectivity: 0.5f,
|
| 438 |
+
fabric_bump_factor: 1.0f,
|
| 439 |
+
texture_translate: 0.0f,
|
| 440 |
+
texture_rotate: 0.0f,
|
| 441 |
+
texture_scale: 1.0f,
|
| 442 |
+
uv_space_index: 0
|
| 443 |
+
);
|
| 444 |
+
|
| 445 |
+
|
| 446 |
+
// 6
|
| 447 |
+
export material Fabric_Cotton_Fine_Woven_Dark_Green(*)
|
| 448 |
+
[[
|
| 449 |
+
::anno::author("NVIDIA vMaterials"),
|
| 450 |
+
::anno::display_name("Fine Woven Cotton - Dark Green"),
|
| 451 |
+
::anno::description(DESCRITPION),
|
| 452 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 453 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Dark_Green.png"),
|
| 454 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "dark", "green" ))
|
| 455 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 456 |
+
infinite_tiling: false,
|
| 457 |
+
fabric_color: color(0.071761f, 0.151058f, 0.001963),
|
| 458 |
+
fabric_brightness: 0.5f,
|
| 459 |
+
fabric_reflectivity: 0.5f,
|
| 460 |
+
fabric_bump_factor: 1.0f,
|
| 461 |
+
texture_translate: 0.0f,
|
| 462 |
+
texture_rotate: 0.0f,
|
| 463 |
+
texture_scale: 1.0f,
|
| 464 |
+
uv_space_index: 0
|
| 465 |
+
);
|
| 466 |
+
|
| 467 |
+
|
| 468 |
+
// 7
|
| 469 |
+
export material Fabric_Cotton_Fine_Woven_Petrol(*)
|
| 470 |
+
[[
|
| 471 |
+
::anno::author("NVIDIA vMaterials"),
|
| 472 |
+
::anno::display_name("Fine Woven Cotton - Petrol"),
|
| 473 |
+
::anno::description(DESCRITPION),
|
| 474 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 475 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Petrol.png"),
|
| 476 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "petrol", "blue", "cool" ))
|
| 477 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 478 |
+
infinite_tiling: false,
|
| 479 |
+
fabric_color: color(0.133209f, 0.238828f, 0.442323f),
|
| 480 |
+
fabric_brightness: 0.5f,
|
| 481 |
+
fabric_reflectivity: 0.5f,
|
| 482 |
+
fabric_bump_factor: 1.0f,
|
| 483 |
+
texture_translate: 0.0f,
|
| 484 |
+
texture_rotate: 0.0f,
|
| 485 |
+
texture_scale: 1.0f,
|
| 486 |
+
uv_space_index: 0
|
| 487 |
+
);
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
// 8
|
| 491 |
+
export material Fabric_Cotton_Fine_Woven_Light_Blue(*)
|
| 492 |
+
[[
|
| 493 |
+
::anno::author("NVIDIA vMaterials"),
|
| 494 |
+
::anno::display_name("Fine Woven Cotton - Light Blue"),
|
| 495 |
+
::anno::description(DESCRITPION),
|
| 496 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 497 |
+
::anno::thumbnail("./.thumbs/Fabric_Cotton_Fine_Woven.Fabric_Cotton_Fine_Woven_Light_Blue.png"),
|
| 498 |
+
::anno::key_words(string[]("design", "fabric", "cotton", "design", "fashion", "woven", "new", "infinite tiling", "soft", "natural", "light", "blue", "cool" ))
|
| 499 |
+
]] = Fabric_Cotton_Fine_Woven (
|
| 500 |
+
infinite_tiling: false,
|
| 501 |
+
fabric_color: color(0.091518f, 0.453456f, 0.827726f),
|
| 502 |
+
fabric_brightness: 0.5f,
|
| 503 |
+
fabric_reflectivity: 0.5f,
|
| 504 |
+
fabric_bump_factor: 1.0f,
|
| 505 |
+
texture_translate: 0.0f,
|
| 506 |
+
texture_rotate: 0.0f,
|
| 507 |
+
texture_scale: 1.0f,
|
| 508 |
+
uv_space_index: 0
|
| 509 |
+
);
|
| 510 |
+
|
| 511 |
+
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
|
| 518 |
+
|
| 519 |
+
|
Material/material_0355/Ground_Hard_Court.mdl
ADDED
|
@@ -0,0 +1,570 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.5;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
const string COPYRIGHT =
|
| 50 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 51 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 52 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 53 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 54 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 55 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 56 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 57 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 58 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 59 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 60 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
const string DESCRIPTION = "A hard court material for sports activities";
|
| 64 |
+
|
| 65 |
+
// Taken from https://www.shadertoy.com/view/4tlBWB
|
| 66 |
+
float3 hsv2rgb(float3 c)
|
| 67 |
+
{
|
| 68 |
+
float4 K = float4(1.0, 2.0/3.0, 1.0/3.0, 3.0);
|
| 69 |
+
float3 p = ::math::abs(::math::frac(float3(c.x) + float3(K.x, K.y, K.z)) * 6.0 - float3(K.w));
|
| 70 |
+
return c.z * ::math::lerp(float3(K.x), ::math::clamp(p - float3(K.x), 0.0, 1.0), c.y);
|
| 71 |
+
}
|
| 72 |
+
|
| 73 |
+
|
| 74 |
+
float3 srgb2rgb(float3 val)
|
| 75 |
+
{
|
| 76 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 77 |
+
}
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
float uint2float(int x)
|
| 81 |
+
{
|
| 82 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
int lowbias32(int x)
|
| 86 |
+
{
|
| 87 |
+
x ^= x >>> 16;
|
| 88 |
+
x *= 0x7feb352d;
|
| 89 |
+
x ^= x >>> 15;
|
| 90 |
+
x *= 0x846ca68b;
|
| 91 |
+
x ^= x >>> 16;
|
| 92 |
+
return x;
|
| 93 |
+
}
|
| 94 |
+
|
| 95 |
+
float2 rnd22(int2 p) {
|
| 96 |
+
float2 ret_val = float2(
|
| 97 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 98 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 99 |
+
);
|
| 100 |
+
return ret_val;
|
| 101 |
+
}
|
| 102 |
+
|
| 103 |
+
::base::texture_coordinate_info vmat_transform(
|
| 104 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 105 |
+
uniform float rotation = 0.0,
|
| 106 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 107 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 108 |
+
uniform int uv_space = 0
|
| 109 |
+
)
|
| 110 |
+
{
|
| 111 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 112 |
+
float4x4 scale =
|
| 113 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 114 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 115 |
+
0. , 0. , 1.0, 0.,
|
| 116 |
+
translation.x , translation.y , 0.0, 1.);
|
| 117 |
+
|
| 118 |
+
float s = ::math::sin(rotation_rad);
|
| 119 |
+
float c = ::math::cos(rotation_rad);
|
| 120 |
+
float4x4 rotate =
|
| 121 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 122 |
+
s , c , 0.0 , 0.0,
|
| 123 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 124 |
+
0. , 0.0 , 0.0 , 1.);
|
| 125 |
+
|
| 126 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 127 |
+
}
|
| 128 |
+
|
| 129 |
+
float2x2 invert_2x2(float2x2 M)
|
| 130 |
+
{
|
| 131 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 132 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 133 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
float3 nonrepeat_lookup(
|
| 137 |
+
uniform texture_2d texture = texture_2d(),
|
| 138 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 139 |
+
float texture_scale = 1.0,
|
| 140 |
+
float3 average_color = float3(0.5),
|
| 141 |
+
float patch_size = 8.0
|
| 142 |
+
)
|
| 143 |
+
{
|
| 144 |
+
|
| 145 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 146 |
+
float Z = patch_size; // patch scale inside example texture
|
| 147 |
+
float CON = 1.0f;
|
| 148 |
+
|
| 149 |
+
float3 O = float3(0.f);
|
| 150 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 151 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 152 |
+
|
| 153 |
+
float2 U = uv_in;
|
| 154 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 155 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 156 |
+
|
| 157 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 158 |
+
// average color work out, take the float value and calculate the apropriate
|
| 159 |
+
// mean value as (value^(1/2.2))
|
| 160 |
+
|
| 161 |
+
float3 m = average_color;
|
| 162 |
+
|
| 163 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 164 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 165 |
+
|
| 166 |
+
if( F[2] > 0.f )
|
| 167 |
+
|
| 168 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 169 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 170 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 171 |
+
else
|
| 172 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 173 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 174 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 175 |
+
O = m + O/::math::length(W);
|
| 176 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 177 |
+
|
| 178 |
+
return float3(O);
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
float3 normalmap_normal(
|
| 182 |
+
uniform texture_2d texture,
|
| 183 |
+
float factor = 1.0,
|
| 184 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 185 |
+
)
|
| 186 |
+
{
|
| 187 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 188 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 189 |
+
}
|
| 190 |
+
|
| 191 |
+
float histogram_range(float input, float range, float position)
|
| 192 |
+
{
|
| 193 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 194 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 195 |
+
return ::math::lerp(low, high, input);
|
| 196 |
+
}
|
| 197 |
+
|
| 198 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 199 |
+
{
|
| 200 |
+
return (input - x)/(y - x);
|
| 201 |
+
}
|
| 202 |
+
|
| 203 |
+
float histogram_scan_big(float input, float width, float position)
|
| 204 |
+
{
|
| 205 |
+
return ::math::clamp(
|
| 206 |
+
remap_xy_to_0_1(input,
|
| 207 |
+
::math::lerp(-width, 1.0, position),
|
| 208 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 209 |
+
0.0,
|
| 210 |
+
1.0);
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
color endless_texture(
|
| 214 |
+
uniform texture_2d texture = texture_2d(),
|
| 215 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 216 |
+
float texture_scale = 10.0,
|
| 217 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 218 |
+
float patch_size = 8.0,
|
| 219 |
+
bool gamma_correct_lookup = true
|
| 220 |
+
)
|
| 221 |
+
{
|
| 222 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 223 |
+
nonrepeat_lookup (
|
| 224 |
+
texture: texture,
|
| 225 |
+
uvw: uvw,
|
| 226 |
+
texture_scale: texture_scale,
|
| 227 |
+
average_color: average_color,
|
| 228 |
+
patch_size: patch_size
|
| 229 |
+
))
|
| 230 |
+
) : color(nonrepeat_lookup (
|
| 231 |
+
texture: texture,
|
| 232 |
+
uvw: uvw,
|
| 233 |
+
texture_scale: texture_scale,
|
| 234 |
+
average_color: average_color,
|
| 235 |
+
patch_size: patch_size
|
| 236 |
+
));
|
| 237 |
+
}
|
| 238 |
+
|
| 239 |
+
float3 endless_normal(
|
| 240 |
+
uniform texture_2d texture = texture_2d(),
|
| 241 |
+
float factor = 1.0,
|
| 242 |
+
bool flip_tangent_u = false,
|
| 243 |
+
bool flip_tangent_v = false,
|
| 244 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 245 |
+
float texture_scale = 1.0,
|
| 246 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 247 |
+
float patch_size = 8.0
|
| 248 |
+
)
|
| 249 |
+
{
|
| 250 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 251 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 252 |
+
|
| 253 |
+
if (flip_tangent_u)
|
| 254 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 255 |
+
if (flip_tangent_v)
|
| 256 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 257 |
+
|
| 258 |
+
// normalized Lookup
|
| 259 |
+
float3 tangent_space_normal =
|
| 260 |
+
(nonrepeat_lookup (
|
| 261 |
+
texture: texture,
|
| 262 |
+
uvw: uvw,
|
| 263 |
+
texture_scale: texture_scale,
|
| 264 |
+
average_color: average_color,
|
| 265 |
+
patch_size: patch_size
|
| 266 |
+
) - 0.5) * (2.0 * factor);
|
| 267 |
+
|
| 268 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 269 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 270 |
+
::state::normal()*1.0);
|
| 271 |
+
}
|
| 272 |
+
|
| 273 |
+
export material Ground_Hard_Court(
|
| 274 |
+
uniform bool infinite_tiling = true [[
|
| 275 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns. Note that depending on the material this feature changes the appearance of the material slightly."),
|
| 276 |
+
::anno::display_name("Infinite Tiling"),
|
| 277 |
+
::anno::in_group("Appearance")
|
| 278 |
+
]],
|
| 279 |
+
float ground_hue = 0.02f [[
|
| 280 |
+
::anno::description("Selects the Hue for the Ground cort material. You can select any hue that you want, though we recommend to stick to colors that are actually used in real life."),
|
| 281 |
+
::anno::display_name("Ground Hue"),
|
| 282 |
+
::anno::in_group("Appearance"),
|
| 283 |
+
::anno::hard_range(0.f, 1.f)
|
| 284 |
+
]],
|
| 285 |
+
float ground_saturation = 0.85f [[
|
| 286 |
+
::anno::description("Adjust the saturation of the hard court material color. Default is 0.8, Beware that setting the saturation to the maximum value will result in unrealistic looking saturation."),
|
| 287 |
+
::anno::display_name("Ground Saturation"),
|
| 288 |
+
::anno::in_group("Appearance"),
|
| 289 |
+
::anno::hard_range(0.f, 1.f)
|
| 290 |
+
]],
|
| 291 |
+
float ground_brightness = 0.6f [[
|
| 292 |
+
::anno::description("Adjusts the overall brightness of the hard court material. Default is 0.6."),
|
| 293 |
+
::anno::display_name("Ground Brightness"),
|
| 294 |
+
::anno::in_group("Appearance"),
|
| 295 |
+
::anno::hard_range(0.f, 1.f)
|
| 296 |
+
]],
|
| 297 |
+
float roughness = 1.f [[
|
| 298 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 299 |
+
::anno::display_name("Roughness"),
|
| 300 |
+
::anno::in_group("Appearance"),
|
| 301 |
+
::anno::hard_range(0.f, 1.f)
|
| 302 |
+
]],
|
| 303 |
+
float roughness_variation = 0.f [[
|
| 304 |
+
::anno::description("Breaks up the roughness pattern and makes it less uniform."),
|
| 305 |
+
::anno::display_name("Roughness Variation"),
|
| 306 |
+
::anno::in_group("Appearance"),
|
| 307 |
+
::anno::hard_range(0.f, 1.f)
|
| 308 |
+
]],
|
| 309 |
+
float reflectivity = 1.f [[
|
| 310 |
+
::anno::description("The overall reflectivity of the surface."),
|
| 311 |
+
::anno::display_name("Reflectivity"),
|
| 312 |
+
::anno::in_group("Appearance"),
|
| 313 |
+
::anno::hard_range(0.f, 1.f)
|
| 314 |
+
]],
|
| 315 |
+
float bump_strength = 1.f [[
|
| 316 |
+
::anno::description("Specifies the strength of the bump."),
|
| 317 |
+
::anno::display_name("Bump Strength"),
|
| 318 |
+
::anno::in_group("Appearance"),
|
| 319 |
+
::anno::soft_range(0.f, 1.f),
|
| 320 |
+
::anno::hard_range(0.f, 3.f)
|
| 321 |
+
]],
|
| 322 |
+
uniform float2 texture_translate = 0.f [[
|
| 323 |
+
::anno::description("Controls the position of the texture."),
|
| 324 |
+
::anno::display_name("Translate"),
|
| 325 |
+
::anno::in_group("Transform")
|
| 326 |
+
]],
|
| 327 |
+
uniform float texture_rotate = 0.f [[
|
| 328 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 329 |
+
::anno::display_name("Rotate"),
|
| 330 |
+
::anno::in_group("Transform"),
|
| 331 |
+
::anno::soft_range(0.f, 360.f)
|
| 332 |
+
]],
|
| 333 |
+
uniform float2 texture_scale = 1.f [[
|
| 334 |
+
::anno::description("Larger numbers increase the size."),
|
| 335 |
+
::anno::display_name("Scale"),
|
| 336 |
+
::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
|
| 337 |
+
::anno::in_group("Transform")
|
| 338 |
+
]],
|
| 339 |
+
uniform bool enable_round_corners = false [[
|
| 340 |
+
::anno::description("Enabling creates the impression of rounded corners across hard edges. Comes at a slight performance cost as additional raytracing calls are required to evaluate the effect."),
|
| 341 |
+
::anno::display_name("Enable Round Corners"),
|
| 342 |
+
::anno::in_group("Round Corners")
|
| 343 |
+
]],
|
| 344 |
+
uniform float roundcorners_radius = 1.5f [[
|
| 345 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 346 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 347 |
+
::anno::in_group("Round Corners"),
|
| 348 |
+
::anno::soft_range(0.f, 1.f)
|
| 349 |
+
]],
|
| 350 |
+
uniform bool roundcorners_across_materials = false [[
|
| 351 |
+
::anno::description("When enabled, the effect is across different materials, otherwise just the same material."),
|
| 352 |
+
::anno::display_name("Across Materials"),
|
| 353 |
+
::anno::in_group("Round Corners")
|
| 354 |
+
]],
|
| 355 |
+
uniform int uv_space_index = 0 [[
|
| 356 |
+
::anno::description("Use selected UV space for material."),
|
| 357 |
+
::anno::display_name("UV Space Index"),
|
| 358 |
+
::anno::in_group("Advanced")
|
| 359 |
+
]]
|
| 360 |
+
)
|
| 361 |
+
[[
|
| 362 |
+
::anno::author("NVIDIA vMaterials"),
|
| 363 |
+
::anno::display_name("Ground Hard Court - Red"),
|
| 364 |
+
::anno::description(DESCRIPTION),
|
| 365 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 366 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court.png"),
|
| 367 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "red", "saturated", "warm"))
|
| 368 |
+
]]
|
| 369 |
+
=
|
| 370 |
+
let {
|
| 371 |
+
bool tmp0 = false;
|
| 372 |
+
material_surface tmp1(
|
| 373 |
+
::df::weighted_layer(1.f, ::df::custom_curve_layer(0.0350400023f, 1.f, 5.f, histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.722000062f, ::math::lerp(0.674000025f, 0.238000005f, reflectivity)), ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.349999994f, 0.600000024f, roughness)) + roughness_variation * 0.197000012f * (float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2] - 0.108000003f)) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.349999994f, 0.600000024f, roughness)) + roughness_variation * 0.197000012f * (float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2] - 0.108000003f)), (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.349999994f, 0.600000024f, roughness)) + roughness_variation * 0.197000012f * (float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2] - 0.108000003f)) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.349999994f, 0.600000024f, roughness)) + roughness_variation * 0.197000012f * (float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2] - 0.108000003f)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(color(::math::pow(hsv2rgb(::math::lerp(float3(0.f, 0.f, 0.5f), float3(1.f, 0.800000012f, 0.899999976f), float3(ground_hue, ground_saturation, ground_brightness))), 2.20000005f)), infinite_tiling ? endless_texture(texture_2d("./hard_court_mono_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.63499999f), 1.99800014f, true) : color(::math::pow(::base::file_texture(texture_2d("./hard_court_mono_diff.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, 2.20000005f)), ::base::color_layer_multiply, 1.f).tint, color(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.866999984f, 0.764999986f, 0.497999996f), 1.99800014f, true) : ::base::file_texture(texture_2d("./hard_court_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f)), ::base::color_layer_multiply, 0.f).tint, 0.f), infinite_tiling ? endless_normal(texture_2d("./hard_court_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.497999996f, 0.50999999f, 0.92900002f), 1.99800014f) : normalmap_normal(texture_2d("./hard_court_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), bsdf(), infinite_tiling ? endless_normal(texture_2d("./hard_court_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 1.99800014f, float3(0.497999996f, 0.50999999f, 0.92900002f), 1.99800014f) : normalmap_normal(texture_2d("./hard_court_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))),
|
| 374 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 375 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 376 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 377 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 378 |
+
material_geometry tmp5(
|
| 379 |
+
float3(0.f),
|
| 380 |
+
1.f,
|
| 381 |
+
enable_round_corners ? ::state::rounded_corner_normal(roundcorners_radius / 1000.f, roundcorners_across_materials, 1.f) : ::state::normal());
|
| 382 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 383 |
+
} in
|
| 384 |
+
material(
|
| 385 |
+
thin_walled: tmp0,
|
| 386 |
+
surface: tmp1,
|
| 387 |
+
backface: tmp2,
|
| 388 |
+
ior: tmp3,
|
| 389 |
+
volume: tmp4,
|
| 390 |
+
geometry: tmp5,
|
| 391 |
+
hair: tmp6);
|
| 392 |
+
|
| 393 |
+
// 2
|
| 394 |
+
export material Ground_Hard_Court_Red_Desaturated(*)
|
| 395 |
+
[[
|
| 396 |
+
::anno::author("NVIDIA vMaterials"),
|
| 397 |
+
::anno::display_name("Ground Hard Court - Red Desaturated"),
|
| 398 |
+
::anno::description(DESCRIPTION),
|
| 399 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 400 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Red_Desaturated.png"),
|
| 401 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "red", "warm"))
|
| 402 |
+
]] = Ground_Hard_Court
|
| 403 |
+
(
|
| 404 |
+
infinite_tiling: true,
|
| 405 |
+
ground_hue: 0.02f,
|
| 406 |
+
ground_saturation: 0.65f,
|
| 407 |
+
ground_brightness: 0.6f,
|
| 408 |
+
roughness: 1.0f,
|
| 409 |
+
roughness_variation:1.0f,
|
| 410 |
+
reflectivity: 1.0f,
|
| 411 |
+
bump_strength: 1.0f,
|
| 412 |
+
texture_translate: 0.0f,
|
| 413 |
+
texture_rotate: 0.0f,
|
| 414 |
+
texture_scale: 1.0f,
|
| 415 |
+
enable_round_corners: false,
|
| 416 |
+
roundcorners_radius: 1.5f,
|
| 417 |
+
roundcorners_across_materials: false,
|
| 418 |
+
uv_space_index: 0
|
| 419 |
+
);
|
| 420 |
+
|
| 421 |
+
//3
|
| 422 |
+
export material Ground_Hard_Court_Blue(*)
|
| 423 |
+
[[
|
| 424 |
+
::anno::author("NVIDIA vMaterials"),
|
| 425 |
+
::anno::display_name("Ground Hard Court - Blue"),
|
| 426 |
+
::anno::description(DESCRIPTION),
|
| 427 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 428 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Blue.png"),
|
| 429 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "blue", "cool", "saturated"))
|
| 430 |
+
]] = Ground_Hard_Court
|
| 431 |
+
(
|
| 432 |
+
infinite_tiling: true,
|
| 433 |
+
ground_hue: 0.589f,
|
| 434 |
+
ground_saturation: 0.9f,
|
| 435 |
+
ground_brightness: 0.5f,
|
| 436 |
+
roughness: 0.41f,
|
| 437 |
+
roughness_variation:1.0f,
|
| 438 |
+
reflectivity: 0.5f,
|
| 439 |
+
bump_strength: 1.0f,
|
| 440 |
+
texture_translate: 0.0f,
|
| 441 |
+
texture_rotate: 0.0f,
|
| 442 |
+
texture_scale: 1.0f,
|
| 443 |
+
enable_round_corners: false,
|
| 444 |
+
roundcorners_radius: 1.5f,
|
| 445 |
+
roundcorners_across_materials: false,
|
| 446 |
+
uv_space_index: 0
|
| 447 |
+
);
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
//4
|
| 451 |
+
export material Ground_Hard_Court_Faded_Blue(*)
|
| 452 |
+
[[
|
| 453 |
+
::anno::author("NVIDIA vMaterials"),
|
| 454 |
+
::anno::display_name("Ground Hard Court - Faded Blue"),
|
| 455 |
+
::anno::description(DESCRIPTION),
|
| 456 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 457 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Faded_Blue.png"),
|
| 458 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "blue", "cool", "desaturated"))
|
| 459 |
+
]] = Ground_Hard_Court
|
| 460 |
+
(
|
| 461 |
+
infinite_tiling: true,
|
| 462 |
+
ground_hue: 0.58f,
|
| 463 |
+
ground_saturation: 0.65f,
|
| 464 |
+
ground_brightness: 0.65f,
|
| 465 |
+
roughness: 1.0f,
|
| 466 |
+
roughness_variation:1.0f,
|
| 467 |
+
reflectivity: 1.0f,
|
| 468 |
+
bump_strength: 1.0f,
|
| 469 |
+
texture_translate: 0.0f,
|
| 470 |
+
texture_rotate: 0.0f,
|
| 471 |
+
texture_scale: 1.0f,
|
| 472 |
+
enable_round_corners: false,
|
| 473 |
+
roundcorners_radius: 1.5f,
|
| 474 |
+
roundcorners_across_materials: false,
|
| 475 |
+
uv_space_index: 0
|
| 476 |
+
);
|
| 477 |
+
|
| 478 |
+
|
| 479 |
+
|
| 480 |
+
//5
|
| 481 |
+
export material Ground_Hard_Court_Light_Green(*)
|
| 482 |
+
[[
|
| 483 |
+
::anno::author("NVIDIA vMaterials"),
|
| 484 |
+
::anno::display_name("Ground Hard Court - Light Green"),
|
| 485 |
+
::anno::description(DESCRIPTION),
|
| 486 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 487 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Light_Green.png"),
|
| 488 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "green", "light"))
|
| 489 |
+
]] = Ground_Hard_Court
|
| 490 |
+
(
|
| 491 |
+
infinite_tiling: true,
|
| 492 |
+
ground_hue: 0.3f,
|
| 493 |
+
ground_saturation: 0.68f,
|
| 494 |
+
ground_brightness: 0.623f,
|
| 495 |
+
roughness: 0.41f,
|
| 496 |
+
roughness_variation:0.0f,
|
| 497 |
+
reflectivity: 0.5f,
|
| 498 |
+
bump_strength: 1.0f,
|
| 499 |
+
texture_translate: 0.0f,
|
| 500 |
+
texture_rotate: 0.0f,
|
| 501 |
+
texture_scale: 1.0f,
|
| 502 |
+
enable_round_corners: false,
|
| 503 |
+
roundcorners_radius: 1.5f,
|
| 504 |
+
roundcorners_across_materials: false,
|
| 505 |
+
uv_space_index: 0
|
| 506 |
+
);
|
| 507 |
+
|
| 508 |
+
|
| 509 |
+
// 6
|
| 510 |
+
export material Ground_Hard_Court_Dark_Green(*)
|
| 511 |
+
[[
|
| 512 |
+
::anno::author("NVIDIA vMaterials"),
|
| 513 |
+
::anno::display_name("Ground Hard Court - Dark Green"),
|
| 514 |
+
::anno::description(DESCRIPTION),
|
| 515 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 516 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Dark_Green.png"),
|
| 517 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "green", "dark"))
|
| 518 |
+
]] = Ground_Hard_Court
|
| 519 |
+
(
|
| 520 |
+
infinite_tiling: true,
|
| 521 |
+
ground_hue: 0.3f,
|
| 522 |
+
ground_saturation: 0.8f,
|
| 523 |
+
ground_brightness: 0.0f,
|
| 524 |
+
roughness: 0.41f,
|
| 525 |
+
roughness_variation:0.0f,
|
| 526 |
+
reflectivity: 0.5f,
|
| 527 |
+
bump_strength: 1.0f,
|
| 528 |
+
texture_translate: 0.0f,
|
| 529 |
+
texture_rotate: 0.0f,
|
| 530 |
+
texture_scale: 1.0f,
|
| 531 |
+
enable_round_corners: false,
|
| 532 |
+
roundcorners_radius: 1.5f,
|
| 533 |
+
roundcorners_across_materials: false,
|
| 534 |
+
uv_space_index: 0
|
| 535 |
+
);
|
| 536 |
+
|
| 537 |
+
|
| 538 |
+
|
| 539 |
+
// 7
|
| 540 |
+
export material Ground_Hard_Court_Olive_Green(*)
|
| 541 |
+
[[
|
| 542 |
+
::anno::author("NVIDIA vMaterials"),
|
| 543 |
+
::anno::display_name("Ground Hard Court - Olive Green"),
|
| 544 |
+
::anno::description(DESCRIPTION),
|
| 545 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 546 |
+
::anno::thumbnail("./.thumbs/Ground_Hard_Court.Ground_Hard_Court_Olive_Green.png"),
|
| 547 |
+
::anno::key_words(string[]("ground", "hard court", "court", "hard", "exterior", "sports", "bumped", "rough", "artificial", "green", "olive"))
|
| 548 |
+
]] = Ground_Hard_Court
|
| 549 |
+
(
|
| 550 |
+
infinite_tiling: true,
|
| 551 |
+
ground_hue: 0.22f,
|
| 552 |
+
ground_saturation: 0.495f,
|
| 553 |
+
ground_brightness: 0.25f,
|
| 554 |
+
roughness: 0.5f,
|
| 555 |
+
roughness_variation:0.0f,
|
| 556 |
+
reflectivity: 0.5f,
|
| 557 |
+
bump_strength: 1.0f,
|
| 558 |
+
texture_translate: 0.0f,
|
| 559 |
+
texture_rotate: 0.0f,
|
| 560 |
+
texture_scale: 1.0f,
|
| 561 |
+
enable_round_corners: false,
|
| 562 |
+
roundcorners_radius: 1.5f,
|
| 563 |
+
roundcorners_across_materials: false,
|
| 564 |
+
uv_space_index: 0
|
| 565 |
+
);
|
| 566 |
+
|
| 567 |
+
|
| 568 |
+
|
| 569 |
+
|
| 570 |
+
|
Material/material_0357/Ground_Leaves_Oak.mdl
ADDED
|
@@ -0,0 +1,375 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved. *
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.5;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
const string COPYRIGHT =
|
| 50 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 51 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 52 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 53 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 54 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 55 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 56 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 57 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 58 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 59 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 60 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
float3 srgb2rgb(float3 val)
|
| 65 |
+
{
|
| 66 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
float uint2float(int x)
|
| 71 |
+
{
|
| 72 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
int lowbias32(int x)
|
| 76 |
+
{
|
| 77 |
+
x ^= x >>> 16;
|
| 78 |
+
x *= 0x7feb352d;
|
| 79 |
+
x ^= x >>> 15;
|
| 80 |
+
x *= 0x846ca68b;
|
| 81 |
+
x ^= x >>> 16;
|
| 82 |
+
return x;
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
float2 rnd22(int2 p) {
|
| 86 |
+
float2 ret_val = float2(
|
| 87 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 88 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 89 |
+
);
|
| 90 |
+
return ret_val;
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
::base::texture_coordinate_info vmat_transform(
|
| 94 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 95 |
+
uniform float rotation = 0.0,
|
| 96 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 97 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 98 |
+
uniform int uv_space = 0
|
| 99 |
+
)
|
| 100 |
+
{
|
| 101 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 102 |
+
float4x4 scale =
|
| 103 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 104 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 105 |
+
0. , 0. , 1.0, 0.,
|
| 106 |
+
translation.x , translation.y , 0.0, 1.);
|
| 107 |
+
|
| 108 |
+
float s = ::math::sin(rotation_rad);
|
| 109 |
+
float c = ::math::cos(rotation_rad);
|
| 110 |
+
float4x4 rotate =
|
| 111 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 112 |
+
s , c , 0.0 , 0.0,
|
| 113 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 114 |
+
0. , 0.0 , 0.0 , 1.);
|
| 115 |
+
|
| 116 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 117 |
+
}
|
| 118 |
+
|
| 119 |
+
float2x2 invert_2x2(float2x2 M)
|
| 120 |
+
{
|
| 121 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 122 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 123 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
float3 nonrepeat_lookup(
|
| 127 |
+
uniform texture_2d texture = texture_2d(),
|
| 128 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 129 |
+
float texture_scale = 1.0,
|
| 130 |
+
float3 average_color = float3(0.5),
|
| 131 |
+
float patch_size = 8.0
|
| 132 |
+
)
|
| 133 |
+
{
|
| 134 |
+
|
| 135 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 136 |
+
float Z = patch_size; // patch scale inside example texture
|
| 137 |
+
float CON = 1.0f;
|
| 138 |
+
|
| 139 |
+
float3 O = float3(0.f);
|
| 140 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 141 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 142 |
+
|
| 143 |
+
float2 U = uv_in;
|
| 144 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 145 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 146 |
+
|
| 147 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 148 |
+
// average color work out, take the float value and calculate the apropriate
|
| 149 |
+
// mean value as (value^(1/2.2))
|
| 150 |
+
|
| 151 |
+
float3 m = average_color;
|
| 152 |
+
|
| 153 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 154 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 155 |
+
|
| 156 |
+
if( F[2] > 0.f )
|
| 157 |
+
|
| 158 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 159 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 160 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 161 |
+
else
|
| 162 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 163 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 164 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 165 |
+
O = m + O/::math::length(W);
|
| 166 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 167 |
+
|
| 168 |
+
return float3(O);
|
| 169 |
+
}
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
float histogram_range(float input, float range, float position)
|
| 173 |
+
{
|
| 174 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 175 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 176 |
+
return ::math::lerp(low, high, input);
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 180 |
+
{
|
| 181 |
+
return (input - x)/(y - x);
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
float histogram_scan_big(float input, float width, float position)
|
| 185 |
+
{
|
| 186 |
+
return ::math::clamp(
|
| 187 |
+
remap_xy_to_0_1(input,
|
| 188 |
+
::math::lerp(-width, 1.0, position),
|
| 189 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 190 |
+
0.0,
|
| 191 |
+
1.0);
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
color endless_texture(
|
| 195 |
+
uniform texture_2d texture = texture_2d(),
|
| 196 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 197 |
+
float texture_scale = 10.0,
|
| 198 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 199 |
+
float patch_size = 8.0,
|
| 200 |
+
bool gamma_correct_lookup = true
|
| 201 |
+
)
|
| 202 |
+
{
|
| 203 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 204 |
+
nonrepeat_lookup (
|
| 205 |
+
texture: texture,
|
| 206 |
+
uvw: uvw,
|
| 207 |
+
texture_scale: texture_scale,
|
| 208 |
+
average_color: average_color,
|
| 209 |
+
patch_size: patch_size
|
| 210 |
+
))
|
| 211 |
+
) : color(nonrepeat_lookup (
|
| 212 |
+
texture: texture,
|
| 213 |
+
uvw: uvw,
|
| 214 |
+
texture_scale: texture_scale,
|
| 215 |
+
average_color: average_color,
|
| 216 |
+
patch_size: patch_size
|
| 217 |
+
));
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
float3 endless_normal(
|
| 221 |
+
uniform texture_2d texture = texture_2d(),
|
| 222 |
+
float factor = 1.0,
|
| 223 |
+
bool flip_tangent_u = false,
|
| 224 |
+
bool flip_tangent_v = false,
|
| 225 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 226 |
+
float texture_scale = 1.0,
|
| 227 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 228 |
+
float patch_size = 8.0
|
| 229 |
+
)
|
| 230 |
+
{
|
| 231 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 232 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 233 |
+
|
| 234 |
+
if (flip_tangent_u)
|
| 235 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 236 |
+
if (flip_tangent_v)
|
| 237 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 238 |
+
|
| 239 |
+
// normalized Lookup
|
| 240 |
+
float3 tangent_space_normal =
|
| 241 |
+
(nonrepeat_lookup (
|
| 242 |
+
texture: texture,
|
| 243 |
+
uvw: uvw,
|
| 244 |
+
texture_scale: texture_scale,
|
| 245 |
+
average_color: average_color,
|
| 246 |
+
patch_size: patch_size
|
| 247 |
+
) - 0.5) * (2.0 * factor);
|
| 248 |
+
|
| 249 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 250 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 251 |
+
::state::normal()*1.0);
|
| 252 |
+
}
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
export material Ground_Leaves_Oak(
|
| 256 |
+
uniform bool infinite_tiling = false [[
|
| 257 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns. Note that depending on the material this feature changes the appearance of the material slightly."),
|
| 258 |
+
::anno::display_name("Infinite Tiling"),
|
| 259 |
+
::anno::in_group("Appearance")
|
| 260 |
+
]],
|
| 261 |
+
float brightness = 0.5f [[
|
| 262 |
+
::anno::description("Adjusts the lightness of the material."),
|
| 263 |
+
::anno::display_name("Brightness"),
|
| 264 |
+
::anno::in_group("Appearance"),
|
| 265 |
+
::anno::hard_range(0.f, 1.f)
|
| 266 |
+
]],
|
| 267 |
+
float roughness = 0.5f [[
|
| 268 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 269 |
+
::anno::display_name("Rougness"),
|
| 270 |
+
::anno::in_group("Appearance"),
|
| 271 |
+
::anno::hard_range(0.f, 1.f)
|
| 272 |
+
]],
|
| 273 |
+
float reflectivity = 0.5f [[
|
| 274 |
+
::anno::description("Amount of reflection, higher numbers provide more reflection."),
|
| 275 |
+
::anno::display_name("Reflectivity"),
|
| 276 |
+
::anno::in_group("Appearance"),
|
| 277 |
+
::anno::hard_range(0.f, 1.f)
|
| 278 |
+
]],
|
| 279 |
+
uniform float2 texture_translate = 0.f [[
|
| 280 |
+
::anno::display_name("Texture Translate"),
|
| 281 |
+
::anno::description("Controls the position of the texture."),
|
| 282 |
+
::anno::in_group("Transform")
|
| 283 |
+
]],
|
| 284 |
+
uniform float texture_rotate = 0.f [[
|
| 285 |
+
::anno::display_name("Texture Rotate"),
|
| 286 |
+
::anno::description("Rotation angle of the texture in degrees."),
|
| 287 |
+
::anno::in_group("Transform"),
|
| 288 |
+
::anno::soft_range(0.f, 360.f)
|
| 289 |
+
]],
|
| 290 |
+
uniform float2 texture_scale = 1.f [[
|
| 291 |
+
::anno::display_name("Texture Scale"),
|
| 292 |
+
::anno::description("Larger numbers increase the size."),
|
| 293 |
+
::nvidia::core_definitions::dimension(float2(2.0f, 2.0f)),
|
| 294 |
+
::anno::in_group("Transform")
|
| 295 |
+
]],
|
| 296 |
+
uniform int uv_space_index = 0 [[
|
| 297 |
+
::anno::description("Uses selected UV space for material."),
|
| 298 |
+
::anno::display_name("UV Space Index"),
|
| 299 |
+
::anno::in_group("Transform")
|
| 300 |
+
]],
|
| 301 |
+
uniform bool enable_round_corners = false [[
|
| 302 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 303 |
+
::anno::display_name("Enable Round Corners"),
|
| 304 |
+
::anno::in_group("Round Corners")
|
| 305 |
+
]],
|
| 306 |
+
uniform float radius = 0.f [[
|
| 307 |
+
::anno::description("Radius of the rounded corners."),
|
| 308 |
+
::anno::display_name("Round Corner Radius"),
|
| 309 |
+
::anno::in_group("Round Corners")
|
| 310 |
+
]],
|
| 311 |
+
uniform bool across_materials = true [[
|
| 312 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 313 |
+
::anno::display_name("Across Materials"),
|
| 314 |
+
::anno::in_group("Round Corners")
|
| 315 |
+
]]
|
| 316 |
+
)
|
| 317 |
+
[[
|
| 318 |
+
::anno::author("NVIDIA vMaterials"),
|
| 319 |
+
::anno::display_name("Ground Leaves Oak"),
|
| 320 |
+
::anno::description("A ground material of fallen leaves."),
|
| 321 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 322 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves_Oak.Ground_Leaves_Oak.png"),
|
| 323 |
+
::anno::key_words(string[]("ground", "oak", "leaves", "exterior", "nature", "soil", "organic", "brown"))
|
| 324 |
+
]]
|
| 325 |
+
=
|
| 326 |
+
let {
|
| 327 |
+
bool tmp0 = false;
|
| 328 |
+
material_surface tmp1(
|
| 329 |
+
::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, ::math::pow(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.713999987f, 0.838999987f, 0.349000007f), 3.f, false) : ::base::file_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.78700006f, ::math::lerp(0.75f, 0.529999971f, reflectivity)), 2.20000005f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.713999987f, 0.838999987f, 0.349000007f), 3.f, false) : ::base::file_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.272000015f, 0.605000019f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.713999987f, 0.838999987f, 0.349000007f), 3.f, false) : ::base::file_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.272000015f, 0.605000019f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.713999987f, 0.838999987f, 0.349000007f), 3.f, false) : ::base::file_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.272000015f, 0.605000019f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.713999987f, 0.838999987f, 0.349000007f), 3.f, false) : ::base::file_texture(texture_2d("./ground_leaves_oak_r_rough_g_ao_b_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.272000015f, 0.605000019f, roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./ground_leaves_oak_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.651000023f, 0.423999995f, 0.226999998f), 3.f, true) : ::base::file_texture(texture_2d("./ground_leaves_oak_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::math::lerp(0.699999988f, 0.200000003f, brightness)).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./ground_leaves_oak_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.5f, 0.5f, 1.f), 3.f) : ::base::tangent_space_normal_texture(texture_2d("./ground_leaves_oak_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f)), infinite_tiling ? endless_normal(texture_2d("./ground_leaves_oak_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.5f, 0.5f, 1.f), 3.f) : ::base::tangent_space_normal_texture(texture_2d("./ground_leaves_oak_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f)),
|
| 330 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 331 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 332 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 333 |
+
material_volume tmp4 = material_volume(scattering: vdf(), absorption_coefficient: color(0.f, 0.f, 0.f), scattering_coefficient: color(0.f, 0.f, 0.f));
|
| 334 |
+
material_geometry tmp5(
|
| 335 |
+
float3(0.f),
|
| 336 |
+
1.f,
|
| 337 |
+
enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal());
|
| 338 |
+
} in
|
| 339 |
+
material(
|
| 340 |
+
thin_walled: tmp0,
|
| 341 |
+
surface: tmp1,
|
| 342 |
+
backface: tmp2,
|
| 343 |
+
ior: tmp3,
|
| 344 |
+
volume: tmp4,
|
| 345 |
+
geometry: tmp5);
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
export material Ground_Leaves_Oak_Shiny(*)
|
| 349 |
+
[[
|
| 350 |
+
::anno::author("NVIDIA vMaterials"),
|
| 351 |
+
::anno::display_name("Ground Leaves Oak - Shiny"),
|
| 352 |
+
::anno::description("A ground material of fallen leaves."),
|
| 353 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 354 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves_Oak.Ground_Leaves_Oak_Shiny.png"),
|
| 355 |
+
::anno::key_words(string[]("ground", "oak", "leaves", "exterior", "nature", "soil", "shiny", "organic", "brown"))
|
| 356 |
+
]] = Ground_Leaves_Oak(
|
| 357 |
+
infinite_tiling: false,
|
| 358 |
+
brightness: 0.5f,
|
| 359 |
+
roughness: 0.0f,
|
| 360 |
+
reflectivity: 0.25f,
|
| 361 |
+
texture_translate: 0.0f,
|
| 362 |
+
texture_rotate: 0.0f,
|
| 363 |
+
texture_scale: 1.0f,
|
| 364 |
+
uv_space_index: 0,
|
| 365 |
+
enable_round_corners: false,
|
| 366 |
+
radius: 0.002f,
|
| 367 |
+
across_materials: false
|
| 368 |
+
);
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
|
| 372 |
+
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
|
Material/material_0363/ABS_Hard_Leather.mdl
ADDED
|
@@ -0,0 +1,1648 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/******************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved. *
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge,
|
| 6 |
+
to any person obtaining a copy of the sample definition code that uses our
|
| 7 |
+
Material Definition Language (the "MDL Materials"), to reproduce and distribute
|
| 8 |
+
the MDL Materials, including without limitation the rights to use, copy, merge,
|
| 9 |
+
publish, distribute, and sell modified and unmodified copies of the MDL
|
| 10 |
+
Materials, and to permit persons to whom the MDL Materials is furnished to do
|
| 11 |
+
so, in all cases solely for use with NVIDIA's Material Definition Language,
|
| 12 |
+
subject to the following further conditions:
|
| 13 |
+
|
| 14 |
+
1. The above copyright notices, this list of conditions, and the disclaimer
|
| 15 |
+
that follows shall be retained in all copies of one or more of the MDL
|
| 16 |
+
Materials, including in any software with which the MDL Materials are bundled,
|
| 17 |
+
redistributed, and/or sold, and included either as stand-alone text files,
|
| 18 |
+
human-readable headers or in the appropriate machine-readable metadata fields
|
| 19 |
+
within text or binary files as long as those fields can be easily viewed by the
|
| 20 |
+
user, as applicable.
|
| 21 |
+
2. The name of NVIDIA shall not be used to promote, endorse or advertise any
|
| 22 |
+
Modified Version without specific prior written permission, except a) to comply
|
| 23 |
+
with the notice requirements otherwise contained herein; or b) to acknowledge
|
| 24 |
+
the contribution(s) of NVIDIA.
|
| 25 |
+
|
| 26 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
| 27 |
+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY,
|
| 28 |
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT,
|
| 29 |
+
TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR
|
| 30 |
+
ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL,
|
| 31 |
+
INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF
|
| 32 |
+
CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE
|
| 33 |
+
THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.
|
| 34 |
+
*/
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
mdl 1.6;
|
| 38 |
+
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 46 |
+
import ::nvidia::core_definitions::dimension;
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
const string COPYRIGHT =
|
| 50 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 51 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 52 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 53 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 54 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 55 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 56 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 57 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 58 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 59 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 60 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 61 |
+
|
| 62 |
+
const string DESCRIPTION = "A synthetic leather material.";
|
| 63 |
+
const string DESCRIPTION_PUNCHED = "A synthetic leather material with punched holes. Available punch shapes are circles, lines, rectangles and squares.";
|
| 64 |
+
|
| 65 |
+
annotation preview_scale( float f);
|
| 66 |
+
|
| 67 |
+
// returns the min-max coordinates of a 2x2 atlas tile
|
| 68 |
+
float4 tile_select_2x2(uniform int select = 0)
|
| 69 |
+
{
|
| 70 |
+
switch(select)
|
| 71 |
+
{
|
| 72 |
+
case 2: return float4(0.0f, 0.5f, 0.0f, 0.5f);
|
| 73 |
+
case 3: return float4(0.5f, 1.0f, 0.0f, 0.5f);
|
| 74 |
+
case 0: return float4(0.0f, 0.5f, 0.5f, 1.0f);
|
| 75 |
+
case 1: return float4(0.5f, 1.0f, 0.5f, 1.0f);
|
| 76 |
+
|
| 77 |
+
default: return float4(0.0f, 0.5f, 0.0f, 0.5f);
|
| 78 |
+
}
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
export struct vm_coordinates
|
| 83 |
+
[[
|
| 84 |
+
::anno::hidden()
|
| 85 |
+
]]
|
| 86 |
+
{
|
| 87 |
+
float2 uv;
|
| 88 |
+
float rotation;
|
| 89 |
+
int uv_space_index;
|
| 90 |
+
float4 carry;
|
| 91 |
+
};
|
| 92 |
+
|
| 93 |
+
enum vm_mono_select
|
| 94 |
+
[[
|
| 95 |
+
anno::description("Modes for the creation of a gray-scale value from a color."),
|
| 96 |
+
anno::hidden()
|
| 97 |
+
]]
|
| 98 |
+
{
|
| 99 |
+
mono_r = 0,
|
| 100 |
+
mono_g = 1,
|
| 101 |
+
mono_b = 2,
|
| 102 |
+
mono_a = 3,
|
| 103 |
+
mono_average = 4
|
| 104 |
+
};
|
| 105 |
+
|
| 106 |
+
vm_coordinates vm_coord
|
| 107 |
+
(
|
| 108 |
+
float2 translation = float2(0.0f, 0.0) [[
|
| 109 |
+
::anno::display_name("Translation"),
|
| 110 |
+
::anno::description("Translates the coordinates.")
|
| 111 |
+
]],
|
| 112 |
+
float rotation = 0.0f [[
|
| 113 |
+
::anno::display_name("Rotation"),
|
| 114 |
+
::anno::description("Rotates the coordinates in degrees.")
|
| 115 |
+
]],
|
| 116 |
+
float2 scaling = float2(1.0f, 1.0f) [[
|
| 117 |
+
::anno::display_name("Scaling"),
|
| 118 |
+
::anno::description("Scales the coordinates.")
|
| 119 |
+
]],
|
| 120 |
+
uniform int uv_space = 0 [[
|
| 121 |
+
::anno::display_name("UV Space"),
|
| 122 |
+
::anno::description("Chose the UV space.")
|
| 123 |
+
]]
|
| 124 |
+
)
|
| 125 |
+
[[
|
| 126 |
+
::anno::display_name("vm Transform"),
|
| 127 |
+
::anno::description("Generates coordinates to be used in vm_lookup functions.")
|
| 128 |
+
]]
|
| 129 |
+
{
|
| 130 |
+
vm_coordinates uv;
|
| 131 |
+
::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space);
|
| 132 |
+
uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 133 |
+
uv.uv = float2(info.position.x, info.position.y);
|
| 134 |
+
float sine = ::math::sin(uv.rotation);
|
| 135 |
+
float cosine = ::math::cos(uv.rotation);
|
| 136 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 137 |
+
uv.uv = rot * uv.uv;
|
| 138 |
+
uv.uv /= scaling;
|
| 139 |
+
uv.uv += translation;
|
| 140 |
+
return uv;
|
| 141 |
+
}
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
vm_coordinates vm_coord_hex(
|
| 145 |
+
vm_coordinates uv,
|
| 146 |
+
float scale = 1.0f,
|
| 147 |
+
float rotation = 45.0f
|
| 148 |
+
|
| 149 |
+
//,float2 rot_center=0.5f
|
| 150 |
+
)
|
| 151 |
+
{
|
| 152 |
+
vm_coordinates uv_return;
|
| 153 |
+
float2 uv_ = float2(uv.uv.x, uv.uv.y);
|
| 154 |
+
float rot_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 155 |
+
|
| 156 |
+
float sine = ::math::sin(rot_rad);
|
| 157 |
+
float cosine = ::math::cos(rot_rad);
|
| 158 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 159 |
+
|
| 160 |
+
// same as from function get_hex above
|
| 161 |
+
float2 s = float2(1.0f, 1.7320508f);
|
| 162 |
+
float2 n = uv_ - float2(0.5f, 1.0f);
|
| 163 |
+
float4 c = ::math::floor(float4(uv_.x, uv_.y, n.x, n.y)/float4(s.x, s.y, s.x, s.y)) + 0.5f;
|
| 164 |
+
float2 h_1 = uv_ - float2(c.x, c.y) * s;
|
| 165 |
+
float2 h_2 = uv_ - (float2(c.z, c.w) + 0.5f) * s;
|
| 166 |
+
float4 uv_id = ::math::dot(h_1, h_1) < ::math::dot(h_2, h_2) ? float4(h_1.x, h_1.y, c.x, c.y) : float4(h_2.x, h_2.y, c.z, c.w);
|
| 167 |
+
|
| 168 |
+
float2 id_xy = float2(uv_id.x, uv_id.y);
|
| 169 |
+
|
| 170 |
+
//uv_return.uv = float2(id_xy.x*scale+.5f, id_xy.y*scale+.5f);
|
| 171 |
+
uv_return.uv = rot*float2(id_xy.x*scale, id_xy.y*scale);
|
| 172 |
+
uv_return.uv += 0.5f;
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
// unless we introduce random cell rotations where we need to compensate for this in the rotation
|
| 176 |
+
// we can just plain copy the rotation value
|
| 177 |
+
uv_return.rotation = uv.rotation + rot_rad;
|
| 178 |
+
return uv_return;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
// Offsets a set of uv coordinates in either row (u) or column (v) direction
|
| 182 |
+
vm_coordinates vm_coord_rowcol_offset(
|
| 183 |
+
vm_coordinates uv,
|
| 184 |
+
float offset,
|
| 185 |
+
bool horizontal_offset = true
|
| 186 |
+
)
|
| 187 |
+
{
|
| 188 |
+
int index = horizontal_offset ? 0 : 1;
|
| 189 |
+
uv.uv[index] += ::math::floor(uv.uv[index ^ 1]) * offset;
|
| 190 |
+
return uv;
|
| 191 |
+
}
|
| 192 |
+
|
| 193 |
+
vm_coordinates vm_coord_grid(
|
| 194 |
+
vm_coordinates uv,
|
| 195 |
+
float scale = 1.0f,
|
| 196 |
+
float rotation = 45.0f
|
| 197 |
+
)
|
| 198 |
+
{
|
| 199 |
+
float rot_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 200 |
+
float sine = ::math::sin(rot_rad);
|
| 201 |
+
float cosine = ::math::cos(rot_rad);
|
| 202 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 203 |
+
|
| 204 |
+
float2x2 scal = float2x2(scale, 0., 0., scale);
|
| 205 |
+
uv.uv = ::math::frac(uv.uv);
|
| 206 |
+
uv.uv -= 0.5f;
|
| 207 |
+
uv.uv = rot*(scal * uv.uv);
|
| 208 |
+
uv.uv = uv.uv + 0.5f;
|
| 209 |
+
uv.rotation += rot_rad;
|
| 210 |
+
return uv;
|
| 211 |
+
}
|
| 212 |
+
|
| 213 |
+
::base::texture_return vm_tex_lookup(
|
| 214 |
+
uniform texture_2d tex,
|
| 215 |
+
vm_coordinates uv = vm_coord(),
|
| 216 |
+
uniform vm_mono_select mono_source = mono_a,
|
| 217 |
+
float4 scale = float4(1.0f),
|
| 218 |
+
|
| 219 |
+
uniform ::tex::wrap_mode wrap_u = ::tex::wrap_repeat,
|
| 220 |
+
uniform ::tex::wrap_mode wrap_v = ::tex::wrap_repeat,
|
| 221 |
+
uniform float2 crop_u = float2(0.0, 1.0),
|
| 222 |
+
uniform float2 crop_v = float2(0.0, 1.0)
|
| 223 |
+
)
|
| 224 |
+
{
|
| 225 |
+
float mono;
|
| 226 |
+
float4 lookup = ::tex::lookup_float4(tex, uv.uv, wrap_u, wrap_v, crop_u, crop_v) * scale;
|
| 227 |
+
switch( mono_source ) {
|
| 228 |
+
case mono_r: mono = lookup.x;
|
| 229 |
+
break;
|
| 230 |
+
case mono_g: mono = lookup.y;
|
| 231 |
+
break;
|
| 232 |
+
case mono_b: mono = lookup.z;
|
| 233 |
+
break;
|
| 234 |
+
case mono_a: mono = lookup.w;
|
| 235 |
+
break;
|
| 236 |
+
case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z));
|
| 237 |
+
break;
|
| 238 |
+
}
|
| 239 |
+
return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono);
|
| 240 |
+
}
|
| 241 |
+
|
| 242 |
+
// *** SET CUTOUT ENUM NAMES ***
|
| 243 |
+
export enum cutout_pattern
|
| 244 |
+
[[
|
| 245 |
+
::anno::description("Cutout Pattern"),
|
| 246 |
+
::anno::hidden()
|
| 247 |
+
]]
|
| 248 |
+
{
|
| 249 |
+
pattern_circle = 0
|
| 250 |
+
[[ ::anno::display_name("Circle")]],
|
| 251 |
+
pattern_hexagon = 1
|
| 252 |
+
[[ ::anno::display_name("Square")]],
|
| 253 |
+
pattern_line = 2
|
| 254 |
+
[[ ::anno::display_name("Line") ]],
|
| 255 |
+
|
| 256 |
+
pattern_square = 3
|
| 257 |
+
[[ ::anno::display_name("Rectangle")]]
|
| 258 |
+
};
|
| 259 |
+
|
| 260 |
+
|
| 261 |
+
float remap(float input, float low, float high)
|
| 262 |
+
{
|
| 263 |
+
//return low + input * (high - low);
|
| 264 |
+
return ::math::lerp(low, high, input);
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
int lowbias32(int x)
|
| 268 |
+
{
|
| 269 |
+
x ^= x >>> 16;
|
| 270 |
+
x *= 0x7feb352d;
|
| 271 |
+
x ^= x >>> 15;
|
| 272 |
+
x *= 0x846ca68b;
|
| 273 |
+
x ^= x >>> 16;
|
| 274 |
+
return x;
|
| 275 |
+
}
|
| 276 |
+
|
| 277 |
+
float uint2float(int x)
|
| 278 |
+
{
|
| 279 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 280 |
+
}
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
float2 rnd22(int2 p) {
|
| 285 |
+
float2 ret_val = float2(
|
| 286 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 287 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 288 |
+
);
|
| 289 |
+
return ret_val;
|
| 290 |
+
}
|
| 291 |
+
|
| 292 |
+
float2x2 invert_2x2(float2x2 M)
|
| 293 |
+
{
|
| 294 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 295 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 296 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 297 |
+
}
|
| 298 |
+
|
| 299 |
+
float3 srgb2rgb(float3 val)
|
| 300 |
+
{
|
| 301 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 302 |
+
}
|
| 303 |
+
|
| 304 |
+
float3 rgb2srgb(float3 val) [[ anno::unused() ]] {
|
| 305 |
+
return ::math::pow( ::math::max(val, float3(0.f)), float3(1./2.2) );
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
float3 nonrepeat_lookup(
|
| 310 |
+
uniform texture_2d texture = texture_2d(),
|
| 311 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 312 |
+
float texture_scale = 1.0,
|
| 313 |
+
float3 average_color = float3(0.5),
|
| 314 |
+
float patch_size = 8.0
|
| 315 |
+
)
|
| 316 |
+
{
|
| 317 |
+
|
| 318 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 319 |
+
float Z = patch_size; // patch scale inside example texture
|
| 320 |
+
|
| 321 |
+
float3 O = float3(0.f);
|
| 322 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 323 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 324 |
+
|
| 325 |
+
float2 U = uv_in;
|
| 326 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 327 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 328 |
+
|
| 329 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 330 |
+
// average color work out, take the float value and calculate the apropriate
|
| 331 |
+
// mean value as (value^(1/2.2))
|
| 332 |
+
|
| 333 |
+
float3 m = average_color;
|
| 334 |
+
|
| 335 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 336 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 337 |
+
|
| 338 |
+
if( F[2] > 0.f )
|
| 339 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m)
|
| 340 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m)
|
| 341 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m);
|
| 342 |
+
else
|
| 343 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m)
|
| 344 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m)
|
| 345 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m);
|
| 346 |
+
O = m + O/::math::length(W);
|
| 347 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 348 |
+
|
| 349 |
+
return float3(O);
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 353 |
+
{
|
| 354 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 355 |
+
float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 356 |
+
return ::math::lerp(low, high, input);
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 360 |
+
{
|
| 361 |
+
return (input - x)/(y - x);
|
| 362 |
+
}
|
| 363 |
+
|
| 364 |
+
float histogram_scan_big(float input, float width, float position)
|
| 365 |
+
{
|
| 366 |
+
return ::math::clamp(
|
| 367 |
+
remap_xy_to_0_1(input,
|
| 368 |
+
::math::lerp(-width, 1.0, position),
|
| 369 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 370 |
+
0.0,
|
| 371 |
+
1.0);
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
float3 endless_normal(
|
| 375 |
+
uniform texture_2d texture = texture_2d(),
|
| 376 |
+
float factor = 1.0,
|
| 377 |
+
bool flip_tangent_u = false,
|
| 378 |
+
bool flip_tangent_v = false,
|
| 379 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 380 |
+
float texture_scale = 10.0,
|
| 381 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 382 |
+
float patch_size = 8.0
|
| 383 |
+
//bool srgb2rgb = false,
|
| 384 |
+
//bool rgb2srgb = false
|
| 385 |
+
)
|
| 386 |
+
{
|
| 387 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 388 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 389 |
+
|
| 390 |
+
// normalized Lookup
|
| 391 |
+
float3 tangent_space_normal =
|
| 392 |
+
(nonrepeat_lookup (
|
| 393 |
+
texture: texture,
|
| 394 |
+
uvw: uvw,
|
| 395 |
+
texture_scale: texture_scale,
|
| 396 |
+
average_color: average_color,
|
| 397 |
+
patch_size: patch_size
|
| 398 |
+
) - 0.5) * (2.0 * factor);
|
| 399 |
+
|
| 400 |
+
return ::math::normalize(transformed_tangent_u * tangent_space_normal.x +
|
| 401 |
+
transformed_tangent_v * tangent_space_normal.y +
|
| 402 |
+
state::normal()*1.0);
|
| 403 |
+
}
|
| 404 |
+
|
| 405 |
+
::base::texture_coordinate_info transform_coordinate_2(
|
| 406 |
+
float4x4 transform
|
| 407 |
+
[[ anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix") ]],
|
| 408 |
+
::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
|
| 409 |
+
[[ anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection") ]]
|
| 410 |
+
) [[
|
| 411 |
+
::anno::description("Transform a texture coordinate by a matrix.") ,
|
| 412 |
+
::anno::noinline()
|
| 413 |
+
]]
|
| 414 |
+
{
|
| 415 |
+
// Version 2
|
| 416 |
+
float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
|
| 417 |
+
//Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
|
| 418 |
+
//just pretend there is no other rotation happening
|
| 419 |
+
//get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
|
| 420 |
+
float4 u = transform[0];
|
| 421 |
+
float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
|
| 422 |
+
float cos = ru.x;
|
| 423 |
+
float sin = -ru.y;
|
| 424 |
+
|
| 425 |
+
|
| 426 |
+
return ::base::texture_coordinate_info(
|
| 427 |
+
float3(r_position.x,r_position.y,r_position.z),
|
| 428 |
+
math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
|
| 429 |
+
math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
|
| 430 |
+
}
|
| 431 |
+
|
| 432 |
+
::base::texture_coordinate_info vmat_transform(
|
| 433 |
+
float2 translation = float2(0.0, 0.0),
|
| 434 |
+
float rotation = 0.0, // rotation in degrees
|
| 435 |
+
float2 scaling = float2(1.0, 1.0),
|
| 436 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 437 |
+
uniform int uv_space = 0
|
| 438 |
+
)
|
| 439 |
+
{
|
| 440 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 441 |
+
float4x4 scale =
|
| 442 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 443 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 444 |
+
0. , 0. , 1.0, 0.,
|
| 445 |
+
translation.x , translation.y , 0.0, 1.);
|
| 446 |
+
|
| 447 |
+
float s = ::math::sin(rotation_rad);
|
| 448 |
+
float c = ::math::cos(rotation_rad);
|
| 449 |
+
float4x4 rotate =
|
| 450 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 451 |
+
s , c , 0.0 , 0.0,
|
| 452 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 453 |
+
0. , 0.0 , 0.0 , 1.);
|
| 454 |
+
|
| 455 |
+
return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 456 |
+
}
|
| 457 |
+
|
| 458 |
+
|
| 459 |
+
color endless_texture(
|
| 460 |
+
uniform texture_2d texture = texture_2d(),
|
| 461 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 462 |
+
float texture_scale = 10.0,
|
| 463 |
+
float3 average_color = float3(0.5, 0.5, .5),
|
| 464 |
+
float patch_size = 8.0,
|
| 465 |
+
bool gamma_correct_lookup = true
|
| 466 |
+
)
|
| 467 |
+
{
|
| 468 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 469 |
+
nonrepeat_lookup (
|
| 470 |
+
texture: texture,
|
| 471 |
+
uvw: uvw,
|
| 472 |
+
texture_scale: texture_scale,
|
| 473 |
+
average_color: average_color,
|
| 474 |
+
patch_size: patch_size
|
| 475 |
+
))
|
| 476 |
+
) : color(nonrepeat_lookup (
|
| 477 |
+
texture: texture,
|
| 478 |
+
uvw: uvw,
|
| 479 |
+
texture_scale: texture_scale,
|
| 480 |
+
average_color: average_color,
|
| 481 |
+
patch_size: patch_size
|
| 482 |
+
));
|
| 483 |
+
}
|
| 484 |
+
export material ABS_Hard_Leather(
|
| 485 |
+
uniform bool infinite_tiling = false [[
|
| 486 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns. Note that depending on the material this feature changes the appearance of the material slightly."),
|
| 487 |
+
::anno::display_name("Infinite Tiling"),
|
| 488 |
+
::anno::in_group("Appearance"),
|
| 489 |
+
::anno::ui_order(0)
|
| 490 |
+
]],
|
| 491 |
+
color leather_color = color(0.02f) [[
|
| 492 |
+
::anno::description("Choose the color of the leather."),
|
| 493 |
+
::anno::display_name("Leather Color"),
|
| 494 |
+
::anno::in_group("Appearance"),
|
| 495 |
+
::anno::ui_order(1)
|
| 496 |
+
]],
|
| 497 |
+
float brightness_ao_cavity = 0.2f [[
|
| 498 |
+
::anno::description("Adjusts the lightness of the cavity."),
|
| 499 |
+
::anno::display_name("Cavity Brightness"),
|
| 500 |
+
::anno::in_group("Appearance"),
|
| 501 |
+
::anno::soft_range(0.f, 1.f),
|
| 502 |
+
::anno::hard_range(0.f, 1.f),
|
| 503 |
+
::anno::ui_order(2)
|
| 504 |
+
]],
|
| 505 |
+
float roughness = .6f [[
|
| 506 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 507 |
+
::anno::display_name("Roughness"),
|
| 508 |
+
::anno::in_group("Appearance"),
|
| 509 |
+
::anno::hard_range(0.f, 1.f),
|
| 510 |
+
::anno::ui_order(3)
|
| 511 |
+
]],
|
| 512 |
+
float reflectivity = 1.f [[
|
| 513 |
+
::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."),
|
| 514 |
+
::anno::display_name("Roughness Variation"),
|
| 515 |
+
::anno::in_group("Appearance"),
|
| 516 |
+
::anno::hard_range(0.f, 1.f),
|
| 517 |
+
::anno::ui_order(4)
|
| 518 |
+
]],
|
| 519 |
+
uniform float bump_strength = 0.5f [[
|
| 520 |
+
::anno::description("Specifies the strength of the bump."),
|
| 521 |
+
::anno::display_name("Bump Strength"),
|
| 522 |
+
::anno::in_group("Appearance"),
|
| 523 |
+
::anno::soft_range(0.f, 1.f),
|
| 524 |
+
::anno::hard_range(0.f, 2.f),
|
| 525 |
+
::anno::ui_order(5)
|
| 526 |
+
]],
|
| 527 |
+
float2 texture_translate = 0.f [[
|
| 528 |
+
::anno::description("Controls the position of the texture."),
|
| 529 |
+
::anno::display_name("Texture Translate"),
|
| 530 |
+
::anno::in_group("Transform"),
|
| 531 |
+
::anno::ui_order(6)
|
| 532 |
+
]],
|
| 533 |
+
float texture_rotate = 0.f [[
|
| 534 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 535 |
+
::anno::display_name("Texture Rotate"),
|
| 536 |
+
::anno::in_group("Transform"),
|
| 537 |
+
::anno::soft_range(0.f, 360.f),
|
| 538 |
+
::anno::ui_order(7)
|
| 539 |
+
]],
|
| 540 |
+
float2 texture_scale = 1.f [[
|
| 541 |
+
::anno::description("Larger numbers increase the size."),
|
| 542 |
+
::anno::display_name("Texture Scale"),
|
| 543 |
+
::anno::in_group("Transform"),
|
| 544 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 545 |
+
::preview_scale(3.0f),
|
| 546 |
+
::anno::ui_order(8)
|
| 547 |
+
]],
|
| 548 |
+
uniform int uv_space_index = 0 [[
|
| 549 |
+
::anno::description("Uses selected UV space for material."),
|
| 550 |
+
::anno::display_name("UV Space Index"),
|
| 551 |
+
::anno::in_group("Transform"),
|
| 552 |
+
::anno::ui_order(9)
|
| 553 |
+
]],
|
| 554 |
+
uniform bool enable_round_corners = false [[
|
| 555 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 556 |
+
::anno::display_name("Enable Round Corners"),
|
| 557 |
+
::anno::in_group("Round Corners"),
|
| 558 |
+
::anno::ui_order(10)
|
| 559 |
+
]],
|
| 560 |
+
uniform float radius = 1.5f [[
|
| 561 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 562 |
+
::anno::display_name("Round Corner Radius"),
|
| 563 |
+
::anno::in_group("Round Corners"),
|
| 564 |
+
::anno::ui_order(11)
|
| 565 |
+
]],
|
| 566 |
+
uniform bool across_materials = false [[
|
| 567 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 568 |
+
::anno::display_name("Across Materials"),
|
| 569 |
+
::anno::in_group("Round Corners"),
|
| 570 |
+
::anno::ui_order(12)
|
| 571 |
+
]])
|
| 572 |
+
[[
|
| 573 |
+
::anno::description(DESCRIPTION),
|
| 574 |
+
::anno::display_name("ABS Hard Leather - Black"),
|
| 575 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 576 |
+
::anno::key_words(string[]("dielectric", "automotive", "design", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "black", "dark", "neutral")),
|
| 577 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather.png"),
|
| 578 |
+
::anno::author("Nvidia vMaterials"),
|
| 579 |
+
::anno::contributor("Maik Rohland"),
|
| 580 |
+
::anno::contributor("Ruediger Raab")
|
| 581 |
+
]]
|
| 582 |
+
=
|
| 583 |
+
let {
|
| 584 |
+
bool tmp0 = false;
|
| 585 |
+
|
| 586 |
+
texture_2d rough_height_ao_tex = texture_2d("./abs_hard_leather_multi_R_rough_G_height_B_ao.jpg", ::tex::gamma_linear);
|
| 587 |
+
texture_2d norm_tex = texture_2d("./abs_hard_leather_norm.jpg", ::tex::gamma_linear);
|
| 588 |
+
|
| 589 |
+
material_surface tmp1(df::custom_curve_layer(0.0399999991f, 1.f, 5.f, math::pow(histogram_scan_big(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1], 0.389999986f, math::lerp(0.f, 0.560000002f, math::pow(reflectivity, 0.349999994f))), 1.49000001f), df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.300000012f, math::lerp(0.300000012f, 0.859999955f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.300000012f, math::lerp(0.300000012f, 0.859999955f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.300000012f, math::lerp(0.300000012f, 0.859999955f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.300000012f, math::lerp(0.300000012f, 0.859999955f, roughness)), color(1.f, 1.f, 1.f), nvidia::core_definitions::blend_colors(leather_color, color(histogram_range(0.100000001f, 0.289999992f, float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[2])), base::color_layer_multiply, math::lerp(0.930000007f, 0.149999991f, remap(brightness_ao_cavity, 0.f, 20.f)), true).tint, state::texture_tangent_u(0), df::scatter_reflect), df::weighted_layer(1.f, df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(leather_color, color(histogram_range(0.100000001f, 0.289999992f, float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.792156994f, 0.545098007f, 0.800000012f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[2])), base::color_layer_multiply, math::lerp(0.930000007f, 0.149999991f, remap(brightness_ao_cavity, 0.f, 20.f)), true).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.505882025f, 0.494118005f, 0.92156899f), 13.f) : base::tangent_space_normal_texture(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f, 0.f, int2(0), tex::wrap_repeat, 30.f)), infinite_tiling ? endless_normal(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.505882025f, 0.494118005f, 0.92156899f), 13.f) : base::tangent_space_normal_texture(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f, 0.f, int2(0), tex::wrap_repeat, 30.f)), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 590 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 591 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 592 |
+
material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? state::rounded_corner_normal(radius, across_materials, 1.f) : state::normal());
|
| 593 |
+
|
| 594 |
+
} in
|
| 595 |
+
material(
|
| 596 |
+
thin_walled: tmp0,
|
| 597 |
+
surface: tmp1,
|
| 598 |
+
backface: tmp2,
|
| 599 |
+
ior: tmp3,
|
| 600 |
+
geometry: tmp5);
|
| 601 |
+
|
| 602 |
+
export material ABS_Hard_Leather_Brown(*)
|
| 603 |
+
[[
|
| 604 |
+
::anno::description(DESCRIPTION),
|
| 605 |
+
::anno::display_name("ABS Hard Leather - Brown"),
|
| 606 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 607 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "brown", "warm")),
|
| 608 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Brown.png"),
|
| 609 |
+
::anno::author("Nvidia vMaterials"),
|
| 610 |
+
::anno::contributor("Maik Rohland"),
|
| 611 |
+
::anno::contributor("Ruediger Raab")
|
| 612 |
+
]]
|
| 613 |
+
= ABS_Hard_Leather
|
| 614 |
+
(
|
| 615 |
+
infinite_tiling: false,
|
| 616 |
+
leather_color: color(0.0718f, 0.0316f, 0.001f),
|
| 617 |
+
brightness_ao_cavity: .3f,
|
| 618 |
+
roughness: .5f,
|
| 619 |
+
reflectivity: .0f,
|
| 620 |
+
bump_strength: .5f,
|
| 621 |
+
texture_translate: 0.0f,
|
| 622 |
+
texture_rotate: 0.0f,
|
| 623 |
+
texture_scale: 1.f,
|
| 624 |
+
uv_space_index: 0,
|
| 625 |
+
enable_round_corners: false,
|
| 626 |
+
radius: 1.5f,
|
| 627 |
+
across_materials: false
|
| 628 |
+
);
|
| 629 |
+
|
| 630 |
+
|
| 631 |
+
export material ABS_Hard_Leather_Grey(*)
|
| 632 |
+
[[
|
| 633 |
+
::anno::description(DESCRIPTION),
|
| 634 |
+
::anno::display_name("ABS Hard Leather - Grey"),
|
| 635 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 636 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "grey", "neutral")),
|
| 637 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Grey.png"),
|
| 638 |
+
::anno::author("Nvidia vMaterials"),
|
| 639 |
+
::anno::contributor("Maik Rohland"),
|
| 640 |
+
::anno::contributor("Ruediger Raab")
|
| 641 |
+
]]
|
| 642 |
+
= ABS_Hard_Leather
|
| 643 |
+
(
|
| 644 |
+
infinite_tiling: false,
|
| 645 |
+
leather_color: color(0.06f),
|
| 646 |
+
brightness_ao_cavity: .2f,
|
| 647 |
+
roughness: .2f,
|
| 648 |
+
reflectivity: .0f,
|
| 649 |
+
bump_strength: .5f,
|
| 650 |
+
texture_translate: 0.0f,
|
| 651 |
+
texture_rotate: 0.0f,
|
| 652 |
+
texture_scale: 1.f,
|
| 653 |
+
uv_space_index: 0,
|
| 654 |
+
enable_round_corners: false,
|
| 655 |
+
radius: 1.5f,
|
| 656 |
+
across_materials: false
|
| 657 |
+
);
|
| 658 |
+
|
| 659 |
+
export material ABS_Hard_Leather_Peach(*)
|
| 660 |
+
[[
|
| 661 |
+
::anno::description(DESCRIPTION),
|
| 662 |
+
::anno::display_name("ABS Hard Leather - Peach"),
|
| 663 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 664 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "warm", "peach", "orange")),
|
| 665 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Peach.png"),
|
| 666 |
+
::anno::author("Nvidia vMaterials"),
|
| 667 |
+
::anno::contributor("Maik Rohland"),
|
| 668 |
+
::anno::contributor("Ruediger Raab")
|
| 669 |
+
]]
|
| 670 |
+
= ABS_Hard_Leather
|
| 671 |
+
(
|
| 672 |
+
infinite_tiling: false,
|
| 673 |
+
leather_color: color(0.274677f, 0.078187f, 0.004777f),
|
| 674 |
+
brightness_ao_cavity: .2f,
|
| 675 |
+
roughness: .2f,
|
| 676 |
+
reflectivity: .0f,
|
| 677 |
+
bump_strength: .5f,
|
| 678 |
+
texture_translate: 0.0f,
|
| 679 |
+
texture_rotate: 0.0f,
|
| 680 |
+
texture_scale: 1.f,
|
| 681 |
+
uv_space_index: 0,
|
| 682 |
+
enable_round_corners: false,
|
| 683 |
+
radius: 1.5f,
|
| 684 |
+
across_materials: false
|
| 685 |
+
);
|
| 686 |
+
|
| 687 |
+
export material ABS_Hard_Leather_Vintage_Rose(*)
|
| 688 |
+
[[
|
| 689 |
+
::anno::description(DESCRIPTION),
|
| 690 |
+
::anno::display_name("ABS Hard Leather - Rose Vintage"),
|
| 691 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 692 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "vintage", "hard", "leather", "car", "dashboard", "cloth", "furniture", "warm", "rose")),
|
| 693 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Vintage_Rose.png"),
|
| 694 |
+
::anno::author("Nvidia vMaterials"),
|
| 695 |
+
::anno::contributor("Maik Rohland"),
|
| 696 |
+
::anno::contributor("Ruediger Raab")
|
| 697 |
+
]]
|
| 698 |
+
= ABS_Hard_Leather
|
| 699 |
+
(
|
| 700 |
+
infinite_tiling: false,
|
| 701 |
+
leather_color: color(0.135633f, 0.059511f, 0.059511f),
|
| 702 |
+
brightness_ao_cavity: .2f,
|
| 703 |
+
roughness: .25f,
|
| 704 |
+
reflectivity: .0f,
|
| 705 |
+
bump_strength: .5f,
|
| 706 |
+
texture_translate: 0.0f,
|
| 707 |
+
texture_rotate: 0.0f,
|
| 708 |
+
texture_scale: 1.f,
|
| 709 |
+
uv_space_index: 0,
|
| 710 |
+
enable_round_corners: false,
|
| 711 |
+
radius: 1.5f,
|
| 712 |
+
across_materials: false
|
| 713 |
+
);
|
| 714 |
+
|
| 715 |
+
|
| 716 |
+
export material ABS_Hard_Leather_Moss(*)
|
| 717 |
+
[[
|
| 718 |
+
::anno::description(DESCRIPTION),
|
| 719 |
+
::anno::display_name("ABS Hard Leather - Moss"),
|
| 720 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 721 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "green", "moss")),
|
| 722 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Moss.png"),
|
| 723 |
+
::anno::author("Nvidia vMaterials"),
|
| 724 |
+
::anno::contributor("Maik Rohland"),
|
| 725 |
+
::anno::contributor("Ruediger Raab")
|
| 726 |
+
]]
|
| 727 |
+
= ABS_Hard_Leather
|
| 728 |
+
(
|
| 729 |
+
infinite_tiling: false,
|
| 730 |
+
leather_color: color(0.0546f, 0.0582f, 0.00775f),
|
| 731 |
+
brightness_ao_cavity: .2f,
|
| 732 |
+
roughness: .4f,
|
| 733 |
+
reflectivity: .0f,
|
| 734 |
+
bump_strength: .5f,
|
| 735 |
+
texture_translate: 0.0f,
|
| 736 |
+
texture_rotate: 0.0f,
|
| 737 |
+
texture_scale: 1.f,
|
| 738 |
+
uv_space_index: 0,
|
| 739 |
+
enable_round_corners: false,
|
| 740 |
+
radius: 1.5f,
|
| 741 |
+
across_materials: false
|
| 742 |
+
);
|
| 743 |
+
|
| 744 |
+
export material ABS_Hard_Leather_Sky(*)
|
| 745 |
+
[[
|
| 746 |
+
::anno::description(DESCRIPTION),
|
| 747 |
+
::anno::display_name("ABS Hard Leather - Sky"),
|
| 748 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 749 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "blue", "sky", "baby")),
|
| 750 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Sky.png"),
|
| 751 |
+
::anno::author("Nvidia vMaterials"),
|
| 752 |
+
::anno::contributor("Maik Rohland"),
|
| 753 |
+
::anno::contributor("Ruediger Raab")
|
| 754 |
+
]]
|
| 755 |
+
= ABS_Hard_Leather
|
| 756 |
+
(
|
| 757 |
+
infinite_tiling: false,
|
| 758 |
+
leather_color: color(0.042311f, 0.116971f, 0.187821f),
|
| 759 |
+
brightness_ao_cavity: .2f,
|
| 760 |
+
roughness: .2f,
|
| 761 |
+
reflectivity: .0f,
|
| 762 |
+
bump_strength: .5f,
|
| 763 |
+
texture_translate: 0.0f,
|
| 764 |
+
texture_rotate: 0.0f,
|
| 765 |
+
texture_scale: 1.f,
|
| 766 |
+
uv_space_index: 0,
|
| 767 |
+
enable_round_corners: false,
|
| 768 |
+
radius: 1.5f,
|
| 769 |
+
across_materials: false
|
| 770 |
+
);
|
| 771 |
+
|
| 772 |
+
export material ABS_Hard_Leather_Pop_Turquoise(*)
|
| 773 |
+
[[
|
| 774 |
+
::anno::description(DESCRIPTION),
|
| 775 |
+
::anno::display_name("ABS Hard Leather - Pop Turquoise"),
|
| 776 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 777 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "pop", "turquoise", "blue")),
|
| 778 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Turquoise.png"),
|
| 779 |
+
::anno::author("Nvidia vMaterials"),
|
| 780 |
+
::anno::contributor("Maik Rohland"),
|
| 781 |
+
::anno::contributor("Ruediger Raab")
|
| 782 |
+
]]
|
| 783 |
+
= ABS_Hard_Leather
|
| 784 |
+
(
|
| 785 |
+
infinite_tiling: false,
|
| 786 |
+
leather_color: color(0.0399f, 0.448f, 0.364f),
|
| 787 |
+
brightness_ao_cavity: .1f,
|
| 788 |
+
roughness: .0f,
|
| 789 |
+
reflectivity: 1.f,
|
| 790 |
+
bump_strength: .6f,
|
| 791 |
+
texture_translate: 0.0f,
|
| 792 |
+
texture_rotate: 0.0f,
|
| 793 |
+
texture_scale: 1.f,
|
| 794 |
+
uv_space_index: 0,
|
| 795 |
+
enable_round_corners: false,
|
| 796 |
+
radius: 1.5f,
|
| 797 |
+
across_materials: false
|
| 798 |
+
);
|
| 799 |
+
|
| 800 |
+
export material ABS_Hard_Leather_Pop_Pink(*)
|
| 801 |
+
[[
|
| 802 |
+
::anno::description(DESCRIPTION),
|
| 803 |
+
::anno::display_name("ABS Hard Leather - Pop Pink"),
|
| 804 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 805 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "pop", "pink")),
|
| 806 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Pink.png"),
|
| 807 |
+
::anno::author("Nvidia vMaterials"),
|
| 808 |
+
::anno::contributor("Maik Rohland"),
|
| 809 |
+
::anno::contributor("Ruediger Raab")
|
| 810 |
+
]]
|
| 811 |
+
= ABS_Hard_Leather
|
| 812 |
+
(
|
| 813 |
+
infinite_tiling: false,
|
| 814 |
+
leather_color: color(0.567f, 0.0494f, 0.216f),
|
| 815 |
+
brightness_ao_cavity: .1f,
|
| 816 |
+
roughness: .0f,
|
| 817 |
+
reflectivity: 1.f,
|
| 818 |
+
bump_strength: .6f,
|
| 819 |
+
texture_translate: 0.0f,
|
| 820 |
+
texture_rotate: 0.0f,
|
| 821 |
+
texture_scale: 1.f,
|
| 822 |
+
uv_space_index: 0,
|
| 823 |
+
enable_round_corners: false,
|
| 824 |
+
radius: 1.5f,
|
| 825 |
+
across_materials: false
|
| 826 |
+
);
|
| 827 |
+
|
| 828 |
+
export material ABS_Hard_Leather_Pop_Lime(*)
|
| 829 |
+
[[
|
| 830 |
+
::anno::description(DESCRIPTION),
|
| 831 |
+
::anno::display_name("ABS Hard Leather - Pop Lime"),
|
| 832 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 833 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "pop", "lime", "green")),
|
| 834 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Lime.png"),
|
| 835 |
+
::anno::author("Nvidia vMaterials"),
|
| 836 |
+
::anno::contributor("Maik Rohland"),
|
| 837 |
+
::anno::contributor("Ruediger Raab")
|
| 838 |
+
]]
|
| 839 |
+
= ABS_Hard_Leather
|
| 840 |
+
(
|
| 841 |
+
infinite_tiling: false,
|
| 842 |
+
leather_color: color(0.254152f, 0.533276f, 0.042311f),
|
| 843 |
+
brightness_ao_cavity: .1f,
|
| 844 |
+
roughness: .0f,
|
| 845 |
+
reflectivity: 1.f,
|
| 846 |
+
bump_strength: .6f,
|
| 847 |
+
texture_translate: 0.0f,
|
| 848 |
+
texture_rotate: 0.0f,
|
| 849 |
+
texture_scale: 1.f,
|
| 850 |
+
uv_space_index: 0,
|
| 851 |
+
enable_round_corners: false,
|
| 852 |
+
radius: 1.5f,
|
| 853 |
+
across_materials: false
|
| 854 |
+
);
|
| 855 |
+
|
| 856 |
+
export material ABS_Hard_Leather_Deep_Ocean(*)
|
| 857 |
+
[[
|
| 858 |
+
::anno::description(DESCRIPTION),
|
| 859 |
+
::anno::display_name("ABS Hard Leather - Deep Ocean"),
|
| 860 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 861 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "ocean", "dark")),
|
| 862 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Ocean.png"),
|
| 863 |
+
::anno::author("Nvidia vMaterials"),
|
| 864 |
+
::anno::contributor("Maik Rohland"),
|
| 865 |
+
::anno::contributor("Ruediger Raab")
|
| 866 |
+
]]
|
| 867 |
+
= ABS_Hard_Leather
|
| 868 |
+
(
|
| 869 |
+
infinite_tiling: false,
|
| 870 |
+
leather_color: color(0.0097f, 0.0316f, 0.128f),
|
| 871 |
+
brightness_ao_cavity: .1f,
|
| 872 |
+
roughness: .3f,
|
| 873 |
+
reflectivity: 1.f,
|
| 874 |
+
bump_strength: .6f,
|
| 875 |
+
texture_translate: 0.0f,
|
| 876 |
+
texture_rotate: 0.0f,
|
| 877 |
+
texture_scale: 1.f,
|
| 878 |
+
uv_space_index: 0,
|
| 879 |
+
enable_round_corners: false,
|
| 880 |
+
radius: 1.5f,
|
| 881 |
+
across_materials: false
|
| 882 |
+
);
|
| 883 |
+
|
| 884 |
+
export material ABS_Hard_Leather_Deep_Green(*)
|
| 885 |
+
[[
|
| 886 |
+
::anno::description(DESCRIPTION),
|
| 887 |
+
::anno::display_name("ABS Hard Leather - Deep Green"),
|
| 888 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 889 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "green", "dark")),
|
| 890 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Green.png"),
|
| 891 |
+
::anno::author("Nvidia vMaterials"),
|
| 892 |
+
::anno::contributor("Maik Rohland"),
|
| 893 |
+
::anno::contributor("Ruediger Raab")
|
| 894 |
+
]]
|
| 895 |
+
= ABS_Hard_Leather
|
| 896 |
+
(
|
| 897 |
+
infinite_tiling: false,
|
| 898 |
+
leather_color: color(0.0179f, 0.0738f, 0.0478f),
|
| 899 |
+
brightness_ao_cavity: .1f,
|
| 900 |
+
roughness: .2f,
|
| 901 |
+
reflectivity: 1.f,
|
| 902 |
+
bump_strength: .6f,
|
| 903 |
+
texture_translate: 0.0f,
|
| 904 |
+
texture_rotate: 0.0f,
|
| 905 |
+
texture_scale: 1.f,
|
| 906 |
+
uv_space_index: 0,
|
| 907 |
+
enable_round_corners: false,
|
| 908 |
+
radius: 1.5f,
|
| 909 |
+
across_materials: false
|
| 910 |
+
);
|
| 911 |
+
|
| 912 |
+
export material ABS_Hard_Leather_Deep_Violet(*)
|
| 913 |
+
[[
|
| 914 |
+
::anno::description(DESCRIPTION),
|
| 915 |
+
::anno::display_name("ABS Hard Leather - Deep Violet"),
|
| 916 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 917 |
+
::anno::key_words(string[]("dielectric", "automotive", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "violet", "dark")),
|
| 918 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Violet.png"),
|
| 919 |
+
::anno::author("Nvidia vMaterials"),
|
| 920 |
+
::anno::contributor("Maik Rohland"),
|
| 921 |
+
::anno::contributor("Ruediger Raab")
|
| 922 |
+
]]
|
| 923 |
+
= ABS_Hard_Leather
|
| 924 |
+
(
|
| 925 |
+
infinite_tiling: false,
|
| 926 |
+
leather_color: color(0.043f, 0.00902f, 0.142f),
|
| 927 |
+
brightness_ao_cavity: .1f,
|
| 928 |
+
roughness: .5f,
|
| 929 |
+
reflectivity: .3f,
|
| 930 |
+
bump_strength: .6f,
|
| 931 |
+
texture_translate: 0.0f,
|
| 932 |
+
texture_rotate: 0.0f,
|
| 933 |
+
texture_scale: 1.f,
|
| 934 |
+
uv_space_index: 0,
|
| 935 |
+
enable_round_corners: false,
|
| 936 |
+
radius: 1.5f,
|
| 937 |
+
across_materials: false
|
| 938 |
+
);
|
| 939 |
+
|
| 940 |
+
|
| 941 |
+
|
| 942 |
+
|
| 943 |
+
// ----------------- Punched Leather -----------------
|
| 944 |
+
export material ABS_Hard_Leather_Punched(
|
| 945 |
+
|
| 946 |
+
// Leather parameters
|
| 947 |
+
uniform bool infinite_tiling = false [[
|
| 948 |
+
::anno::description("Enables infinite tiling feature which removes repeating texture patterns. Note that depending on the material this feature changes the appearance of the material slightly."),
|
| 949 |
+
::anno::display_name("Infinite Tiling"),
|
| 950 |
+
::anno::in_group("Appearance"),
|
| 951 |
+
::anno::ui_order(0)
|
| 952 |
+
]],
|
| 953 |
+
color leather_color = color(0.012983f, 0.012983f, 0.012983f) [[
|
| 954 |
+
::anno::description("Choose the color of the leather."),
|
| 955 |
+
::anno::display_name("Leather Color"),
|
| 956 |
+
::anno::in_group("Appearance"),
|
| 957 |
+
::anno::ui_order(1)
|
| 958 |
+
]],
|
| 959 |
+
float roughness = .6f [[
|
| 960 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 961 |
+
::anno::display_name("Roughness"),
|
| 962 |
+
::anno::in_group("Appearance"),
|
| 963 |
+
::anno::hard_range(0.f, 1.f),
|
| 964 |
+
::anno::ui_order(3)
|
| 965 |
+
]],
|
| 966 |
+
float reflectivity = 1.f [[
|
| 967 |
+
::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."),
|
| 968 |
+
::anno::display_name("Roughness Variation"),
|
| 969 |
+
::anno::in_group("Appearance"),
|
| 970 |
+
::anno::hard_range(0.f, 1.f),
|
| 971 |
+
::anno::ui_order(4)
|
| 972 |
+
]],
|
| 973 |
+
uniform float bump_strength = 0.5f [[
|
| 974 |
+
::anno::description("Specifies the strength of the bump."),
|
| 975 |
+
::anno::display_name("Bump Strength"),
|
| 976 |
+
::anno::in_group("Appearance"),
|
| 977 |
+
::anno::soft_range(0.f, 1.f),
|
| 978 |
+
::anno::hard_range(0.f, 2.f),
|
| 979 |
+
::anno::ui_order(5)
|
| 980 |
+
]],
|
| 981 |
+
float2 texture_translate = 0.f [[
|
| 982 |
+
::anno::description("Controls the position of the texture."),
|
| 983 |
+
::anno::display_name("Texture Translate"),
|
| 984 |
+
::anno::in_group("Transform"),
|
| 985 |
+
::anno::ui_order(6)
|
| 986 |
+
]],
|
| 987 |
+
float texture_rotate = 0.f [[
|
| 988 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 989 |
+
::anno::display_name("Texture Rotate"),
|
| 990 |
+
::anno::in_group("Transform"),
|
| 991 |
+
::anno::soft_range(0.f, 360.f),
|
| 992 |
+
::anno::ui_order(7)
|
| 993 |
+
]],
|
| 994 |
+
float2 texture_scale = 1.f [[
|
| 995 |
+
::anno::description("Larger numbers increase the size."),
|
| 996 |
+
::anno::display_name("Texture Scale"),
|
| 997 |
+
::anno::in_group("Transform"),
|
| 998 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 999 |
+
::preview_scale(3.5f),
|
| 1000 |
+
::anno::ui_order(8)
|
| 1001 |
+
]],
|
| 1002 |
+
uniform int uv_space_index = 0 [[
|
| 1003 |
+
::anno::description("Uses selected UV space for material."),
|
| 1004 |
+
::anno::display_name("UV Space Index"),
|
| 1005 |
+
::anno::in_group("Transform"),
|
| 1006 |
+
::anno::ui_order(9)
|
| 1007 |
+
]],
|
| 1008 |
+
// Punching parameters
|
| 1009 |
+
uniform cutout_pattern shape_select = pattern_circle //select atlas tile here
|
| 1010 |
+
[[
|
| 1011 |
+
::anno::description("Select a cutout shape."),
|
| 1012 |
+
::anno::display_name("Cutout Shape"),
|
| 1013 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1014 |
+
::anno::ui_order(10)
|
| 1015 |
+
]],
|
| 1016 |
+
float punching_grid_size = 1.0f
|
| 1017 |
+
[[
|
| 1018 |
+
::anno::description("Scales the size of the punching grid."),
|
| 1019 |
+
::anno::display_name("Punching Grid Size"),
|
| 1020 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1021 |
+
::anno::ui_order(11)
|
| 1022 |
+
]],
|
| 1023 |
+
float cutout_rotation = 45.0f
|
| 1024 |
+
[[
|
| 1025 |
+
::anno::description("Rotates the cutout shape."),
|
| 1026 |
+
::anno::display_name("Cutout Rotation"),
|
| 1027 |
+
::anno::hard_range(0.f, 360.0f),
|
| 1028 |
+
::anno::soft_range(0.f, 360.0f),
|
| 1029 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1030 |
+
::anno::ui_order(12)
|
| 1031 |
+
]],
|
| 1032 |
+
float cutout_size = .4f
|
| 1033 |
+
[[
|
| 1034 |
+
::anno::description("Scales the size of the cutout pattern independently from the base material."),
|
| 1035 |
+
::anno::display_name("Cutout Size"),
|
| 1036 |
+
::anno::hard_range(0.f, 1.2f),
|
| 1037 |
+
::anno::soft_range(0.f, 1.0f),
|
| 1038 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1039 |
+
::anno::ui_order(12)
|
| 1040 |
+
]],
|
| 1041 |
+
float cutout_roundness = .5f
|
| 1042 |
+
[[
|
| 1043 |
+
::anno::description("At low values it makes the cutouts sharper. Higher values give the shapes a more rounded look."),
|
| 1044 |
+
::anno::display_name("Cutout Roundness"),
|
| 1045 |
+
::anno::hard_range(0.f, 1.f),
|
| 1046 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1047 |
+
::anno::ui_order(13)
|
| 1048 |
+
]],
|
| 1049 |
+
float cutout_bump_strength = 1.0f
|
| 1050 |
+
[[
|
| 1051 |
+
::anno::description("Sets the strength of the bevelled normal around the cutout."),
|
| 1052 |
+
::anno::display_name("Cutout Bevel Strength"),
|
| 1053 |
+
::anno::soft_range(0.0f, 1.0f),
|
| 1054 |
+
::anno::hard_range(0.0f, 2.0f),
|
| 1055 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1056 |
+
::anno::ui_order(15)
|
| 1057 |
+
]],
|
| 1058 |
+
// Grid Layout parameters
|
| 1059 |
+
bool hexagonal_grid = true
|
| 1060 |
+
[[
|
| 1061 |
+
::anno::description("When enabled, the punching will occur on a hexagonal grid, otherwise a square grid."),
|
| 1062 |
+
::anno::display_name("Enable Hexagonal Grid"),
|
| 1063 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1064 |
+
::anno::ui_order(16)
|
| 1065 |
+
]],
|
| 1066 |
+
float square_grid_offset = 0.0f
|
| 1067 |
+
[[
|
| 1068 |
+
::anno::description("Offsets each row of the grid by a certain amount. Applies only when hexagonal grid is disabled."),
|
| 1069 |
+
::anno::display_name("Square Grid Offset"),
|
| 1070 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 1071 |
+
::anno::enable_if("hexagonal_grid==false"),
|
| 1072 |
+
::anno::ui_order(17)
|
| 1073 |
+
]],
|
| 1074 |
+
uniform bool enable_round_corners = false [[
|
| 1075 |
+
::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."),
|
| 1076 |
+
::anno::display_name("Enable Round Corners"),
|
| 1077 |
+
::anno::in_group("Round Corners"),
|
| 1078 |
+
::anno::ui_order(18)
|
| 1079 |
+
]],
|
| 1080 |
+
uniform float radius = 1.5f [[
|
| 1081 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 1082 |
+
::anno::display_name("Round Corner Radius"),
|
| 1083 |
+
::anno::in_group("Round Corners"),
|
| 1084 |
+
::anno::enable_if("enable_round_corners==true"),
|
| 1085 |
+
::anno::ui_order(19)
|
| 1086 |
+
]],
|
| 1087 |
+
uniform bool across_materials = false [[
|
| 1088 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 1089 |
+
::anno::display_name("Across Materials"),
|
| 1090 |
+
::anno::in_group("Round Corners"),
|
| 1091 |
+
::anno::enable_if("enable_round_corners==true"),
|
| 1092 |
+
::anno::ui_order(20)
|
| 1093 |
+
]]
|
| 1094 |
+
)
|
| 1095 |
+
[[
|
| 1096 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1097 |
+
::anno::display_name("ABS Hard Leather - Black Punched"),
|
| 1098 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1099 |
+
::anno::key_words(string[]("dielectric", "automotive", "design", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "black", "dark", "neutral")),
|
| 1100 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Punched.png"),
|
| 1101 |
+
::anno::author("Nvidia vMaterials"),
|
| 1102 |
+
::anno::contributor("Maik Rohland"),
|
| 1103 |
+
::anno::contributor("Ruediger Raab")
|
| 1104 |
+
]] = let
|
| 1105 |
+
{
|
| 1106 |
+
float brightness_ao_cavity = 0.2f;
|
| 1107 |
+
bool horizontal_offset = true;
|
| 1108 |
+
float cutout_bevel_width = 0.7f;
|
| 1109 |
+
float cutout_bump_strength_2 = cutout_bump_strength * 5.0f;
|
| 1110 |
+
|
| 1111 |
+
material base_mat = ABS_Hard_Leather(
|
| 1112 |
+
infinite_tiling: infinite_tiling,
|
| 1113 |
+
leather_color: leather_color,
|
| 1114 |
+
brightness_ao_cavity: brightness_ao_cavity,
|
| 1115 |
+
roughness: roughness,
|
| 1116 |
+
reflectivity: reflectivity,
|
| 1117 |
+
bump_strength: bump_strength,
|
| 1118 |
+
texture_translate: texture_translate,
|
| 1119 |
+
texture_rotate: texture_rotate,
|
| 1120 |
+
texture_scale: texture_scale,
|
| 1121 |
+
uv_space_index: uv_space_index,
|
| 1122 |
+
enable_round_corners: enable_round_corners,
|
| 1123 |
+
radius: radius,
|
| 1124 |
+
across_materials: across_materials
|
| 1125 |
+
);
|
| 1126 |
+
|
| 1127 |
+
// remap range of slider to avoid artifacts in the bevelling
|
| 1128 |
+
float2 punching_scale = texture_scale * 0.01f * float2(punching_grid_size);
|
| 1129 |
+
float cutout_roundness_ = cutout_roundness*0.6f+0.4f;
|
| 1130 |
+
float cutout_size_lin = (1.0f/cutout_size);
|
| 1131 |
+
texture_2d punching_cutout = texture_2d("./leather_punch_atlas_01.png", ::tex::gamma_linear);
|
| 1132 |
+
|
| 1133 |
+
vm_coordinates uv = vm_coord(
|
| 1134 |
+
translation: texture_translate,
|
| 1135 |
+
rotation: texture_rotate,
|
| 1136 |
+
scaling: punching_scale,
|
| 1137 |
+
uv_space: uv_space_index
|
| 1138 |
+
);
|
| 1139 |
+
|
| 1140 |
+
vm_coordinates punching_uv = hexagonal_grid ? vm_coord_hex(
|
| 1141 |
+
uv: uv,
|
| 1142 |
+
scale: cutout_roundness_ * cutout_size_lin,
|
| 1143 |
+
rotation: cutout_rotation
|
| 1144 |
+
) : vm_coord_grid(
|
| 1145 |
+
uv: vm_coord_rowcol_offset(
|
| 1146 |
+
uv: uv,
|
| 1147 |
+
offset: square_grid_offset,
|
| 1148 |
+
horizontal_offset: horizontal_offset
|
| 1149 |
+
),
|
| 1150 |
+
scale: cutout_roundness_ * cutout_size_lin,
|
| 1151 |
+
rotation: cutout_rotation
|
| 1152 |
+
);
|
| 1153 |
+
// select the correct subtile from the atlas
|
| 1154 |
+
float4 crop = tile_select_2x2(shape_select);
|
| 1155 |
+
|
| 1156 |
+
::base::texture_return lookup = vm_tex_lookup(
|
| 1157 |
+
tex: punching_cutout,
|
| 1158 |
+
uv: punching_uv,
|
| 1159 |
+
mono_source: mono_a,
|
| 1160 |
+
scale: float4(1.0f),
|
| 1161 |
+
crop_u: float2(crop.x, crop.y),
|
| 1162 |
+
crop_v: float2(crop.z, crop.w),
|
| 1163 |
+
wrap_u: ::tex::wrap_clamp,
|
| 1164 |
+
wrap_v: ::tex::wrap_clamp
|
| 1165 |
+
);
|
| 1166 |
+
|
| 1167 |
+
float low = (1.0 - cutout_roundness_);
|
| 1168 |
+
float high = (cutout_size_lin * (cutout_bevel_width * 0.2f) * cutout_roundness_) + (1.0 - cutout_roundness_);
|
| 1169 |
+
// remap x...y to (clamped) 0...1
|
| 1170 |
+
float x = ::math::clamp((lookup.mono - low)/(high - low), 0.0, 1.0);
|
| 1171 |
+
// spherical falloff
|
| 1172 |
+
float falloff=::math::sqrt(1.0-x*x);
|
| 1173 |
+
// masking falloff as the center of the cutout is flat
|
| 1174 |
+
float masked_falloff=falloff<=0.0?1.0:falloff;
|
| 1175 |
+
|
| 1176 |
+
// where base material is still there, use the value of the base material
|
| 1177 |
+
float cutout= ::math::min(falloff<=0.0?0.0:1.0, base_mat.geometry.cutout_opacity);
|
| 1178 |
+
|
| 1179 |
+
// bring in -.5 ... +.5 range and lerp between lookup and flat normal
|
| 1180 |
+
float3 remap_norm = ::math::lerp(float3(lookup.tint), float3(0.5, 0.5, 1.0), masked_falloff) - float3(0.5);
|
| 1181 |
+
float3 t_norm = ::math::normalize(remap_norm * float3(cutout_bump_strength_2, cutout_bump_strength_2, 1.0));
|
| 1182 |
+
|
| 1183 |
+
float3 rotfix_norm = float3(::math::cos(punching_uv.rotation) * t_norm.x - ::math::sin(punching_uv.rotation) * t_norm.y,
|
| 1184 |
+
::math::sin(punching_uv.rotation) * t_norm.x + ::math::cos(punching_uv.rotation) * t_norm.y,
|
| 1185 |
+
t_norm.z);
|
| 1186 |
+
|
| 1187 |
+
float3 normal = ::state::texture_tangent_u(punching_uv.uv_space_index) * rotfix_norm.x +
|
| 1188 |
+
::state::texture_tangent_v(punching_uv.uv_space_index) * rotfix_norm.y +
|
| 1189 |
+
::state::normal() * rotfix_norm.z;
|
| 1190 |
+
|
| 1191 |
+
float3 final_normal = ::base::blend_normals(
|
| 1192 |
+
base_normal: normal,
|
| 1193 |
+
base_normal_weight: 1.0f,
|
| 1194 |
+
detail_normal: base_mat.geometry.normal,
|
| 1195 |
+
detail_normal_weight: 1.0f
|
| 1196 |
+
);
|
| 1197 |
+
|
| 1198 |
+
} in material(
|
| 1199 |
+
surface: material_surface(
|
| 1200 |
+
scattering: base_mat.surface.scattering
|
| 1201 |
+
),
|
| 1202 |
+
volume: base_mat.volume,
|
| 1203 |
+
ior: base_mat.ior,
|
| 1204 |
+
thin_walled: true,
|
| 1205 |
+
geometry: material_geometry(
|
| 1206 |
+
displacement: base_mat.geometry.displacement,
|
| 1207 |
+
normal: final_normal,
|
| 1208 |
+
cutout_opacity: cutout
|
| 1209 |
+
)
|
| 1210 |
+
);
|
| 1211 |
+
|
| 1212 |
+
|
| 1213 |
+
|
| 1214 |
+
export material ABS_Hard_Leather_Brown_Punched(*)
|
| 1215 |
+
[[
|
| 1216 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1217 |
+
::anno::display_name("ABS Hard Leather - Brown Punched"),
|
| 1218 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1219 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "brown", "warm")),
|
| 1220 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Brown_Punched.png"),
|
| 1221 |
+
::anno::author("Nvidia vMaterials"),
|
| 1222 |
+
::anno::contributor("Maik Rohland"),
|
| 1223 |
+
::anno::contributor("Ruediger Raab")
|
| 1224 |
+
]] = ABS_Hard_Leather_Punched(
|
| 1225 |
+
infinite_tiling: false,
|
| 1226 |
+
leather_color: color(0.0718f, 0.0316f, 0.001f),
|
| 1227 |
+
roughness: .5f,
|
| 1228 |
+
reflectivity: .0f,
|
| 1229 |
+
bump_strength: .5f,
|
| 1230 |
+
texture_translate: 0.0f,
|
| 1231 |
+
texture_rotate: 0.0f,
|
| 1232 |
+
texture_scale: 1.f,
|
| 1233 |
+
uv_space_index: 0,
|
| 1234 |
+
|
| 1235 |
+
shape_select: pattern_circle,
|
| 1236 |
+
punching_grid_size: 0.7f,
|
| 1237 |
+
cutout_size: 0.4f,
|
| 1238 |
+
cutout_roundness: 0.8f,
|
| 1239 |
+
cutout_bump_strength: 2.0f,
|
| 1240 |
+
hexagonal_grid: true,
|
| 1241 |
+
square_grid_offset: 0.0f,
|
| 1242 |
+
|
| 1243 |
+
enable_round_corners: false,
|
| 1244 |
+
radius: 1.5f,
|
| 1245 |
+
across_materials: false
|
| 1246 |
+
);
|
| 1247 |
+
|
| 1248 |
+
|
| 1249 |
+
export material ABS_Hard_Leather_Grey_Punched(*)
|
| 1250 |
+
[[
|
| 1251 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1252 |
+
::anno::display_name("ABS Hard Leather - Grey Punched"),
|
| 1253 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1254 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "grey", "neutral")),
|
| 1255 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Grey_Punched.png"),
|
| 1256 |
+
::anno::author("Nvidia vMaterials"),
|
| 1257 |
+
::anno::contributor("Maik Rohland"),
|
| 1258 |
+
::anno::contributor("Ruediger Raab")
|
| 1259 |
+
]]
|
| 1260 |
+
= ABS_Hard_Leather_Punched
|
| 1261 |
+
(
|
| 1262 |
+
infinite_tiling: false,
|
| 1263 |
+
leather_color: color(0.06f),
|
| 1264 |
+
roughness: .2f,
|
| 1265 |
+
reflectivity: .0f,
|
| 1266 |
+
bump_strength: .5f,
|
| 1267 |
+
texture_translate: 0.0f,
|
| 1268 |
+
texture_rotate: 0.0f,
|
| 1269 |
+
texture_scale: 1.f,
|
| 1270 |
+
uv_space_index: 0,
|
| 1271 |
+
|
| 1272 |
+
shape_select: pattern_circle,
|
| 1273 |
+
punching_grid_size: 0.7f,
|
| 1274 |
+
cutout_size: 0.4f,
|
| 1275 |
+
cutout_roundness: 0.8f,
|
| 1276 |
+
cutout_bump_strength: 2.0f,
|
| 1277 |
+
hexagonal_grid: true,
|
| 1278 |
+
square_grid_offset: 0.0f,
|
| 1279 |
+
|
| 1280 |
+
enable_round_corners: false,
|
| 1281 |
+
radius: 1.5f,
|
| 1282 |
+
across_materials: false
|
| 1283 |
+
);
|
| 1284 |
+
|
| 1285 |
+
|
| 1286 |
+
export material ABS_Hard_Leather_Peach_Punched(*)
|
| 1287 |
+
[[
|
| 1288 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1289 |
+
::anno::display_name("ABS Hard Leather - Peach Punched"),
|
| 1290 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1291 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "warm", "peach", "orange")),
|
| 1292 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Peach_Punched.png"),
|
| 1293 |
+
::anno::author("Nvidia vMaterials"),
|
| 1294 |
+
::anno::contributor("Maik Rohland"),
|
| 1295 |
+
::anno::contributor("Ruediger Raab")
|
| 1296 |
+
]]
|
| 1297 |
+
= ABS_Hard_Leather_Punched
|
| 1298 |
+
(
|
| 1299 |
+
infinite_tiling: false,
|
| 1300 |
+
leather_color: color(0.274677f, 0.078187f, 0.004777f),
|
| 1301 |
+
roughness: .2f,
|
| 1302 |
+
reflectivity: .0f,
|
| 1303 |
+
bump_strength: .5f,
|
| 1304 |
+
texture_translate: 0.0f,
|
| 1305 |
+
texture_rotate: 0.0f,
|
| 1306 |
+
texture_scale: 1.f,
|
| 1307 |
+
uv_space_index: 0,
|
| 1308 |
+
|
| 1309 |
+
shape_select: pattern_circle,
|
| 1310 |
+
punching_grid_size: 0.7f,
|
| 1311 |
+
cutout_size: 0.4f,
|
| 1312 |
+
cutout_roundness: 0.8f,
|
| 1313 |
+
cutout_bump_strength: 2.0f,
|
| 1314 |
+
hexagonal_grid: true,
|
| 1315 |
+
square_grid_offset: 0.0f,
|
| 1316 |
+
|
| 1317 |
+
enable_round_corners: false,
|
| 1318 |
+
radius: 1.5f,
|
| 1319 |
+
across_materials: false
|
| 1320 |
+
);
|
| 1321 |
+
|
| 1322 |
+
export material ABS_Hard_Leather_Vintage_Rose_Punched(*)
|
| 1323 |
+
[[
|
| 1324 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1325 |
+
::anno::display_name("ABS Hard Leather - Rose Vintage Punched"),
|
| 1326 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1327 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "vintage", "hard", "leather", "car", "dashboard", "cloth", "furniture", "warm", "rose")),
|
| 1328 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Vintage_Rose_Punched.png"),
|
| 1329 |
+
::anno::author("Nvidia vMaterials"),
|
| 1330 |
+
::anno::contributor("Maik Rohland"),
|
| 1331 |
+
::anno::contributor("Ruediger Raab")
|
| 1332 |
+
]]
|
| 1333 |
+
= ABS_Hard_Leather_Punched
|
| 1334 |
+
(
|
| 1335 |
+
infinite_tiling: false,
|
| 1336 |
+
leather_color: color(0.135633f, 0.059511f, 0.059511f),
|
| 1337 |
+
roughness: .25f,
|
| 1338 |
+
reflectivity: .0f,
|
| 1339 |
+
bump_strength: .5f,
|
| 1340 |
+
texture_translate: 0.0f,
|
| 1341 |
+
texture_rotate: 0.0f,
|
| 1342 |
+
texture_scale: 1.f,
|
| 1343 |
+
uv_space_index: 0,
|
| 1344 |
+
|
| 1345 |
+
shape_select: pattern_circle,
|
| 1346 |
+
punching_grid_size: 0.7f,
|
| 1347 |
+
cutout_size: 0.4f,
|
| 1348 |
+
cutout_roundness: 0.8f,
|
| 1349 |
+
cutout_bump_strength: 2.0f,
|
| 1350 |
+
hexagonal_grid: true,
|
| 1351 |
+
square_grid_offset: 0.0f,
|
| 1352 |
+
|
| 1353 |
+
enable_round_corners: false,
|
| 1354 |
+
radius: 1.5f,
|
| 1355 |
+
across_materials: false
|
| 1356 |
+
);
|
| 1357 |
+
|
| 1358 |
+
|
| 1359 |
+
export material ABS_Hard_Leather_Moss_Punched(*)
|
| 1360 |
+
[[
|
| 1361 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1362 |
+
::anno::display_name("ABS Hard Leather - Moss Punched"),
|
| 1363 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1364 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "green", "moss")),
|
| 1365 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Moss_Punched.png"),
|
| 1366 |
+
::anno::author("Nvidia vMaterials"),
|
| 1367 |
+
::anno::contributor("Maik Rohland"),
|
| 1368 |
+
::anno::contributor("Ruediger Raab")
|
| 1369 |
+
]]
|
| 1370 |
+
= ABS_Hard_Leather_Punched
|
| 1371 |
+
(
|
| 1372 |
+
infinite_tiling: false,
|
| 1373 |
+
leather_color: color(0.0546f, 0.0582f, 0.00775f),
|
| 1374 |
+
roughness: .4f,
|
| 1375 |
+
reflectivity: .0f,
|
| 1376 |
+
bump_strength: .5f,
|
| 1377 |
+
texture_translate: 0.0f,
|
| 1378 |
+
texture_rotate: 0.0f,
|
| 1379 |
+
texture_scale: 1.f,
|
| 1380 |
+
uv_space_index: 0,
|
| 1381 |
+
|
| 1382 |
+
shape_select: pattern_circle,
|
| 1383 |
+
punching_grid_size: 0.7f,
|
| 1384 |
+
cutout_size: 0.4f,
|
| 1385 |
+
cutout_roundness: 0.8f,
|
| 1386 |
+
cutout_bump_strength: 2.0f,
|
| 1387 |
+
hexagonal_grid: true,
|
| 1388 |
+
square_grid_offset: 0.0f,
|
| 1389 |
+
|
| 1390 |
+
enable_round_corners: false,
|
| 1391 |
+
radius: 1.5f,
|
| 1392 |
+
across_materials: false
|
| 1393 |
+
);
|
| 1394 |
+
|
| 1395 |
+
export material ABS_Hard_Leather_Sky_Punched(*)
|
| 1396 |
+
[[
|
| 1397 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1398 |
+
::anno::display_name("ABS Hard Leather - Sky Punched"),
|
| 1399 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1400 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "blue", "sky", "baby")),
|
| 1401 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Sky_Punched.png"),
|
| 1402 |
+
::anno::author("Nvidia vMaterials"),
|
| 1403 |
+
::anno::contributor("Maik Rohland"),
|
| 1404 |
+
::anno::contributor("Ruediger Raab")
|
| 1405 |
+
]]
|
| 1406 |
+
= ABS_Hard_Leather_Punched
|
| 1407 |
+
(
|
| 1408 |
+
infinite_tiling: false,
|
| 1409 |
+
leather_color: color(0.042311f, 0.116971f, 0.187821f),
|
| 1410 |
+
roughness: .2f,
|
| 1411 |
+
reflectivity: .0f,
|
| 1412 |
+
bump_strength: .5f,
|
| 1413 |
+
texture_translate: 0.0f,
|
| 1414 |
+
texture_rotate: 0.0f,
|
| 1415 |
+
texture_scale: 1.f,
|
| 1416 |
+
uv_space_index: 0,
|
| 1417 |
+
|
| 1418 |
+
shape_select: pattern_circle,
|
| 1419 |
+
punching_grid_size: 0.7f,
|
| 1420 |
+
cutout_size: 0.4f,
|
| 1421 |
+
cutout_roundness: 0.8f,
|
| 1422 |
+
cutout_bump_strength: 2.0f,
|
| 1423 |
+
hexagonal_grid: true,
|
| 1424 |
+
square_grid_offset: 0.0f,
|
| 1425 |
+
|
| 1426 |
+
enable_round_corners: false,
|
| 1427 |
+
radius: 1.5f,
|
| 1428 |
+
across_materials: false
|
| 1429 |
+
);
|
| 1430 |
+
|
| 1431 |
+
export material ABS_Hard_Leather_Pop_Turquoise_Punched(*)
|
| 1432 |
+
[[
|
| 1433 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1434 |
+
::anno::display_name("ABS Hard Leather - Pop Turquoise Punched"),
|
| 1435 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1436 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "pop", "turquoise", "blue")),
|
| 1437 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Turquoise_Punched.png"),
|
| 1438 |
+
::anno::author("Nvidia vMaterials"),
|
| 1439 |
+
::anno::contributor("Maik Rohland"),
|
| 1440 |
+
::anno::contributor("Ruediger Raab")
|
| 1441 |
+
]]
|
| 1442 |
+
= ABS_Hard_Leather_Punched
|
| 1443 |
+
(
|
| 1444 |
+
infinite_tiling: false,
|
| 1445 |
+
leather_color: color(0.0399f, 0.448f, 0.364f),
|
| 1446 |
+
roughness: .0f,
|
| 1447 |
+
reflectivity: 1.f,
|
| 1448 |
+
bump_strength: .6f,
|
| 1449 |
+
texture_translate: 0.0f,
|
| 1450 |
+
texture_rotate: 0.0f,
|
| 1451 |
+
texture_scale: 1.f,
|
| 1452 |
+
uv_space_index: 0,
|
| 1453 |
+
|
| 1454 |
+
shape_select: pattern_circle,
|
| 1455 |
+
punching_grid_size: 0.7f,
|
| 1456 |
+
cutout_size: 0.4f,
|
| 1457 |
+
cutout_roundness: 0.8f,
|
| 1458 |
+
cutout_bump_strength: 2.0f,
|
| 1459 |
+
hexagonal_grid: true,
|
| 1460 |
+
square_grid_offset: 0.0f,
|
| 1461 |
+
|
| 1462 |
+
enable_round_corners: false,
|
| 1463 |
+
radius: 1.5f,
|
| 1464 |
+
across_materials: false
|
| 1465 |
+
);
|
| 1466 |
+
|
| 1467 |
+
export material ABS_Hard_Leather_Pop_Pink_Punched(*)
|
| 1468 |
+
[[
|
| 1469 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1470 |
+
::anno::display_name("ABS Hard Leather - Pop Pink Punched"),
|
| 1471 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1472 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "pop", "pink")),
|
| 1473 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Pink_Punched.png"),
|
| 1474 |
+
::anno::author("Nvidia vMaterials"),
|
| 1475 |
+
::anno::contributor("Maik Rohland"),
|
| 1476 |
+
::anno::contributor("Ruediger Raab")
|
| 1477 |
+
]]
|
| 1478 |
+
= ABS_Hard_Leather_Punched
|
| 1479 |
+
(
|
| 1480 |
+
infinite_tiling: false,
|
| 1481 |
+
leather_color: color(0.567f, 0.0494f, 0.216f),
|
| 1482 |
+
roughness: .0f,
|
| 1483 |
+
reflectivity: 1.f,
|
| 1484 |
+
bump_strength: .6f,
|
| 1485 |
+
texture_translate: 0.0f,
|
| 1486 |
+
texture_rotate: 0.0f,
|
| 1487 |
+
texture_scale: 1.f,
|
| 1488 |
+
uv_space_index: 0,
|
| 1489 |
+
|
| 1490 |
+
shape_select: pattern_circle,
|
| 1491 |
+
punching_grid_size: 0.7f,
|
| 1492 |
+
cutout_size: 0.4f,
|
| 1493 |
+
cutout_roundness: 0.8f,
|
| 1494 |
+
cutout_bump_strength: 2.0f,
|
| 1495 |
+
hexagonal_grid: true,
|
| 1496 |
+
square_grid_offset: 0.0f,
|
| 1497 |
+
|
| 1498 |
+
enable_round_corners: false,
|
| 1499 |
+
radius: 1.5f,
|
| 1500 |
+
across_materials: false
|
| 1501 |
+
);
|
| 1502 |
+
|
| 1503 |
+
export material ABS_Hard_Leather_Pop_Lime_Punched(*)
|
| 1504 |
+
[[
|
| 1505 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1506 |
+
::anno::display_name("ABS Hard Leather - Pop Lime Punched"),
|
| 1507 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1508 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "pop", "lime", "green")),
|
| 1509 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Pop_Lime_Punched.png"),
|
| 1510 |
+
::anno::author("Nvidia vMaterials"),
|
| 1511 |
+
::anno::contributor("Maik Rohland"),
|
| 1512 |
+
::anno::contributor("Ruediger Raab")
|
| 1513 |
+
]]
|
| 1514 |
+
= ABS_Hard_Leather_Punched
|
| 1515 |
+
(
|
| 1516 |
+
infinite_tiling: false,
|
| 1517 |
+
leather_color: color(0.254152f, 0.533276f, 0.042311f),
|
| 1518 |
+
roughness: .0f,
|
| 1519 |
+
reflectivity: 1.f,
|
| 1520 |
+
bump_strength: .6f,
|
| 1521 |
+
texture_translate: 0.0f,
|
| 1522 |
+
texture_rotate: 0.0f,
|
| 1523 |
+
texture_scale: 1.f,
|
| 1524 |
+
uv_space_index: 0,
|
| 1525 |
+
|
| 1526 |
+
shape_select: pattern_circle,
|
| 1527 |
+
punching_grid_size: 0.7f,
|
| 1528 |
+
cutout_size: 0.4f,
|
| 1529 |
+
cutout_roundness: 0.8f,
|
| 1530 |
+
cutout_bump_strength: 2.0f,
|
| 1531 |
+
hexagonal_grid: true,
|
| 1532 |
+
square_grid_offset: 0.0f,
|
| 1533 |
+
|
| 1534 |
+
enable_round_corners: false,
|
| 1535 |
+
radius: 1.5f,
|
| 1536 |
+
across_materials: false
|
| 1537 |
+
);
|
| 1538 |
+
|
| 1539 |
+
export material ABS_Hard_Leather_Deep_Ocean_Punched(*)
|
| 1540 |
+
[[
|
| 1541 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1542 |
+
::anno::display_name("ABS Hard Leather - Deep Ocean Punched"),
|
| 1543 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1544 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "ocean", "dark")),
|
| 1545 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Ocean_Punched.png"),
|
| 1546 |
+
::anno::author("Nvidia vMaterials"),
|
| 1547 |
+
::anno::contributor("Maik Rohland"),
|
| 1548 |
+
::anno::contributor("Ruediger Raab")
|
| 1549 |
+
]]
|
| 1550 |
+
= ABS_Hard_Leather_Punched
|
| 1551 |
+
(
|
| 1552 |
+
infinite_tiling: false,
|
| 1553 |
+
leather_color: color(0.0097f, 0.0316f, 0.128f),
|
| 1554 |
+
roughness: .3f,
|
| 1555 |
+
reflectivity: 1.f,
|
| 1556 |
+
bump_strength: .6f,
|
| 1557 |
+
texture_translate: 0.0f,
|
| 1558 |
+
texture_rotate: 0.0f,
|
| 1559 |
+
texture_scale: 1.f,
|
| 1560 |
+
uv_space_index: 0,
|
| 1561 |
+
|
| 1562 |
+
shape_select: pattern_circle,
|
| 1563 |
+
punching_grid_size: 0.7f,
|
| 1564 |
+
cutout_size: 0.4f,
|
| 1565 |
+
cutout_roundness: 0.8f,
|
| 1566 |
+
cutout_bump_strength: 2.0f,
|
| 1567 |
+
hexagonal_grid: true,
|
| 1568 |
+
square_grid_offset: 0.0f,
|
| 1569 |
+
|
| 1570 |
+
enable_round_corners: false,
|
| 1571 |
+
radius: 1.5f,
|
| 1572 |
+
across_materials: false
|
| 1573 |
+
);
|
| 1574 |
+
|
| 1575 |
+
export material ABS_Hard_Leather_Deep_Green_Punched(*)
|
| 1576 |
+
[[
|
| 1577 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1578 |
+
::anno::display_name("ABS Hard Leather - Deep Green Punched"),
|
| 1579 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1580 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "green", "dark")),
|
| 1581 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Green_Punched.png"),
|
| 1582 |
+
::anno::author("Nvidia vMaterials"),
|
| 1583 |
+
::anno::contributor("Maik Rohland"),
|
| 1584 |
+
::anno::contributor("Ruediger Raab")
|
| 1585 |
+
]]
|
| 1586 |
+
= ABS_Hard_Leather_Punched
|
| 1587 |
+
(
|
| 1588 |
+
infinite_tiling: false,
|
| 1589 |
+
leather_color: color(0.0179f, 0.0738f, 0.0478f),
|
| 1590 |
+
roughness: .2f,
|
| 1591 |
+
reflectivity: 1.f,
|
| 1592 |
+
bump_strength: .6f,
|
| 1593 |
+
texture_translate: 0.0f,
|
| 1594 |
+
texture_rotate: 0.0f,
|
| 1595 |
+
texture_scale: 1.f,
|
| 1596 |
+
uv_space_index: 0,
|
| 1597 |
+
|
| 1598 |
+
shape_select: pattern_circle,
|
| 1599 |
+
punching_grid_size: 0.7f,
|
| 1600 |
+
cutout_size: 0.4f,
|
| 1601 |
+
cutout_roundness: 0.8f,
|
| 1602 |
+
cutout_bump_strength: 2.0f,
|
| 1603 |
+
hexagonal_grid: true,
|
| 1604 |
+
square_grid_offset: 0.0f,
|
| 1605 |
+
|
| 1606 |
+
enable_round_corners: false,
|
| 1607 |
+
radius: 1.5f,
|
| 1608 |
+
across_materials: false
|
| 1609 |
+
);
|
| 1610 |
+
|
| 1611 |
+
export material ABS_Hard_Leather_Deep_Violet_Punched(*)
|
| 1612 |
+
[[
|
| 1613 |
+
::anno::description(DESCRIPTION_PUNCHED),
|
| 1614 |
+
::anno::display_name("ABS Hard Leather - Deep Violet Punched"),
|
| 1615 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1616 |
+
::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "design", "artifical", "hard", "leather", "car", "dashboard", "cloth", "furniture", "cold", "deep", "violet", "dark")),
|
| 1617 |
+
::anno::thumbnail("./.thumbs/ABS_Hard_Leather.ABS_Hard_Leather_Deep_Violet_Punched.png"),
|
| 1618 |
+
::anno::author("Nvidia vMaterials"),
|
| 1619 |
+
::anno::contributor("Maik Rohland"),
|
| 1620 |
+
::anno::contributor("Ruediger Raab")
|
| 1621 |
+
]]
|
| 1622 |
+
= ABS_Hard_Leather_Punched
|
| 1623 |
+
(
|
| 1624 |
+
infinite_tiling: false,
|
| 1625 |
+
leather_color: color(0.043f, 0.00902f, 0.142f),
|
| 1626 |
+
roughness: .5f,
|
| 1627 |
+
reflectivity: .3f,
|
| 1628 |
+
bump_strength: .6f,
|
| 1629 |
+
texture_translate: 0.0f,
|
| 1630 |
+
texture_rotate: 0.0f,
|
| 1631 |
+
texture_scale: 1.f,
|
| 1632 |
+
uv_space_index: 0,
|
| 1633 |
+
|
| 1634 |
+
shape_select: pattern_circle,
|
| 1635 |
+
punching_grid_size: 0.7f,
|
| 1636 |
+
cutout_size: 0.4f,
|
| 1637 |
+
cutout_roundness: 0.8f,
|
| 1638 |
+
cutout_bump_strength: 2.0f,
|
| 1639 |
+
hexagonal_grid: true,
|
| 1640 |
+
square_grid_offset: 0.0f,
|
| 1641 |
+
|
| 1642 |
+
enable_round_corners: false,
|
| 1643 |
+
radius: 1.5f,
|
| 1644 |
+
across_materials: false
|
| 1645 |
+
);
|
| 1646 |
+
|
| 1647 |
+
|
| 1648 |
+
|