Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +13 -0
- Assets/Material/material_0008/Carpet_Cream.mdl +42 -0
- Assets/Material/material_0014/Carpet_Pattern_Loop.mdl +42 -0
- Assets/Material/material_0016/Adobe_Brick.mdl +47 -0
- Assets/Material/material_0018/Brick_Wall_Brown.mdl +54 -0
- Assets/Material/material_0021/Concrete_Formed.mdl +42 -0
- Assets/Material/material_0034/Bronze.mdl +54 -0
- Assets/Material/material_0042/Metal_Door.mdl +42 -0
- Assets/Material/material_0045/Silver.mdl +54 -0
- Assets/Material/material_0046/Steel_Blued.mdl +54 -0
- Assets/Material/material_0049/Steel_Stainless.mdl +54 -0
- Assets/Material/material_0055/Paint_Satin.mdl +42 -0
- Assets/Material/material_0060/Grass_Cut.mdl +42 -0
- Assets/Material/material_0064/Sand.mdl +42 -0
- Assets/Material/material_0069/Rubber_Textured.mdl +42 -0
- Assets/Material/material_0084/Marble_Smooth.mdl +54 -0
- Assets/Material/material_0096/Terracotta.mdl +54 -0
- Assets/Material/material_0103/Linen_Beige.mdl +47 -0
- Assets/Material/material_0106/Cardboard.mdl +42 -0
- Assets/Material/material_0113/Bamboo.mdl +54 -0
- Assets/Material/material_0142/Carpaint_03.mdl +177 -0
- Assets/Material/material_0149/Carpaint_10.mdl +177 -0
- Assets/Material/material_0151/Carpaint_Metallic_02.mdl +177 -0
- Assets/Material/material_0158/Carpaint_Metallic_09.mdl +177 -0
- Assets/Material/material_0189/Leather_Grain_02.mdl +177 -0
- Assets/Material/material_0210/Metal_Ceramic_Brakes_Golden.mdl +177 -0
- Assets/Material/material_0230/Koenigsegg_Emblem_Metal_Logo_Clearcoat.mdl +177 -0
- Assets/Material/material_0238/Plastic_Pattern_Dot_01.mdl +177 -0
- Assets/Material/material_0243/Reflectors_01_Glow_White.mdl +177 -0
- Assets/Material/material_0256/Rim_Carpaint_Rose_Gold.mdl +177 -0
- Assets/Material/material_0273/Tire_Supercar_03.mdl +177 -0
- Assets/Material/material_0281/Wood_Grain_Raw_03.mdl +177 -0
- Assets/Material/material_0290/Fabric_Carpet_Long_Floor.mdl +490 -0
- Assets/Material/material_0327/Felt_Plain.mdl +1480 -0
- Assets/Material/material_0339/Wool_Melton.mdl +811 -0
- Assets/Material/material_0356/Ground_Leaves.mdl +1122 -0
- Assets/Material/material_0376/Aging_Copper.mdl +0 -0
- Assets/Material/material_0399/Bronze_Hammered.mdl +284 -0
- Assets/Material/material_0408/Chromium_Foil.mdl +501 -0
- Assets/Material/material_0409/Chromium_Knurling.mdl +359 -0
- Assets/Material/material_0411/Chromium_Sheet.mdl +1336 -0
- Assets/Material/material_0444/Metal_Mesh_Weave_02.mdl +606 -0
- Assets/Material/material_0464/Silver.mdl +378 -0
- Assets/Material/material_0465/Silver_Brushed.mdl +301 -0
- Assets/Material/material_0467/Silver_Hammered.mdl +263 -0
- Assets/Material/material_0470/Silver_Sheet.mdl +1343 -0
- Assets/Material/material_0480/Steel_Painted_Cracked.mdl +0 -0
- Assets/Material/material_0490/Tungsten_Foil.mdl +497 -0
- Assets/Material/material_0508/Caoutchouc.mdl +0 -0
- Assets/Material/material_0515/Chalk_Paint_Pebbles.mdl +802 -0
.gitattributes
CHANGED
|
@@ -1258,3 +1258,16 @@ data/hdf5/stack_blocks/arx_x5/data/episode_0000096.hdf5 filter=lfs diff=lfs merg
|
|
| 1258 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000098.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 1259 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000097.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 1260 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000099.hdf5 filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1258 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000098.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 1259 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000097.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 1260 |
data/hdf5/stack_blocks/arx_x5/data/episode_0000099.hdf5 filter=lfs diff=lfs merge=lfs -text
|
| 1261 |
+
Assets/Sensor/Camera/realsense.usd filter=lfs diff=lfs merge=lfs -text
|
| 1262 |
+
Assets/Sensor/Camera/kinect.usd filter=lfs diff=lfs merge=lfs -text
|
| 1263 |
+
Assets/Robots/franka/Props/panda_link5.usd filter=lfs diff=lfs merge=lfs -text
|
| 1264 |
+
Assets/Robots/franka/Props/instanceable_collision_meshes.usd filter=lfs diff=lfs merge=lfs -text
|
| 1265 |
+
Assets/Robots/franka/Props/panda_hand.usd filter=lfs diff=lfs merge=lfs -text
|
| 1266 |
+
Assets/Robots/franka/Props/panda_link0.usd filter=lfs diff=lfs merge=lfs -text
|
| 1267 |
+
Assets/Robots/franka/Props/panda_link2.usd filter=lfs diff=lfs merge=lfs -text
|
| 1268 |
+
Assets/Sensor/Camera/d435/configuration/d435_base.usd filter=lfs diff=lfs merge=lfs -text
|
| 1269 |
+
Assets/Robots/franka/Props/panda_link1.usd filter=lfs diff=lfs merge=lfs -text
|
| 1270 |
+
Assets/Robots/franka/Props/panda_link7.usd filter=lfs diff=lfs merge=lfs -text
|
| 1271 |
+
Assets/Robots/franka/Props/panda_link4.usd filter=lfs diff=lfs merge=lfs -text
|
| 1272 |
+
Assets/Robots/franka/Props/panda_link3.usd filter=lfs diff=lfs merge=lfs -text
|
| 1273 |
+
Assets/Robots/franka/Props/panda_link6.usd filter=lfs diff=lfs merge=lfs -text
|
Assets/Material/material_0008/Carpet_Cream.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_Cream(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.500000, 0.500000, 0.500000),
|
| 10 |
+
diffuse_texture: texture_2d("./Carpet_Cream_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("./Carpet_Cream_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.000000,
|
| 30 |
+
bump_factor: 0.75f,
|
| 31 |
+
normalmap_texture: texture_2d("./Carpet_Cream_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);
|
Assets/Material/material_0014/Carpet_Pattern_Loop.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_Pattern_Loop(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(1.0, 1.0, 1.0),
|
| 10 |
+
diffuse_texture: texture_2d("./Carpet_Pattern_Loop_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, 0.625f, 0.25f),
|
| 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_Pattern_Loop_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_Pattern_Loop_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);
|
Assets/Material/material_0016/Adobe_Brick.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 Adobe_Brick(*)
|
| 13 |
+
= ::OmniPBR::OmniPBR(
|
| 14 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 15 |
+
diffuse_texture: texture_2d("./Adobe_Brick_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("./Adobe_Brick_ORM.png" /* tag 2958, version 3215807061 */, ::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("./Adobe_Brick_N.png" /* tag 2960, version 862119224 */, ::tex::gamma_linear),
|
| 37 |
+
detail_bump_factor: 0.300000012f,
|
| 38 |
+
detail_normalmap_texture: texture_2d(),
|
| 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: 1.f);
|
Assets/Material/material_0018/Brick_Wall_Brown.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 Brick_Wall_Brown(*)
|
| 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("./Brick_Wall_Brown_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("./Brick_Wall_Brown_ORM.png" /* tag 2741, version 397003005 */, ::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("./Brick_Wall_Brown_N.png" /* tag 2743, version 2285331857 */, ::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);
|
Assets/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);
|
Assets/Material/material_0034/Bronze.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 Bronze(*)
|
| 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("./Bronze_BaseColor.png" /* tag 2791, version 303717019 */, ::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.5f,
|
| 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("./Bronze_ORM.png" /* tag 2793, version 2682007639 */, ::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("./Bronze_N.png" /* tag 2795, version 2348578768 */, ::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);
|
Assets/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);
|
Assets/Material/material_0045/Silver.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 Silver(*)
|
| 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("./Silver_BaseColor.png" /* tag 2812, version 2041580364 */, ::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.5f,
|
| 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("./Silver_ORM.png" /* tag 2814, version 2252362237 */, ::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("./Silver_N.png" /* tag 2816, version 3701140404 */, ::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);
|
Assets/Material/material_0046/Steel_Blued.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 Steel_Blued(*)
|
| 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("./Steel_Blued_BaseColor.png" /* tag 2750, version 1941569663 */, ::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("./Steel_Blued_ORM.png" /* tag 2754, version 2522242520 */, ::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("./Steel_Blued_N.png" /* tag 2752, version 1947397307 */, ::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);
|
Assets/Material/material_0049/Steel_Stainless.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 Steel_Stainless(*)
|
| 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("./Steel_Stainless_BaseColor.png" /* tag 3107, version 2706352012 */, ::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("./Steel_Stainless_ORM.png" /* tag 3109, version 880241343 */, ::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("./Steel_Stainless_N.png" /* tag 3111, version 1659240673 */, ::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);
|
Assets/Material/material_0055/Paint_Satin.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_Satin(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./Paint_Satin_Finish_BaseColor.png" /* tag 2101, version 1315023839 */, ::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_Satin_Finish_ORM.png" /* tag 2103, version 621268788 */, ::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_Satin_Finish_N.png" /* tag 2105, version 368198679 */, ::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);
|
Assets/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);
|
Assets/Material/material_0064/Sand.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 Sand(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.500000, 0.500000, 0.500000),
|
| 10 |
+
diffuse_texture: texture_2d("./Sand_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("./Sand_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.000000,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Sand_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);
|
Assets/Material/material_0069/Rubber_Textured.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 Rubber_Textured(*)
|
| 8 |
+
= OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.500000, 0.500000, 0.500000),
|
| 10 |
+
diffuse_texture: texture_2d("./Rubber_Textured_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("./Rubber_Textured_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.000000,
|
| 30 |
+
bump_factor: 1.f,
|
| 31 |
+
normalmap_texture: texture_2d("./Rubber_Textured_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);
|
Assets/Material/material_0084/Marble_Smooth.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 Marble_Smooth(*)
|
| 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("./Marble_Smooth_BaseColor.png" /* tag 2791, version 1295500887 */, ::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("./Marble_Smooth_ORM.png" /* tag 2793, version 1362976242 */, ::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("./Marble_Smooth_N.png" /* tag 2795, version 4147619283 */, ::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);
|
Assets/Material/material_0096/Terracotta.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 Terracotta(*)
|
| 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("./Terracotta_BaseColor.png" /* tag 2819, version 3314107828 */, ::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("./Terracotta_ORM.png" /* tag 2821, version 1819114335 */, ::tex::gamma_linear),
|
| 36 |
+
ao_to_diffuse: 0.f,
|
| 37 |
+
ao_texture: texture_2d(),
|
| 38 |
+
enable_emission: false,
|
| 39 |
+
emissive_color: color(0.f, 0.f, 0.f),
|
| 40 |
+
emissive_mask_texture: texture_2d(),
|
| 41 |
+
emissive_intensity: 40.f,
|
| 42 |
+
bump_factor: 1.f,
|
| 43 |
+
normalmap_texture: texture_2d("./Terracotta_N.png" /* tag 2823, version 1467847953 */, ::tex::gamma_linear),
|
| 44 |
+
detail_bump_factor: 0.3f,
|
| 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);
|
Assets/Material/material_0103/Linen_Beige.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_Beige(*)
|
| 13 |
+
= ::OmniPBR::OmniPBR(
|
| 14 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 15 |
+
diffuse_texture: texture_2d("./Linen_Beige_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_Beige_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_Beige_N.png", ::tex::gamma_linear),
|
| 37 |
+
detail_bump_factor: 1.0f,
|
| 38 |
+
detail_normalmap_texture: texture_2d("./Linen_Beige_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));
|
Assets/Material/material_0106/Cardboard.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 Cardboard(*)
|
| 8 |
+
= ::OmniPBR::OmniPBR(
|
| 9 |
+
diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f),
|
| 10 |
+
diffuse_texture: texture_2d("./Cardboard_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("./Cardboard_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("./Cardboard_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);
|
Assets/Material/material_0113/Bamboo.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 Bamboo(*)
|
| 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("./Bamboo_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("./Bamboo_ORM.png" /* tag 2741, version 397003005 */, ::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("./Bamboo_N.png" /* tag 2743, version 273550734 */, ::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);
|
Assets/Material/material_0142/Carpaint_03.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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_03(*)
|
| 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.694117665f, 0.137254909f, 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(),
|
| 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),
|
| 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.5f, 0.499996483f, 0.499995023f),
|
| 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);
|
Assets/Material/material_0149/Carpaint_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 Carpaint_10(*)
|
| 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.0941176489f, 0.137254909f, 0.0823529437f),
|
| 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.499996006f, 0.5f, 0.499994993f),
|
| 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);
|
Assets/Material/material_0151/Carpaint_Metallic_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 Carpaint_Metallic_02(*)
|
| 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(1.f, 0.999997556f, 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(),
|
| 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.234323442f, 0.032480482f, 0.032480482f),
|
| 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);
|
Assets/Material/material_0158/Carpaint_Metallic_09.mdl
ADDED
|
@@ -0,0 +1,177 @@
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_09(*)
|
| 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.399339914f, 0.133204028f, 0.0197692961f),
|
| 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);
|
Assets/Material/material_0189/Leather_Grain_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 Leather_Grain_02(*)
|
| 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_b_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.524752498f, 0.0329052843f, 0.0329052843f),
|
| 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_e_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_e_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_leather_b_01_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_leather_b_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_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: 0.5f,
|
| 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_b_01_basecolor.png", ::tex::gamma_default, ""),
|
| 78 |
+
layer_1_diffuse_reflection_color: color(0.257425725f, 0.0220893342f, 0.0220893342f),
|
| 79 |
+
layer_1_base_color_offset: 0.560000002f,
|
| 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_b_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_b_01_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_leather_b_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.5f),
|
| 92 |
+
layer_1_normal_image: texture_2d("./ov_leather_b_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,
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_Ceramic_Brakes_Golden(*)
|
| 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_metal_a_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.48184818f, 0.311281115f, 0.232177675f),
|
| 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: 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_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);
|
Assets/Material/material_0230/Koenigsegg_Emblem_Metal_Logo_Clearcoat.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 Koenigsegg_Emblem_Metal_Logo_Clearcoat(*)
|
| 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_car_K_emblem_metal_01_basecolor.png", ::tex::gamma_default, ""),
|
| 41 |
+
diffuse_reflection_color: color(0.5f, 0.499994993f, 0.499994993f),
|
| 42 |
+
base_color_scale: 1.f,
|
| 43 |
+
base_color_offset: 0.f,
|
| 44 |
+
base_color_desaturation: 0.f,
|
| 45 |
+
metalness_image: texture_2d("./ov_car_K_emblem_metal_01_metallic.png", ::tex::gamma_srgb, ""),
|
| 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_car_K_emblem_metal_01_ambientOcclusion.png", ::tex::gamma_default, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::rgb,
|
| 52 |
+
roughness_image: texture_2d("./ov_car_K_emblem_metal_01_roughness.png", ::tex::gamma_default, ""),
|
| 53 |
+
roughness_channel: Templates::OmniUber_Automotive::rgb,
|
| 54 |
+
roughness_u: 1.f,
|
| 55 |
+
roughness_range_position: float2(0.5f, 0.349999994f),
|
| 56 |
+
normal_image: texture_2d("./ov_car_K_emblem_metal_01_normal.png", ::tex::gamma_linear, ""),
|
| 57 |
+
normal_flip_green: false,
|
| 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: 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(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.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_1,
|
| 172 |
+
enable_flakes: true,
|
| 173 |
+
flake_color: color(1.f, 0.999989986f, 0.999989986f),
|
| 174 |
+
flake_size: 0.199999988f,
|
| 175 |
+
flakes_density: 0.329999983f,
|
| 176 |
+
flakes_spread: 0.199999988f,
|
| 177 |
+
flake_roughness: 0.119999997f);
|
Assets/Material/material_0238/Plastic_Pattern_Dot_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 Plastic_Pattern_Dot_01(*)
|
| 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_01_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_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_plastic_pattern_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_plastic_pattern_01_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.779999971f),
|
| 56 |
+
normal_image: texture_2d("./ov_plastic_pattern_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_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_01_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_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_plastic_pattern_01_orm.png", ::tex::gamma_default, ""),
|
| 87 |
+
layer_1_cavity_channel: Templates::OmniUber_Automotive::r,
|
| 88 |
+
layer_1_roughness_image: texture_2d("./ov_plastic_pattern_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_plastic_pattern_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);
|
Assets/Material/material_0243/Reflectors_01_Gl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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_White(*)
|
| 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.f,
|
| 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.f,
|
| 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.f,
|
| 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.f,
|
| 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(1.f, 0.99999094f, 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_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(0.366391122f, 0.571865916f, 0.798679888f),
|
| 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);
|
Assets/Material/material_0256/Rim_Carpaint_Rose_Gold.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 Rim_Carpaint_Rose_Gold(*)
|
| 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.999999225f),
|
| 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.772277236f, 0.473011315f, 0.321144998f),
|
| 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.359999985f,
|
| 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.319999993f,
|
| 175 |
+
flakes_density: 0.459999979f,
|
| 176 |
+
flakes_spread: 0.569999993f,
|
| 177 |
+
flake_roughness: 0.25f);
|
Assets/Material/material_0273/Tire_Supercar_03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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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_Supercar_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_sports_02_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_sports_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_tire_rubber_trim_sports_02_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_tire_rubber_trim_sports_02_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_sports_02_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);
|
Assets/Material/material_0281/Wood_Grain_Raw_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 Wood_Grain_Raw_03(*)
|
| 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_c_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_c_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_c_01_orm.png", ::tex::gamma_linear, ""),
|
| 51 |
+
cavity_channel: Templates::OmniUber_Automotive::r,
|
| 52 |
+
roughness_image: texture_2d("./ov_wood_grain_c_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_c_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,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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
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 |
+
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 |
+
const string DESCRIPTION = "A floor carpet material with long hair fibers.";
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
float remap(float input, float low, float high)
|
| 66 |
+
{
|
| 67 |
+
//return low + input * (high - low);
|
| 68 |
+
return ::math::lerp(low, high, input);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
float remap(float input, float low_1, float high_1, float low_2, float high_2)
|
| 72 |
+
{
|
| 73 |
+
return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1);
|
| 74 |
+
}
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
float histogram_pos_range(float input, float range, float position)
|
| 78 |
+
{
|
| 79 |
+
float range_half = range/2.0;
|
| 80 |
+
float subtract_low = (position + range_half) > 1.0 ? (position + range/2.0) - 1.0 : 0.0;
|
| 81 |
+
float low = position - range_half - subtract_low;
|
| 82 |
+
|
| 83 |
+
float add_high = (position - range_half) < 0.0 ? ::math::abs(position - range_half) : 0.0;
|
| 84 |
+
float high = position + range_half + add_high;
|
| 85 |
+
return remap(input, low, high);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
::base::texture_coordinate_info vmat_transform(
|
| 89 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 90 |
+
uniform float rotation = 0.0,
|
| 91 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 92 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 93 |
+
uniform int uv_space = 0
|
| 94 |
+
)
|
| 95 |
+
{
|
| 96 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 97 |
+
|
| 98 |
+
float4x4 scale =
|
| 99 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 100 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 101 |
+
0. , 0. , 1.0, 0.,
|
| 102 |
+
translation.x , translation.y , 0.0, 1.);
|
| 103 |
+
|
| 104 |
+
float s = ::math::sin(rotation_rad);
|
| 105 |
+
float c = ::math::cos(rotation_rad);
|
| 106 |
+
float4x4 rotate =
|
| 107 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 108 |
+
s , c , 0.0 , 0.0,
|
| 109 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 110 |
+
0. , 0.0 , 0.0 , 1.);
|
| 111 |
+
|
| 112 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 113 |
+
}
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
float3 srgb2rgb(float3 val)
|
| 117 |
+
{
|
| 118 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 119 |
+
}
|
| 120 |
+
|
| 121 |
+
float uint2float(int x)
|
| 122 |
+
{
|
| 123 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
int lowbias32(int x)
|
| 127 |
+
{
|
| 128 |
+
x ^= x >>> 16;
|
| 129 |
+
x *= 0x7feb352d;
|
| 130 |
+
x ^= x >>> 15;
|
| 131 |
+
x *= 0x846ca68b;
|
| 132 |
+
x ^= x >>> 16;
|
| 133 |
+
return x;
|
| 134 |
+
}
|
| 135 |
+
|
| 136 |
+
float2 rnd22(int2 p) {
|
| 137 |
+
float2 ret_val = float2(
|
| 138 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 139 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 140 |
+
);
|
| 141 |
+
return ret_val;
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
float2x2 invert_2x2(float2x2 M)
|
| 146 |
+
{
|
| 147 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 148 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 149 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
float3 nonrepeat_lookup(
|
| 153 |
+
uniform texture_2d texture = texture_2d(),
|
| 154 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 155 |
+
float texture_scale = 1.0,
|
| 156 |
+
float3 average_color = float3(0.5),
|
| 157 |
+
float patch_size = 8.0
|
| 158 |
+
)
|
| 159 |
+
{
|
| 160 |
+
|
| 161 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 162 |
+
float Z = patch_size; // patch scale inside example texture
|
| 163 |
+
float CON = 1.0f;
|
| 164 |
+
|
| 165 |
+
float3 O = float3(0.f);
|
| 166 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 167 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 168 |
+
|
| 169 |
+
float2 U = uv_in;
|
| 170 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 171 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 172 |
+
|
| 173 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 174 |
+
// average color work out, take the float value and calculate the apropriate
|
| 175 |
+
// mean value as (value^(1/2.2))
|
| 176 |
+
|
| 177 |
+
float3 m = average_color;
|
| 178 |
+
|
| 179 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 180 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 181 |
+
|
| 182 |
+
if( F[2] > 0.f )
|
| 183 |
+
|
| 184 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 185 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 186 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 187 |
+
else
|
| 188 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 189 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 190 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 191 |
+
O = m + O/::math::length(W);
|
| 192 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 193 |
+
|
| 194 |
+
return float3(O);
|
| 195 |
+
}
|
| 196 |
+
|
| 197 |
+
color endless_texture(
|
| 198 |
+
uniform texture_2d texture = texture_2d(),
|
| 199 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 200 |
+
float texture_scale = 10.0,
|
| 201 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 202 |
+
float patch_size = 8.0,
|
| 203 |
+
bool gamma_correct_lookup = true
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 207 |
+
nonrepeat_lookup (
|
| 208 |
+
texture: texture,
|
| 209 |
+
uvw: uvw,
|
| 210 |
+
texture_scale: texture_scale,
|
| 211 |
+
average_color: average_color,
|
| 212 |
+
patch_size: patch_size
|
| 213 |
+
))
|
| 214 |
+
) : color(nonrepeat_lookup (
|
| 215 |
+
texture: texture,
|
| 216 |
+
uvw: uvw,
|
| 217 |
+
texture_scale: texture_scale,
|
| 218 |
+
average_color: average_color,
|
| 219 |
+
patch_size: patch_size
|
| 220 |
+
));
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
float3 endless_normal(
|
| 224 |
+
uniform texture_2d texture = texture_2d(),
|
| 225 |
+
float factor = 1.0,
|
| 226 |
+
bool flip_tangent_u = false,
|
| 227 |
+
bool flip_tangent_v = false,
|
| 228 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 229 |
+
float texture_scale = 1.0,
|
| 230 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 231 |
+
float patch_size = 8.0
|
| 232 |
+
)
|
| 233 |
+
{
|
| 234 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 235 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 236 |
+
|
| 237 |
+
if (flip_tangent_u)
|
| 238 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 239 |
+
if (flip_tangent_v)
|
| 240 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 241 |
+
|
| 242 |
+
// normalized Lookup
|
| 243 |
+
float3 tangent_space_normal =
|
| 244 |
+
(nonrepeat_lookup (
|
| 245 |
+
texture: texture,
|
| 246 |
+
uvw: uvw,
|
| 247 |
+
texture_scale: texture_scale,
|
| 248 |
+
average_color: average_color,
|
| 249 |
+
patch_size: patch_size
|
| 250 |
+
) - 0.5) * (2.0 * factor);
|
| 251 |
+
|
| 252 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 253 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 254 |
+
::state::normal()*1.0);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
float3 normalmap_normal(
|
| 258 |
+
uniform texture_2d texture,
|
| 259 |
+
float factor = 1.0,
|
| 260 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 261 |
+
)
|
| 262 |
+
{
|
| 263 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 264 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
export material Fabric_Carpet_Long_Floor(
|
| 269 |
+
uniform bool infinite_tiling = true [[
|
| 270 |
+
::anno::description("Enables the infinite tiling feature which removes artifacts of repeating texture patterns."),
|
| 271 |
+
::anno::display_name("Infinite Tiling"),
|
| 272 |
+
::anno::in_group("Appearance")
|
| 273 |
+
]],
|
| 274 |
+
color carpet_color = color(1.f, 1.f, 1.f) [[
|
| 275 |
+
::anno::description("Adjusts the overall color of the carpet."),
|
| 276 |
+
::anno::display_name("Carpet Color"),
|
| 277 |
+
::anno::in_group("Appearance")
|
| 278 |
+
]],
|
| 279 |
+
float ao_amount = 0.5f [[
|
| 280 |
+
::anno::description("Produces a more contrasted appearance while also darkening the overall appearance."),
|
| 281 |
+
::anno::display_name("Carpet Contrast"),
|
| 282 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 283 |
+
::anno::in_group("Appearance")
|
| 284 |
+
]],
|
| 285 |
+
float carpet_bump_factor = 1.f [[
|
| 286 |
+
::anno::description("Adjusts the bump factor of the material."),
|
| 287 |
+
::anno::display_name("Carpet Bump Factor"),
|
| 288 |
+
::anno::soft_range(0.0, 1.0),
|
| 289 |
+
::anno::in_group("Appearance")
|
| 290 |
+
]],
|
| 291 |
+
uniform float2 texture_translate = 0.f [[
|
| 292 |
+
::anno::display_name("Translate"),
|
| 293 |
+
::anno::description("Offsets the position of the material."),
|
| 294 |
+
::anno::in_group("Transform")
|
| 295 |
+
]],
|
| 296 |
+
uniform float texture_rotate = 0.f [[
|
| 297 |
+
::anno::description("Rotates the material."),
|
| 298 |
+
::anno::display_name("Rotate"),
|
| 299 |
+
::anno::in_group("Transform")
|
| 300 |
+
]],
|
| 301 |
+
uniform float2 texture_scale = 1.0f [[
|
| 302 |
+
::anno::description("Scales the material."),
|
| 303 |
+
::anno::display_name("Scale"),
|
| 304 |
+
::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
|
| 305 |
+
::anno::in_group("Transform")
|
| 306 |
+
]],
|
| 307 |
+
uniform int uv_space_index = 0 [[
|
| 308 |
+
::anno::description("Use selected UV space for material."),
|
| 309 |
+
::anno::display_name("UV Space Index"),
|
| 310 |
+
::anno::in_group("Advanced")
|
| 311 |
+
]])
|
| 312 |
+
[[
|
| 313 |
+
::anno::author("NVIDIA vMaterials"),
|
| 314 |
+
::anno::display_name("Long Floor Carpet - Natural"),
|
| 315 |
+
::anno::description(DESCRIPTION),
|
| 316 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 317 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor.png"),
|
| 318 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "natural", "neutral"))
|
| 319 |
+
]]
|
| 320 |
+
=
|
| 321 |
+
let {
|
| 322 |
+
bool tmp0 = false;
|
| 323 |
+
|
| 324 |
+
float2 corrected_scale = 0.33 * texture_scale;
|
| 325 |
+
|
| 326 |
+
material_surface tmp1(
|
| 327 |
+
::df::custom_curve_layer(0.0780000016f, 0.606000006f, 5.f, ::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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, 0.653000057f, 0.f, 1.f), 0.f, 1.f), 2.20000005f), ::df::microfacet_ggx_smith_bsdf(histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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.830000043f, 0.745000064f), histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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.830000043f, 0.745000064f) * histogram_pos_range(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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.830000043f, 0.745000064f), 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(carpet_color, infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.596000016f, 0.549000025f, 0.493999988f), 8.f, true) : ::base::file_texture(texture_2d("./long_floor_carpet_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, corrected_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, ::base::color_layer_multiply, 1.f).tint, color(::math::pow(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./long_floor_carpet_multi_R_rough_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.838999987f, 0.68599999f, 1.f), 8.f, false) : ::base::file_texture(texture_2d("./long_floor_carpet_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_alpha, vmat_transform(texture_translate, texture_rotate, corrected_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, 0.736000061f, ::math::lerp(1.f, 0.349999994f, ao_amount), 1.f), 0.f, 1.f), 2.20000005f)), ::base::color_layer_multiply, 1.f).tint, 0.f, ""), ::state::normal()),
|
| 328 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 329 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 330 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 331 |
+
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));
|
| 332 |
+
material_geometry tmp5(
|
| 333 |
+
float3(0.f),
|
| 334 |
+
1.f,
|
| 335 |
+
infinite_tiling ? endless_normal(texture_2d("./long_floor_carpet_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./long_floor_carpet_norm.jpg", ::tex::gamma_linear), ::math::lerp(0.f, 0.699999988f, carpet_bump_factor), vmat_transform(texture_translate, texture_rotate, corrected_scale, ::base::texture_coordinate_uvw, uv_space_index)));
|
| 336 |
+
} in
|
| 337 |
+
material(
|
| 338 |
+
thin_walled: tmp0,
|
| 339 |
+
surface: tmp1,
|
| 340 |
+
backface: tmp2,
|
| 341 |
+
ior: tmp3,
|
| 342 |
+
volume: tmp4,
|
| 343 |
+
geometry: tmp5);
|
| 344 |
+
|
| 345 |
+
export material Fabric_Carpet_Long_Floor_Blue(*)
|
| 346 |
+
[[
|
| 347 |
+
::anno::author("NVIDIA vMaterials"),
|
| 348 |
+
::anno::display_name("Long Floor Carpet - Blue"),
|
| 349 |
+
::anno::description(DESCRIPTION),
|
| 350 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 351 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Blue.png"),
|
| 352 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "blue", "cool"))
|
| 353 |
+
]]
|
| 354 |
+
= Fabric_Carpet_Long_Floor(
|
| 355 |
+
infinite_tiling: true,
|
| 356 |
+
carpet_color: color(0.160444f, 0.547994f, .9f),
|
| 357 |
+
ao_amount: 0.8f,
|
| 358 |
+
carpet_bump_factor: 1.0f,
|
| 359 |
+
texture_translate: 0.0f,
|
| 360 |
+
texture_rotate: 0.0f,
|
| 361 |
+
texture_scale: 1.0,
|
| 362 |
+
uv_space_index: 0
|
| 363 |
+
);
|
| 364 |
+
|
| 365 |
+
export material Fabric_Carpet_Long_Floor_Rose(*)
|
| 366 |
+
[[
|
| 367 |
+
::anno::author("NVIDIA vMaterials"),
|
| 368 |
+
::anno::display_name("Long Floor Carpet - Rose"),
|
| 369 |
+
::anno::description(DESCRIPTION),
|
| 370 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 371 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Rose.png"),
|
| 372 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "rose", "warm"))
|
| 373 |
+
]]
|
| 374 |
+
= Fabric_Carpet_Long_Floor(
|
| 375 |
+
infinite_tiling: true,
|
| 376 |
+
carpet_color: color(0.744530f, 0.378676f, 0.715465f),
|
| 377 |
+
ao_amount: 0.8f,
|
| 378 |
+
carpet_bump_factor: 1.0f,
|
| 379 |
+
texture_translate: 0.0f,
|
| 380 |
+
texture_rotate: 0.0f,
|
| 381 |
+
texture_scale: 1.0,
|
| 382 |
+
uv_space_index: 0
|
| 383 |
+
);
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
export material Fabric_Carpet_Long_Floor_Light_Green(*)
|
| 387 |
+
[[
|
| 388 |
+
::anno::author("NVIDIA vMaterials"),
|
| 389 |
+
::anno::display_name("Long Floor Carpet - Light Green"),
|
| 390 |
+
::anno::description(DESCRIPTION),
|
| 391 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 392 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Light_Green.png"),
|
| 393 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green", "light"))
|
| 394 |
+
]]
|
| 395 |
+
= Fabric_Carpet_Long_Floor(
|
| 396 |
+
infinite_tiling: true,
|
| 397 |
+
carpet_color: color(0.505432f, 0.827726f, 0.133209f),
|
| 398 |
+
ao_amount: 0.8f,
|
| 399 |
+
carpet_bump_factor: 1.0f,
|
| 400 |
+
texture_translate: 0.0f,
|
| 401 |
+
texture_rotate: 0.0f,
|
| 402 |
+
texture_scale: 1.0f,
|
| 403 |
+
uv_space_index: 0
|
| 404 |
+
);
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
export material Fabric_Carpet_Long_Floor_Yellow(*)
|
| 408 |
+
[[
|
| 409 |
+
::anno::author("NVIDIA vMaterials"),
|
| 410 |
+
::anno::display_name("Long Floor Carpet - Yellow"),
|
| 411 |
+
::anno::description(DESCRIPTION),
|
| 412 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 413 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Yellow.png"),
|
| 414 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "yellow", "warm"))
|
| 415 |
+
]]
|
| 416 |
+
= Fabric_Carpet_Long_Floor(
|
| 417 |
+
infinite_tiling: true,
|
| 418 |
+
carpet_color: color(0.907547f, 0.907547f, 0.180144f),
|
| 419 |
+
ao_amount: 0.8f,
|
| 420 |
+
carpet_bump_factor: 1.0f,
|
| 421 |
+
texture_translate: 0.0f,
|
| 422 |
+
texture_rotate: 0.0f,
|
| 423 |
+
texture_scale: 1.0f,
|
| 424 |
+
uv_space_index: 0
|
| 425 |
+
);
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
export material Fabric_Carpet_Long_Floor_Orange(*)
|
| 429 |
+
[[
|
| 430 |
+
::anno::author("NVIDIA vMaterials"),
|
| 431 |
+
::anno::display_name("Long Floor Carpet - Orange"),
|
| 432 |
+
::anno::description(DESCRIPTION),
|
| 433 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 434 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Orange.png"),
|
| 435 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "orange", "warm"))
|
| 436 |
+
]]
|
| 437 |
+
= Fabric_Carpet_Long_Floor(
|
| 438 |
+
infinite_tiling: true,
|
| 439 |
+
carpet_color: color(0.907547f, 0.293216f, 0.084642f),
|
| 440 |
+
ao_amount: 0.8f,
|
| 441 |
+
carpet_bump_factor: 1.0f,
|
| 442 |
+
texture_translate: 0.0f,
|
| 443 |
+
texture_rotate: 0.0f,
|
| 444 |
+
texture_scale: 1.0f,
|
| 445 |
+
uv_space_index: 0
|
| 446 |
+
);
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
export material Fabric_Carpet_Long_Floor_Green(*)
|
| 450 |
+
[[
|
| 451 |
+
::anno::author("NVIDIA vMaterials"),
|
| 452 |
+
::anno::display_name("Long Floor Carpet - Green"),
|
| 453 |
+
::anno::description(DESCRIPTION),
|
| 454 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 455 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Green.png"),
|
| 456 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "green"))
|
| 457 |
+
]]
|
| 458 |
+
= Fabric_Carpet_Long_Floor(
|
| 459 |
+
infinite_tiling: true,
|
| 460 |
+
carpet_color: color(0.267358f, 0.464741f, 0.051122f),
|
| 461 |
+
ao_amount: 0.8f,
|
| 462 |
+
carpet_bump_factor: 1.0f,
|
| 463 |
+
texture_translate: 0.0f,
|
| 464 |
+
texture_rotate: 0.0f,
|
| 465 |
+
texture_scale: 1.0f,
|
| 466 |
+
uv_space_index: 0
|
| 467 |
+
);
|
| 468 |
+
|
| 469 |
+
|
| 470 |
+
export material Fabric_Carpet_Long_Floor_Bordeaux(*)
|
| 471 |
+
[[
|
| 472 |
+
::anno::author("NVIDIA vMaterials"),
|
| 473 |
+
::anno::display_name("Long Floor Carpet - Bordeaux"),
|
| 474 |
+
::anno::description(DESCRIPTION),
|
| 475 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 476 |
+
::anno::thumbnail("./.thumbs/Fabric_Carpet_Long_Floor.Fabric_Carpet_Long_Floor_Bordeaux.png"),
|
| 477 |
+
::anno::key_words(string[]("carpet", "floor", "interior", "soft", "fabric", "long", "bordeaux", "red", "warm"))
|
| 478 |
+
]]
|
| 479 |
+
= Fabric_Carpet_Long_Floor(
|
| 480 |
+
infinite_tiling: true,
|
| 481 |
+
carpet_color: color(0.618686f, 0.017936f, 0.141980f),
|
| 482 |
+
ao_amount: 0.8f,
|
| 483 |
+
carpet_bump_factor: 1.0f,
|
| 484 |
+
texture_transl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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.4;
|
| 37 |
+
import ::df::*;
|
| 38 |
+
import ::base::*;
|
| 39 |
+
import ::anno::*;
|
| 40 |
+
import ::math::*;
|
| 41 |
+
import ::tex::*;
|
| 42 |
+
import ::nvidia::core_definitions::*;
|
| 43 |
+
|
| 44 |
+
const string COPYRIGHT =
|
| 45 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 46 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 47 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 48 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 49 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 50 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 51 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 52 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 53 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 54 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 55 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 56 |
+
|
| 57 |
+
annotation preview_scale( float f);
|
| 58 |
+
|
| 59 |
+
uniform float4x4 rotation_translation_scale(
|
| 60 |
+
uniform float3 rotation = float3(0.)
|
| 61 |
+
[[ ::anno::description("Rotation applied to every UVW coordinate.") ]],
|
| 62 |
+
uniform float3 translation = float3(0.)
|
| 63 |
+
[[ ::anno::description("Offset applied to every UVW coordinate.") ]],
|
| 64 |
+
uniform float3 scaling = float3(1.)
|
| 65 |
+
[[ ::anno::description("Scale applied to every UVW coordinate.") ]]
|
| 66 |
+
)
|
| 67 |
+
[[
|
| 68 |
+
::anno::description("Construct transformation matrix from Euler rotation, translation and scale."),
|
| 69 |
+
::anno::hidden()
|
| 70 |
+
]]
|
| 71 |
+
{
|
| 72 |
+
float4x4 scale =
|
| 73 |
+
float4x4(scaling.x , 0. , 0. , 0.,
|
| 74 |
+
0. , scaling.y , 0. , 0.,
|
| 75 |
+
0. , 0. , scaling.z , 0.,
|
| 76 |
+
translation.x, translation.y, translation.z, 1.);
|
| 77 |
+
|
| 78 |
+
float3 s = ::math::sin(rotation);
|
| 79 |
+
float3 c = ::math::cos(rotation);
|
| 80 |
+
float4x4 rotate =
|
| 81 |
+
float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0,
|
| 82 |
+
c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0,
|
| 83 |
+
-s.y , s.x*c.y , c.x*c.y , 0.0,
|
| 84 |
+
0. , 0 , 0 , 1.);
|
| 85 |
+
|
| 86 |
+
return scale*rotate;
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
export material Felt_Plain (
|
| 92 |
+
color base_color = color(0.034230f, 0.373615f, 0.058187f)
|
| 93 |
+
[[
|
| 94 |
+
::anno::display_name("Base color"),
|
| 95 |
+
::anno::description("The base color of the material."),
|
| 96 |
+
::anno::in_group("Appearance")
|
| 97 |
+
]],
|
| 98 |
+
float fill_dark_gaps = 1.0f
|
| 99 |
+
[[
|
| 100 |
+
::anno::display_name("Felt Contrast"),
|
| 101 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 102 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 103 |
+
::anno::in_group("Appearance")
|
| 104 |
+
]],
|
| 105 |
+
float fuzz_opacity = 0.15f
|
| 106 |
+
[[
|
| 107 |
+
::anno::display_name("Fuzz Opacity"),
|
| 108 |
+
::anno::soft_range(0.0f, 1.0f),
|
| 109 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 110 |
+
::anno::in_group("Appearance")
|
| 111 |
+
]],
|
| 112 |
+
|
| 113 |
+
/* Transform */
|
| 114 |
+
uniform float2 texture_translate = 0.f
|
| 115 |
+
[[
|
| 116 |
+
::anno::display_name("Translate"),
|
| 117 |
+
::anno::description("Controls the position of the texture."),
|
| 118 |
+
::anno::in_group("Transform")
|
| 119 |
+
]],
|
| 120 |
+
uniform float texture_rotate = 0.f
|
| 121 |
+
[[
|
| 122 |
+
::anno::display_name("Rotate"),
|
| 123 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 124 |
+
::anno::in_group("Transform")
|
| 125 |
+
]],
|
| 126 |
+
uniform float2 texture_scale = 1.f
|
| 127 |
+
[[
|
| 128 |
+
::anno::display_name("Scale"),
|
| 129 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 130 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 131 |
+
::preview_scale(1.8f),
|
| 132 |
+
::anno::in_group("Transform")
|
| 133 |
+
]],
|
| 134 |
+
|
| 135 |
+
/* Advanced */
|
| 136 |
+
uniform int uv_space_index = 0
|
| 137 |
+
[[
|
| 138 |
+
::anno::display_name("UV Space Index"),
|
| 139 |
+
::anno::description("UV space index."),
|
| 140 |
+
::anno::hard_range(0,3),
|
| 141 |
+
::anno::in_group("Advanced")
|
| 142 |
+
]],
|
| 143 |
+
|
| 144 |
+
uniform float bump_strength = 4.0
|
| 145 |
+
[[
|
| 146 |
+
::anno::display_name("Bump Strength"),
|
| 147 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 148 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 149 |
+
::anno::in_group("Appearance")
|
| 150 |
+
]]
|
| 151 |
+
) [[
|
| 152 |
+
::anno::display_name("Felt Tournament Green"),
|
| 153 |
+
::anno::description("Felt template material from which all the other presets are derived."),
|
| 154 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "red", "warm")),
|
| 155 |
+
::anno::author("NVIDIA vMaterials"),
|
| 156 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Plain.png"),
|
| 157 |
+
::anno::hidden(),
|
| 158 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 159 |
+
]] = let
|
| 160 |
+
{
|
| 161 |
+
// Felt Texture, the texture of the felt material
|
| 162 |
+
uniform texture_2d felt_texture = texture_2d("./felt_white_diff.jpg", ::tex::gamma_srgb);
|
| 163 |
+
|
| 164 |
+
// Fuzz Texture
|
| 165 |
+
uniform texture_2d felt_fuzz_texture = texture_2d("./felt_fuzz_mask.jpg", ::tex::gamma_srgb);
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(
|
| 170 |
+
coordinate_system: ::base::texture_coordinate_uvw,
|
| 171 |
+
texture_space: uv_space_index
|
| 172 |
+
);
|
| 173 |
+
|
| 174 |
+
::base::texture_coordinate_info transformed_uvw = ::base::transform_coordinate(
|
| 175 |
+
transform: rotation_translation_scale(
|
| 176 |
+
scaling: float3(8.f/texture_scale.x, 8.f/texture_scale.y, 1.0),
|
| 177 |
+
rotation: float3(0.0, 0.0, texture_rotate/180.*::math::PI ),
|
| 178 |
+
translation: float3(texture_translate.x, texture_translate.y, 0.0)
|
| 179 |
+
),
|
| 180 |
+
coordinate: uvw
|
| 181 |
+
);
|
| 182 |
+
|
| 183 |
+
|
| 184 |
+
::base::texture_return felt_texture_return = ::base::file_texture(
|
| 185 |
+
texture: felt_texture,
|
| 186 |
+
mono_source: ::base::mono_alpha,
|
| 187 |
+
uvw: transformed_uvw
|
| 188 |
+
);
|
| 189 |
+
|
| 190 |
+
::base::texture_return fuzz_texture_return = ::base::file_texture(
|
| 191 |
+
texture: felt_fuzz_texture,
|
| 192 |
+
color_scale: color(fuzz_opacity * 0.5),
|
| 193 |
+
mono_source: ::base::mono_average,
|
| 194 |
+
uvw: transformed_uvw
|
| 195 |
+
);
|
| 196 |
+
|
| 197 |
+
::base::texture_return tinted_felt_color = nvidia::core_definitions::blend_colors(
|
| 198 |
+
color_1: felt_texture_return.tint,
|
| 199 |
+
color_2: base_color,
|
| 200 |
+
mode: ::base::color_layer_multiply,
|
| 201 |
+
weight: 1.0
|
| 202 |
+
);
|
| 203 |
+
|
| 204 |
+
|
| 205 |
+
color felt_color = ::math::max(tinted_felt_color.tint, color((1.0-fill_dark_gaps) * 0.3) * base_color);
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
::base::texture_return final_color = nvidia::core_definitions::blend_colors(
|
| 209 |
+
color_1: felt_color,
|
| 210 |
+
color_2: color(1.0, 1.0, 1.0),
|
| 211 |
+
mode: ::base::color_layer_blend,
|
| 212 |
+
weight: fuzz_texture_return.mono
|
| 213 |
+
);
|
| 214 |
+
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
float3 bump = ::nvidia::core_definitions::file_bump_texture(
|
| 218 |
+
texture: felt_texture,
|
| 219 |
+
bump_source: ::base::mono_average,
|
| 220 |
+
scaling: float2 ((8.f/texture_scale.x), (8.f/ texture_scale.y)),
|
| 221 |
+
translation: texture_translate,
|
| 222 |
+
rotation: texture_rotate,
|
| 223 |
+
clip: false,
|
| 224 |
+
factor: bump_strength,
|
| 225 |
+
texture_space: uv_space_index
|
| 226 |
+
);
|
| 227 |
+
|
| 228 |
+
bsdf diffuse = ::df::diffuse_reflection_bsdf (
|
| 229 |
+
tint: final_color.tint
|
| 230 |
+
|
| 231 |
+
);
|
| 232 |
+
|
| 233 |
+
bsdf base = ::df::custom_curve_layer(
|
| 234 |
+
weight: felt_texture_return.mono * .15f,
|
| 235 |
+
normal_reflectivity: 0.08,
|
| 236 |
+
grazing_reflectivity: 1.0,
|
| 237 |
+
exponent: 5.0,
|
| 238 |
+
base: diffuse,
|
| 239 |
+
layer: ::df::simple_glossy_bsdf(
|
| 240 |
+
roughness_u: .85,
|
| 241 |
+
tint: color(1.0, 1.0, 1.0)
|
| 242 |
+
)
|
| 243 |
+
);
|
| 244 |
+
|
| 245 |
+
|
| 246 |
+
} in material (
|
| 247 |
+
surface: material_surface (
|
| 248 |
+
scattering: base
|
| 249 |
+
),
|
| 250 |
+
geometry: material_geometry(
|
| 251 |
+
normal: bump
|
| 252 |
+
)
|
| 253 |
+
);
|
| 254 |
+
|
| 255 |
+
|
| 256 |
+
|
| 257 |
+
|
| 258 |
+
// Red
|
| 259 |
+
export material Felt_Mat_Red (
|
| 260 |
+
color base_color = color(0.535642f, 0.007155f, 0.007155f)
|
| 261 |
+
[[
|
| 262 |
+
::anno::display_name("Base color"),
|
| 263 |
+
::anno::description("The base color of the material."),
|
| 264 |
+
::anno::in_group("Appearance")
|
| 265 |
+
]],
|
| 266 |
+
float fill_dark_gaps = 1.0
|
| 267 |
+
[[
|
| 268 |
+
::anno::display_name("Felt Contrast"),
|
| 269 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 270 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 271 |
+
::anno::in_group("Appearance")
|
| 272 |
+
]],
|
| 273 |
+
float fuzz_opacity = 0.15
|
| 274 |
+
[[
|
| 275 |
+
::anno::display_name("Fuzz Opacity"),
|
| 276 |
+
::anno::soft_range(0.0, 1.0),
|
| 277 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 278 |
+
::anno::in_group("Appearance")
|
| 279 |
+
]],
|
| 280 |
+
|
| 281 |
+
/* Transform */
|
| 282 |
+
|
| 283 |
+
uniform float2 texture_translate = 0.f
|
| 284 |
+
[[
|
| 285 |
+
::anno::display_name("Translate"),
|
| 286 |
+
::anno::description("Controls the position of the texture."),
|
| 287 |
+
::anno::in_group("Transform")
|
| 288 |
+
]],
|
| 289 |
+
uniform float texture_rotate = 0.f
|
| 290 |
+
[[
|
| 291 |
+
::anno::display_name("Rotate"),
|
| 292 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 293 |
+
::anno::in_group("Transform")
|
| 294 |
+
]],
|
| 295 |
+
uniform float2 texture_scale = 1.f
|
| 296 |
+
[[
|
| 297 |
+
::anno::display_name("Scale"),
|
| 298 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 299 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 300 |
+
::anno::in_group("Transform")
|
| 301 |
+
]],
|
| 302 |
+
|
| 303 |
+
/* Advanced */
|
| 304 |
+
uniform int uv_space_index = 0
|
| 305 |
+
[[
|
| 306 |
+
::anno::display_name("UV Space Index"),
|
| 307 |
+
::anno::description("UV space index."),
|
| 308 |
+
::anno::hard_range(0,3),
|
| 309 |
+
::anno::in_group("Advanced")
|
| 310 |
+
]],
|
| 311 |
+
|
| 312 |
+
uniform float bump_strength = 4.0
|
| 313 |
+
[[
|
| 314 |
+
::anno::display_name("Bump Strength"),
|
| 315 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 316 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 317 |
+
::anno::in_group("Appearance")
|
| 318 |
+
]]
|
| 319 |
+
) [[
|
| 320 |
+
::anno::display_name("Felt Red"),
|
| 321 |
+
::anno::description("Felt template material from which all the other presets are derived."),
|
| 322 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "red", "warm")),
|
| 323 |
+
::anno::author("NVIDIA vMaterials"),
|
| 324 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Red.png"),
|
| 325 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 326 |
+
]] = Felt_Plain(
|
| 327 |
+
base_color: base_color,
|
| 328 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 329 |
+
fuzz_opacity: fuzz_opacity,
|
| 330 |
+
texture_translate: texture_translate,
|
| 331 |
+
texture_rotate: texture_rotate,
|
| 332 |
+
texture_scale: texture_scale,
|
| 333 |
+
uv_space_index: uv_space_index,
|
| 334 |
+
bump_strength: bump_strength
|
| 335 |
+
);
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
// Burgundy
|
| 341 |
+
export material Felt_Mat_Burgundy (
|
| 342 |
+
color base_color = color(0.464741f, 0.014311f, 0.038473f)
|
| 343 |
+
[[
|
| 344 |
+
::anno::display_name("Base color"),
|
| 345 |
+
::anno::description("The base color of the material."),
|
| 346 |
+
::anno::in_group("Appearance")
|
| 347 |
+
]],
|
| 348 |
+
float fill_dark_gaps = 1.0
|
| 349 |
+
[[
|
| 350 |
+
::anno::display_name("Felt Contrast"),
|
| 351 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 352 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 353 |
+
::anno::in_group("Appearance")
|
| 354 |
+
]],
|
| 355 |
+
float fuzz_opacity = 0.15
|
| 356 |
+
[[
|
| 357 |
+
::anno::display_name("Fuzz Opacity"),
|
| 358 |
+
::anno::soft_range(0.0, 1.0),
|
| 359 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 360 |
+
::anno::in_group("Appearance")
|
| 361 |
+
]],
|
| 362 |
+
|
| 363 |
+
/* Transform */
|
| 364 |
+
uniform float2 texture_translate = 0.f
|
| 365 |
+
[[
|
| 366 |
+
::anno::display_name("Translate"),
|
| 367 |
+
::anno::description("Controls the position of the texture."),
|
| 368 |
+
::anno::in_group("Transform")
|
| 369 |
+
]],
|
| 370 |
+
uniform float texture_rotate = 0.f
|
| 371 |
+
[[
|
| 372 |
+
::anno::display_name("Rotate"),
|
| 373 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 374 |
+
::anno::in_group("Transform")
|
| 375 |
+
]],
|
| 376 |
+
uniform float2 texture_scale = 1.f
|
| 377 |
+
[[
|
| 378 |
+
::anno::display_name("Scale"),
|
| 379 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 380 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 381 |
+
::anno::in_group("Transform")
|
| 382 |
+
]],
|
| 383 |
+
|
| 384 |
+
/* Advanced */
|
| 385 |
+
uniform int uv_space_index = 0
|
| 386 |
+
[[
|
| 387 |
+
::anno::display_name("UV Space Index"),
|
| 388 |
+
::anno::description("UV space index."),
|
| 389 |
+
::anno::hard_range(0,3),
|
| 390 |
+
::anno::in_group("Advanced")
|
| 391 |
+
]],
|
| 392 |
+
|
| 393 |
+
uniform float bump_strength = 4.0
|
| 394 |
+
[[
|
| 395 |
+
::anno::display_name("Bump Strength"),
|
| 396 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 397 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 398 |
+
::anno::in_group("Appearance")
|
| 399 |
+
]]
|
| 400 |
+
) [[
|
| 401 |
+
::anno::display_name("Felt Burgundy"),
|
| 402 |
+
::anno::description("Felt template material from which all the other presets are derived."),
|
| 403 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "burgundy", "red", "warm")),
|
| 404 |
+
::anno::author("NVIDIA vMaterials"),
|
| 405 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Burgundy.png"),
|
| 406 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 407 |
+
]] = Felt_Plain(
|
| 408 |
+
base_color: base_color,
|
| 409 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 410 |
+
fuzz_opacity: fuzz_opacity,
|
| 411 |
+
texture_translate: texture_translate,
|
| 412 |
+
texture_rotate: texture_rotate,
|
| 413 |
+
texture_scale: texture_scale,
|
| 414 |
+
uv_space_index: uv_space_index,
|
| 415 |
+
bump_strength: bump_strength
|
| 416 |
+
);
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
// Brick
|
| 422 |
+
export material Felt_Mat_Brick (
|
| 423 |
+
color base_color = color(0.554227f, 0.061907f, 0.042987f)
|
| 424 |
+
[[
|
| 425 |
+
::anno::display_name("Base color"),
|
| 426 |
+
::anno::description("The base color of the material."),
|
| 427 |
+
::anno::in_group("Appearance")
|
| 428 |
+
]],
|
| 429 |
+
float fill_dark_gaps = 1.0
|
| 430 |
+
[[
|
| 431 |
+
::anno::display_name("Felt Contrast"),
|
| 432 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 433 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 434 |
+
::anno::in_group("Appearance")
|
| 435 |
+
]],
|
| 436 |
+
float fuzz_opacity = 0.15
|
| 437 |
+
[[
|
| 438 |
+
::anno::display_name("Fuzz Opacity"),
|
| 439 |
+
::anno::soft_range(0.0, 1.0),
|
| 440 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 441 |
+
::anno::in_group("Appearance")
|
| 442 |
+
]],
|
| 443 |
+
|
| 444 |
+
/* Transform */
|
| 445 |
+
uniform float2 texture_translate = 0.f
|
| 446 |
+
[[
|
| 447 |
+
::anno::display_name("Translate"),
|
| 448 |
+
::anno::description("Controls the position of the texture."),
|
| 449 |
+
::anno::in_group("Transform")
|
| 450 |
+
]],
|
| 451 |
+
uniform float texture_rotate = 0.f
|
| 452 |
+
[[
|
| 453 |
+
::anno::display_name("Rotate"),
|
| 454 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 455 |
+
::anno::soft_range(0.0, 360.0),
|
| 456 |
+
::anno::in_group("Transform")
|
| 457 |
+
]],
|
| 458 |
+
uniform float2 texture_scale = 1.f
|
| 459 |
+
[[
|
| 460 |
+
::anno::display_name("Scale"),
|
| 461 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 462 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 463 |
+
::anno::in_group("Transform")
|
| 464 |
+
]],
|
| 465 |
+
|
| 466 |
+
/* Advanced */
|
| 467 |
+
uniform int uv_space_index = 0
|
| 468 |
+
[[
|
| 469 |
+
::anno::display_name("UV Space Index"),
|
| 470 |
+
::anno::description("UV space index."),
|
| 471 |
+
::anno::hard_range(0,3),
|
| 472 |
+
::anno::in_group("Advanced")
|
| 473 |
+
]],
|
| 474 |
+
|
| 475 |
+
uniform float bump_strength = 4.0
|
| 476 |
+
[[
|
| 477 |
+
::anno::display_name("Bump Strength"),
|
| 478 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 479 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 480 |
+
::anno::in_group("Appearance")
|
| 481 |
+
]]
|
| 482 |
+
) [[
|
| 483 |
+
::anno::display_name("Felt Brick"),
|
| 484 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 485 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "burgundy", "red", "warm")),
|
| 486 |
+
::anno::author("NVIDIA vMaterials"),
|
| 487 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Brick.png"),
|
| 488 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 489 |
+
]] = Felt_Plain(
|
| 490 |
+
base_color: base_color,
|
| 491 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 492 |
+
fuzz_opacity: fuzz_opacity,
|
| 493 |
+
texture_translate: texture_translate,
|
| 494 |
+
texture_rotate: texture_rotate,
|
| 495 |
+
texture_scale: texture_scale,
|
| 496 |
+
uv_space_index: uv_space_index,
|
| 497 |
+
bump_strength: bump_strength
|
| 498 |
+
);
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
// Brown
|
| 502 |
+
export material Felt_Mat_Brown (
|
| 503 |
+
color base_color = color(0.250840f, 0.071761f, 0.026549f)
|
| 504 |
+
[[
|
| 505 |
+
::anno::display_name("Base color"),
|
| 506 |
+
::anno::description("The base color of the material."),
|
| 507 |
+
::anno::in_group("Appearance")
|
| 508 |
+
]],
|
| 509 |
+
float fill_dark_gaps = 1.0
|
| 510 |
+
[[
|
| 511 |
+
::anno::display_name("Felt Contrast"),
|
| 512 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 513 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 514 |
+
::anno::in_group("Appearance")
|
| 515 |
+
]],
|
| 516 |
+
float fuzz_opacity = 0.15
|
| 517 |
+
[[
|
| 518 |
+
::anno::display_name("Fuzz Opacity"),
|
| 519 |
+
::anno::soft_range(0.0, 1.0),
|
| 520 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 521 |
+
::anno::in_group("Appearance")
|
| 522 |
+
]],
|
| 523 |
+
|
| 524 |
+
/* Transform */
|
| 525 |
+
uniform float2 texture_translate = 0.f
|
| 526 |
+
[[
|
| 527 |
+
::anno::display_name("Translate"),
|
| 528 |
+
::anno::description("Controls the position of the texture."),
|
| 529 |
+
::anno::in_group("Transform")
|
| 530 |
+
]],
|
| 531 |
+
uniform float texture_rotate = 0.f
|
| 532 |
+
[[
|
| 533 |
+
::anno::display_name("Rotate"),
|
| 534 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 535 |
+
::anno::soft_range(0.0, 360.0),
|
| 536 |
+
::anno::in_group("Transform")
|
| 537 |
+
]],
|
| 538 |
+
uniform float2 texture_scale = 1.f
|
| 539 |
+
[[
|
| 540 |
+
::anno::display_name("Scale"),
|
| 541 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 542 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 543 |
+
::anno::in_group("Transform")
|
| 544 |
+
]],
|
| 545 |
+
|
| 546 |
+
/* Advanced */
|
| 547 |
+
uniform int uv_space_index = 0
|
| 548 |
+
[[
|
| 549 |
+
::anno::display_name("UV Space Index"),
|
| 550 |
+
::anno::description("UV space index."),
|
| 551 |
+
::anno::hard_range(0,3),
|
| 552 |
+
::anno::in_group("Advanced")
|
| 553 |
+
]],
|
| 554 |
+
|
| 555 |
+
uniform float bump_strength = 4.0
|
| 556 |
+
[[
|
| 557 |
+
::anno::display_name("Bump Strength"),
|
| 558 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 559 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 560 |
+
::anno::in_group("Appearance")
|
| 561 |
+
]]
|
| 562 |
+
) [[
|
| 563 |
+
::anno::display_name("Felt Brown"),
|
| 564 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 565 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "burgundy", "brown")),
|
| 566 |
+
::anno::author("NVIDIA vMaterials"),
|
| 567 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Brown.png"),
|
| 568 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 569 |
+
]] = Felt_Plain(
|
| 570 |
+
base_color: base_color,
|
| 571 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 572 |
+
fuzz_opacity: fuzz_opacity,
|
| 573 |
+
texture_translate: texture_translate,
|
| 574 |
+
texture_rotate: texture_rotate,
|
| 575 |
+
texture_scale: texture_scale,
|
| 576 |
+
uv_space_index: uv_space_index,
|
| 577 |
+
bump_strength: bump_strength
|
| 578 |
+
);
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
|
| 582 |
+
// Taupe
|
| 583 |
+
export material Felt_Mat_Taupe (
|
| 584 |
+
color base_color = color(0.197516f, 0.116576f, 0.091518)
|
| 585 |
+
[[
|
| 586 |
+
::anno::display_name("Base color"),
|
| 587 |
+
::anno::description("The base color of the material."),
|
| 588 |
+
::anno::in_group("Appearance")
|
| 589 |
+
]],
|
| 590 |
+
float fill_dark_gaps = 1.0
|
| 591 |
+
[[
|
| 592 |
+
::anno::display_name("Felt Contrast"),
|
| 593 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 594 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 595 |
+
::anno::in_group("Appearance")
|
| 596 |
+
]],
|
| 597 |
+
float fuzz_opacity = 0.15
|
| 598 |
+
[[
|
| 599 |
+
::anno::display_name("Fuzz Opacity"),
|
| 600 |
+
::anno::soft_range(0.0, 1.0),
|
| 601 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 602 |
+
::anno::in_group("Appearance")
|
| 603 |
+
]],
|
| 604 |
+
|
| 605 |
+
/* Transform */
|
| 606 |
+
uniform float2 texture_translate = 0.f
|
| 607 |
+
[[
|
| 608 |
+
::anno::display_name("Translate"),
|
| 609 |
+
::anno::description("Controls the position of the texture."),
|
| 610 |
+
::anno::in_group("Transform")
|
| 611 |
+
]],
|
| 612 |
+
uniform float texture_rotate = 0.f
|
| 613 |
+
[[
|
| 614 |
+
::anno::display_name("Rotate"),
|
| 615 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 616 |
+
::anno::soft_range(0.0, 360.0),
|
| 617 |
+
::anno::in_group("Transform")
|
| 618 |
+
]],
|
| 619 |
+
uniform float2 texture_scale = 1.f
|
| 620 |
+
[[
|
| 621 |
+
::anno::display_name("Scale"),
|
| 622 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 623 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 624 |
+
::anno::in_group("Transform")
|
| 625 |
+
]],
|
| 626 |
+
|
| 627 |
+
/* Advanced */
|
| 628 |
+
uniform int uv_space_index = 0
|
| 629 |
+
[[
|
| 630 |
+
::anno::display_name("UV Space Index"),
|
| 631 |
+
::anno::description("UV space index."),
|
| 632 |
+
::anno::hard_range(0,3),
|
| 633 |
+
::anno::in_group("Advanced")
|
| 634 |
+
]],
|
| 635 |
+
|
| 636 |
+
uniform float bump_strength = 4.0
|
| 637 |
+
[[
|
| 638 |
+
::anno::display_name("Bump Strength"),
|
| 639 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 640 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 641 |
+
::anno::in_group("Appearance")
|
| 642 |
+
]]
|
| 643 |
+
) [[
|
| 644 |
+
::anno::display_name("Felt Taupe"),
|
| 645 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 646 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "taupe", "brown")),
|
| 647 |
+
::anno::author("NVIDIA vMaterials"),
|
| 648 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Taupe.png"),
|
| 649 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 650 |
+
]] = Felt_Plain(
|
| 651 |
+
base_color: base_color,
|
| 652 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 653 |
+
fuzz_opacity: fuzz_opacity,
|
| 654 |
+
texture_translate: texture_translate,
|
| 655 |
+
texture_rotate: texture_rotate,
|
| 656 |
+
texture_scale: texture_scale,
|
| 657 |
+
uv_space_index: uv_space_index,
|
| 658 |
+
bump_strength: bump_strength
|
| 659 |
+
);
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
|
| 663 |
+
// Golden
|
| 664 |
+
export material Felt_Mat_Golden (
|
| 665 |
+
color base_color = color(0.701170f, 0.431340f, 0.091518f)
|
| 666 |
+
[[
|
| 667 |
+
::anno::display_name("Base color"),
|
| 668 |
+
::anno::description("The base color of the material."),
|
| 669 |
+
::anno::in_group("Appearance")
|
| 670 |
+
]],
|
| 671 |
+
float fill_dark_gaps = 1.0
|
| 672 |
+
[[
|
| 673 |
+
::anno::display_name("Felt Contrast"),
|
| 674 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 675 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 676 |
+
::anno::in_group("Appearance")
|
| 677 |
+
]],
|
| 678 |
+
float fuzz_opacity = 0.15
|
| 679 |
+
[[
|
| 680 |
+
::anno::display_name("Fuzz Opacity"),
|
| 681 |
+
::anno::soft_range(0.0, 1.0),
|
| 682 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 683 |
+
::anno::in_group("Appearance")
|
| 684 |
+
]],
|
| 685 |
+
|
| 686 |
+
/* Transform */
|
| 687 |
+
uniform float2 texture_translate = 0.f
|
| 688 |
+
[[
|
| 689 |
+
::anno::display_name("Translate"),
|
| 690 |
+
::anno::description("Controls the position of the texture."),
|
| 691 |
+
::anno::in_group("Transform")
|
| 692 |
+
]],
|
| 693 |
+
uniform float texture_rotate = 0.f
|
| 694 |
+
[[
|
| 695 |
+
::anno::display_name("Rotate"),
|
| 696 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 697 |
+
::anno::soft_range(0.0, 360.0),
|
| 698 |
+
::anno::in_group("Transform")
|
| 699 |
+
]],
|
| 700 |
+
uniform float2 texture_scale = 1.f
|
| 701 |
+
[[
|
| 702 |
+
::anno::display_name("Scale"),
|
| 703 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 704 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 705 |
+
::anno::in_group("Transform")
|
| 706 |
+
]],
|
| 707 |
+
|
| 708 |
+
/* Advanced */
|
| 709 |
+
uniform int uv_space_index = 0
|
| 710 |
+
[[
|
| 711 |
+
::anno::display_name("UV Space Index"),
|
| 712 |
+
::anno::description("UV space index."),
|
| 713 |
+
::anno::hard_range(0,3),
|
| 714 |
+
::anno::in_group("Advanced")
|
| 715 |
+
]],
|
| 716 |
+
|
| 717 |
+
uniform float bump_strength = 4.0
|
| 718 |
+
[[
|
| 719 |
+
::anno::display_name("Bump Strength"),
|
| 720 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 721 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 722 |
+
::anno::in_group("Appearance")
|
| 723 |
+
]]
|
| 724 |
+
) [[
|
| 725 |
+
::anno::display_name("Felt Golden"),
|
| 726 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 727 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "golden", "warm")),
|
| 728 |
+
::anno::author("NVIDIA vMaterials"),
|
| 729 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Golden.png"),
|
| 730 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 731 |
+
]] = Felt_Plain(
|
| 732 |
+
base_color: base_color,
|
| 733 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 734 |
+
fuzz_opacity: fuzz_opacity,
|
| 735 |
+
texture_translate: texture_translate,
|
| 736 |
+
texture_rotate: texture_rotate,
|
| 737 |
+
texture_scale: texture_scale,
|
| 738 |
+
uv_space_index: uv_space_index,
|
| 739 |
+
bump_strength: bump_strength
|
| 740 |
+
);
|
| 741 |
+
|
| 742 |
+
|
| 743 |
+
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
// Khaki
|
| 747 |
+
export material Felt_Mat_Khaki (
|
| 748 |
+
color base_color = color(0.487765f, 0.399293f, 0.242796f)
|
| 749 |
+
[[
|
| 750 |
+
::anno::display_name("Base color"),
|
| 751 |
+
::anno::description("The base color of the material."),
|
| 752 |
+
::anno::in_group("Appearance")
|
| 753 |
+
]],
|
| 754 |
+
float fill_dark_gaps = 1.0
|
| 755 |
+
[[
|
| 756 |
+
::anno::display_name("Felt Contrast"),
|
| 757 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 758 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 759 |
+
::anno::in_group("Appearance")
|
| 760 |
+
]],
|
| 761 |
+
float fuzz_opacity = 0.15
|
| 762 |
+
[[
|
| 763 |
+
::anno::display_name("Fuzz Opacity"),
|
| 764 |
+
::anno::soft_range(0.0, 1.0),
|
| 765 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 766 |
+
::anno::in_group("Appearance")
|
| 767 |
+
]],
|
| 768 |
+
|
| 769 |
+
/* Transform */
|
| 770 |
+
uniform float2 texture_translate = 0.f
|
| 771 |
+
[[
|
| 772 |
+
::anno::display_name("Translate"),
|
| 773 |
+
::anno::description("Controls the position of the texture."),
|
| 774 |
+
::anno::in_group("Transform")
|
| 775 |
+
]],
|
| 776 |
+
uniform float texture_rotate = 0.f
|
| 777 |
+
[[
|
| 778 |
+
::anno::display_name("Rotate"),
|
| 779 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 780 |
+
::anno::soft_range(0.0, 360.0),
|
| 781 |
+
::anno::in_group("Transform")
|
| 782 |
+
]],
|
| 783 |
+
uniform float2 texture_scale = 1.f
|
| 784 |
+
[[
|
| 785 |
+
::anno::display_name("Scale"),
|
| 786 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 787 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 788 |
+
::anno::in_group("Transform")
|
| 789 |
+
]],
|
| 790 |
+
|
| 791 |
+
/* Advanced */
|
| 792 |
+
uniform int uv_space_index = 0
|
| 793 |
+
[[
|
| 794 |
+
::anno::display_name("UV Space Index"),
|
| 795 |
+
::anno::description("UV space index."),
|
| 796 |
+
::anno::hard_range(0,3),
|
| 797 |
+
::anno::in_group("Advanced")
|
| 798 |
+
]],
|
| 799 |
+
|
| 800 |
+
uniform float bump_strength = 4.0
|
| 801 |
+
[[
|
| 802 |
+
::anno::display_name("Bump Strength"),
|
| 803 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 804 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 805 |
+
::anno::in_group("Appearance")
|
| 806 |
+
]]
|
| 807 |
+
) [[
|
| 808 |
+
::anno::display_name("Felt Khaki"),
|
| 809 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 810 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "khaki", "brown")),
|
| 811 |
+
::anno::author("NVIDIA vMaterials"),
|
| 812 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Khaki.png"),
|
| 813 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 814 |
+
]] = Felt_Plain(
|
| 815 |
+
base_color: base_color,
|
| 816 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 817 |
+
fuzz_opacity: fuzz_opacity,
|
| 818 |
+
texture_translate: texture_translate,
|
| 819 |
+
texture_rotate: texture_rotate,
|
| 820 |
+
texture_scale: texture_scale,
|
| 821 |
+
uv_space_index: uv_space_index,
|
| 822 |
+
bump_strength: bump_strength
|
| 823 |
+
);
|
| 824 |
+
|
| 825 |
+
|
| 826 |
+
|
| 827 |
+
|
| 828 |
+
|
| 829 |
+
|
| 830 |
+
|
| 831 |
+
// Steel Gray
|
| 832 |
+
export material Felt_Mat_Steelgray (
|
| 833 |
+
color base_color = color(0.271577f, 0.302125f, 0.311180f)
|
| 834 |
+
[[
|
| 835 |
+
::anno::display_name("Base color"),
|
| 836 |
+
::anno::description("The base color of the material."),
|
| 837 |
+
::anno::in_group("Appearance")
|
| 838 |
+
]],
|
| 839 |
+
float fill_dark_gaps = 1.0
|
| 840 |
+
[[
|
| 841 |
+
::anno::display_name("Felt Contrast"),
|
| 842 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 843 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 844 |
+
::anno::in_group("Appearance")
|
| 845 |
+
]],
|
| 846 |
+
float fuzz_opacity = 0.15
|
| 847 |
+
[[
|
| 848 |
+
::anno::display_name("Fuzz Opacity"),
|
| 849 |
+
::anno::soft_range(0.0, 1.0),
|
| 850 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 851 |
+
::anno::in_group("Appearance")
|
| 852 |
+
]],
|
| 853 |
+
|
| 854 |
+
/* Transform */
|
| 855 |
+
|
| 856 |
+
uniform float2 texture_translate = 0.f
|
| 857 |
+
[[
|
| 858 |
+
::anno::display_name("Translate"),
|
| 859 |
+
::anno::description("Controls the position of the texture."),
|
| 860 |
+
::anno::in_group("Transform")
|
| 861 |
+
]],
|
| 862 |
+
uniform float texture_rotate = 0.f
|
| 863 |
+
[[
|
| 864 |
+
::anno::display_name("Rotate"),
|
| 865 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 866 |
+
::anno::soft_range(0.0, 360.0),
|
| 867 |
+
::anno::in_group("Transform")
|
| 868 |
+
]],
|
| 869 |
+
uniform float2 texture_scale = 1.f
|
| 870 |
+
[[
|
| 871 |
+
::anno::display_name("Scale"),
|
| 872 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 873 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 874 |
+
::anno::in_group("Transform")
|
| 875 |
+
]],
|
| 876 |
+
|
| 877 |
+
/* Advanced */
|
| 878 |
+
uniform int uv_space_index = 0
|
| 879 |
+
[[
|
| 880 |
+
::anno::display_name("UV Space Index"),
|
| 881 |
+
::anno::description("UV space index."),
|
| 882 |
+
::anno::hard_range(0,3),
|
| 883 |
+
::anno::in_group("Advanced")
|
| 884 |
+
]],
|
| 885 |
+
|
| 886 |
+
uniform float bump_strength = 4.0
|
| 887 |
+
[[
|
| 888 |
+
::anno::display_name("Bump Strength"),
|
| 889 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 890 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 891 |
+
::anno::in_group("Appearance")
|
| 892 |
+
]]
|
| 893 |
+
) [[
|
| 894 |
+
::anno::display_name("Felt Steel Gray"),
|
| 895 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 896 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "neutral", "gray", "steel")),
|
| 897 |
+
::anno::author("NVIDIA vMaterials"),
|
| 898 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Steelgray.png"),
|
| 899 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 900 |
+
]] = Felt_Plain(
|
| 901 |
+
base_color: base_color,
|
| 902 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 903 |
+
fuzz_opacity: fuzz_opacity,
|
| 904 |
+
texture_translate: texture_translate,
|
| 905 |
+
texture_rotate: texture_rotate,
|
| 906 |
+
texture_scale: texture_scale,
|
| 907 |
+
uv_space_index: uv_space_index,
|
| 908 |
+
bump_strength: bump_strength
|
| 909 |
+
);
|
| 910 |
+
|
| 911 |
+
|
| 912 |
+
|
| 913 |
+
|
| 914 |
+
// Navy Blue
|
| 915 |
+
export material Felt_Mat_Navyblue (
|
| 916 |
+
color base_color = color(0.008373f, 0.023104f, 0.119264f)
|
| 917 |
+
[[
|
| 918 |
+
::anno::display_name("Base color"),
|
| 919 |
+
::anno::description("The base color of the material."),
|
| 920 |
+
::anno::in_group("Appearance")
|
| 921 |
+
]],
|
| 922 |
+
float fill_dark_gaps = 1.0
|
| 923 |
+
[[
|
| 924 |
+
::anno::display_name("Felt Contrast"),
|
| 925 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 926 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 927 |
+
::anno::in_group("Appearance")
|
| 928 |
+
]],
|
| 929 |
+
float fuzz_opacity = 0.15
|
| 930 |
+
[[
|
| 931 |
+
::anno::display_name("Fuzz Opacity"),
|
| 932 |
+
::anno::soft_range(0.0, 1.0),
|
| 933 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 934 |
+
::anno::in_group("Appearance")
|
| 935 |
+
]],
|
| 936 |
+
|
| 937 |
+
/* Transform */
|
| 938 |
+
uniform float2 texture_translate = 0.f
|
| 939 |
+
[[
|
| 940 |
+
::anno::display_name("Translate"),
|
| 941 |
+
::anno::description("Controls the position of the texture."),
|
| 942 |
+
::anno::in_group("Transform")
|
| 943 |
+
]],
|
| 944 |
+
uniform float texture_rotate = 0.f
|
| 945 |
+
[[
|
| 946 |
+
::anno::display_name("Rotate"),
|
| 947 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 948 |
+
::anno::soft_range(0.0, 360.0),
|
| 949 |
+
::anno::in_group("Transform")
|
| 950 |
+
]],
|
| 951 |
+
uniform float2 texture_scale = 1.f
|
| 952 |
+
[[
|
| 953 |
+
::anno::display_name("Scale"),
|
| 954 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 955 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 956 |
+
::anno::in_group("Transform")
|
| 957 |
+
]],
|
| 958 |
+
|
| 959 |
+
/* Advanced */
|
| 960 |
+
uniform int uv_space_index = 0
|
| 961 |
+
[[
|
| 962 |
+
::anno::display_name("UV Space Index"),
|
| 963 |
+
::anno::description("UV space index."),
|
| 964 |
+
::anno::hard_range(0,3),
|
| 965 |
+
::anno::in_group("Advanced")
|
| 966 |
+
]],
|
| 967 |
+
|
| 968 |
+
uniform float bump_strength = 4.0
|
| 969 |
+
[[
|
| 970 |
+
::anno::display_name("Bump Strength"),
|
| 971 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 972 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 973 |
+
::anno::in_group("Appearance")
|
| 974 |
+
]]
|
| 975 |
+
) [[
|
| 976 |
+
::anno::display_name("Felt Navy Blue"),
|
| 977 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 978 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "navy", "blue", "dark", "cool")),
|
| 979 |
+
::anno::author("NVIDIA vMaterials"),
|
| 980 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Navyblue.png"),
|
| 981 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 982 |
+
]] = Felt_Plain(
|
| 983 |
+
base_color: base_color,
|
| 984 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 985 |
+
fuzz_opacity: fuzz_opacity,
|
| 986 |
+
texture_translate: texture_translate,
|
| 987 |
+
texture_rotate: texture_rotate,
|
| 988 |
+
texture_scale: texture_scale,
|
| 989 |
+
uv_space_index: uv_space_index,
|
| 990 |
+
bump_strength: bump_strength
|
| 991 |
+
);
|
| 992 |
+
|
| 993 |
+
|
| 994 |
+
export material Felt_Mat_Charcoal (
|
| 995 |
+
color base_color = color(0.035614f, 0.039947f, 0.041452f)
|
| 996 |
+
[[
|
| 997 |
+
::anno::display_name("Base color"),
|
| 998 |
+
::anno::description("The base color of the material."),
|
| 999 |
+
::anno::in_group("Appearance")
|
| 1000 |
+
]],
|
| 1001 |
+
float fill_dark_gaps = 1.0
|
| 1002 |
+
[[
|
| 1003 |
+
::anno::display_name("Felt Contrast"),
|
| 1004 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1005 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1006 |
+
::anno::in_group("Appearance")
|
| 1007 |
+
]],
|
| 1008 |
+
float fuzz_opacity = 0.15
|
| 1009 |
+
[[
|
| 1010 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1011 |
+
::anno::soft_range(0.0, 1.0),
|
| 1012 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1013 |
+
::anno::in_group("Appearance")
|
| 1014 |
+
]],
|
| 1015 |
+
|
| 1016 |
+
/* Transform */
|
| 1017 |
+
uniform float2 texture_translate = 0.f
|
| 1018 |
+
[[
|
| 1019 |
+
::anno::display_name("Translate"),
|
| 1020 |
+
::anno::description("Controls the position of the texture."),
|
| 1021 |
+
::anno::in_group("Transform")
|
| 1022 |
+
]],
|
| 1023 |
+
uniform float texture_rotate = 0.f
|
| 1024 |
+
[[
|
| 1025 |
+
::anno::display_name("Rotate"),
|
| 1026 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1027 |
+
::anno::soft_range(0.0, 360.0),
|
| 1028 |
+
::anno::in_group("Transform")
|
| 1029 |
+
]],
|
| 1030 |
+
uniform float2 texture_scale = 1.f
|
| 1031 |
+
[[
|
| 1032 |
+
::anno::display_name("Scale"),
|
| 1033 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1034 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1035 |
+
::anno::in_group("Transform")
|
| 1036 |
+
]],
|
| 1037 |
+
|
| 1038 |
+
/* Advanced */
|
| 1039 |
+
uniform int uv_space_index = 0
|
| 1040 |
+
[[
|
| 1041 |
+
::anno::display_name("UV Space Index"),
|
| 1042 |
+
::anno::description("UV space index."),
|
| 1043 |
+
::anno::hard_range(0,3),
|
| 1044 |
+
::anno::in_group("Advanced")
|
| 1045 |
+
]],
|
| 1046 |
+
|
| 1047 |
+
uniform float bump_strength = 4.0
|
| 1048 |
+
[[
|
| 1049 |
+
::anno::display_name("Bump Strength"),
|
| 1050 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1051 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1052 |
+
::anno::in_group("Appearance")
|
| 1053 |
+
]]
|
| 1054 |
+
) [[
|
| 1055 |
+
::anno::display_name("Felt Charcoal"),
|
| 1056 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1057 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "charcoal", "dark")),
|
| 1058 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1059 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Charcoal.png"),
|
| 1060 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1061 |
+
]] = Felt_Plain(
|
| 1062 |
+
base_color: base_color,
|
| 1063 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1064 |
+
fuzz_opacity: fuzz_opacity,
|
| 1065 |
+
texture_translate: texture_translate,
|
| 1066 |
+
texture_rotate: texture_rotate,
|
| 1067 |
+
texture_scale: texture_scale,
|
| 1068 |
+
uv_space_index: uv_space_index,
|
| 1069 |
+
bump_strength: bump_strength
|
| 1070 |
+
);
|
| 1071 |
+
|
| 1072 |
+
|
| 1073 |
+
|
| 1074 |
+
|
| 1075 |
+
|
| 1076 |
+
// Euro Blue
|
| 1077 |
+
export material Felt_Mat_Euroblue (
|
| 1078 |
+
color base_color = color(0.011881f, 0.084642f, 0.632043f)
|
| 1079 |
+
[[
|
| 1080 |
+
::anno::display_name("Base color"),
|
| 1081 |
+
::anno::description("The base color of the material."),
|
| 1082 |
+
::anno::in_group("Appearance")
|
| 1083 |
+
]],
|
| 1084 |
+
float fill_dark_gaps = 1.0
|
| 1085 |
+
[[
|
| 1086 |
+
::anno::display_name("Felt Contrast"),
|
| 1087 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1088 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1089 |
+
::anno::in_group("Appearance")
|
| 1090 |
+
]],
|
| 1091 |
+
float fuzz_opacity = 0.15
|
| 1092 |
+
[[
|
| 1093 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1094 |
+
::anno::soft_range(0.0, 1.0),
|
| 1095 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1096 |
+
::anno::in_group("Appearance")
|
| 1097 |
+
]],
|
| 1098 |
+
|
| 1099 |
+
/* Transform */
|
| 1100 |
+
uniform float2 texture_translate = 0.f
|
| 1101 |
+
[[
|
| 1102 |
+
::anno::display_name("Translate"),
|
| 1103 |
+
::anno::description("Controls the position of the texture."),
|
| 1104 |
+
::anno::in_group("Transform")
|
| 1105 |
+
]],
|
| 1106 |
+
uniform float texture_rotate = 0.f
|
| 1107 |
+
[[
|
| 1108 |
+
::anno::display_name("Rotate"),
|
| 1109 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1110 |
+
::anno::soft_range(0.0, 360.0),
|
| 1111 |
+
::anno::in_group("Transform")
|
| 1112 |
+
]],
|
| 1113 |
+
uniform float2 texture_scale = 1.f
|
| 1114 |
+
[[
|
| 1115 |
+
::anno::display_name("Scale"),
|
| 1116 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1117 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1118 |
+
::anno::in_group("Transform")
|
| 1119 |
+
]],
|
| 1120 |
+
|
| 1121 |
+
/* Advanced */
|
| 1122 |
+
uniform int uv_space_index = 0
|
| 1123 |
+
[[
|
| 1124 |
+
::anno::display_name("UV Space Index"),
|
| 1125 |
+
::anno::description("UV space index."),
|
| 1126 |
+
::anno::hard_range(0,3),
|
| 1127 |
+
::anno::in_group("Advanced")
|
| 1128 |
+
]],
|
| 1129 |
+
|
| 1130 |
+
uniform float bump_strength = 4.0
|
| 1131 |
+
[[
|
| 1132 |
+
::anno::display_name("Bump Strength"),
|
| 1133 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1134 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1135 |
+
::anno::in_group("Appearance")
|
| 1136 |
+
]]
|
| 1137 |
+
) [[
|
| 1138 |
+
::anno::display_name("Felt Euro Blue"),
|
| 1139 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1140 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "euro", "union", "cool", "blue", "saturated", "intense")),
|
| 1141 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1142 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Euroblue.png"),
|
| 1143 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1144 |
+
]] = Felt_Plain(
|
| 1145 |
+
base_color: base_color,
|
| 1146 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1147 |
+
fuzz_opacity: fuzz_opacity,
|
| 1148 |
+
texture_translate: texture_translate,
|
| 1149 |
+
texture_rotate: texture_rotate,
|
| 1150 |
+
texture_scale: texture_scale,
|
| 1151 |
+
uv_space_index: uv_space_index,
|
| 1152 |
+
bump_strength: bump_strength
|
| 1153 |
+
);
|
| 1154 |
+
|
| 1155 |
+
|
| 1156 |
+
|
| 1157 |
+
|
| 1158 |
+
|
| 1159 |
+
export material Felt_Mat_Electricblue (
|
| 1160 |
+
color base_color = color(0.089194f, 0.325037f, 0.875138f)
|
| 1161 |
+
[[
|
| 1162 |
+
::anno::display_name("Base color"),
|
| 1163 |
+
::anno::description("The base color of the material."),
|
| 1164 |
+
::anno::in_group("Appearance")
|
| 1165 |
+
]],
|
| 1166 |
+
float fill_dark_gaps = 1.0
|
| 1167 |
+
[[
|
| 1168 |
+
::anno::display_name("Felt Contrast"),
|
| 1169 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1170 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1171 |
+
::anno::in_group("Appearance")
|
| 1172 |
+
]],
|
| 1173 |
+
float fuzz_opacity = 0.15
|
| 1174 |
+
[[
|
| 1175 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1176 |
+
::anno::soft_range(0.0, 1.0),
|
| 1177 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1178 |
+
::anno::in_group("Appearance")
|
| 1179 |
+
]],
|
| 1180 |
+
|
| 1181 |
+
/* Transform */
|
| 1182 |
+
uniform float2 texture_translate = 0.f
|
| 1183 |
+
[[
|
| 1184 |
+
::anno::display_name("Translate"),
|
| 1185 |
+
::anno::description("Controls the position of the texture."),
|
| 1186 |
+
::anno::in_group("Transform")
|
| 1187 |
+
]],
|
| 1188 |
+
uniform float texture_rotate = 0.f
|
| 1189 |
+
[[
|
| 1190 |
+
::anno::display_name("Rotate"),
|
| 1191 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1192 |
+
::anno::soft_range(0.0, 360.0),
|
| 1193 |
+
::anno::in_group("Transform")
|
| 1194 |
+
]],
|
| 1195 |
+
uniform float2 texture_scale = 1.f
|
| 1196 |
+
[[
|
| 1197 |
+
::anno::display_name("Scale"),
|
| 1198 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1199 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1200 |
+
::anno::in_group("Transform")
|
| 1201 |
+
]],
|
| 1202 |
+
|
| 1203 |
+
/* Advanced */
|
| 1204 |
+
uniform int uv_space_index = 0
|
| 1205 |
+
[[
|
| 1206 |
+
::anno::display_name("UV Space Index"),
|
| 1207 |
+
::anno::description("UV space index."),
|
| 1208 |
+
::anno::hard_range(0,3),
|
| 1209 |
+
::anno::in_group("Advanced")
|
| 1210 |
+
]],
|
| 1211 |
+
|
| 1212 |
+
uniform float bump_strength = 4.0
|
| 1213 |
+
[[
|
| 1214 |
+
::anno::display_name("Bump Strength"),
|
| 1215 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1216 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1217 |
+
::anno::in_group("Appearance")
|
| 1218 |
+
]]
|
| 1219 |
+
) [[
|
| 1220 |
+
::anno::display_name("Felt Electric Blue"),
|
| 1221 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1222 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "electric", "blue", "cool")),
|
| 1223 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1224 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Electricblue.png"),
|
| 1225 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1226 |
+
]] = Felt_Plain(
|
| 1227 |
+
base_color: base_color,
|
| 1228 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1229 |
+
fuzz_opacity: fuzz_opacity,
|
| 1230 |
+
texture_translate: texture_translate,
|
| 1231 |
+
texture_rotate: texture_rotate,
|
| 1232 |
+
texture_scale: texture_scale,
|
| 1233 |
+
uv_space_index: uv_space_index,
|
| 1234 |
+
bump_strength: bump_strength
|
| 1235 |
+
);
|
| 1236 |
+
|
| 1237 |
+
|
| 1238 |
+
|
| 1239 |
+
|
| 1240 |
+
|
| 1241 |
+
// Academy Blue
|
| 1242 |
+
export material Felt_Mat_Academyblue (
|
| 1243 |
+
color base_color = color(0.007155f, 0.133209f, 0.535642f)
|
| 1244 |
+
[[
|
| 1245 |
+
::anno::display_name("Base color"),
|
| 1246 |
+
::anno::description("The base color of the material."),
|
| 1247 |
+
::anno::in_group("Appearance")
|
| 1248 |
+
]],
|
| 1249 |
+
float fill_dark_gaps = 1.0
|
| 1250 |
+
[[
|
| 1251 |
+
::anno::display_name("Felt Contrast"),
|
| 1252 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1253 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1254 |
+
::anno::in_group("Appearance")
|
| 1255 |
+
]],
|
| 1256 |
+
float fuzz_opacity = 0.15
|
| 1257 |
+
[[
|
| 1258 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1259 |
+
::anno::soft_range(0.0, 1.0),
|
| 1260 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1261 |
+
::anno::in_group("Appearance")
|
| 1262 |
+
]],
|
| 1263 |
+
|
| 1264 |
+
/* Transform */
|
| 1265 |
+
uniform float2 texture_translate = 0.f
|
| 1266 |
+
[[
|
| 1267 |
+
::anno::display_name("Translate"),
|
| 1268 |
+
::anno::description("Controls the position of the texture."),
|
| 1269 |
+
::anno::in_group("Transform")
|
| 1270 |
+
]],
|
| 1271 |
+
uniform float texture_rotate = 0.f
|
| 1272 |
+
[[
|
| 1273 |
+
::anno::display_name("Rotate"),
|
| 1274 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1275 |
+
::anno::soft_range(0.0, 360.0),
|
| 1276 |
+
::anno::in_group("Transform")
|
| 1277 |
+
]],
|
| 1278 |
+
uniform float2 texture_scale = 1.f
|
| 1279 |
+
[[
|
| 1280 |
+
::anno::display_name("Scale"),
|
| 1281 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1282 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1283 |
+
::anno::in_group("Transform")
|
| 1284 |
+
]],
|
| 1285 |
+
|
| 1286 |
+
/* Advanced */
|
| 1287 |
+
uniform int uv_space_index = 0
|
| 1288 |
+
[[
|
| 1289 |
+
::anno::display_name("UV Space Index"),
|
| 1290 |
+
::anno::description("UV space index."),
|
| 1291 |
+
::anno::hard_range(0,3),
|
| 1292 |
+
::anno::in_group("Advanced")
|
| 1293 |
+
]],
|
| 1294 |
+
|
| 1295 |
+
uniform float bump_strength = 4.0
|
| 1296 |
+
[[
|
| 1297 |
+
::anno::display_name("Bump Strength"),
|
| 1298 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1299 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1300 |
+
::anno::in_group("Appearance")
|
| 1301 |
+
]]
|
| 1302 |
+
) [[
|
| 1303 |
+
::anno::display_name("Felt Academy Blue"),
|
| 1304 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1305 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "academy", "blue", "cool", "dark")),
|
| 1306 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1307 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Academyblue.png"),
|
| 1308 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1309 |
+
]] = Felt_Plain(
|
| 1310 |
+
base_color: base_color,
|
| 1311 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1312 |
+
fuzz_opacity: fuzz_opacity,
|
| 1313 |
+
texture_translate: texture_translate,
|
| 1314 |
+
texture_rotate: texture_rotate,
|
| 1315 |
+
texture_scale: texture_scale,
|
| 1316 |
+
uv_space_index: uv_space_index,
|
| 1317 |
+
bump_strength: bump_strength
|
| 1318 |
+
);
|
| 1319 |
+
|
| 1320 |
+
|
| 1321 |
+
// Black
|
| 1322 |
+
export material Felt_Mat_Black (
|
| 1323 |
+
color base_color = color(0.08f)
|
| 1324 |
+
[[
|
| 1325 |
+
::anno::display_name("Base color"),
|
| 1326 |
+
::anno::description("The base color of the material."),
|
| 1327 |
+
::anno::in_group("Appearance")
|
| 1328 |
+
]],
|
| 1329 |
+
float fill_dark_gaps = 1.0
|
| 1330 |
+
[[
|
| 1331 |
+
::anno::display_name("Felt Contrast"),
|
| 1332 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1333 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1334 |
+
::anno::in_group("Appearance")
|
| 1335 |
+
]],
|
| 1336 |
+
float fuzz_opacity = 0.15
|
| 1337 |
+
[[
|
| 1338 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1339 |
+
::anno::soft_range(0.0, 1.0),
|
| 1340 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1341 |
+
::anno::in_group("Appearance")
|
| 1342 |
+
]],
|
| 1343 |
+
|
| 1344 |
+
/* Transform */
|
| 1345 |
+
uniform float2 texture_translate = 0.f
|
| 1346 |
+
[[
|
| 1347 |
+
::anno::display_name("Translate"),
|
| 1348 |
+
::anno::description("Controls the position of the texture."),
|
| 1349 |
+
::anno::in_group("Transform")
|
| 1350 |
+
]],
|
| 1351 |
+
uniform float texture_rotate = 0.f
|
| 1352 |
+
[[
|
| 1353 |
+
::anno::display_name("Rotate"),
|
| 1354 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1355 |
+
::anno::soft_range(0.0, 360.0),
|
| 1356 |
+
::anno::in_group("Transform")
|
| 1357 |
+
]],
|
| 1358 |
+
uniform float2 texture_scale = 1.f
|
| 1359 |
+
[[
|
| 1360 |
+
::anno::display_name("Scale"),
|
| 1361 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1362 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1363 |
+
::anno::in_group("Transform")
|
| 1364 |
+
]],
|
| 1365 |
+
|
| 1366 |
+
/* Advanced */
|
| 1367 |
+
uniform int uv_space_index = 0
|
| 1368 |
+
[[
|
| 1369 |
+
::anno::display_name("UV Space Index"),
|
| 1370 |
+
::anno::description("UV space index."),
|
| 1371 |
+
::anno::hard_range(0,3),
|
| 1372 |
+
::anno::in_group("Advanced")
|
| 1373 |
+
]],
|
| 1374 |
+
|
| 1375 |
+
uniform float bump_strength = 4.0
|
| 1376 |
+
[[
|
| 1377 |
+
::anno::display_name("Bump Strength"),
|
| 1378 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1379 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1380 |
+
::anno::in_group("Appearance")
|
| 1381 |
+
]]
|
| 1382 |
+
) [[
|
| 1383 |
+
::anno::display_name("Felt Black"),
|
| 1384 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1385 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "black", "neutral", "dark")),
|
| 1386 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1387 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Black.png"),
|
| 1388 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1389 |
+
]] = Felt_Plain(
|
| 1390 |
+
base_color: base_color,
|
| 1391 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1392 |
+
fuzz_opacity: fuzz_opacity,
|
| 1393 |
+
texture_translate: texture_translate,
|
| 1394 |
+
texture_rotate: texture_rotate,
|
| 1395 |
+
texture_scale: texture_scale,
|
| 1396 |
+
uv_space_index: uv_space_index,
|
| 1397 |
+
bump_strength: bump_strength
|
| 1398 |
+
);
|
| 1399 |
+
|
| 1400 |
+
|
| 1401 |
+
// Dark Green
|
| 1402 |
+
export material Felt_Mat_Darkgreen (
|
| 1403 |
+
color base_color = color(0.004560f, 0.106156f, 0.016068f)
|
| 1404 |
+
[[
|
| 1405 |
+
::anno::display_name("Base color"),
|
| 1406 |
+
::anno::description("The base color of the material."),
|
| 1407 |
+
::anno::in_group("Appearance")
|
| 1408 |
+
]],
|
| 1409 |
+
float fill_dark_gaps = 1.0
|
| 1410 |
+
[[
|
| 1411 |
+
::anno::display_name("Felt Contrast"),
|
| 1412 |
+
::anno::description("Specifies how string the strong the occlusion in the texture shows through."),
|
| 1413 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 1414 |
+
::anno::in_group("Appearance")
|
| 1415 |
+
]],
|
| 1416 |
+
float fuzz_opacity = 0.15
|
| 1417 |
+
[[
|
| 1418 |
+
::anno::display_name("Fuzz Opacity"),
|
| 1419 |
+
::anno::soft_range(0.0, 1.0),
|
| 1420 |
+
::anno::description("The amount of fuzz visible on the felt material."),
|
| 1421 |
+
::anno::in_group("Appearance")
|
| 1422 |
+
]],
|
| 1423 |
+
|
| 1424 |
+
/* Transform */
|
| 1425 |
+
uniform float2 texture_translate = 0.f
|
| 1426 |
+
[[
|
| 1427 |
+
::anno::display_name("Translate"),
|
| 1428 |
+
::anno::description("Controls the position of the texture."),
|
| 1429 |
+
::anno::in_group("Transform")
|
| 1430 |
+
]],
|
| 1431 |
+
uniform float texture_rotate = 0.f
|
| 1432 |
+
[[
|
| 1433 |
+
::anno::display_name("Rotate"),
|
| 1434 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 1435 |
+
::anno::soft_range(0.0, 360.0),
|
| 1436 |
+
::anno::in_group("Transform")
|
| 1437 |
+
]],
|
| 1438 |
+
uniform float2 texture_scale = 1.f
|
| 1439 |
+
[[
|
| 1440 |
+
::anno::display_name("Scale"),
|
| 1441 |
+
::anno::description("Larger numbers increase the texture size."),
|
| 1442 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 1443 |
+
::anno::in_group("Transform")
|
| 1444 |
+
]],
|
| 1445 |
+
|
| 1446 |
+
/* Advanced */
|
| 1447 |
+
uniform int uv_space_index = 0
|
| 1448 |
+
[[
|
| 1449 |
+
::anno::display_name("UV Space Index"),
|
| 1450 |
+
::anno::description("UV space index."),
|
| 1451 |
+
::anno::hard_range(0,3),
|
| 1452 |
+
::anno::in_group("Advanced")
|
| 1453 |
+
]],
|
| 1454 |
+
|
| 1455 |
+
uniform float bump_strength = 4.0
|
| 1456 |
+
[[
|
| 1457 |
+
::anno::display_name("Bump Strength"),
|
| 1458 |
+
::anno::soft_range(0.0f, 5.0f),
|
| 1459 |
+
::anno::description("Controls the amount of the bump mapping effect."),
|
| 1460 |
+
::anno::in_group("Appearance")
|
| 1461 |
+
]]
|
| 1462 |
+
) [[
|
| 1463 |
+
::anno::display_name("Felt Dark Green"),
|
| 1464 |
+
::anno::description("A soft felt material that can have fuzz on top."),
|
| 1465 |
+
::anno::key_words (string[]("aec", "fabric", "felt", "fashion", "textile", "soft", "design", "fuzz", "green", "dark")),
|
| 1466 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1467 |
+
::anno::thumbnail("./.thumbs/Felt_Plain.Felt_Mat_Darkgreen.png"),
|
| 1468 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 1469 |
+
]] = Felt_Plain(
|
| 1470 |
+
base_color: base_color,
|
| 1471 |
+
fill_dark_gaps: fill_dark_gaps,
|
| 1472 |
+
fuzz_opacity: fuzz_opacity,
|
| 1473 |
+
texture_translate: texture_translate,
|
| 1474 |
+
texture_rotate: texture_rotate,
|
| 1475 |
+
texture_scale: texture_scale,
|
| 1476 |
+
uv_space_index: uv_space_index,
|
| 1477 |
+
bump_strength: bump_strength
|
| 1478 |
+
);
|
| 1479 |
+
|
| 1480 |
+
|
Assets/Material/material_0339/Wool_Melton.mdl
ADDED
|
@@ -0,0 +1,811 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.7;
|
| 37 |
+
|
| 38 |
+
import ::anno::*;
|
| 39 |
+
import ::base::*;
|
| 40 |
+
import ::df::*;
|
| 41 |
+
import ::math::*;
|
| 42 |
+
import ::state::*;
|
| 43 |
+
import ::tex::*;
|
| 44 |
+
import ::nvidia::core_definitions::dimension;
|
| 45 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 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 |
+
const string DESCRIPTION = "A wool material.";
|
| 62 |
+
|
| 63 |
+
annotation preview_scale( float f);
|
| 64 |
+
|
| 65 |
+
int lowbias32(int x)
|
| 66 |
+
{
|
| 67 |
+
x ^= x >>> 16;
|
| 68 |
+
x *= 0x7feb352d;
|
| 69 |
+
x ^= x >>> 15;
|
| 70 |
+
x *= 0x846ca68b;
|
| 71 |
+
x ^= x >>> 16;
|
| 72 |
+
return x;
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
float f_n(float n, float a, float h, float l) {
|
| 76 |
+
float k = ::math::fmod(n + h * 12.f, 12.f);
|
| 77 |
+
|
| 78 |
+
return l - a * ::math::max(-1.0f, ::math::min(::math::min(k-3.0f, 9.0f-k), 1.0f));
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
float2x2 invert_2x2(float2x2 M)
|
| 82 |
+
{
|
| 83 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 84 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 85 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
float uint2float(int x)
|
| 89 |
+
{
|
| 90 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 91 |
+
}
|
| 92 |
+
|
| 93 |
+
float2 rnd22(int2 p) {
|
| 94 |
+
float2 ret_val = float2(
|
| 95 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 96 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 97 |
+
);
|
| 98 |
+
return ret_val;
|
| 99 |
+
}
|
| 100 |
+
|
| 101 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 102 |
+
{
|
| 103 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 104 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 105 |
+
return ::math::lerp(low, high, input);
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
float3 rgb2hsl(float3 c)
|
| 109 |
+
[[
|
| 110 |
+
::anno::description("Converts a color value to HSL. The function outputs the hue to \n"
|
| 111 |
+
"lie in the range from 0.0-1.0."),
|
| 112 |
+
::anno::author("NVIDIA vMaterials")
|
| 113 |
+
]]
|
| 114 |
+
{
|
| 115 |
+
float3 hsl;
|
| 116 |
+
float cMax = ::math::max(::math::max(c.x, c.y), c.z);
|
| 117 |
+
float cMin = ::math::min(::math::min(c.x, c.y), c.z);
|
| 118 |
+
float delta = cMax - cMin;
|
| 119 |
+
|
| 120 |
+
hsl.z = (cMax + cMin) / 2.0;
|
| 121 |
+
hsl.x = ((cMax == cMin) ? 0 :
|
| 122 |
+
(cMax == c.x) ? (c.y - c.z) / delta + ((c.z > c.y) ? 6.0f : 0.0f):
|
| 123 |
+
(cMax == c.y) ? (c.z - c.x) / delta + 2.0 : (c.x - c.y) / delta + 4.0) / 6.0f;
|
| 124 |
+
hsl.y = (hsl.z == 0.0 || hsl.z == 1.0) ? 0.0 : delta / (1.0 - ::math::abs(2.0 * hsl.z - 1.0));
|
| 125 |
+
return hsl;
|
| 126 |
+
}
|
| 127 |
+
|
| 128 |
+
color hsl2rgb(float3 hsl)
|
| 129 |
+
[[
|
| 130 |
+
::anno::description("Converts a HSL value back to a color. Note that the hue is expected to \n"
|
| 131 |
+
"lie in the range from 0.0-1.0."),
|
| 132 |
+
::anno::author("NVIDIA vMaterials")
|
| 133 |
+
]]
|
| 134 |
+
{
|
| 135 |
+
float h = hsl.x, s = hsl.y, l = hsl.z;
|
| 136 |
+
float a = s * ::math::min(l, 1.0f - l);
|
| 137 |
+
return color(f_n(0.0, a, h, l),
|
| 138 |
+
f_n(8.0, a, h, l),
|
| 139 |
+
f_n(4.0, a, h, l));
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
struct vm_coordinates{
|
| 143 |
+
float2 uv;
|
| 144 |
+
float rotation;
|
| 145 |
+
int uv_space_index;
|
| 146 |
+
float4 carry;
|
| 147 |
+
};
|
| 148 |
+
|
| 149 |
+
struct vm_col_norm{
|
| 150 |
+
float3 value;
|
| 151 |
+
float3 norm;
|
| 152 |
+
};
|
| 153 |
+
|
| 154 |
+
enum vm_mono_select
|
| 155 |
+
[[
|
| 156 |
+
::anno::description("Modes for the creation of a gray-scale value from a color."),
|
| 157 |
+
::anno::hidden()
|
| 158 |
+
]]
|
| 159 |
+
{
|
| 160 |
+
mono_r = 0,
|
| 161 |
+
mono_g = 1,
|
| 162 |
+
mono_b = 2,
|
| 163 |
+
mono_a = 3,
|
| 164 |
+
mono_average = 4
|
| 165 |
+
};
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
vm_coordinates vm_coord
|
| 170 |
+
(
|
| 171 |
+
float2 translation = float2(0.0f, 0.0) [[
|
| 172 |
+
::anno::display_name("Translation"),
|
| 173 |
+
::anno::description("Translates the coordinates.")
|
| 174 |
+
]],
|
| 175 |
+
float rotation = 0.0f [[
|
| 176 |
+
::anno::display_name("Rotation"),
|
| 177 |
+
::anno::description("Rotates the coordinates in degrees.")
|
| 178 |
+
]],
|
| 179 |
+
float2 scaling = float2(1.0f, 1.0f) [[
|
| 180 |
+
::anno::display_name("Scaling"),
|
| 181 |
+
::anno::description("Scales the coordinates.")
|
| 182 |
+
]],
|
| 183 |
+
uniform int uv_space = 0 [[
|
| 184 |
+
::anno::display_name("UV Space"),
|
| 185 |
+
::anno::description("Chose the UV space.")
|
| 186 |
+
]]
|
| 187 |
+
)
|
| 188 |
+
[[
|
| 189 |
+
::anno::display_name("vm Transform"),
|
| 190 |
+
::anno::description("Generates coordinates to be used in vm_lookup functions.")
|
| 191 |
+
]]
|
| 192 |
+
{
|
| 193 |
+
vm_coordinates uv;
|
| 194 |
+
::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space);
|
| 195 |
+
uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 196 |
+
uv.uv = float2(info.position.x, info.position.y);
|
| 197 |
+
float sine = ::math::sin(uv.rotation);
|
| 198 |
+
float cosine = ::math::cos(uv.rotation);
|
| 199 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 200 |
+
uv.uv = rot * uv.uv;
|
| 201 |
+
uv.uv /= scaling;
|
| 202 |
+
uv.uv += translation;
|
| 203 |
+
// Translation before or after rotation?
|
| 204 |
+
return uv;
|
| 205 |
+
}
|
| 206 |
+
|
| 207 |
+
|
| 208 |
+
float3 vm_tex_infinite(
|
| 209 |
+
uniform texture_2d tex = texture_2d(),
|
| 210 |
+
vm_coordinates uv = vm_coord(),
|
| 211 |
+
float3 average_color = float3(0.5f, 0.5f, 1.0f),
|
| 212 |
+
float patch_size = 1.0,
|
| 213 |
+
bool gamma_correct = true,
|
| 214 |
+
float gamma = 2.2f
|
| 215 |
+
)
|
| 216 |
+
{
|
| 217 |
+
float2 uv_in = uv.uv;
|
| 218 |
+
|
| 219 |
+
float3 O = float3(0.f);
|
| 220 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 221 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 222 |
+
|
| 223 |
+
float2 U = uv_in;
|
| 224 |
+
float2 V = M * (uv.uv / patch_size); //pre-tilted hexa coordinates
|
| 225 |
+
int2 I = int2(::math::floor(V))+int2(935); // hexa-tile id
|
| 226 |
+
|
| 227 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 228 |
+
// average color work out, take the float value and calculate the apropriate
|
| 229 |
+
// mean value as (value^(1/2.2))
|
| 230 |
+
|
| 231 |
+
float3 m = average_color;
|
| 232 |
+
|
| 233 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 234 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 235 |
+
|
| 236 |
+
if( F[2] > 0.f )
|
| 237 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I))) - m)
|
| 238 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0,1)))) - m)
|
| 239 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1,0)))) - m);
|
| 240 |
+
else
|
| 241 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1)))) - m)
|
| 242 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1, 0)))) - m)
|
| 243 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0, 1)))) - m);
|
| 244 |
+
O = m + O/::math::length(W);
|
| 245 |
+
O = ::math::clamp( (O), 0.0f, 1.0f);
|
| 246 |
+
|
| 247 |
+
return gamma_correct? ::math::pow(::math::max(O, float3(0.0f)), gamma) : float3(O);
|
| 248 |
+
}
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
// Returns an infinite lookup plus a normal map lookup
|
| 253 |
+
vm_col_norm vm_tex_infinite_color_normal(
|
| 254 |
+
uniform texture_2d tex_col = texture_2d(),
|
| 255 |
+
uniform texture_2d tex_norm = texture_2d(),
|
| 256 |
+
vm_coordinates uv = vm_coord(),
|
| 257 |
+
float3 average_color = float3(0.5),
|
| 258 |
+
float3 average_norm = float3(0.5f, 0.5f, 1.0f),
|
| 259 |
+
float patch_size = 1.0,
|
| 260 |
+
// Color output settings
|
| 261 |
+
bool color_out_gamma_correct = true,
|
| 262 |
+
float color_out_gamma = 2.2f,
|
| 263 |
+
// Normal output setting
|
| 264 |
+
float normal_strength = 1.0
|
| 265 |
+
)
|
| 266 |
+
{
|
| 267 |
+
vm_col_norm ret;
|
| 268 |
+
float2 uv_in = uv.uv;
|
| 269 |
+
|
| 270 |
+
float3 O_a = float3(0.f);
|
| 271 |
+
float3 O_b = float3(0.f);
|
| 272 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 273 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 274 |
+
|
| 275 |
+
float2 U = uv_in;
|
| 276 |
+
float2 V = M * (uv.uv / patch_size); //pre-tilted hexa coordinates
|
| 277 |
+
int2 I = int2(::math::floor(V))+int2(935); // hexa-tile id
|
| 278 |
+
|
| 279 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 280 |
+
// average color work out, take the float value and calculate the apropriate
|
| 281 |
+
// mean value as (value^(1/2.2))
|
| 282 |
+
|
| 283 |
+
float3 m_a = average_color;
|
| 284 |
+
float3 m_b = average_norm;
|
| 285 |
+
|
| 286 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 287 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 288 |
+
|
| 289 |
+
if( F[2] > 0.f )
|
| 290 |
+
{
|
| 291 |
+
O_a = (W[0] = F[2]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I))) - m_a)
|
| 292 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I+int2(0,1)))) - m_a)
|
| 293 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I+int2(1,0)))) - m_a);
|
| 294 |
+
O_b = (W[0] = F[2]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I))) - m_b)
|
| 295 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I+int2(0,1)))) - m_b)
|
| 296 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I+int2(1,0)))) - m_b);
|
| 297 |
+
}
|
| 298 |
+
else
|
| 299 |
+
{
|
| 300 |
+
O_a = (W[0] = -F[2]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I+int2(1)))) - m_a)
|
| 301 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I+int2(1, 0)))) - m_a)
|
| 302 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(tex_col, U-rnd22(I+int2(0, 1)))) - m_a);
|
| 303 |
+
O_b = (W[0] = -F[2]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I+int2(1)))) - m_b)
|
| 304 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I+int2(1, 0)))) - m_b)
|
| 305 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(tex_norm, U-rnd22(I+int2(0, 1)))) - m_b);
|
| 306 |
+
}
|
| 307 |
+
|
| 308 |
+
O_a = m_a + O_a/::math::length(W);
|
| 309 |
+
O_a = ::math::clamp( (O_a), 0.0, 1.0);
|
| 310 |
+
ret.value = color_out_gamma_correct? ::math::pow(::math::max(O_a, float3(0.0f)), color_out_gamma) : float3(O_a);
|
| 311 |
+
|
| 312 |
+
O_b = m_b + O_b/::math::length(W);
|
| 313 |
+
O_b = ::math::clamp( (O_b), 0.0, 1.0);
|
| 314 |
+
|
| 315 |
+
float3 norm = (O_b - float3(.5f)) * 2.0f;
|
| 316 |
+
norm = ::math::normalize(norm * float3(normal_strength, normal_strength, 1.0));
|
| 317 |
+
// if any rotation happened prior to the lookup, compensate for it
|
| 318 |
+
norm = float3(::math::cos(uv.rotation) * norm.x - ::math::sin(uv.rotation) * norm.y,
|
| 319 |
+
::math::sin(uv.rotation) * norm.x + ::math::cos(uv.rotation) * norm.y,
|
| 320 |
+
norm.z);
|
| 321 |
+
ret.norm = norm.x * ::state::texture_tangent_u(uv.uv_space_index) +
|
| 322 |
+
norm.y * ::state::texture_tangent_v(uv.uv_space_index) +
|
| 323 |
+
norm.z * ::state::normal();
|
| 324 |
+
|
| 325 |
+
return ret;
|
| 326 |
+
}
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
export material Wool_Melton(
|
| 330 |
+
color fabric_color = color(0.637597f, 0.637597f, 0.637597f) [[
|
| 331 |
+
::anno::description("Choose the color of the fabric."),
|
| 332 |
+
::anno::display_name("Fabric Color"),
|
| 333 |
+
::anno::in_group("Appearance"),
|
| 334 |
+
::anno::ui_order(0)
|
| 335 |
+
]],
|
| 336 |
+
float roughness = 1.0f [[
|
| 337 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 338 |
+
::anno::display_name("Roughness"),
|
| 339 |
+
::anno::in_group("Appearance"),
|
| 340 |
+
::anno::hard_range(0.f, 1.f),
|
| 341 |
+
::anno::ui_order(1)
|
| 342 |
+
]],
|
| 343 |
+
float white_fibers_weight = 0.29f [[
|
| 344 |
+
::anno::description("Adds a white fuzz layer on the material which gives it a more used appearance."),
|
| 345 |
+
::anno::display_name("White Fibers Weight"),
|
| 346 |
+
::anno::in_group("Appearance"),
|
| 347 |
+
::anno::hard_range(0.f, 1.f),
|
| 348 |
+
::anno::ui_order(2)
|
| 349 |
+
]],
|
| 350 |
+
float sheen_weight = 0.38f [[
|
| 351 |
+
::anno::description("Adds a fuzzy, soft appearance around the material when viewed at grazing angles."),
|
| 352 |
+
::anno::display_name("Sheen Weight"),
|
| 353 |
+
::anno::in_group("Appearance"),
|
| 354 |
+
::anno::hard_range(0.f, 1.f),
|
| 355 |
+
::anno::ui_order(3)
|
| 356 |
+
]],
|
| 357 |
+
float bump_strength = 1.f [[
|
| 358 |
+
::anno::description("Specifies the strength of the bump."),
|
| 359 |
+
::anno::display_name("Bump Strength"),
|
| 360 |
+
::anno::in_group("Appearance"),
|
| 361 |
+
::anno::hard_range(0.f, 2.f),
|
| 362 |
+
::anno::soft_range(0.f, 1.f),
|
| 363 |
+
::anno::ui_order(4)
|
| 364 |
+
]],
|
| 365 |
+
float2 texture_translate = 0.f [[
|
| 366 |
+
::anno::description("Controls the position of the texture."),
|
| 367 |
+
::anno::display_name("Texture Translate"),
|
| 368 |
+
::anno::in_group("Transform"),
|
| 369 |
+
::anno::ui_order(5)
|
| 370 |
+
]],
|
| 371 |
+
float texture_rotate = 0.f [[
|
| 372 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 373 |
+
::anno::display_name("Texture Rotate"),
|
| 374 |
+
::anno::in_group("Transform"),
|
| 375 |
+
::anno::soft_range(0.f, 360.f),
|
| 376 |
+
::anno::ui_order(6)
|
| 377 |
+
]],
|
| 378 |
+
float2 texture_scale = 0.5f [[
|
| 379 |
+
::anno::description("Larger numbers increase the size."),
|
| 380 |
+
::anno::display_name("Texture Scale"),
|
| 381 |
+
::anno::in_group("Transform"),
|
| 382 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 383 |
+
::preview_scale(3.5f),
|
| 384 |
+
::anno::ui_order(7)
|
| 385 |
+
]],
|
| 386 |
+
uniform int uv_space_index = 0 [[
|
| 387 |
+
::anno::description("Uses selected UV space for material."),
|
| 388 |
+
::anno::display_name("UV Space Index"),
|
| 389 |
+
::anno::in_group("Transform"),
|
| 390 |
+
::anno::ui_order(8)
|
| 391 |
+
]],
|
| 392 |
+
uniform bool roundcorners_enable = false [[
|
| 393 |
+
::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."),
|
| 394 |
+
::anno::display_name("Enable Round Corners"),
|
| 395 |
+
::anno::in_group("Round Corners"),
|
| 396 |
+
::anno::ui_order(9)
|
| 397 |
+
]],
|
| 398 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 399 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 400 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 401 |
+
::anno::in_group("Round Corners"),
|
| 402 |
+
::anno::soft_range(0.f, 10.f),
|
| 403 |
+
::anno::ui_order(10)
|
| 404 |
+
]],
|
| 405 |
+
uniform bool roundcorners_across_materials = false [[
|
| 406 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 407 |
+
::anno::display_name("Across Materials"),
|
| 408 |
+
::anno::in_group("Round Corners"),
|
| 409 |
+
::anno::ui_order(11)
|
| 410 |
+
]])
|
| 411 |
+
[[
|
| 412 |
+
::anno::display_name("Wool Melton - White"),
|
| 413 |
+
::anno::description(DESCRIPTION),
|
| 414 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 415 |
+
::anno::author("NVIDIA"),
|
| 416 |
+
::anno::contributor("Rüdiger Raab"),
|
| 417 |
+
::anno::contributor("Maik Rohland"),
|
| 418 |
+
::anno::contributor("Miguel Guerrero"),
|
| 419 |
+
::anno::contributor("Vanni Brighella"),
|
| 420 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton.png"),
|
| 421 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "white", "light", "neutral"))
|
| 422 |
+
]]
|
| 423 |
+
=
|
| 424 |
+
let {
|
| 425 |
+
bool tmp0 = false;
|
| 426 |
+
float2 texture_rescale = texture_scale * 0.11f; // texture covers 11 cm, scale up so it covers 1m per default
|
| 427 |
+
|
| 428 |
+
texture_2d multi_tex = texture_2d("./wool_melton_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear);
|
| 429 |
+
texture_2d diff_fuzz_tex = texture_2d("./wool_melton_R_diff_G_fuzz.jpg", ::tex::gamma_linear);
|
| 430 |
+
texture_2d norm_tex = texture_2d("./wool_melton_norm.jpg", ::tex::gamma_linear);
|
| 431 |
+
|
| 432 |
+
material_surface tmp1(::df::custom_curve_layer(0.0599999987f, 1.f, 5.f, histogram_range(vm_tex_infinite(multi_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.444999993f, 0.662f, 0.472000003f), 1.f, false, 2.20000005f).y, 1.f, 0.459999979f), ::df::microfacet_ggx_smith_bsdf(::math::pow(histogram_range(1.f - vm_tex_infinite(multi_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.444999993f, 0.662f, 0.472000003f), 1.f, false, 2.20000005f).x, 0.98999995f, roughness * 0.300000012f + 0.709999979f), 2.f) * ::math::pow(histogram_range(1.f - vm_tex_infinite(multi_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.444999993f, 0.662f, 0.472000003f), 1.f, false, 2.20000005f).x, 0.98999995f, roughness * 0.300000012f + 0.709999979f), 2.f), ::math::pow(histogram_range(1.f - vm_tex_infinite(multi_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.444999993f, 0.662f, 0.472000003f), 1.f, false, 2.20000005f).x, 0.98999995f, roughness * 0.300000012f + 0.709999979f), 2.f) * ::math::pow(histogram_range(1.f - vm_tex_infinite(multi_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.444999993f, 0.662f, 0.472000003f), 1.f, false, 2.20000005f).x, 0.98999995f, roughness * 0.300000012f + 0.709999979f), 2.f), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(sheen_weight, ::df::sheen_bsdf(0.0700000003f, hsl2rgb(rgb2hsl(float3(fabric_color)) * float3(1.f, 0.74000001f, 1.f)), color(1.f, 1.f, 1.f), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(fabric_color, color(::math::lerp(1.f, vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).value.x, 1.f)), ::base::color_layer_overlay, 1.f, true).tint, color(1.f, 1.f, 1.f), ::base::color_layer_blend, ::math::pow(white_fibers_weight * vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).value.y, 0.629999995f), true).tint, 0.f), bsdf(), vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).norm)), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(fabric_color, color(::math::lerp(1.f, vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).value.x, 1.f)), ::base::color_layer_overlay, 1.f, true).tint, color(1.f, 1.f, 1.f), ::base::color_layer_blend, ::math::pow(white_fibers_weight * vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).value.y, 0.629999995f), true).tint, 0.f), bsdf(), vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).norm), vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).norm), vm_tex_infinite_color_normal(diff_fuzz_tex, norm_tex, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.584999979f, 0.00200000009f, 0.5f), float3(0.5f, 0.5f, 1.f), 0.159999996f, true, 2.20000005f, bump_strength).norm), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 433 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 434 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 435 |
+
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), emission_intensity: color(0.f, 0.f, 0.f));
|
| 436 |
+
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());
|
| 437 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 438 |
+
} in
|
| 439 |
+
material(
|
| 440 |
+
thin_walled: tmp0,
|
| 441 |
+
surface: tmp1,
|
| 442 |
+
backface: tmp2,
|
| 443 |
+
ior: tmp3,
|
| 444 |
+
volume: tmp4,
|
| 445 |
+
geometry: tmp5,
|
| 446 |
+
hair: tmp6);
|
| 447 |
+
|
| 448 |
+
|
| 449 |
+
// 2
|
| 450 |
+
export material Wool_Melton_Sand(*)
|
| 451 |
+
[[
|
| 452 |
+
::anno::display_name("Wool Melton - Sand"),
|
| 453 |
+
::anno::description(DESCRIPTION),
|
| 454 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 455 |
+
::anno::author("NVIDIA"),
|
| 456 |
+
::anno::contributor("Rüdiger Raab"),
|
| 457 |
+
::anno::contributor("Maik Rohland"),
|
| 458 |
+
::anno::contributor("Miguel Guerrero"),
|
| 459 |
+
::anno::contributor("Vanni Brighella"),
|
| 460 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Sand.png"),
|
| 461 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "white", "light", "warm", "sand"))
|
| 462 |
+
]] = Wool_Melton(
|
| 463 |
+
fabric_color: color(0.637597f, 0.577580f, 0.485150f),
|
| 464 |
+
roughness: 1.0f,
|
| 465 |
+
white_fibers_weight: 0.1f,
|
| 466 |
+
sheen_weight: 0.21f,
|
| 467 |
+
bump_strength: 1.0f,
|
| 468 |
+
texture_translate: 0.0f,
|
| 469 |
+
texture_rotate: 0.0f,
|
| 470 |
+
texture_scale: 1.0f,
|
| 471 |
+
uv_space_index: 0,
|
| 472 |
+
roundcorners_enable: false,
|
| 473 |
+
roundcorners_radius_mm: 1.0f,
|
| 474 |
+
roundcorners_across_materials: false
|
| 475 |
+
);
|
| 476 |
+
|
| 477 |
+
// 3
|
| 478 |
+
export material Wool_Melton_Gray(*)
|
| 479 |
+
[[
|
| 480 |
+
::anno::display_name("Wool Melton - Gray"),
|
| 481 |
+
::anno::description(DESCRIPTION),
|
| 482 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 483 |
+
::anno::author("NVIDIA"),
|
| 484 |
+
::anno::contributor("Rüdiger Raab"),
|
| 485 |
+
::anno::contributor("Maik Rohland"),
|
| 486 |
+
::anno::contributor("Miguel Guerrero"),
|
| 487 |
+
::anno::contributor("Vanni Brighella"),
|
| 488 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Gray.png"),
|
| 489 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "gray", "neutral"))
|
| 490 |
+
]] = Wool_Melton(
|
| 491 |
+
fabric_color: color(0.274677f, 0.274677f, 0.274677f),
|
| 492 |
+
roughness: 1.0f,
|
| 493 |
+
white_fibers_weight: 0.1f,
|
| 494 |
+
sheen_weight: 0.21f,
|
| 495 |
+
bump_strength: 1.0f,
|
| 496 |
+
texture_translate: 0.0f,
|
| 497 |
+
texture_rotate: 0.0f,
|
| 498 |
+
texture_scale: 1.0f,
|
| 499 |
+
uv_space_index: 0,
|
| 500 |
+
roundcorners_enable: false,
|
| 501 |
+
roundcorners_radius_mm: 1.0f,
|
| 502 |
+
roundcorners_across_materials: false
|
| 503 |
+
);
|
| 504 |
+
|
| 505 |
+
// 4
|
| 506 |
+
export material Wool_Melton_Tobacco(*)
|
| 507 |
+
[[
|
| 508 |
+
::anno::display_name("Wool Melton - Tobacco"),
|
| 509 |
+
::anno::description(DESCRIPTION),
|
| 510 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 511 |
+
::anno::author("NVIDIA"),
|
| 512 |
+
::anno::contributor("Rüdiger Raab"),
|
| 513 |
+
::anno::contributor("Maik Rohland"),
|
| 514 |
+
::anno::contributor("Miguel Guerrero"),
|
| 515 |
+
::anno::contributor("Vanni Brighella"),
|
| 516 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Tobacco.png"),
|
| 517 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "tobacco", "brown"))
|
| 518 |
+
]] = Wool_Melton(
|
| 519 |
+
fabric_color: color(0.155926f, 0.090842f, 0.038204f),
|
| 520 |
+
roughness: 1.0f,
|
| 521 |
+
white_fibers_weight: 0.1f,
|
| 522 |
+
sheen_weight: 0.21f,
|
| 523 |
+
bump_strength: 1.0f,
|
| 524 |
+
texture_translate: 0.0f,
|
| 525 |
+
texture_rotate: 0.0f,
|
| 526 |
+
texture_scale: 1.0f,
|
| 527 |
+
uv_space_index: 0,
|
| 528 |
+
roundcorners_enable: false,
|
| 529 |
+
roundcorners_radius_mm: 1.0f,
|
| 530 |
+
roundcorners_across_materials: false
|
| 531 |
+
);
|
| 532 |
+
|
| 533 |
+
// 5
|
| 534 |
+
export material Wool_Melton_Carbon(*)
|
| 535 |
+
[[
|
| 536 |
+
::anno::display_name("Wool Melton - Carbon"),
|
| 537 |
+
::anno::description(DESCRIPTION),
|
| 538 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 539 |
+
::anno::author("NVIDIA"),
|
| 540 |
+
::anno::contributor("Rüdiger Raab"),
|
| 541 |
+
::anno::contributor("Maik Rohland"),
|
| 542 |
+
::anno::contributor("Miguel Guerrero"),
|
| 543 |
+
::anno::contributor("Vanni Brighella"),
|
| 544 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Carbon.png"),
|
| 545 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "carbon", "gray", "dark", "neutral"))
|
| 546 |
+
]] = Wool_Melton(
|
| 547 |
+
fabric_color: color(0.023153f, 0.027321f, 0.031896f),
|
| 548 |
+
roughness: 1.0f,
|
| 549 |
+
white_fibers_weight: 0.1f,
|
| 550 |
+
sheen_weight: 0.21f,
|
| 551 |
+
bump_strength: 1.0f,
|
| 552 |
+
texture_translate: 0.0f,
|
| 553 |
+
texture_rotate: 0.0f,
|
| 554 |
+
texture_scale: 1.0f,
|
| 555 |
+
uv_space_index: 0,
|
| 556 |
+
roundcorners_enable: false,
|
| 557 |
+
roundcorners_radius_mm: 1.0f,
|
| 558 |
+
roundcorners_across_materials: false
|
| 559 |
+
);
|
| 560 |
+
|
| 561 |
+
// 6
|
| 562 |
+
export material Wool_Melton_Saffron(*)
|
| 563 |
+
[[
|
| 564 |
+
::anno::display_name("Wool Melton - Saffron"),
|
| 565 |
+
::anno::description(DESCRIPTION),
|
| 566 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 567 |
+
::anno::author("NVIDIA"),
|
| 568 |
+
::anno::contributor("Rüdiger Raab"),
|
| 569 |
+
::anno::contributor("Maik Rohland"),
|
| 570 |
+
::anno::contributor("Miguel Guerrero"),
|
| 571 |
+
::anno::contributor("Vanni Brighella"),
|
| 572 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Saffron.png"),
|
| 573 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "saffron", "orange", "warm"))
|
| 574 |
+
]] = Wool_Melton(
|
| 575 |
+
fabric_color: color(0.610496f, 0.262251f, 0.009134f),
|
| 576 |
+
roughness: 1.0f,
|
| 577 |
+
white_fibers_weight: 0.1f,
|
| 578 |
+
sheen_weight: 0.21f,
|
| 579 |
+
bump_strength: 1.0f,
|
| 580 |
+
texture_translate: 0.0f,
|
| 581 |
+
texture_rotate: 0.0f,
|
| 582 |
+
texture_scale: 1.0f,
|
| 583 |
+
uv_space_index: 0,
|
| 584 |
+
roundcorners_enable: false,
|
| 585 |
+
roundcorners_radius_mm: 1.0f,
|
| 586 |
+
roundcorners_across_materials: false
|
| 587 |
+
);
|
| 588 |
+
|
| 589 |
+
//7
|
| 590 |
+
export material Wool_Melton_Paprika(*)
|
| 591 |
+
[[
|
| 592 |
+
::anno::display_name("Wool Melton - Paprika"),
|
| 593 |
+
::anno::description(DESCRIPTION),
|
| 594 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 595 |
+
::anno::author("NVIDIA"),
|
| 596 |
+
::anno::contributor("Rüdiger Raab"),
|
| 597 |
+
::anno::contributor("Maik Rohland"),
|
| 598 |
+
::anno::contributor("Miguel Guerrero"),
|
| 599 |
+
::anno::contributor("Vanni Brighella"),
|
| 600 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Paprika.png"),
|
| 601 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "paprika", "orange", "red", "warm", "saturated"))
|
| 602 |
+
]] = Wool_Melton(
|
| 603 |
+
fabric_color: color(0.679542f, 0.066626f, 0.018500f),
|
| 604 |
+
roughness: 1.0f,
|
| 605 |
+
white_fibers_weight: 0.1f,
|
| 606 |
+
sheen_weight: 0.21f,
|
| 607 |
+
bump_strength: 1.0f,
|
| 608 |
+
texture_translate: 0.0f,
|
| 609 |
+
texture_rotate: 0.0f,
|
| 610 |
+
texture_scale: 1.0f,
|
| 611 |
+
uv_space_index: 0,
|
| 612 |
+
roundcorners_enable: false,
|
| 613 |
+
roundcorners_radius_mm: 1.0f,
|
| 614 |
+
roundcorners_across_materials: false
|
| 615 |
+
);
|
| 616 |
+
|
| 617 |
+
// 8
|
| 618 |
+
export material Wool_Melton_Garnet(*)
|
| 619 |
+
[[
|
| 620 |
+
::anno::display_name("Wool Melton - Garnet"),
|
| 621 |
+
::anno::description(DESCRIPTION),
|
| 622 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 623 |
+
::anno::author("NVIDIA"),
|
| 624 |
+
::anno::contributor("Rüdiger Raab"),
|
| 625 |
+
::anno::contributor("Maik Rohland"),
|
| 626 |
+
::anno::contributor("Miguel Guerrero"),
|
| 627 |
+
::anno::contributor("Vanni Brighella"),
|
| 628 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Garnet.png"),
|
| 629 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "red", "warm", "dark"))
|
| 630 |
+
]] = Wool_Melton(
|
| 631 |
+
fabric_color: color(0.215861f, 0.013702f, 0.030713f),
|
| 632 |
+
roughness: 1.0f,
|
| 633 |
+
white_fibers_weight: 0.1f,
|
| 634 |
+
sheen_weight: 0.21f,
|
| 635 |
+
bump_strength: 1.0f,
|
| 636 |
+
texture_translate: 0.0f,
|
| 637 |
+
texture_rotate: 0.0f,
|
| 638 |
+
texture_scale: 1.0f,
|
| 639 |
+
uv_space_index: 0,
|
| 640 |
+
roundcorners_enable: false,
|
| 641 |
+
roundcorners_radius_mm: 1.0f,
|
| 642 |
+
roundcorners_across_materials: false
|
| 643 |
+
);
|
| 644 |
+
|
| 645 |
+
// 9
|
| 646 |
+
export material Wool_Melton_Green_Tea(*)
|
| 647 |
+
[[
|
| 648 |
+
::anno::display_name("Wool Melton - Green Tea"),
|
| 649 |
+
::anno::description(DESCRIPTION),
|
| 650 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 651 |
+
::anno::author("NVIDIA"),
|
| 652 |
+
::anno::contributor("Rüdiger Raab"),
|
| 653 |
+
::anno::contributor("Maik Rohland"),
|
| 654 |
+
::anno::contributor("Miguel Guerrero"),
|
| 655 |
+
::anno::contributor("Vanni Brighella"),
|
| 656 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Green_Tea.png"),
|
| 657 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "green"))
|
| 658 |
+
]] = Wool_Melton(
|
| 659 |
+
fabric_color: color(0.230740f, 0.318547f, 0.030713f),
|
| 660 |
+
roughness: 1.0f,
|
| 661 |
+
white_fibers_weight: 0.1f,
|
| 662 |
+
sheen_weight: 0.21f,
|
| 663 |
+
bump_strength: 1.0f,
|
| 664 |
+
texture_translate: 0.0f,
|
| 665 |
+
texture_rotate: 0.0f,
|
| 666 |
+
texture_scale: 1.0f,
|
| 667 |
+
uv_space_index: 0,
|
| 668 |
+
roundcorners_enable: false,
|
| 669 |
+
roundcorners_radius_mm: 1.0f,
|
| 670 |
+
roundcorners_across_materials: false
|
| 671 |
+
);
|
| 672 |
+
|
| 673 |
+
// 10
|
| 674 |
+
export material Wool_Melton_Jungle(*)
|
| 675 |
+
[[
|
| 676 |
+
::anno::display_name("Wool Melton - Jungle"),
|
| 677 |
+
::anno::description(DESCRIPTION),
|
| 678 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 679 |
+
::anno::author("NVIDIA"),
|
| 680 |
+
::anno::contributor("Rüdiger Raab"),
|
| 681 |
+
::anno::contributor("Maik Rohland"),
|
| 682 |
+
::anno::contributor("Miguel Guerrero"),
|
| 683 |
+
::anno::contributor("Vanni Brighella"),
|
| 684 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Jungle.png"),
|
| 685 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "green", "dark"))
|
| 686 |
+
]] = Wool_Melton(
|
| 687 |
+
fabric_color: color(0.031896f, 0.080220f, 0.023153f),
|
| 688 |
+
roughness: 1.0f,
|
| 689 |
+
white_fibers_weight: 0.1f,
|
| 690 |
+
sheen_weight: 0.21f,
|
| 691 |
+
bump_strength: 1.0f,
|
| 692 |
+
texture_translate: 0.0f,
|
| 693 |
+
texture_rotate: 0.0f,
|
| 694 |
+
texture_scale: 1.0f,
|
| 695 |
+
uv_space_index: 0,
|
| 696 |
+
roundcorners_enable: false,
|
| 697 |
+
roundcorners_radius_mm: 1.0f,
|
| 698 |
+
roundcorners_across_materials: false
|
| 699 |
+
);
|
| 700 |
+
|
| 701 |
+
// 11
|
| 702 |
+
export material Wool_Melton_Fuchsia(*)
|
| 703 |
+
[[
|
| 704 |
+
::anno::display_name("Wool Melton - Fuchsia"),
|
| 705 |
+
::anno::description(DESCRIPTION),
|
| 706 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 707 |
+
::anno::author("NVIDIA"),
|
| 708 |
+
::anno::contributor("Rüdiger Raab"),
|
| 709 |
+
::anno::contributor("Maik Rohland"),
|
| 710 |
+
::anno::contributor("Miguel Guerrero"),
|
| 711 |
+
::anno::contributor("Vanni Brighella"),
|
| 712 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Fuchsia.png"),
|
| 713 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "fuchsia", "purple", "saturated", "magenta", "violet"))
|
| 714 |
+
]] = Wool_Melton(
|
| 715 |
+
fabric_color: color(0.386429f, 0.034340f, 0.171441f),
|
| 716 |
+
roughness: 1.0f,
|
| 717 |
+
white_fibers_weight: 0.1f,
|
| 718 |
+
sheen_weight: 0.21f,
|
| 719 |
+
bump_strength: 1.0f,
|
| 720 |
+
texture_translate: 0.0f,
|
| 721 |
+
texture_rotate: 0.0f,
|
| 722 |
+
texture_scale: 1.0f,
|
| 723 |
+
uv_space_index: 0,
|
| 724 |
+
roundcorners_enable: false,
|
| 725 |
+
roundcorners_radius_mm: 1.0f,
|
| 726 |
+
roundcorners_across_materials: false
|
| 727 |
+
);
|
| 728 |
+
|
| 729 |
+
// 12
|
| 730 |
+
export material Wool_Melton_Aubergine(*)
|
| 731 |
+
[[
|
| 732 |
+
::anno::display_name("Wool Melton - Aubergine"),
|
| 733 |
+
::anno::description(DESCRIPTION),
|
| 734 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 735 |
+
::anno::author("NVIDIA"),
|
| 736 |
+
::anno::contributor("Rüdiger Raab"),
|
| 737 |
+
::anno::contributor("Maik Rohland"),
|
| 738 |
+
::anno::contributor("Miguel Guerrero"),
|
| 739 |
+
::anno::contributor("Vanni Brighella"),
|
| 740 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Aubergine.png"),
|
| 741 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "purple", "dark", "violet"))
|
| 742 |
+
]] = Wool_Melton(
|
| 743 |
+
fabric_color: color(0.066626f, 0.019382f, 0.080220f),
|
| 744 |
+
roughness: 1.0f,
|
| 745 |
+
white_fibers_weight: 0.1f,
|
| 746 |
+
sheen_weight: 0.21f,
|
| 747 |
+
bump_strength: 1.0f,
|
| 748 |
+
texture_translate: 0.0f,
|
| 749 |
+
texture_rotate: 0.0f,
|
| 750 |
+
texture_scale: 1.0f,
|
| 751 |
+
uv_space_index: 0,
|
| 752 |
+
roundcorners_enable: false,
|
| 753 |
+
roundcorners_radius_mm: 1.0f,
|
| 754 |
+
roundcorners_across_materials: false
|
| 755 |
+
);
|
| 756 |
+
|
| 757 |
+
// 13
|
| 758 |
+
export material Wool_Melton_Morning_Glory(*)
|
| 759 |
+
[[
|
| 760 |
+
::anno::display_name("Wool Melton - Morning Glory"),
|
| 761 |
+
::anno::description(DESCRIPTION),
|
| 762 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 763 |
+
::anno::author("NVIDIA"),
|
| 764 |
+
::anno::contributor("Rüdiger Raab"),
|
| 765 |
+
::anno::contributor("Maik Rohland"),
|
| 766 |
+
::anno::contributor("Miguel Guerrero"),
|
| 767 |
+
::anno::contributor("Vanni Brighella"),
|
| 768 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Morning_Glory.png"),
|
| 769 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "blue", "cool"))
|
| 770 |
+
]] = Wool_Melton(
|
| 771 |
+
fabric_color: color(0.109462f, 0.114435f, 0.304987f),
|
| 772 |
+
roughness: 1.0f,
|
| 773 |
+
white_fibers_weight: 0.1f,
|
| 774 |
+
sheen_weight: 0.21f,
|
| 775 |
+
bump_strength: 1.0f,
|
| 776 |
+
texture_translate: 0.0f,
|
| 777 |
+
texture_rotate: 0.0f,
|
| 778 |
+
texture_scale: 1.0f,
|
| 779 |
+
uv_space_index: 0,
|
| 780 |
+
roundcorners_enable: false,
|
| 781 |
+
roundcorners_radius_mm: 1.0f,
|
| 782 |
+
roundcorners_across_materials: false
|
| 783 |
+
);
|
| 784 |
+
|
| 785 |
+
// 14
|
| 786 |
+
export material Wool_Melton_Blue_Jay(*)
|
| 787 |
+
[[
|
| 788 |
+
::anno::display_name("Wool Melton - Blue Jay"),
|
| 789 |
+
::anno::description(DESCRIPTION),
|
| 790 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 791 |
+
::anno::author("NVIDIA"),
|
| 792 |
+
::anno::contributor("Rüdiger Raab"),
|
| 793 |
+
::anno::contributor("Maik Rohland"),
|
| 794 |
+
::anno::contributor("Miguel Guerrero"),
|
| 795 |
+
::anno::contributor("Vanni Brighella"),
|
| 796 |
+
::anno::thumbnail("./.thumbs/Wool_Melton.Wool_Melton_Blue_Jay.png"),
|
| 797 |
+
::anno::key_words(string[]("fabric", "felt","wool", "melton", "clothing", "sheen", "fashion", "new", "blue", "cool"))
|
| 798 |
+
]] = Wool_Melton(
|
| 799 |
+
fabric_color: color(0.072272f, 0.184475f, 0.479320f),
|
| 800 |
+
roughness: 1.0f,
|
| 801 |
+
white_fibers_weight: 0.1f,
|
| 802 |
+
sheen_weight: 0.21f,
|
| 803 |
+
bump_strength: 1.0f,
|
| 804 |
+
texture_translate: 0.0f,
|
| 805 |
+
texture_rotate: 0.0f,
|
| 806 |
+
texture_scale: 1.0f,
|
| 807 |
+
uv_space_index: 0,
|
| 808 |
+
roundcorners_enable: false,
|
| 809 |
+
roundcorners_radius_mm: 1.0f,
|
| 810 |
+
roundcorners_across_materials: false
|
| 811 |
+
);
|
Assets/Material/material_0356/Ground_Leaves.mdl
ADDED
|
@@ -0,0 +1,1122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/*****************************************************************************
|
| 2 |
+
* Copyright 2024 NVIDIA Corporation. All rights reserved.
|
| 3 |
+
******************************************************************************
|
| 4 |
+
|
| 5 |
+
MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,
|
| 6 |
+
WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,
|
| 7 |
+
THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
| 8 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
| 9 |
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF
|
| 10 |
+
COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA
|
| 11 |
+
CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING
|
| 12 |
+
ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES,
|
| 13 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
|
| 14 |
+
THE USE OR INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN
|
| 15 |
+
THE MDL MATERIALS.
|
| 16 |
+
*/
|
| 17 |
+
mdl 1.4;
|
| 18 |
+
|
| 19 |
+
import ::anno::*;
|
| 20 |
+
import ::base::*;
|
| 21 |
+
import ::nvidia::core_definitions::*;
|
| 22 |
+
import ::tex::*;
|
| 23 |
+
import ::state::*;
|
| 24 |
+
|
| 25 |
+
const string COPYRIGHT =
|
| 26 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 27 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 28 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 29 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 30 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 31 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 32 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 33 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 34 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 35 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 36 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 37 |
+
|
| 38 |
+
export material Ground_Leaves(
|
| 39 |
+
|
| 40 |
+
/* Appearance */
|
| 41 |
+
color hue_shift = color (0.0461, 0.349, 0.263 )
|
| 42 |
+
[[
|
| 43 |
+
::anno::display_name ("Hue Shift"),
|
| 44 |
+
::anno::description("Determine the color of the leaves."),
|
| 45 |
+
::anno::in_group("Appearance")
|
| 46 |
+
]],
|
| 47 |
+
uniform float blend_undercoat = 1.0f
|
| 48 |
+
[[
|
| 49 |
+
::anno::display_name("Leaf Saturation"),
|
| 50 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 51 |
+
::anno::hard_range(0.f, 1.f),
|
| 52 |
+
::anno::in_group("Appearance")
|
| 53 |
+
]],
|
| 54 |
+
uniform float reflection_roughness = 1.0
|
| 55 |
+
[[
|
| 56 |
+
::anno::display_name("Roughness"),
|
| 57 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 58 |
+
::anno::hard_range(0.f, 1.f),
|
| 59 |
+
::anno::in_group("Appearance")
|
| 60 |
+
]],
|
| 61 |
+
uniform float bump_strength = 1.0
|
| 62 |
+
[[
|
| 63 |
+
::anno::display_name("Bump Strength"),
|
| 64 |
+
::anno::description("Specifies the strength of the bump."),
|
| 65 |
+
::anno::soft_range(0.f, 2.f),
|
| 66 |
+
::anno::in_group("Appearance")
|
| 67 |
+
]],
|
| 68 |
+
/* Transform */
|
| 69 |
+
uniform float2 texture_translate = 0.f
|
| 70 |
+
[[
|
| 71 |
+
::anno::display_name("Translate"),
|
| 72 |
+
::anno::description("Controls the position of the texture."),
|
| 73 |
+
::anno::in_group("Transform")
|
| 74 |
+
]],
|
| 75 |
+
uniform float texture_rotate = 0.f
|
| 76 |
+
[[
|
| 77 |
+
::anno::display_name("Rotate"),
|
| 78 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 79 |
+
::anno::in_group("Transform")
|
| 80 |
+
]],
|
| 81 |
+
uniform float2 texture_scale = 1.f
|
| 82 |
+
[[
|
| 83 |
+
::anno::display_name("Scale"),
|
| 84 |
+
::anno::description("Larger numbers increase the size."),
|
| 85 |
+
::anno::in_group("Transform"),
|
| 86 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 87 |
+
]],
|
| 88 |
+
/* Advanced */
|
| 89 |
+
uniform float displacement_scale = 0.1f
|
| 90 |
+
[[
|
| 91 |
+
::anno::display_name("Displacement Scale"),
|
| 92 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 93 |
+
::anno::in_group("Advanced")
|
| 94 |
+
]],
|
| 95 |
+
uniform int uv_space_index = 0
|
| 96 |
+
[[
|
| 97 |
+
::anno::display_name("UV Space Index"),
|
| 98 |
+
::anno::description("UV space index."),
|
| 99 |
+
::anno::in_group("Advanced"),
|
| 100 |
+
::anno::hard_range(0, 3)
|
| 101 |
+
]]
|
| 102 |
+
)
|
| 103 |
+
[[
|
| 104 |
+
::anno::author("NVIDIA vMaterials"),
|
| 105 |
+
::anno::display_name("Leaves - Forest Green"),
|
| 106 |
+
::anno::description("A ground material covered with leaves."),
|
| 107 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.Ground_Leaves.png"),
|
| 108 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 109 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "green"))
|
| 110 |
+
]]=
|
| 111 |
+
::nvidia::core_definitions::add_displacement(
|
| 112 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 113 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 114 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 115 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 116 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 117 |
+
mono_source: ::base::mono_average,
|
| 118 |
+
brightness: 1.f,
|
| 119 |
+
contrast: 1.f,
|
| 120 |
+
scaling: 1.f / texture_scale,
|
| 121 |
+
translation: texture_translate,
|
| 122 |
+
rotation: texture_rotate,
|
| 123 |
+
clip: false,
|
| 124 |
+
texture_space: uv_space_index,
|
| 125 |
+
invert: false).tint,
|
| 126 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 127 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 128 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 129 |
+
mono_source: ::base::mono_average,
|
| 130 |
+
brightness: 1.f,
|
| 131 |
+
contrast: 1.f,
|
| 132 |
+
scaling: 1.f / texture_scale ,
|
| 133 |
+
translation: texture_translate,
|
| 134 |
+
rotation: texture_rotate,
|
| 135 |
+
clip: false,
|
| 136 |
+
texture_space: uv_space_index,
|
| 137 |
+
invert: false).tint,
|
| 138 |
+
color_2: hue_shift,
|
| 139 |
+
mode: ::base::color_layer_overlay,
|
| 140 |
+
weight: 1.0f).tint,
|
| 141 |
+
mode: ::base::color_layer_overlay,
|
| 142 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 143 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 144 |
+
mono_source: ::base::mono_average,
|
| 145 |
+
brightness: blend_undercoat * 2.0f,
|
| 146 |
+
contrast: 1.f,
|
| 147 |
+
scaling: 1.f / texture_scale,
|
| 148 |
+
translation: texture_translate,
|
| 149 |
+
rotation: texture_rotate,
|
| 150 |
+
clip: false,
|
| 151 |
+
texture_space: uv_space_index,
|
| 152 |
+
invert: false).mono).tint,
|
| 153 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 154 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 155 |
+
mono_source: ::base::mono_average,
|
| 156 |
+
brightness: 1.f,
|
| 157 |
+
contrast: 1.f,
|
| 158 |
+
scaling: 1.f / texture_scale,
|
| 159 |
+
translation: texture_translate,
|
| 160 |
+
rotation: texture_rotate,
|
| 161 |
+
clip: false,
|
| 162 |
+
texture_space: uv_space_index,
|
| 163 |
+
invert: false).tint,
|
| 164 |
+
mode: ::base::color_layer_multiply,
|
| 165 |
+
weight: 1.0f).tint,
|
| 166 |
+
diffuse_roughness: 0.0f,
|
| 167 |
+
is_metal: false,
|
| 168 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 169 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 170 |
+
mono_source: ::base::mono_average,
|
| 171 |
+
brightness: 1.f,
|
| 172 |
+
contrast: 1.f,
|
| 173 |
+
scaling: 1.f / texture_scale,
|
| 174 |
+
translation: texture_translate,
|
| 175 |
+
rotation: texture_rotate,
|
| 176 |
+
clip: false,
|
| 177 |
+
texture_space: uv_space_index,
|
| 178 |
+
invert: false).mono,
|
| 179 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 180 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 181 |
+
mono_source: ::base::mono_average,
|
| 182 |
+
brightness: reflection_roughness,
|
| 183 |
+
contrast: 1.f,
|
| 184 |
+
scaling: 1.f / texture_scale,
|
| 185 |
+
translation: texture_translate,
|
| 186 |
+
rotation: texture_rotate,
|
| 187 |
+
clip: false,
|
| 188 |
+
texture_space: uv_space_index,
|
| 189 |
+
invert: false).mono,
|
| 190 |
+
anisotropy: 0.0f,
|
| 191 |
+
anisotropy_rotation: 0.0f,
|
| 192 |
+
transparency: 0.0f,
|
| 193 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 194 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 195 |
+
transmission_roughness: 0.0f,
|
| 196 |
+
base_thickness: 0.1f,
|
| 197 |
+
ior: 1.5f,
|
| 198 |
+
thin_walled: false,
|
| 199 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 200 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 201 |
+
factor: bump_strength,
|
| 202 |
+
scaling: 1.f / texture_scale,
|
| 203 |
+
translation: texture_translate,
|
| 204 |
+
rotation: texture_rotate,
|
| 205 |
+
clip: false,
|
| 206 |
+
texture_space: uv_space_index)),
|
| 207 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 208 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 209 |
+
mono_source: ::base::mono_average,
|
| 210 |
+
brightness: 1.0f,
|
| 211 |
+
contrast: 1.0f,
|
| 212 |
+
scaling: 1.f / texture_scale,
|
| 213 |
+
translation: texture_translate,
|
| 214 |
+
rotation: texture_rotate,
|
| 215 |
+
clip: false,
|
| 216 |
+
texture_space: uv_space_index,
|
| 217 |
+
invert: false).mono,
|
| 218 |
+
displacement_scale: displacement_scale);
|
| 219 |
+
|
| 220 |
+
|
| 221 |
+
export material ground_leaves_green(
|
| 222 |
+
|
| 223 |
+
/* Appearance */
|
| 224 |
+
color hue_shift = color (0.00604f , 1.f , 0.f )
|
| 225 |
+
[[
|
| 226 |
+
::anno::display_name ("Hue Shift"),
|
| 227 |
+
::anno::description("Determine the color of the leaves."),
|
| 228 |
+
::anno::in_group("Appearance")
|
| 229 |
+
]],
|
| 230 |
+
uniform float blend_undercoat = 0.75f
|
| 231 |
+
[[
|
| 232 |
+
::anno::display_name("Leaf Saturation"),
|
| 233 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 234 |
+
::anno::in_group("Appearance"),
|
| 235 |
+
::anno::hard_range( 0 , 1)
|
| 236 |
+
]],
|
| 237 |
+
uniform float reflection_roughness = 1.0
|
| 238 |
+
[[
|
| 239 |
+
::anno::display_name("Roughness"),
|
| 240 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 241 |
+
::anno::in_group("Appearance")
|
| 242 |
+
]],
|
| 243 |
+
uniform float bump_strength = 1.0
|
| 244 |
+
[[
|
| 245 |
+
::anno::display_name("Bump Strength"),
|
| 246 |
+
::anno::description("Specifies the strength of the bump."),
|
| 247 |
+
::anno::in_group("Appearance")
|
| 248 |
+
]],
|
| 249 |
+
/* Transform */
|
| 250 |
+
uniform float2 texture_translate = 0.f
|
| 251 |
+
[[
|
| 252 |
+
::anno::display_name("Translate"),
|
| 253 |
+
::anno::description("Controls the position of the texture."),
|
| 254 |
+
::anno::in_group("Transform")
|
| 255 |
+
]],
|
| 256 |
+
uniform float texture_rotate = 0.f
|
| 257 |
+
[[
|
| 258 |
+
::anno::display_name("Rotate"),
|
| 259 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 260 |
+
::anno::in_group("Transform")
|
| 261 |
+
]],
|
| 262 |
+
uniform float2 texture_scale = 1.f
|
| 263 |
+
[[
|
| 264 |
+
::anno::display_name("Scale"),
|
| 265 |
+
::anno::description("Larger numbers increase the size."),
|
| 266 |
+
::anno::in_group("Transform"),
|
| 267 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 268 |
+
]],
|
| 269 |
+
/* Advanced */
|
| 270 |
+
uniform float displacement_scale = 0.1f
|
| 271 |
+
[[
|
| 272 |
+
::anno::display_name("Displacement Scale"),
|
| 273 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 274 |
+
::anno::in_group("Advanced")
|
| 275 |
+
]],
|
| 276 |
+
uniform int uv_space_index = 0
|
| 277 |
+
[[
|
| 278 |
+
::anno::display_name("UV Space Index"),
|
| 279 |
+
::anno::description("UV space index."),
|
| 280 |
+
::anno::in_group("Advanced"),
|
| 281 |
+
::anno::hard_range(0, 3)
|
| 282 |
+
]]
|
| 283 |
+
)
|
| 284 |
+
[[
|
| 285 |
+
::anno::display_name("Leaves - Green"),
|
| 286 |
+
::anno::description("A ground material covered with leaves."),
|
| 287 |
+
::anno::author("NVIDIA vMaterials"),
|
| 288 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.ground_leaves_green.png"),
|
| 289 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 290 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "green"))
|
| 291 |
+
]]=
|
| 292 |
+
::nvidia::core_definitions::add_displacement(
|
| 293 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 294 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 295 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 296 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 297 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 298 |
+
mono_source: ::base::mono_average,
|
| 299 |
+
brightness: 1.f,
|
| 300 |
+
contrast: 1.f,
|
| 301 |
+
scaling: 1.f / texture_scale,
|
| 302 |
+
translation: texture_translate,
|
| 303 |
+
rotation: texture_rotate,
|
| 304 |
+
clip: false,
|
| 305 |
+
texture_space: uv_space_index,
|
| 306 |
+
invert: false).tint,
|
| 307 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 308 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 309 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 310 |
+
mono_source: ::base::mono_average,
|
| 311 |
+
brightness: 1.f,
|
| 312 |
+
contrast: 1.f,
|
| 313 |
+
scaling: 1.f / texture_scale ,
|
| 314 |
+
translation: texture_translate,
|
| 315 |
+
rotation: texture_rotate,
|
| 316 |
+
clip: false,
|
| 317 |
+
texture_space: uv_space_index,
|
| 318 |
+
invert: false).tint,
|
| 319 |
+
color_2: hue_shift,
|
| 320 |
+
mode: ::base::color_layer_overlay,
|
| 321 |
+
weight: 1.0f).tint,
|
| 322 |
+
mode: ::base::color_layer_overlay,
|
| 323 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 324 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 325 |
+
mono_source: ::base::mono_average,
|
| 326 |
+
brightness: blend_undercoat * 2.0f,
|
| 327 |
+
contrast: 1.f,
|
| 328 |
+
scaling: 1.f / texture_scale,
|
| 329 |
+
translation: texture_translate,
|
| 330 |
+
rotation: texture_rotate,
|
| 331 |
+
clip: false,
|
| 332 |
+
texture_space: uv_space_index,
|
| 333 |
+
invert: false).mono).tint,
|
| 334 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 335 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 336 |
+
mono_source: ::base::mono_average,
|
| 337 |
+
brightness: 1.f,
|
| 338 |
+
contrast: 1.f,
|
| 339 |
+
scaling: 1.f / texture_scale,
|
| 340 |
+
translation: texture_translate,
|
| 341 |
+
rotation: texture_rotate,
|
| 342 |
+
clip: false,
|
| 343 |
+
texture_space: uv_space_index,
|
| 344 |
+
invert: false).tint,
|
| 345 |
+
mode: ::base::color_layer_multiply,
|
| 346 |
+
weight: 1.0f).tint,
|
| 347 |
+
diffuse_roughness: 0.0f,
|
| 348 |
+
is_metal: false,
|
| 349 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 350 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 351 |
+
mono_source: ::base::mono_average,
|
| 352 |
+
brightness: 1.f,
|
| 353 |
+
contrast: 1.f,
|
| 354 |
+
scaling: 1.f / texture_scale,
|
| 355 |
+
translation: texture_translate,
|
| 356 |
+
rotation: texture_rotate,
|
| 357 |
+
clip: false,
|
| 358 |
+
texture_space: uv_space_index,
|
| 359 |
+
invert: false).mono,
|
| 360 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 361 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 362 |
+
mono_source: ::base::mono_average,
|
| 363 |
+
brightness: reflection_roughness,
|
| 364 |
+
contrast: 1.f,
|
| 365 |
+
scaling: 1.f / texture_scale,
|
| 366 |
+
translation: texture_translate,
|
| 367 |
+
rotation: texture_rotate,
|
| 368 |
+
clip: false,
|
| 369 |
+
texture_space: uv_space_index,
|
| 370 |
+
invert: false).mono,
|
| 371 |
+
anisotropy: 0.0f,
|
| 372 |
+
anisotropy_rotation: 0.0f,
|
| 373 |
+
transparency: 0.0f,
|
| 374 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 375 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 376 |
+
transmission_roughness: 0.0f,
|
| 377 |
+
base_thickness: 0.1f,
|
| 378 |
+
ior: 1.5f,
|
| 379 |
+
thin_walled: false,
|
| 380 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 381 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 382 |
+
factor: bump_strength,
|
| 383 |
+
scaling: 1.f / texture_scale,
|
| 384 |
+
translation: texture_translate,
|
| 385 |
+
rotation: texture_rotate,
|
| 386 |
+
clip: false,
|
| 387 |
+
texture_space: uv_space_index)),
|
| 388 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 389 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 390 |
+
mono_source: ::base::mono_average,
|
| 391 |
+
brightness: 1.0f,
|
| 392 |
+
contrast: 1.0f,
|
| 393 |
+
scaling: 1.f / texture_scale,
|
| 394 |
+
translation: texture_translate,
|
| 395 |
+
rotation: texture_rotate,
|
| 396 |
+
clip: false,
|
| 397 |
+
texture_space: uv_space_index,
|
| 398 |
+
invert: false).mono,
|
| 399 |
+
displacement_scale: displacement_scale);
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
export material ground_leaves_yellow(
|
| 403 |
+
|
| 404 |
+
/* Appearance */
|
| 405 |
+
color hue_shift = color (1.f , 0.883f , 0.0104f )
|
| 406 |
+
[[
|
| 407 |
+
::anno::display_name ("Hue Shift"),
|
| 408 |
+
::anno::description("Determine the color of the leaves."),
|
| 409 |
+
::anno::in_group("Appearance")
|
| 410 |
+
]],
|
| 411 |
+
uniform float blend_undercoat = 0.5f
|
| 412 |
+
[[
|
| 413 |
+
::anno::display_name("Leaf Saturation"),
|
| 414 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 415 |
+
::anno::in_group("Appearance"),
|
| 416 |
+
::anno::hard_range( 0 , 1)
|
| 417 |
+
]],
|
| 418 |
+
uniform float reflection_roughness = 1.0
|
| 419 |
+
[[
|
| 420 |
+
::anno::display_name("Roughness"),
|
| 421 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 422 |
+
::anno::in_group("Appearance")
|
| 423 |
+
]],
|
| 424 |
+
uniform float bump_strength = 1.0
|
| 425 |
+
[[
|
| 426 |
+
::anno::display_name("Bump Strength"),
|
| 427 |
+
::anno::description("Specifies the strength of the bump."),
|
| 428 |
+
::anno::in_group("Appearance")
|
| 429 |
+
]],
|
| 430 |
+
/* Transform */
|
| 431 |
+
uniform float2 texture_translate = 0.f
|
| 432 |
+
[[
|
| 433 |
+
::anno::display_name("Translate"),
|
| 434 |
+
::anno::description("Controls the position of the texture."),
|
| 435 |
+
::anno::in_group("Transform")
|
| 436 |
+
]],
|
| 437 |
+
uniform float texture_rotate = 0.f
|
| 438 |
+
[[
|
| 439 |
+
::anno::display_name("Rotate"),
|
| 440 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 441 |
+
::anno::in_group("Transform")
|
| 442 |
+
]],
|
| 443 |
+
uniform float2 texture_scale = 1.f
|
| 444 |
+
[[
|
| 445 |
+
::anno::display_name("Scale"),
|
| 446 |
+
::anno::description("Larger numbers increase the size."),
|
| 447 |
+
::anno::in_group("Transform"),
|
| 448 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 449 |
+
]],
|
| 450 |
+
/* Advanced */
|
| 451 |
+
uniform float displacement_scale = 0.1f
|
| 452 |
+
[[
|
| 453 |
+
::anno::display_name("Displacement Scale"),
|
| 454 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 455 |
+
::anno::in_group("Advanced")
|
| 456 |
+
]],
|
| 457 |
+
uniform int uv_space_index = 0
|
| 458 |
+
[[
|
| 459 |
+
::anno::display_name("UV Space Index"),
|
| 460 |
+
::anno::description("UV space index."),
|
| 461 |
+
::anno::in_group("Advanced"),
|
| 462 |
+
::anno::hard_range(0, 3)
|
| 463 |
+
]]
|
| 464 |
+
)
|
| 465 |
+
[[
|
| 466 |
+
::anno::author("NVIDIA vMaterials"),
|
| 467 |
+
::anno::display_name("Leaves - Forest Yellow"),
|
| 468 |
+
::anno::description("A ground material covered with leaves."),
|
| 469 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.ground_leaves_yellow.png"),
|
| 470 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 471 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "yellow"))
|
| 472 |
+
]]=
|
| 473 |
+
::nvidia::core_definitions::add_displacement(
|
| 474 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 475 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 476 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 477 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 478 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 479 |
+
mono_source: ::base::mono_average,
|
| 480 |
+
brightness: 1.f,
|
| 481 |
+
contrast: 1.f,
|
| 482 |
+
scaling: 1.f / texture_scale,
|
| 483 |
+
translation: texture_translate,
|
| 484 |
+
rotation: texture_rotate,
|
| 485 |
+
clip: false,
|
| 486 |
+
texture_space: uv_space_index,
|
| 487 |
+
invert: false).tint,
|
| 488 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 489 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 490 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 491 |
+
mono_source: ::base::mono_average,
|
| 492 |
+
brightness: 1.f,
|
| 493 |
+
contrast: 1.f,
|
| 494 |
+
scaling: 1.f / texture_scale ,
|
| 495 |
+
translation: texture_translate,
|
| 496 |
+
rotation: texture_rotate,
|
| 497 |
+
clip: false,
|
| 498 |
+
texture_space: uv_space_index,
|
| 499 |
+
invert: false).tint,
|
| 500 |
+
color_2: hue_shift,
|
| 501 |
+
mode: ::base::color_layer_overlay,
|
| 502 |
+
weight: 1.0f).tint,
|
| 503 |
+
mode: ::base::color_layer_overlay,
|
| 504 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 505 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 506 |
+
mono_source: ::base::mono_average,
|
| 507 |
+
brightness: blend_undercoat * 2.0f,
|
| 508 |
+
contrast: 1.f,
|
| 509 |
+
scaling: 1.f / texture_scale,
|
| 510 |
+
translation: texture_translate,
|
| 511 |
+
rotation: texture_rotate,
|
| 512 |
+
clip: false,
|
| 513 |
+
texture_space: uv_space_index,
|
| 514 |
+
invert: false).mono).tint,
|
| 515 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 516 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 517 |
+
mono_source: ::base::mono_average,
|
| 518 |
+
brightness: 1.f,
|
| 519 |
+
contrast: 1.f,
|
| 520 |
+
scaling: 1.f / texture_scale,
|
| 521 |
+
translation: texture_translate,
|
| 522 |
+
rotation: texture_rotate,
|
| 523 |
+
clip: false,
|
| 524 |
+
texture_space: uv_space_index,
|
| 525 |
+
invert: false).tint,
|
| 526 |
+
mode: ::base::color_layer_multiply,
|
| 527 |
+
weight: 1.0f).tint,
|
| 528 |
+
diffuse_roughness: 0.0f,
|
| 529 |
+
is_metal: false,
|
| 530 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 531 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 532 |
+
mono_source: ::base::mono_average,
|
| 533 |
+
brightness: 1.f,
|
| 534 |
+
contrast: 1.f,
|
| 535 |
+
scaling: 1.f / texture_scale,
|
| 536 |
+
translation: texture_translate,
|
| 537 |
+
rotation: texture_rotate,
|
| 538 |
+
clip: false,
|
| 539 |
+
texture_space: uv_space_index,
|
| 540 |
+
invert: false).mono,
|
| 541 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 542 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 543 |
+
mono_source: ::base::mono_average,
|
| 544 |
+
brightness: reflection_roughness,
|
| 545 |
+
contrast: 1.f,
|
| 546 |
+
scaling: 1.f / texture_scale,
|
| 547 |
+
translation: texture_translate,
|
| 548 |
+
rotation: texture_rotate,
|
| 549 |
+
clip: false,
|
| 550 |
+
texture_space: uv_space_index,
|
| 551 |
+
invert: false).mono,
|
| 552 |
+
anisotropy: 0.0f,
|
| 553 |
+
anisotropy_rotation: 0.0f,
|
| 554 |
+
transparency: 0.0f,
|
| 555 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 556 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 557 |
+
transmission_roughness: 0.0f,
|
| 558 |
+
base_thickness: 0.1f,
|
| 559 |
+
ior: 1.5f,
|
| 560 |
+
thin_walled: false,
|
| 561 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 562 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 563 |
+
factor: bump_strength,
|
| 564 |
+
scaling: 1.f / texture_scale,
|
| 565 |
+
translation: texture_translate,
|
| 566 |
+
rotation: texture_rotate,
|
| 567 |
+
clip: false,
|
| 568 |
+
texture_space: uv_space_index)),
|
| 569 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 570 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 571 |
+
mono_source: ::base::mono_average,
|
| 572 |
+
brightness: 1.0f,
|
| 573 |
+
contrast: 1.0f,
|
| 574 |
+
scaling: 1.f / texture_scale,
|
| 575 |
+
translation: texture_translate,
|
| 576 |
+
rotation: texture_rotate,
|
| 577 |
+
clip: false,
|
| 578 |
+
texture_space: uv_space_index,
|
| 579 |
+
invert: false).mono,
|
| 580 |
+
displacement_scale: displacement_scale);
|
| 581 |
+
|
| 582 |
+
|
| 583 |
+
export material ground_leaves_orange(
|
| 584 |
+
|
| 585 |
+
/* Appearance */
|
| 586 |
+
color hue_shift = color (1.f, 0.267f, 0.0385f )
|
| 587 |
+
[[
|
| 588 |
+
::anno::display_name ("Hue Shift"),
|
| 589 |
+
::anno::description("Determine the color of the leaves."),
|
| 590 |
+
::anno::in_group("Appearance")
|
| 591 |
+
]],
|
| 592 |
+
uniform float blend_undercoat = 0.75f
|
| 593 |
+
[[
|
| 594 |
+
::anno::display_name("Leaf Saturation"),
|
| 595 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 596 |
+
::anno::in_group("Appearance"),
|
| 597 |
+
::anno::hard_range( 0 , 1)
|
| 598 |
+
]],
|
| 599 |
+
uniform float reflection_roughness = 1.0
|
| 600 |
+
[[
|
| 601 |
+
::anno::display_name("Roughness"),
|
| 602 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 603 |
+
::anno::in_group("Appearance")
|
| 604 |
+
]],
|
| 605 |
+
uniform float bump_strength = 1.0
|
| 606 |
+
[[
|
| 607 |
+
::anno::display_name("Bump Strength"),
|
| 608 |
+
::anno::description("Specifies the strength of the bump."),
|
| 609 |
+
::anno::in_group("Appearance")
|
| 610 |
+
]],
|
| 611 |
+
/* Transform */
|
| 612 |
+
uniform float2 texture_translate = 0.f
|
| 613 |
+
[[
|
| 614 |
+
::anno::display_name("Translate"),
|
| 615 |
+
::anno::description("Controls the position of the texture."),
|
| 616 |
+
::anno::in_group("Transform")
|
| 617 |
+
]],
|
| 618 |
+
uniform float texture_rotate = 0.f
|
| 619 |
+
[[
|
| 620 |
+
::anno::display_name("Rotate"),
|
| 621 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 622 |
+
::anno::in_group("Transform")
|
| 623 |
+
]],
|
| 624 |
+
uniform float2 texture_scale = 1.f
|
| 625 |
+
[[
|
| 626 |
+
::anno::display_name("Scale"),
|
| 627 |
+
::anno::description("Larger numbers increase the size."),
|
| 628 |
+
::anno::in_group("Transform"),
|
| 629 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 630 |
+
]],
|
| 631 |
+
/* Advanced */
|
| 632 |
+
uniform float displacement_scale = 0.1f
|
| 633 |
+
[[
|
| 634 |
+
::anno::display_name("Displacement Scale"),
|
| 635 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 636 |
+
::anno::in_group("Advanced")
|
| 637 |
+
]],
|
| 638 |
+
uniform int uv_space_index = 0
|
| 639 |
+
[[
|
| 640 |
+
::anno::display_name("UV Space Index"),
|
| 641 |
+
::anno::description("UV space index."),
|
| 642 |
+
::anno::in_group("Advanced"),
|
| 643 |
+
::anno::hard_range(0, 3)
|
| 644 |
+
]]
|
| 645 |
+
)
|
| 646 |
+
[[
|
| 647 |
+
::anno::author("NVIDIA vMaterials"),
|
| 648 |
+
::anno::display_name("Leaves - Orange"),
|
| 649 |
+
::anno::description("A ground material covered with leaves."),
|
| 650 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.ground_leaves_orange.png"),
|
| 651 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 652 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "orange", "brown"))
|
| 653 |
+
]]=
|
| 654 |
+
::nvidia::core_definitions::add_displacement(
|
| 655 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 656 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 657 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 658 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 659 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 660 |
+
mono_source: ::base::mono_average,
|
| 661 |
+
brightness: 1.f,
|
| 662 |
+
contrast: 1.f,
|
| 663 |
+
scaling: 1.f / texture_scale,
|
| 664 |
+
translation: texture_translate,
|
| 665 |
+
rotation: texture_rotate,
|
| 666 |
+
clip: false,
|
| 667 |
+
texture_space: uv_space_index,
|
| 668 |
+
invert: false).tint,
|
| 669 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 670 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 671 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 672 |
+
mono_source: ::base::mono_average,
|
| 673 |
+
brightness: 1.f,
|
| 674 |
+
contrast: 1.f,
|
| 675 |
+
scaling: 1.f / texture_scale ,
|
| 676 |
+
translation: texture_translate,
|
| 677 |
+
rotation: texture_rotate,
|
| 678 |
+
clip: false,
|
| 679 |
+
texture_space: uv_space_index,
|
| 680 |
+
invert: false).tint,
|
| 681 |
+
color_2: hue_shift,
|
| 682 |
+
mode: ::base::color_layer_overlay,
|
| 683 |
+
weight: 1.0f).tint,
|
| 684 |
+
mode: ::base::color_layer_overlay,
|
| 685 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 686 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 687 |
+
mono_source: ::base::mono_average,
|
| 688 |
+
brightness: blend_undercoat * 2.0f,
|
| 689 |
+
contrast: 1.f,
|
| 690 |
+
scaling: 1.f / texture_scale,
|
| 691 |
+
translation: texture_translate,
|
| 692 |
+
rotation: texture_rotate,
|
| 693 |
+
clip: false,
|
| 694 |
+
texture_space: uv_space_index,
|
| 695 |
+
invert: false).mono).tint,
|
| 696 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 697 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 698 |
+
mono_source: ::base::mono_average,
|
| 699 |
+
brightness: 1.f,
|
| 700 |
+
contrast: 1.f,
|
| 701 |
+
scaling: 1.f / texture_scale,
|
| 702 |
+
translation: texture_translate,
|
| 703 |
+
rotation: texture_rotate,
|
| 704 |
+
clip: false,
|
| 705 |
+
texture_space: uv_space_index,
|
| 706 |
+
invert: false).tint,
|
| 707 |
+
mode: ::base::color_layer_multiply,
|
| 708 |
+
weight: 1.0f).tint,
|
| 709 |
+
diffuse_roughness: 0.0f,
|
| 710 |
+
is_metal: false,
|
| 711 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 712 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 713 |
+
mono_source: ::base::mono_average,
|
| 714 |
+
brightness: 1.f,
|
| 715 |
+
contrast: 1.f,
|
| 716 |
+
scaling: 1.f / texture_scale,
|
| 717 |
+
translation: texture_translate,
|
| 718 |
+
rotation: texture_rotate,
|
| 719 |
+
clip: false,
|
| 720 |
+
texture_space: uv_space_index,
|
| 721 |
+
invert: false).mono,
|
| 722 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 723 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 724 |
+
mono_source: ::base::mono_average,
|
| 725 |
+
brightness: reflection_roughness,
|
| 726 |
+
contrast: 1.f,
|
| 727 |
+
scaling: 1.f / texture_scale,
|
| 728 |
+
translation: texture_translate,
|
| 729 |
+
rotation: texture_rotate,
|
| 730 |
+
clip: false,
|
| 731 |
+
texture_space: uv_space_index,
|
| 732 |
+
invert: false).mono,
|
| 733 |
+
anisotropy: 0.0f,
|
| 734 |
+
anisotropy_rotation: 0.0f,
|
| 735 |
+
transparency: 0.0f,
|
| 736 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 737 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 738 |
+
transmission_roughness: 0.0f,
|
| 739 |
+
base_thickness: 0.1f,
|
| 740 |
+
ior: 1.5f,
|
| 741 |
+
thin_walled: false,
|
| 742 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 743 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 744 |
+
factor: bump_strength,
|
| 745 |
+
scaling: 1.f / texture_scale,
|
| 746 |
+
translation: texture_translate,
|
| 747 |
+
rotation: texture_rotate,
|
| 748 |
+
clip: false,
|
| 749 |
+
texture_space: uv_space_index)),
|
| 750 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 751 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 752 |
+
mono_source: ::base::mono_average,
|
| 753 |
+
brightness: 1.0f,
|
| 754 |
+
contrast: 1.0f,
|
| 755 |
+
scaling: 1.f / texture_scale,
|
| 756 |
+
translation: texture_translate,
|
| 757 |
+
rotation: texture_rotate,
|
| 758 |
+
clip: false,
|
| 759 |
+
texture_space: uv_space_index,
|
| 760 |
+
invert: false).mono,
|
| 761 |
+
displacement_scale: displacement_scale);
|
| 762 |
+
|
| 763 |
+
|
| 764 |
+
export material ground_leaves_red(
|
| 765 |
+
|
| 766 |
+
/* Appearance */
|
| 767 |
+
color hue_shift = color (0.459f , 0.0278f , 0.0278f)
|
| 768 |
+
[[
|
| 769 |
+
::anno::display_name ("Hue Shift"),
|
| 770 |
+
::anno::description("Determine the color of the leaves."),
|
| 771 |
+
::anno::in_group("Appearance")
|
| 772 |
+
]],
|
| 773 |
+
uniform float blend_undercoat = 1.0f
|
| 774 |
+
[[
|
| 775 |
+
::anno::display_name("Leaf Saturation"),
|
| 776 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 777 |
+
::anno::in_group("Appearance"),
|
| 778 |
+
::anno::hard_range( 0 , 1)
|
| 779 |
+
]],
|
| 780 |
+
uniform float reflection_roughness = 1.0
|
| 781 |
+
[[
|
| 782 |
+
::anno::display_name("Roughness"),
|
| 783 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 784 |
+
::anno::in_group("Appearance")
|
| 785 |
+
]],
|
| 786 |
+
uniform float bump_strength = 1.0
|
| 787 |
+
[[
|
| 788 |
+
::anno::display_name("Bump Strength"),
|
| 789 |
+
::anno::description("Specifies the strength of the bump."),
|
| 790 |
+
::anno::in_group("Appearance")
|
| 791 |
+
]],
|
| 792 |
+
/* Transform */
|
| 793 |
+
uniform float2 texture_translate = 0.f
|
| 794 |
+
[[
|
| 795 |
+
::anno::display_name("Translate"),
|
| 796 |
+
::anno::description("Controls the position of the texture."),
|
| 797 |
+
::anno::in_group("Transform")
|
| 798 |
+
]],
|
| 799 |
+
uniform float texture_rotate = 0.f
|
| 800 |
+
[[
|
| 801 |
+
::anno::display_name("Rotate"),
|
| 802 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 803 |
+
::anno::in_group("Transform")
|
| 804 |
+
]],
|
| 805 |
+
uniform float2 texture_scale = 1.f
|
| 806 |
+
[[
|
| 807 |
+
::anno::display_name("Scale"),
|
| 808 |
+
::anno::description("Larger numbers increase the size."),
|
| 809 |
+
::anno::in_group("Transform"),
|
| 810 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 811 |
+
]],
|
| 812 |
+
/* Advanced */
|
| 813 |
+
uniform float displacement_scale = 0.1f
|
| 814 |
+
[[
|
| 815 |
+
::anno::display_name("Displacement Scale"),
|
| 816 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 817 |
+
::anno::in_group("Advanced")
|
| 818 |
+
]],
|
| 819 |
+
uniform int uv_space_index = 0
|
| 820 |
+
[[
|
| 821 |
+
::anno::display_name("UV Space Index"),
|
| 822 |
+
::anno::description("UV space index."),
|
| 823 |
+
::anno::in_group("Advanced"),
|
| 824 |
+
::anno::hard_range(0, 3)
|
| 825 |
+
]]
|
| 826 |
+
)
|
| 827 |
+
[[
|
| 828 |
+
::anno::author("NVIDIA vMaterials"),
|
| 829 |
+
::anno::display_name("Leaves - Red"),
|
| 830 |
+
::anno::description("A ground material covered with leaves."),
|
| 831 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.ground_leaves_red.png"),
|
| 832 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 833 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "red", "brown"))
|
| 834 |
+
]]=
|
| 835 |
+
::nvidia::core_definitions::add_displacement(
|
| 836 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 837 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 838 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 839 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 840 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 841 |
+
mono_source: ::base::mono_average,
|
| 842 |
+
brightness: 1.f,
|
| 843 |
+
contrast: 1.f,
|
| 844 |
+
scaling: 1.f / texture_scale,
|
| 845 |
+
translation: texture_translate,
|
| 846 |
+
rotation: texture_rotate,
|
| 847 |
+
clip: false,
|
| 848 |
+
texture_space: uv_space_index,
|
| 849 |
+
invert: false).tint,
|
| 850 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 851 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 852 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 853 |
+
mono_source: ::base::mono_average,
|
| 854 |
+
brightness: 1.f,
|
| 855 |
+
contrast: 1.f,
|
| 856 |
+
scaling: 1.f / texture_scale ,
|
| 857 |
+
translation: texture_translate,
|
| 858 |
+
rotation: texture_rotate,
|
| 859 |
+
clip: false,
|
| 860 |
+
texture_space: uv_space_index,
|
| 861 |
+
invert: false).tint,
|
| 862 |
+
color_2: hue_shift,
|
| 863 |
+
mode: ::base::color_layer_overlay,
|
| 864 |
+
weight: 1.0f).tint,
|
| 865 |
+
mode: ::base::color_layer_overlay,
|
| 866 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 867 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 868 |
+
mono_source: ::base::mono_average,
|
| 869 |
+
brightness: blend_undercoat * 2.0f,
|
| 870 |
+
contrast: 1.f,
|
| 871 |
+
scaling: 1.f / texture_scale,
|
| 872 |
+
translation: texture_translate,
|
| 873 |
+
rotation: texture_rotate,
|
| 874 |
+
clip: false,
|
| 875 |
+
texture_space: uv_space_index,
|
| 876 |
+
invert: false).mono).tint,
|
| 877 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 878 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 879 |
+
mono_source: ::base::mono_average,
|
| 880 |
+
brightness: 1.f,
|
| 881 |
+
contrast: 1.f,
|
| 882 |
+
scaling: 1.f / texture_scale,
|
| 883 |
+
translation: texture_translate,
|
| 884 |
+
rotation: texture_rotate,
|
| 885 |
+
clip: false,
|
| 886 |
+
texture_space: uv_space_index,
|
| 887 |
+
invert: false).tint,
|
| 888 |
+
mode: ::base::color_layer_multiply,
|
| 889 |
+
weight: 1.0f).tint,
|
| 890 |
+
diffuse_roughness: 0.0f,
|
| 891 |
+
is_metal: false,
|
| 892 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 893 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 894 |
+
mono_source: ::base::mono_average,
|
| 895 |
+
brightness: 1.f,
|
| 896 |
+
contrast: 1.f,
|
| 897 |
+
scaling: 1.f / texture_scale,
|
| 898 |
+
translation: texture_translate,
|
| 899 |
+
rotation: texture_rotate,
|
| 900 |
+
clip: false,
|
| 901 |
+
texture_space: uv_space_index,
|
| 902 |
+
invert: false).mono,
|
| 903 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 904 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 905 |
+
mono_source: ::base::mono_average,
|
| 906 |
+
brightness: reflection_roughness,
|
| 907 |
+
contrast: 1.f,
|
| 908 |
+
scaling: 1.f / texture_scale,
|
| 909 |
+
translation: texture_translate,
|
| 910 |
+
rotation: texture_rotate,
|
| 911 |
+
clip: false,
|
| 912 |
+
texture_space: uv_space_index,
|
| 913 |
+
invert: false).mono,
|
| 914 |
+
anisotropy: 0.0f,
|
| 915 |
+
anisotropy_rotation: 0.0f,
|
| 916 |
+
transparency: 0.0f,
|
| 917 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 918 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 919 |
+
transmission_roughness: 0.0f,
|
| 920 |
+
base_thickness: 0.1f,
|
| 921 |
+
ior: 1.5f,
|
| 922 |
+
thin_walled: false,
|
| 923 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 924 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 925 |
+
factor: bump_strength,
|
| 926 |
+
scaling: 1.f / texture_scale,
|
| 927 |
+
translation: texture_translate,
|
| 928 |
+
rotation: texture_rotate,
|
| 929 |
+
clip: false,
|
| 930 |
+
texture_space: uv_space_index)),
|
| 931 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 932 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 933 |
+
mono_source: ::base::mono_average,
|
| 934 |
+
brightness: 1.0f,
|
| 935 |
+
contrast: 1.0f,
|
| 936 |
+
scaling: 1.f / texture_scale,
|
| 937 |
+
translation: texture_translate,
|
| 938 |
+
rotation: texture_rotate,
|
| 939 |
+
clip: false,
|
| 940 |
+
texture_space: uv_space_index,
|
| 941 |
+
invert: false).mono,
|
| 942 |
+
displacement_scale: displacement_scale);
|
| 943 |
+
|
| 944 |
+
export material ground_leaves_blue(
|
| 945 |
+
|
| 946 |
+
/* Appearance */
|
| 947 |
+
color hue_shift = color (0.0104f, 0.136f, 0.828f)
|
| 948 |
+
[[
|
| 949 |
+
::anno::display_name ("Hue Shift"),
|
| 950 |
+
::anno::description("Determine the color of the leaves."),
|
| 951 |
+
::anno::in_group("Appearance")
|
| 952 |
+
]],
|
| 953 |
+
uniform float blend_undercoat = 1.0f
|
| 954 |
+
[[
|
| 955 |
+
::anno::display_name("Leaf Saturation"),
|
| 956 |
+
::anno::description("Makes the Hue Shift more saturated."),
|
| 957 |
+
::anno::in_group("Appearance"),
|
| 958 |
+
::anno::hard_range( 0 , 1)
|
| 959 |
+
]],
|
| 960 |
+
uniform float reflection_roughness = 1.0
|
| 961 |
+
[[
|
| 962 |
+
::anno::display_name("Roughness"),
|
| 963 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 964 |
+
::anno::in_group("Appearance")
|
| 965 |
+
]],
|
| 966 |
+
uniform float bump_strength = 1.0
|
| 967 |
+
[[
|
| 968 |
+
::anno::display_name("Bump Strength"),
|
| 969 |
+
::anno::description("Specifies the strength of the bump."),
|
| 970 |
+
::anno::in_group("Appearance")
|
| 971 |
+
]],
|
| 972 |
+
/* Transform */
|
| 973 |
+
uniform float2 texture_translate = 0.f
|
| 974 |
+
[[
|
| 975 |
+
::anno::display_name("Translate"),
|
| 976 |
+
::anno::description("Controls the position of the texture."),
|
| 977 |
+
::anno::in_group("Transform")
|
| 978 |
+
]],
|
| 979 |
+
uniform float texture_rotate = 0.f
|
| 980 |
+
[[
|
| 981 |
+
::anno::display_name("Rotate"),
|
| 982 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 983 |
+
::anno::in_group("Transform")
|
| 984 |
+
]],
|
| 985 |
+
uniform float2 texture_scale = 1.f
|
| 986 |
+
[[
|
| 987 |
+
::anno::display_name("Scale"),
|
| 988 |
+
::anno::description("Larger numbers increase the size."),
|
| 989 |
+
::anno::in_group("Transform"),
|
| 990 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f))
|
| 991 |
+
]],
|
| 992 |
+
/* Advanced */
|
| 993 |
+
uniform float displacement_scale = 0.1f
|
| 994 |
+
[[
|
| 995 |
+
::anno::display_name("Displacement Scale"),
|
| 996 |
+
::anno::description("Determine the amount of displacement. A displacement value of 0 turns off displacement."),
|
| 997 |
+
::anno::in_group("Advanced")
|
| 998 |
+
]],
|
| 999 |
+
uniform int uv_space_index = 0
|
| 1000 |
+
[[
|
| 1001 |
+
::anno::display_name("UV Space Index"),
|
| 1002 |
+
::anno::description("UV space index."),
|
| 1003 |
+
::anno::in_group("Advanced"),
|
| 1004 |
+
::anno::hard_range(0, 3)
|
| 1005 |
+
]]
|
| 1006 |
+
)
|
| 1007 |
+
[[
|
| 1008 |
+
::anno::display_name("Leaves - Blue"),
|
| 1009 |
+
::anno::description("A ground material covered with leaves."),
|
| 1010 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1011 |
+
::anno::thumbnail("./.thumbs/Ground_Leaves.ground_leaves_blue.png"),
|
| 1012 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1013 |
+
::anno::key_words(string[]("aec", "ground", "leaves", "nature", "multicolor", "soil", "foliage", "organic", "natural", "forest", "blue", "brown"))
|
| 1014 |
+
]]=
|
| 1015 |
+
::nvidia::core_definitions::add_displacement(
|
| 1016 |
+
base: ::nvidia::core_definitions::flex_material_v2(
|
| 1017 |
+
base_color: ::nvidia::core_definitions::blend_colors(
|
| 1018 |
+
color_1: ::nvidia::core_definitions::blend_colors(
|
| 1019 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 1020 |
+
texture: texture_2d("./leaves_diff.jpg" , ::tex::gamma_srgb),
|
| 1021 |
+
mono_source: ::base::mono_average,
|
| 1022 |
+
brightness: 1.f,
|
| 1023 |
+
contrast: 1.f,
|
| 1024 |
+
scaling: 1.f / texture_scale,
|
| 1025 |
+
translation: texture_translate,
|
| 1026 |
+
rotation: texture_rotate,
|
| 1027 |
+
clip: false,
|
| 1028 |
+
texture_space: uv_space_index,
|
| 1029 |
+
invert: false).tint,
|
| 1030 |
+
color_2: ::nvidia::core_definitions::blend_colors(
|
| 1031 |
+
color_1: ::nvidia::core_definitions::file_texture(
|
| 1032 |
+
texture: texture_2d ( "./leaves_grayscale_diff.png" , ::tex::gamma_srgb),
|
| 1033 |
+
mono_source: ::base::mono_average,
|
| 1034 |
+
brightness: 1.f,
|
| 1035 |
+
contrast: 1.f,
|
| 1036 |
+
scaling: 1.f / texture_scale ,
|
| 1037 |
+
translation: texture_translate,
|
| 1038 |
+
rotation: texture_rotate,
|
| 1039 |
+
clip: false,
|
| 1040 |
+
texture_space: uv_space_index,
|
| 1041 |
+
invert: false).tint,
|
| 1042 |
+
color_2: hue_shift,
|
| 1043 |
+
mode: ::base::color_layer_overlay,
|
| 1044 |
+
weight: 1.0f).tint,
|
| 1045 |
+
mode: ::base::color_layer_overlay,
|
| 1046 |
+
weight: ::nvidia::core_definitions::file_texture(
|
| 1047 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 1048 |
+
mono_source: ::base::mono_average,
|
| 1049 |
+
brightness: blend_undercoat * 2.0f,
|
| 1050 |
+
contrast: 1.f,
|
| 1051 |
+
scaling: 1.f / texture_scale,
|
| 1052 |
+
translation: texture_translate,
|
| 1053 |
+
rotation: texture_rotate,
|
| 1054 |
+
clip: false,
|
| 1055 |
+
texture_space: uv_space_index,
|
| 1056 |
+
invert: false).mono).tint,
|
| 1057 |
+
color_2: ::nvidia::core_definitions::file_texture(
|
| 1058 |
+
texture: texture_2d("./leaves_ao.png" , ::tex::gamma_srgb),
|
| 1059 |
+
mono_source: ::base::mono_average,
|
| 1060 |
+
brightness: 1.f,
|
| 1061 |
+
contrast: 1.f,
|
| 1062 |
+
scaling: 1.f / texture_scale,
|
| 1063 |
+
translation: texture_translate,
|
| 1064 |
+
rotation: texture_rotate,
|
| 1065 |
+
clip: false,
|
| 1066 |
+
texture_space: uv_space_index,
|
| 1067 |
+
invert: false).tint,
|
| 1068 |
+
mode: ::base::color_layer_multiply,
|
| 1069 |
+
weight: 1.0f).tint,
|
| 1070 |
+
diffuse_roughness: 0.0f,
|
| 1071 |
+
is_metal: false,
|
| 1072 |
+
reflectivity: ::nvidia::core_definitions::file_texture(
|
| 1073 |
+
texture: texture_2d("./leaves_ref.png" , ::tex::gamma_srgb),
|
| 1074 |
+
mono_source: ::base::mono_average,
|
| 1075 |
+
brightness: 1.f,
|
| 1076 |
+
contrast: 1.f,
|
| 1077 |
+
scaling: 1.f / texture_scale,
|
| 1078 |
+
translation: texture_translate,
|
| 1079 |
+
rotation: texture_rotate,
|
| 1080 |
+
clip: false,
|
| 1081 |
+
texture_space: uv_space_index,
|
| 1082 |
+
invert: false).mono,
|
| 1083 |
+
reflection_roughness: ::nvidia::core_definitions::file_texture(
|
| 1084 |
+
texture: texture_2d("./leaves_rou.png" , ::tex::gamma_srgb),
|
| 1085 |
+
mono_source: ::base::mono_average,
|
| 1086 |
+
brightness: reflection_roughness,
|
| 1087 |
+
contrast: 1.f,
|
| 1088 |
+
scaling: 1.f / texture_scale,
|
| 1089 |
+
translation: texture_translate,
|
| 1090 |
+
rotation: texture_rotate,
|
| 1091 |
+
clip: false,
|
| 1092 |
+
texture_space: uv_space_index,
|
| 1093 |
+
invert: false).mono,
|
| 1094 |
+
anisotropy: 0.0f,
|
| 1095 |
+
anisotropy_rotation: 0.0f,
|
| 1096 |
+
transparency: 0.0f,
|
| 1097 |
+
transmission_color: color(1.0f, 1.0f, 1.0f),
|
| 1098 |
+
volume_color: color(1.0f, 1.0f, 1.0f),
|
| 1099 |
+
transmission_roughness: 0.0f,
|
| 1100 |
+
base_thickness: 0.1f,
|
| 1101 |
+
ior: 1.5f,
|
| 1102 |
+
thin_walled: false,
|
| 1103 |
+
normal: ::nvidia::core_definitions::normalmap_texture(
|
| 1104 |
+
texture: texture_2d("./leaves_norm.png" , ::tex::gamma_linear),
|
| 1105 |
+
factor: bump_strength,
|
| 1106 |
+
scaling: 1.f / texture_scale,
|
| 1107 |
+
translation: texture_translate,
|
| 1108 |
+
rotation: texture_rotate,
|
| 1109 |
+
clip: false,
|
| 1110 |
+
texture_space: uv_space_index)),
|
| 1111 |
+
displacement: ::nvidia::core_definitions::file_texture(
|
| 1112 |
+
texture: texture_2d("./leaves_dis.png" , ::tex::gamma_srgb),
|
| 1113 |
+
mono_source: ::base::mono_average,
|
| 1114 |
+
brightness: 1.0f,
|
| 1115 |
+
contrast: 1.0f,
|
| 1116 |
+
scaling: 1.f / texture_scale,
|
| 1117 |
+
translation: texture_translate,
|
| 1118 |
+
rotation: texture_rotate,
|
| 1119 |
+
clip: false,
|
| 1120 |
+
texture_space: uv_space_index,
|
| 1121 |
+
invert: false).mono,
|
| 1122 |
+
displacement_scale: displacement_scale);
|
Assets/Material/material_0376/Aging_Copper.mdl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Assets/Material/material_0399/Bronze_Hammered.mdl
ADDED
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 hammered bronze material";
|
| 63 |
+
|
| 64 |
+
::base::texture_coordinate_info vmat_transform(
|
| 65 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 66 |
+
uniform float rotation = 0.0,
|
| 67 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 68 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 69 |
+
uniform int uv_space = 0
|
| 70 |
+
)
|
| 71 |
+
{
|
| 72 |
+
float4x4 scale =
|
| 73 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 74 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 75 |
+
0. , 0. , 1.0, 0.,
|
| 76 |
+
translation.x , translation.y , 0.0, 1.);
|
| 77 |
+
|
| 78 |
+
float s = ::math::sin(rotation);
|
| 79 |
+
float c = ::math::cos(rotation);
|
| 80 |
+
float4x4 rotate =
|
| 81 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 82 |
+
s , c , 0.0 , 0.0,
|
| 83 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 84 |
+
0. , 0.0 , 0.0 , 1.);
|
| 85 |
+
|
| 86 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
|
| 90 |
+
|
| 91 |
+
float histogram_range(float input, float range, float position)
|
| 92 |
+
{
|
| 93 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 94 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 95 |
+
return ::math::lerp(low, high, input);
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
float3 normalmap_normal(
|
| 101 |
+
uniform texture_2d texture,
|
| 102 |
+
float factor = 1.0,
|
| 103 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 104 |
+
)
|
| 105 |
+
{
|
| 106 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0);
|
| 107 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal() * (lookup.z + (1.0 - factor)));
|
| 108 |
+
}
|
| 109 |
+
|
| 110 |
+
color gradient_lookup_smooth(uniform texture_2d gradient_texture, float position, float gradient_select = 0)
|
| 111 |
+
{
|
| 112 |
+
// Pixel centers lie in the middle. To properly access the pixel centers of the gradients, apply an offset
|
| 113 |
+
float2 texel_coord = float2(position, gradient_select + (0.5f / ::tex::height(gradient_texture)));
|
| 114 |
+
return color(::tex::lookup_float3(gradient_texture, texel_coord));
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
export material Bronze_Hammered(
|
| 119 |
+
float copper_tint = 0.5f [[
|
| 120 |
+
::anno::description("Blends between the bronze types. 0.0 yields yellowish bronze, increasing the copper amount fades to reddish bronze."),
|
| 121 |
+
::anno::display_name("Copper Tint"),
|
| 122 |
+
::anno::in_group("Appearance"),
|
| 123 |
+
::anno::hard_range(0.f, 1.f),
|
| 124 |
+
::anno::ui_order(0)
|
| 125 |
+
]],
|
| 126 |
+
float cavities_darkening = 1.f [[
|
| 127 |
+
::anno::description("Darkens the areas where cavities appear."),
|
| 128 |
+
::anno::display_name("Cavities Darkening"),
|
| 129 |
+
::anno::in_group("Appearance"),
|
| 130 |
+
::anno::hard_range(0.f, 1.f),
|
| 131 |
+
::anno::ui_order(1)
|
| 132 |
+
]],
|
| 133 |
+
float roughness = 0.f [[
|
| 134 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 135 |
+
::anno::display_name("Roughness"),
|
| 136 |
+
::anno::in_group("Appearance"),
|
| 137 |
+
::anno::hard_range(0.f, 1.f),
|
| 138 |
+
::anno::ui_order(2)
|
| 139 |
+
]],
|
| 140 |
+
float bump_strength = 0.99f [[
|
| 141 |
+
::anno::description("Specifies the strength of the bump."),
|
| 142 |
+
::anno::display_name("Bump Strength"),
|
| 143 |
+
::anno::in_group("Appearance"),
|
| 144 |
+
::anno::hard_range(0.f, 1.f),
|
| 145 |
+
::anno::ui_order(3)
|
| 146 |
+
]],
|
| 147 |
+
uniform float2 texture_translate = 0.f [[
|
| 148 |
+
::anno::description("Controls the position of the texture."),
|
| 149 |
+
::anno::display_name("Texture Translate"),
|
| 150 |
+
::anno::in_group("Transform"),
|
| 151 |
+
::anno::ui_order(4)
|
| 152 |
+
]],
|
| 153 |
+
uniform float texture_rotate = 0.f [[
|
| 154 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 155 |
+
::anno::display_name("Texture Rotate"),
|
| 156 |
+
::anno::in_group("Transform"),
|
| 157 |
+
::anno::soft_range(0.f, 360.f),
|
| 158 |
+
::anno::ui_order(5)
|
| 159 |
+
]],
|
| 160 |
+
uniform float2 texture_scale = 1.f [[
|
| 161 |
+
::anno::description("Larger numbers increase the size."),
|
| 162 |
+
::anno::display_name("Texture Scale"),
|
| 163 |
+
::anno::in_group("Transform"),
|
| 164 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)),
|
| 165 |
+
::anno::ui_order(6)
|
| 166 |
+
]],
|
| 167 |
+
uniform bool roundcorners_enable = false [[
|
| 168 |
+
::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."),
|
| 169 |
+
::anno::display_name("Enable Round Corners"),
|
| 170 |
+
::anno::in_group("Round Corners"),
|
| 171 |
+
::anno::ui_order(7)
|
| 172 |
+
]],
|
| 173 |
+
uniform float roundcorners_radius_mm = 1.0f [[
|
| 174 |
+
::anno::description("Radius of the rounded corners in millimeters."),
|
| 175 |
+
::anno::display_name("Round Corner Radius (mm)"),
|
| 176 |
+
::anno::in_group("Round Corners"),
|
| 177 |
+
::anno::soft_range(0.f, 10.f),
|
| 178 |
+
::anno::ui_order(8)
|
| 179 |
+
]],
|
| 180 |
+
uniform bool roundcorners_across_materials = false [[
|
| 181 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 182 |
+
::anno::display_name("Across Materials"),
|
| 183 |
+
::anno::in_group("Round Corners"),
|
| 184 |
+
::anno::ui_order(9)
|
| 185 |
+
]],
|
| 186 |
+
uniform int uv_space_index = 0 [[
|
| 187 |
+
::anno::description("Uses selected UV space for material."),
|
| 188 |
+
::anno::display_name("UV Space Index"),
|
| 189 |
+
::anno::in_group("Advanced"),
|
| 190 |
+
::anno::hard_range(0, 10),
|
| 191 |
+
::anno::ui_order(10)
|
| 192 |
+
]])
|
| 193 |
+
[[
|
| 194 |
+
::anno::author("NVIDIA vMaterials"),
|
| 195 |
+
::anno::contributor("Rüdiger Raab"),
|
| 196 |
+
::anno::contributor("Maik Rohland"),
|
| 197 |
+
::anno::display_name("Bronze Hammered - Hammered Darkened"),
|
| 198 |
+
::anno::description(DESCRIPTION),
|
| 199 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 200 |
+
::anno::thumbnail("./.thumbs/Bronze_Hammered.Bronze_Hammered.png"),
|
| 201 |
+
// scratched, old, stained, crumpled, handled, worn, creative, smudged, bumped, matte, shiny
|
| 202 |
+
::anno::key_words(string[]("metal", "bronze", "reflective", "shiny", "hammered", "stained", "bumped", "design", "warm"))
|
| 203 |
+
]]
|
| 204 |
+
=
|
| 205 |
+
let {
|
| 206 |
+
float copper_amount_remap = copper_tint / 1.5f;
|
| 207 |
+
bool tmp0 = false;
|
| 208 |
+
material_surface tmp1(::df::custom_curve_layer(0.f, 1.f, 5.35999966f, 1.f, ::df::weighted_layer(0.349999994f, ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)) * histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)), histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)) * histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono, color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), normalmap_normal(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), normalmap_normal(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), ::df::tint(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(gradient_lookup_smooth(texture_2d("./bronze_gradients.png", ::tex::gamma_srgb), float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).z, copper_amount_remap), color(::math::pow(float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_multiply, cavities_darkening * 0.75f + 0.25f).tint, color(float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_overlay, cavities_darkening * 0.75f + 0.25f).tint, ::df::weighted_layer(0.349999994f, ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)) * histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)), histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)) * histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, 0.170000002f, ::math::lerp(0.399999976f, 0.736000001f, roughness * 0.699999988f)), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).x, ::math::lerp(0.40200001f, 0.245000005f, roughness * 0.699999988f), ::math::lerp(0.234000012f, 0.395000011f, roughness * 0.699999988f))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.jpg", ::tex::gamma_linear), 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).y), ::base::color_layer_add, ::math::lerp(0.189999998f, 0.569999993f, roughness * 0.699999988f)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./brass_hammered_multi_R_pit_G_ao_rough.jpg", ::tex::gamma_linear), 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).x, 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness * 0.699999988f)).mono, color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), normalmap_normal(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), normalmap_normal(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)))), ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 209 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 210 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 211 |
+
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));
|
| 212 |
+
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());
|
| 213 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 214 |
+
} in
|
| 215 |
+
material(
|
| 216 |
+
thin_walled: tmp0,
|
| 217 |
+
surface: tmp1,
|
| 218 |
+
backface: tmp2,
|
| 219 |
+
ior: tmp3,
|
| 220 |
+
volume: tmp4,
|
| 221 |
+
geometry: tmp5,
|
| 222 |
+
hair: tmp6);
|
| 223 |
+
|
| 224 |
+
// 2
|
| 225 |
+
export material Bronze_Hammered_Shiny_Soft_Hammering(*)
|
| 226 |
+
[[
|
| 227 |
+
::anno::author("NVIDIA vMaterials"),
|
| 228 |
+
::anno::contributor("Rüdiger Raab"),
|
| 229 |
+
::anno::contributor("Maik Rohland"),
|
| 230 |
+
::anno::display_name("Bronze Hammered - Shiny Soft Hammering"),
|
| 231 |
+
::anno::description(DESCRIPTION),
|
| 232 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 233 |
+
::anno::thumbnail("./.thumbs/Bronze_Hammered.Bronze_Hammered_Shiny_Soft_Hammering.png"),
|
| 234 |
+
// scratched, old, stained, crumpled, handled, worn, creative, smudged, bumped, matte, shiny
|
| 235 |
+
::anno::key_words(string[]("metal", "bronze", "reflective", "shiny", "hammered", "bumped", "design", "warm"))
|
| 236 |
+
]] = Bronze_Hammered(
|
| 237 |
+
copper_tint: 0.5f,
|
| 238 |
+
cavities_darkening: 0.0f,
|
| 239 |
+
roughness: 0.0f,
|
| 240 |
+
bump_strength: 0.51f,
|
| 241 |
+
texture_translate: 0.0f,
|
| 242 |
+
texture_rotate: 0.0f,
|
| 243 |
+
texture_scale: 1.0f,
|
| 244 |
+
roundcorners_enable: false,
|
| 245 |
+
roundcorners_radius_mm: 1.0f,
|
| 246 |
+
roundcorners_across_materials: false,
|
| 247 |
+
uv_space_index: 0
|
| 248 |
+
);
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
// 3
|
| 252 |
+
export material Bronze_Hammered_Matte_Hammering(*)
|
| 253 |
+
[[
|
| 254 |
+
::anno::author("NVIDIA vMaterials"),
|
| 255 |
+
::anno::contributor("Rüdiger Raab"),
|
| 256 |
+
::anno::contributor("Maik Rohland"),
|
| 257 |
+
::anno::display_name("Bronze Hammered - Matte Hammering"),
|
| 258 |
+
::anno::description(DESCRIPTION),
|
| 259 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 260 |
+
::anno::thumbnail("./.thumbs/Bronze_Hammered.Bronze_Hammered_Matte_Hammering.png"),
|
| 261 |
+
// scratched, old, stained, crumpled, handled, worn, creative, smudged, bumped, matte, shiny
|
| 262 |
+
::anno::key_words(string[]("metal", "bronze", "reflective", "matte", "hammered", "bumped", "design", "warm"))
|
| 263 |
+
]] = Bronze_Hammered(
|
| 264 |
+
copper_tint: 0.5f,
|
| 265 |
+
cavities_darkening: 1.0f,
|
| 266 |
+
roughness: 0.8f,
|
| 267 |
+
bump_strength: 0.99f,
|
| 268 |
+
texture_translate: 0.0f,
|
| 269 |
+
texture_rotate: 0.0f,
|
| 270 |
+
texture_scale: 1.0f,
|
| 271 |
+
roundcorners_enable: false,
|
| 272 |
+
roundcorners_radius_mm: 1.0f,
|
| 273 |
+
roundcorners_across_materials: false,
|
| 274 |
+
uv_space_index: 0
|
| 275 |
+
);
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
|
| 284 |
+
|
Assets/Material/material_0408/Chromium_Foil.mdl
ADDED
|
@@ -0,0 +1,501 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
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 |
+
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 |
+
const string DESCRIPTION = "Metal foil material with additional controls for wrinkling the material";
|
| 62 |
+
|
| 63 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 64 |
+
{
|
| 65 |
+
return (input - x)/(y - x);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
float histogram_scan_big(float input, float width, float position)
|
| 69 |
+
{
|
| 70 |
+
return ::math::clamp(
|
| 71 |
+
remap_xy_to_0_1(input,
|
| 72 |
+
::math::lerp(-width, 1.0, position),
|
| 73 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 74 |
+
0.0,
|
| 75 |
+
1.0);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
::base::texture_coordinate_info vmat_transform(
|
| 79 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 80 |
+
uniform float rotation = 0.0,
|
| 81 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 82 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 83 |
+
uniform int uv_space = 0
|
| 84 |
+
)
|
| 85 |
+
{
|
| 86 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 87 |
+
|
| 88 |
+
float4x4 scale =
|
| 89 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 90 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 91 |
+
0. , 0. , 1.0, 0.,
|
| 92 |
+
translation.x , translation.y , 0.0, 1.);
|
| 93 |
+
|
| 94 |
+
float s = ::math::sin(rotation_rad);
|
| 95 |
+
float c = ::math::cos(rotation_rad);
|
| 96 |
+
float4x4 rotate =
|
| 97 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 98 |
+
s , c , 0.0 , 0.0,
|
| 99 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 100 |
+
0. , 0.0 , 0.0 , 1.);
|
| 101 |
+
|
| 102 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
float histogram_range(float input, float range, float position)
|
| 106 |
+
{
|
| 107 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 108 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 109 |
+
return ::math::lerp(low, high, input);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
float uint2float(int x)
|
| 113 |
+
{
|
| 114 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
int lowbias32(int x)
|
| 118 |
+
{
|
| 119 |
+
x ^= x >>> 16;
|
| 120 |
+
x *= 0x7feb352d;
|
| 121 |
+
x ^= x >>> 15;
|
| 122 |
+
x *= 0x846ca68b;
|
| 123 |
+
x ^= x >>> 16;
|
| 124 |
+
return x;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
float2 rnd22(int2 p) {
|
| 128 |
+
float2 ret_val = float2(
|
| 129 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 130 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 131 |
+
);
|
| 132 |
+
return ret_val;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
float3 srgb2rgb(float3 val)
|
| 136 |
+
{
|
| 137 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
float2x2 invert_2x2(float2x2 M)
|
| 141 |
+
{
|
| 142 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 143 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 144 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
float3 nonrepeat_lookup(
|
| 148 |
+
uniform texture_2d texture = texture_2d(),
|
| 149 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 150 |
+
float texture_scale = 1.0,
|
| 151 |
+
float3 average_color = float3(0.5),
|
| 152 |
+
float patch_size = 8.0
|
| 153 |
+
)
|
| 154 |
+
{
|
| 155 |
+
|
| 156 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 157 |
+
float Z = patch_size; // patch scale inside example texture
|
| 158 |
+
float CON = 1.0f;
|
| 159 |
+
|
| 160 |
+
float3 O = float3(0.f);
|
| 161 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 162 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 163 |
+
|
| 164 |
+
float2 U = uv_in;
|
| 165 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 166 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 167 |
+
|
| 168 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 169 |
+
// average color work out, take the float value and calculate the apropriate
|
| 170 |
+
// mean value as (value^(1/2.2))
|
| 171 |
+
|
| 172 |
+
float3 m = average_color;
|
| 173 |
+
|
| 174 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 175 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 176 |
+
|
| 177 |
+
if( F[2] > 0.f )
|
| 178 |
+
|
| 179 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 180 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 181 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 182 |
+
else
|
| 183 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 184 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 185 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 186 |
+
O = m + O/::math::length(W);
|
| 187 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 188 |
+
|
| 189 |
+
return float3(O);
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
color endless_texture(
|
| 193 |
+
uniform texture_2d texture = texture_2d(),
|
| 194 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 195 |
+
float texture_scale = 10.0,
|
| 196 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 197 |
+
float patch_size = 8.0,
|
| 198 |
+
bool gamma_correct_lookup = true
|
| 199 |
+
)
|
| 200 |
+
{
|
| 201 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 202 |
+
nonrepeat_lookup (
|
| 203 |
+
texture: texture,
|
| 204 |
+
uvw: uvw,
|
| 205 |
+
texture_scale: texture_scale,
|
| 206 |
+
average_color: average_color,
|
| 207 |
+
patch_size: patch_size
|
| 208 |
+
))
|
| 209 |
+
) : color(nonrepeat_lookup (
|
| 210 |
+
texture: texture,
|
| 211 |
+
uvw: uvw,
|
| 212 |
+
texture_scale: texture_scale,
|
| 213 |
+
average_color: average_color,
|
| 214 |
+
patch_size: patch_size
|
| 215 |
+
));
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
float3 endless_normal(
|
| 219 |
+
uniform texture_2d texture = texture_2d(),
|
| 220 |
+
float factor = 1.0,
|
| 221 |
+
bool flip_tangent_u = false,
|
| 222 |
+
bool flip_tangent_v = false,
|
| 223 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 224 |
+
float texture_scale = 1.0,
|
| 225 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 226 |
+
float patch_size = 8.0
|
| 227 |
+
)
|
| 228 |
+
{
|
| 229 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 230 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 231 |
+
|
| 232 |
+
if (flip_tangent_u)
|
| 233 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 234 |
+
if (flip_tangent_v)
|
| 235 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 236 |
+
|
| 237 |
+
// normalized Lookup
|
| 238 |
+
float3 tangent_space_normal =
|
| 239 |
+
(nonrepeat_lookup (
|
| 240 |
+
texture: texture,
|
| 241 |
+
uvw: uvw,
|
| 242 |
+
texture_scale: texture_scale,
|
| 243 |
+
average_color: average_color,
|
| 244 |
+
patch_size: patch_size
|
| 245 |
+
) - 0.5) * (2.0 * factor);
|
| 246 |
+
|
| 247 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 248 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 249 |
+
::state::normal()*1.0);
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
export material Chromium_Foil(
|
| 253 |
+
uniform bool infinite_tiling = true [[
|
| 254 |
+
::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."),
|
| 255 |
+
::anno::display_name("Infinite Tiling"),
|
| 256 |
+
::anno::in_group("Infinite Tiing")
|
| 257 |
+
]],
|
| 258 |
+
float brightness = 1.f [[
|
| 259 |
+
::anno::description("Ajusts the total reflectivity of the metal."),
|
| 260 |
+
::anno::display_name("Brightness"),
|
| 261 |
+
::anno::hard_range(0.f, 1.f),
|
| 262 |
+
::anno::in_group("Appearance")
|
| 263 |
+
]],
|
| 264 |
+
float roughness = 0.15f [[
|
| 265 |
+
::anno::display_name("Roughness"),
|
| 266 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 267 |
+
::anno::hard_range(0.f, 1.f),
|
| 268 |
+
::anno::in_group("Appearance")
|
| 269 |
+
]],
|
| 270 |
+
float roughness_variation = 0.564f [[
|
| 271 |
+
::anno::description("Amount of variation applied to the roughness, higher numbers add more non uniform appearance to the reflectivity of the material."),
|
| 272 |
+
::anno::display_name("Roughness Variation"),
|
| 273 |
+
::anno::hard_range(0.f, 1.f),
|
| 274 |
+
::anno::in_group("Appearance")
|
| 275 |
+
]],
|
| 276 |
+
float smudges = 0.35f [[
|
| 277 |
+
::anno::description("Adds blurrier reflections that show smudges on the surface."),
|
| 278 |
+
::anno::display_name("Smudges"),
|
| 279 |
+
::anno::hard_range(0.f, 1.f),
|
| 280 |
+
::anno::in_group("Appearance")
|
| 281 |
+
]],
|
| 282 |
+
uniform float bump_strength = 0.05f [[
|
| 283 |
+
::anno::description("Specifies the strength of the bump."),
|
| 284 |
+
::anno::display_name("Bump Strength"),
|
| 285 |
+
::anno::hard_range(0.f, 1.f),
|
| 286 |
+
::anno::in_group("Appearance")
|
| 287 |
+
]],
|
| 288 |
+
uniform float2 texture_translate = 0.f [[
|
| 289 |
+
::anno::description("Controls the position of the texture."),
|
| 290 |
+
::anno::display_name("Texture Translate"),
|
| 291 |
+
::anno::in_group("Transform")
|
| 292 |
+
]],
|
| 293 |
+
uniform float texture_rotate = 0.0f [[
|
| 294 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 295 |
+
::anno::display_name("Texture Rotate"),
|
| 296 |
+
::anno::in_group("Transform")
|
| 297 |
+
]],
|
| 298 |
+
uniform float2 texture_scale = 1.f [[
|
| 299 |
+
::anno::description("Larger numbers increase the size."),
|
| 300 |
+
::anno::display_name("Texture Scale"),
|
| 301 |
+
::nvidia::core_definitions::dimension(float2(0.4, 0.4)),
|
| 302 |
+
::anno::in_group("Transform")
|
| 303 |
+
]],
|
| 304 |
+
uniform int uv_space_index = 0 [[
|
| 305 |
+
::anno::display_name("UV Space Index"),
|
| 306 |
+
::anno::in_group("Transform")
|
| 307 |
+
]],
|
| 308 |
+
uniform bool enable_round_corners = false [[
|
| 309 |
+
::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."),
|
| 310 |
+
::anno::display_name("Enable Round Corners"),
|
| 311 |
+
::anno::in_group("Round Corners")
|
| 312 |
+
]],
|
| 313 |
+
uniform float radius = 0.002f [[
|
| 314 |
+
::anno::description("Radius of the rounded corners."),
|
| 315 |
+
::anno::display_name("Round Corner Radius"),
|
| 316 |
+
::anno::in_group("Round Corners")
|
| 317 |
+
]],
|
| 318 |
+
uniform bool across_materials = false [[
|
| 319 |
+
::anno::display_name("Across Materials"),
|
| 320 |
+
::anno::in_group("Round Corners")
|
| 321 |
+
]]
|
| 322 |
+
)
|
| 323 |
+
[[
|
| 324 |
+
::anno::author("NVIDIA vMaterials"),
|
| 325 |
+
::anno::display_name("Chromium Foil - Slightly Wrinkled"),
|
| 326 |
+
::anno::description(DESCRIPTION),
|
| 327 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 328 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil.png"),
|
| 329 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 330 |
+
]]
|
| 331 |
+
=
|
| 332 |
+
let {
|
| 333 |
+
color normal_reflectivity = color(0.549302f, 0.5560554f, 0.5542377f);
|
| 334 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 335 |
+
|
| 336 |
+
texture_2d rough_ao_tex = texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear);
|
| 337 |
+
texture_2d smudge_splotch_tex = texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear);
|
| 338 |
+
texture_2d norm_tex = texture_2d("./foil_crumpled_norm.jpg", ::tex::gamma_linear);
|
| 339 |
+
|
| 340 |
+
bool tmp0 = false;
|
| 341 |
+
material_surface tmp1(
|
| 342 |
+
::df::weighted_layer(0.0299999993f, ::df::microfacet_ggx_smith_bsdf(0.300000012f, 0.300000012f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::color_custom_curve_layer(normal_reflectivity, grazing_reflectivity, 5.f, color(::math::lerp(0.600000024f, 1.f, brightness) * histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[2], 2.20000005f), 1.f, bump_strength * 0.400000006f)), ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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]) * (histogram_range(float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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]), (histogram_range(float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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]) * (histogram_range(float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(rough_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(rough_ao_tex, 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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(smudge_splotch_tex, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(smudge_splotch_tex, 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]), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), bsdf(), infinite_tiling ? endless_normal(norm_tex, bump_strength * 1.5f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : ::base::tangent_space_normal_texture(norm_tex, bump_strength * 1.5f, 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(norm_tex, bump_strength * 1.5f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : ::base::tangent_space_normal_texture(norm_tex, bump_strength * 1.5f, 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)),
|
| 343 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 344 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 345 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 346 |
+
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));
|
| 347 |
+
material_geometry tmp5(
|
| 348 |
+
float3(0.f),
|
| 349 |
+
1.f,
|
| 350 |
+
enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal());
|
| 351 |
+
} in
|
| 352 |
+
material(
|
| 353 |
+
thin_walled: tmp0,
|
| 354 |
+
surface: tmp1,
|
| 355 |
+
backface: tmp2,
|
| 356 |
+
ior: tmp3,
|
| 357 |
+
volume: tmp4,
|
| 358 |
+
geometry: tmp5);
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
export material Chromium_Foil_Smudged_Foil(*)
|
| 362 |
+
[[
|
| 363 |
+
::anno::author("NVIDIA vMaterials"),
|
| 364 |
+
::anno::display_name("Chromium Foil - Smudgy Foil"),
|
| 365 |
+
::anno::description(DESCRIPTION),
|
| 366 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 367 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil_Smudged_Foil.png"),
|
| 368 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "smooth", "unfinished", "decorative", "creative", "neutral"))
|
| 369 |
+
]]
|
| 370 |
+
= Chromium_Foil(
|
| 371 |
+
infinite_tiling: true,
|
| 372 |
+
roughness: 0.15f,
|
| 373 |
+
roughness_variation: 0.84f,
|
| 374 |
+
smudges: 0.35f,
|
| 375 |
+
bump_strength: 0.0f,
|
| 376 |
+
texture_translate: 0.0f,
|
| 377 |
+
texture_rotate: 0.0f,
|
| 378 |
+
texture_scale: 1.0f,
|
| 379 |
+
uv_space_index: 0,
|
| 380 |
+
enable_round_corners: false,
|
| 381 |
+
radius: 0.002f,
|
| 382 |
+
across_materials: false
|
| 383 |
+
);
|
| 384 |
+
|
| 385 |
+
|
| 386 |
+
export material Chromium_Foil_Shiny_Wrinkled(*)
|
| 387 |
+
[[
|
| 388 |
+
::anno::author("NVIDIA vMaterials"),
|
| 389 |
+
::anno::display_name("Chromium Foil - Shiny Wrinkled"),
|
| 390 |
+
::anno::description(DESCRIPTION),
|
| 391 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 392 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil_Shiny_Wrinkled.png"),
|
| 393 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "shiny", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 394 |
+
]]
|
| 395 |
+
= Chromium_Foil(
|
| 396 |
+
infinite_tiling: true,
|
| 397 |
+
roughness: 0.25f,
|
| 398 |
+
roughness_variation: 0.25f,
|
| 399 |
+
smudges: 0.75f,
|
| 400 |
+
bump_strength: 0.25f,
|
| 401 |
+
texture_translate: 0.0f,
|
| 402 |
+
texture_rotate: 0.0f,
|
| 403 |
+
texture_scale: 1.0f,
|
| 404 |
+
uv_space_index: 0,
|
| 405 |
+
enable_round_corners: false,
|
| 406 |
+
radius: 0.002f,
|
| 407 |
+
across_materials: false
|
| 408 |
+
);
|
| 409 |
+
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
export material Chromium_Foil_Matte_Wrinkled(*)
|
| 414 |
+
[[
|
| 415 |
+
::anno::author("NVIDIA vMaterials"),
|
| 416 |
+
::anno::display_name("Chromium Foil - Matte Wrinkled"),
|
| 417 |
+
::anno::description(DESCRIPTION),
|
| 418 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 419 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil_Matte_Wrinkled.png"),
|
| 420 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "matte", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral", "gray"))
|
| 421 |
+
]]
|
| 422 |
+
= Chromium_Foil(
|
| 423 |
+
infinite_tiling: true,
|
| 424 |
+
roughness: 0.65f,
|
| 425 |
+
roughness_variation: 1.0f,
|
| 426 |
+
smudges: 0.4f,
|
| 427 |
+
bump_strength: 0.15f,
|
| 428 |
+
texture_translate: 0.0f,
|
| 429 |
+
texture_rotate: 0.0f,
|
| 430 |
+
texture_scale: 1.0f,
|
| 431 |
+
uv_space_index: 0,
|
| 432 |
+
enable_round_corners: false,
|
| 433 |
+
radius: 0.002f,
|
| 434 |
+
across_materials: false
|
| 435 |
+
);
|
| 436 |
+
|
| 437 |
+
|
| 438 |
+
|
| 439 |
+
export material Chromium_Foil_Heavy_Glossy_Wrinkles(*)
|
| 440 |
+
[[
|
| 441 |
+
::anno::author("NVIDIA vMaterials"),
|
| 442 |
+
::anno::display_name("Chromium Foil - Heavy Glossy Wrinkles"),
|
| 443 |
+
::anno::description(DESCRIPTION),
|
| 444 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 445 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil_Heavy_Glossy_Wrinkles.png"),
|
| 446 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 447 |
+
]]
|
| 448 |
+
= Chromium_Foil(
|
| 449 |
+
infinite_tiling: true,
|
| 450 |
+
roughness: 0.164f,
|
| 451 |
+
roughness_variation: 0.021f,
|
| 452 |
+
smudges: 0.143f,
|
| 453 |
+
bump_strength: 0.99f,
|
| 454 |
+
texture_translate: 0.0f,
|
| 455 |
+
texture_rotate: 0.0f,
|
| 456 |
+
texture_scale: 1.0f,
|
| 457 |
+
uv_space_index: 0,
|
| 458 |
+
enable_round_corners: false,
|
| 459 |
+
radius: 0.002f,
|
| 460 |
+
across_materials: false
|
| 461 |
+
);
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
|
| 465 |
+
export material Chromium_Foil_Heavy_Matte_Wrinkled(*)
|
| 466 |
+
[[
|
| 467 |
+
::anno::author("NVIDIA vMaterials"),
|
| 468 |
+
::anno::display_name("Chromium Foil - Heavy Matte Wrinkled"),
|
| 469 |
+
::anno::description(DESCRIPTION),
|
| 470 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 471 |
+
::anno::thumbnail("./.thumbs/Chromium_Foil.Chromium_Foil_Heavy_Matte_Wrinkled.png"),
|
| 472 |
+
::anno::key_words(string[]("design", "metal", "chromium", "foil", "matte", "bumped", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral", "gray"))
|
| 473 |
+
]]
|
| 474 |
+
= Chromium_Foil(
|
| 475 |
+
infinite_tiling: true,
|
| 476 |
+
roughness: 0.889f,
|
| 477 |
+
roughness_variation: 0.018f,
|
| 478 |
+
smudges: 0.246f,
|
| 479 |
+
bump_strength: 0.732f,
|
| 480 |
+
texture_translate: 0.0f,
|
| 481 |
+
texture_rotate: 0.0f,
|
| 482 |
+
texture_scale: 1.0f,
|
| 483 |
+
uv_space_index: 0,
|
| 484 |
+
enable_round_corners: false,
|
| 485 |
+
radius: 0.002f,
|
| 486 |
+
across_materials: false
|
| 487 |
+
);
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
|
| 498 |
+
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
|
Assets/Material/material_0409/Chromium_Knurling.mdl
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 ::df::*;
|
| 40 |
+
import ::tex::*;
|
| 41 |
+
import ::math::*;
|
| 42 |
+
import ::base::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::anno::*;
|
| 45 |
+
import ::nvidia::core_definitions::*;
|
| 46 |
+
|
| 47 |
+
const string COPYRIGHT =
|
| 48 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 49 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 50 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 51 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 52 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 53 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 54 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 55 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 56 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 57 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 58 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 59 |
+
|
| 60 |
+
const string DESCRIPTION = "Metal with a diamond knurling finish";
|
| 61 |
+
|
| 62 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 63 |
+
{
|
| 64 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 65 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 66 |
+
return ::math::lerp(low, high, input);
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
::base::texture_coordinate_info transform_coordinate_2(
|
| 70 |
+
float4x4 transform
|
| 71 |
+
[[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]],
|
| 72 |
+
::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
|
| 73 |
+
[[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]]
|
| 74 |
+
) [[
|
| 75 |
+
::anno::description("Transform a texture coordinate by a matrix.") ,
|
| 76 |
+
::anno::noinline()
|
| 77 |
+
]]
|
| 78 |
+
{
|
| 79 |
+
// Version 2
|
| 80 |
+
float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
|
| 81 |
+
//Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
|
| 82 |
+
//just pretend there is no other rotation happening
|
| 83 |
+
//get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
|
| 84 |
+
float4 u = transform[0];
|
| 85 |
+
float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
|
| 86 |
+
float cos = ru.x;
|
| 87 |
+
float sin = -ru.y;
|
| 88 |
+
//TODO: at least also handle sign of z?
|
| 89 |
+
//TODO: handle tangent becoming 0
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
return ::base::texture_coordinate_info(
|
| 93 |
+
float3(r_position.x,r_position.y,r_position.z),
|
| 94 |
+
::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
|
| 95 |
+
::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
|
| 96 |
+
}
|
| 97 |
+
|
| 98 |
+
::base::texture_coordinate_info vmat_transform(
|
| 99 |
+
float2 translation = float2(0.0, 0.0),
|
| 100 |
+
float rotation = 0.0, // rotation in degrees
|
| 101 |
+
float2 scaling = float2(1.0, 1.0),
|
| 102 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 103 |
+
uniform int uv_space = 0
|
| 104 |
+
)
|
| 105 |
+
{
|
| 106 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 107 |
+
float4x4 scale =
|
| 108 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 109 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 110 |
+
0. , 0. , 1.0, 0.,
|
| 111 |
+
translation.x , translation.y , 0.0, 1.);
|
| 112 |
+
|
| 113 |
+
float s = ::math::sin(rotation_rad);
|
| 114 |
+
float c = ::math::cos(rotation_rad);
|
| 115 |
+
float4x4 rotate =
|
| 116 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 117 |
+
s , c , 0.0 , 0.0,
|
| 118 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 119 |
+
0. , 0.0 , 0.0 , 1.);
|
| 120 |
+
|
| 121 |
+
return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
export material Chromium_Knurling(
|
| 125 |
+
//Appearance
|
| 126 |
+
float brightness = float(0.7f) [[
|
| 127 |
+
::anno::description("Adjusts the brightness of the material."),
|
| 128 |
+
::anno::display_name("Brightness"),
|
| 129 |
+
::anno::in_group("Appearance"),
|
| 130 |
+
::anno::hard_range(0.0f, 1.0f)
|
| 131 |
+
]],
|
| 132 |
+
float roughness = float(0.5f) [[
|
| 133 |
+
::anno::description("Higher values lead to a rougher appearance of the material."),
|
| 134 |
+
::anno::display_name("Roughness"),
|
| 135 |
+
::anno::in_group("Appearance"),
|
| 136 |
+
::anno::hard_range(0.0f, 1.0f)
|
| 137 |
+
]],
|
| 138 |
+
float grooves_dirt = float(0.4f) [[
|
| 139 |
+
::anno::description("Adds dirt in the grooves of the knurling pattern."),
|
| 140 |
+
::anno::display_name("Grooves Dirt"),
|
| 141 |
+
::anno::in_group("Appearance"),
|
| 142 |
+
::anno::hard_range(0.0f, 1.0f)
|
| 143 |
+
]],
|
| 144 |
+
uniform float bump_strength = float(0.8f) [[
|
| 145 |
+
::anno::description("Adds dirt in the grooves of the knurling pattern."),
|
| 146 |
+
::anno::display_name("Bump Strength"),
|
| 147 |
+
::anno::in_group("Appearance"),
|
| 148 |
+
::anno::soft_range(0.0f, 1.0f)
|
| 149 |
+
]],
|
| 150 |
+
|
| 151 |
+
// Round Corners
|
| 152 |
+
uniform bool enable_round_corners = false [[
|
| 153 |
+
::anno::display_name("Enable Round Corners"),
|
| 154 |
+
::anno::in_group("Round Corners")
|
| 155 |
+
]],
|
| 156 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 157 |
+
::anno::display_name("Round Corner Radius"),
|
| 158 |
+
::anno::description("Sets the radius of the round corners in millimeters."),
|
| 159 |
+
::anno::soft_range(0.0f, 0.1f),
|
| 160 |
+
::anno::in_group("Round Corners")
|
| 161 |
+
]],
|
| 162 |
+
uniform bool across_materials = false [[
|
| 163 |
+
::anno::display_name("Across Materials"),
|
| 164 |
+
::anno::description("Applies the rounded corner effect also between other materials."),
|
| 165 |
+
::anno::in_group("Round Corners")
|
| 166 |
+
]],
|
| 167 |
+
//Transform
|
| 168 |
+
float2 texture_translate = 0.f [[
|
| 169 |
+
::anno::description("Controls the position of the texture."),
|
| 170 |
+
::anno::display_name("Texture Translate"),
|
| 171 |
+
::anno::in_group("Transform")
|
| 172 |
+
]],
|
| 173 |
+
float texture_rotate = 0.f [[
|
| 174 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 175 |
+
::anno::display_name("Texture Rotate"),
|
| 176 |
+
::anno::in_group("Transform"),
|
| 177 |
+
::anno::soft_range(0.f, 360.f)
|
| 178 |
+
]],
|
| 179 |
+
float2 texture_scale = 1.f [[
|
| 180 |
+
::anno::description("Larger numbers increase the size."),
|
| 181 |
+
::anno::display_name("Texture Scale"),
|
| 182 |
+
::nvidia::core_definitions::dimension(float2(0.35f, .35f)),
|
| 183 |
+
::anno::in_group("Transform"),
|
| 184 |
+
::anno::soft_range(0.f, 2.f)
|
| 185 |
+
]],
|
| 186 |
+
|
| 187 |
+
// Advanced
|
| 188 |
+
uniform int uv_space_index = 0 [[
|
| 189 |
+
::anno::description("Uses the selected UV space index."),
|
| 190 |
+
::anno::display_name("UV Space Index"),
|
| 191 |
+
::anno::in_group("Advanced"),
|
| 192 |
+
::anno::soft_range(0, 4)
|
| 193 |
+
]]
|
| 194 |
+
)
|
| 195 |
+
[[
|
| 196 |
+
::anno::display_name("Metal Knurling Chromium"),
|
| 197 |
+
::anno::description(DESCRIPTION),
|
| 198 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 199 |
+
::anno::thumbnail("./.thumbs/Chromium_Knurling.Chromium_Knurling.png"),
|
| 200 |
+
::anno::key_words(string[]("metal", "chromium", "knurled", "knurling", "pattern", "design", "bumped")),
|
| 201 |
+
::anno::contributor("Ruediger Raab"),
|
| 202 |
+
::anno::author("NVIDIA vMaterials")
|
| 203 |
+
]]
|
| 204 |
+
= let
|
| 205 |
+
{
|
| 206 |
+
color metal_tint = color(0.549302f, 0.5560554f, 0.5542377f);
|
| 207 |
+
|
| 208 |
+
// Texture setup
|
| 209 |
+
texture_2d normal_tex = texture_2d("./metal_knurling_norm.jpg", ::tex::gamma_linear);
|
| 210 |
+
texture_2d multi_heights_tex = texture_2d("./metal_knurling_multi_heights.jpg", ::tex::gamma_linear);
|
| 211 |
+
texture_2d diff_rough_grunge_tex = texture_2d("./metal_knurling_multi_R_diff_G_rough_B_grunge.jpg", ::tex::gamma_linear);
|
| 212 |
+
|
| 213 |
+
// Coordinate setup
|
| 214 |
+
::base::texture_coordinate_info uvw = vmat_transform(
|
| 215 |
+
translation: texture_translate,
|
| 216 |
+
rotation: texture_rotate,
|
| 217 |
+
scaling: texture_scale,
|
| 218 |
+
system: ::base::texture_coordinate_uvw,
|
| 219 |
+
uv_space: uv_space_index
|
| 220 |
+
);
|
| 221 |
+
|
| 222 |
+
// ---------- Diff Rough Grunge Lookup ----------
|
| 223 |
+
|
| 224 |
+
float3 diff_rough_grunge_lookup = float3(
|
| 225 |
+
::base::file_texture(
|
| 226 |
+
texture: diff_rough_grunge_tex,
|
| 227 |
+
uvw: uvw,
|
| 228 |
+
mono_source: ::base::mono_average
|
| 229 |
+
).tint );
|
| 230 |
+
|
| 231 |
+
float3 multi_height_lookup = float3(
|
| 232 |
+
::base::file_texture(
|
| 233 |
+
texture: multi_heights_tex,
|
| 234 |
+
uvw: uvw,
|
| 235 |
+
mono_source: ::base::mono_average
|
| 236 |
+
).tint );
|
| 237 |
+
|
| 238 |
+
float3 norm = ::base::tangent_space_normal_texture(
|
| 239 |
+
texture: normal_tex,
|
| 240 |
+
factor: bump_strength,
|
| 241 |
+
uvw: uvw
|
| 242 |
+
);
|
| 243 |
+
|
| 244 |
+
|
| 245 |
+
float remap_rough = histogram_range(
|
| 246 |
+
input: diff_rough_grunge_lookup.y,
|
| 247 |
+
range: 1.0f,
|
| 248 |
+
position: 0.234f
|
| 249 |
+
);
|
| 250 |
+
|
| 251 |
+
|
| 252 |
+
float roughness_mapped = remap_rough + (roughness * multi_height_lookup.y);
|
| 253 |
+
|
| 254 |
+
float remapped_diff = histogram_range(
|
| 255 |
+
input: diff_rough_grunge_lookup.x,
|
| 256 |
+
range: 1.0f,
|
| 257 |
+
position: (brightness * 0.4f) + 0.4f
|
| 258 |
+
);
|
| 259 |
+
|
| 260 |
+
float diff_contribution = ::math::pow(remapped_diff - ((grooves_dirt * 0.5) * multi_height_lookup.x * diff_rough_grunge_lookup.z), 2.67f);
|
| 261 |
+
|
| 262 |
+
bsdf ggx_smith_bumped = ::df::weighted_layer(
|
| 263 |
+
layer: ::df::microfacet_ggx_smith_bsdf(
|
| 264 |
+
roughness_u: roughness_mapped * roughness_mapped,
|
| 265 |
+
roughness_v: roughness_mapped * roughness_mapped,
|
| 266 |
+
tint: color(diff_contribution),
|
| 267 |
+
mode: ::df::scatter_reflect
|
| 268 |
+
),
|
| 269 |
+
base: bsdf(),
|
| 270 |
+
weight: 1.0f,
|
| 271 |
+
normal: norm
|
| 272 |
+
);
|
| 273 |
+
|
| 274 |
+
bsdf diff_bsdf = ::df::diffuse_reflection_bsdf(
|
| 275 |
+
tint: color(diff_contribution)
|
| 276 |
+
);
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
bsdf final_bsdf = ::df::weighted_layer(
|
| 280 |
+
weight: 1.0f - (diff_rough_grunge_lookup.z * multi_height_lookup.x * grooves_dirt),
|
| 281 |
+
layer: ::df::directional_factor(
|
| 282 |
+
normal_tint: metal_tint,
|
| 283 |
+
grazing_tint: color(1.0f),
|
| 284 |
+
base: ggx_smith_bumped
|
| 285 |
+
),
|
| 286 |
+
base: diff_bsdf
|
| 287 |
+
);
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
// Round Corners
|
| 291 |
+
float3 round_normal = enable_round_corners ?
|
| 292 |
+
::state::rounded_corner_normal(
|
| 293 |
+
radius: roundcorner_radius * 0.001,
|
| 294 |
+
across_materials: across_materials
|
| 295 |
+
) : ::state::normal();
|
| 296 |
+
}
|
| 297 |
+
in material (
|
| 298 |
+
|
| 299 |
+
surface: material_surface(
|
| 300 |
+
scattering: final_bsdf
|
| 301 |
+
),
|
| 302 |
+
geometry: material_geometry(
|
| 303 |
+
normal: round_normal
|
| 304 |
+
)
|
| 305 |
+
);
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
export material Chromium_Knurling_Worn(*)
|
| 309 |
+
[[
|
| 310 |
+
::anno::display_name("Metal Knurling - Chromium Worn"),
|
| 311 |
+
::anno::description(DESCRIPTION),
|
| 312 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 313 |
+
::anno::thumbnail("./.thumbs/Chromium_Knurling.Chromium_Knurling_Worn.png"),
|
| 314 |
+
::anno::key_words(string[]("metal", "chromium", "knurled", "pattern", "knurling", "design", "bumped", "worn")),
|
| 315 |
+
::anno::contributor("Ruediger Raab"),
|
| 316 |
+
::anno::author("NVIDIA vMaterials")
|
| 317 |
+
]] = Chromium_Knurling(
|
| 318 |
+
brightness: 0.4f,
|
| 319 |
+
roughness: 1.0f,
|
| 320 |
+
grooves_dirt: 1.0f,
|
| 321 |
+
bump_strength: 0.8f,
|
| 322 |
+
|
| 323 |
+
enable_round_corners: false,
|
| 324 |
+
roundcorner_radius: 1.2f,
|
| 325 |
+
across_materials: false,
|
| 326 |
+
|
| 327 |
+
texture_translate: 0.0f,
|
| 328 |
+
texture_rotate: 0.f,
|
| 329 |
+
texture_scale: 1.0f,
|
| 330 |
+
|
| 331 |
+
uv_space_index: 0
|
| 332 |
+
);
|
| 333 |
+
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
|
| 348 |
+
|
| 349 |
+
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
|
| 353 |
+
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
|
| 358 |
+
|
| 359 |
+
|
Assets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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
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 |
+
const string DESCRIPTION = "A sheet metal material with adjustable imperfections";
|
| 62 |
+
const string DESCRIPTION_PUNCH = "Punched chromium sheet metal material with adjustable imperfections and punchings.";
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
float4 tile_select(uniform int select = 0)
|
| 66 |
+
{
|
| 67 |
+
switch (select)
|
| 68 |
+
{
|
| 69 |
+
case 0: return float4(0.000, 0.333, 0.666, 1.000);
|
| 70 |
+
case 1: return float4(0.333, 0.666, 0.666, 1.000);
|
| 71 |
+
case 2: return float4(0.666, 1.000, 0.666, 1.000);
|
| 72 |
+
|
| 73 |
+
case 3: return float4(0.000, 0.333, 0.333, 0.666);
|
| 74 |
+
case 4: return float4(0.333, 0.666, 0.333, 0.666);
|
| 75 |
+
case 5: return float4(0.666, 1.000, 0.333, 0.666);
|
| 76 |
+
|
| 77 |
+
case 6: return float4(0.000, 0.333, 0.000, 0.333);
|
| 78 |
+
case 7: return float4(0.333, 0.666, 0.000, 0.333);
|
| 79 |
+
case 8: return float4(0.666, 1.000, 0.000, 0.333);
|
| 80 |
+
|
| 81 |
+
default: return float4(0.000, 0.333, 0.000, 0.333);
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
export struct vm_coordinates
|
| 86 |
+
[[
|
| 87 |
+
::anno::hidden()
|
| 88 |
+
]]
|
| 89 |
+
{
|
| 90 |
+
float2 uv;
|
| 91 |
+
float rotation;
|
| 92 |
+
int uv_space_index;
|
| 93 |
+
float4 carry;
|
| 94 |
+
};
|
| 95 |
+
|
| 96 |
+
enum vm_mono_select
|
| 97 |
+
[[
|
| 98 |
+
anno::description("Modes for the creation of a gray-scale value from a color"),
|
| 99 |
+
anno::hidden()
|
| 100 |
+
]]
|
| 101 |
+
{
|
| 102 |
+
mono_r = 0,
|
| 103 |
+
mono_g = 1,
|
| 104 |
+
mono_b = 2,
|
| 105 |
+
mono_a = 3,
|
| 106 |
+
mono_average = 4
|
| 107 |
+
};
|
| 108 |
+
|
| 109 |
+
vm_coordinates vm_coord
|
| 110 |
+
(
|
| 111 |
+
float2 translation = float2(0.0f, 0.0) [[
|
| 112 |
+
::anno::display_name("Translation"),
|
| 113 |
+
::anno::description("Translates the coordinates.")
|
| 114 |
+
]],
|
| 115 |
+
float rotation = 0.0f [[
|
| 116 |
+
::anno::display_name("Rotation"),
|
| 117 |
+
::anno::description("Rotates the coordinates in degrees.")
|
| 118 |
+
]],
|
| 119 |
+
float2 scaling = float2(1.0f, 1.0f) [[
|
| 120 |
+
::anno::display_name("Scaling"),
|
| 121 |
+
::anno::description("Scales the coordinates.")
|
| 122 |
+
]],
|
| 123 |
+
uniform int uv_space = 0 [[
|
| 124 |
+
::anno::display_name("UV Space"),
|
| 125 |
+
::anno::description("Chose the UV space.")
|
| 126 |
+
]]
|
| 127 |
+
)
|
| 128 |
+
[[
|
| 129 |
+
::anno::display_name("vm Transform"),
|
| 130 |
+
::anno::description("Generates coordinates to be used in vm_lookup functions.")
|
| 131 |
+
]]
|
| 132 |
+
{
|
| 133 |
+
vm_coordinates uv;
|
| 134 |
+
::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space);
|
| 135 |
+
uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 136 |
+
uv.uv = float2(info.position.x, info.position.y);
|
| 137 |
+
float sine = ::math::sin(uv.rotation);
|
| 138 |
+
float cosine = ::math::cos(uv.rotation);
|
| 139 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 140 |
+
uv.uv = rot * uv.uv;
|
| 141 |
+
uv.uv /= scaling;
|
| 142 |
+
uv.uv += translation;
|
| 143 |
+
return uv;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
vm_coordinates vm_coord_hex(
|
| 148 |
+
vm_coordinates uv,
|
| 149 |
+
float scale = 1.0f)
|
| 150 |
+
{
|
| 151 |
+
vm_coordinates uv_return;
|
| 152 |
+
float2 uv_ = float2(uv.uv.x, uv.uv.y);
|
| 153 |
+
|
| 154 |
+
// same as from function get_hex above
|
| 155 |
+
float2 s = float2(1.0f, 1.7320508f);
|
| 156 |
+
float2 n = uv_ - float2(0.5f, 1.0f);
|
| 157 |
+
float4 c = ::math::floor(float4(uv_.x, uv_.y, n.x, n.y)/float4(s.x, s.y, s.x, s.y)) + 0.5f;
|
| 158 |
+
float2 h_1 = uv_ - float2(c.x, c.y) * s;
|
| 159 |
+
float2 h_2 = uv_ - (float2(c.z, c.w) + 0.5f) * s;
|
| 160 |
+
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);
|
| 161 |
+
|
| 162 |
+
uv_return.uv = float2(uv_id.x*scale+0.5, uv_id.y*scale+0.5);
|
| 163 |
+
// unless we introduce random cell rotations where we need to compensate for this in the rotation
|
| 164 |
+
// we can just plain copy the rotation value
|
| 165 |
+
uv_return.rotation = uv.rotation;
|
| 166 |
+
return uv_return;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
// Offsets a set of uv coordinates in either row (u) or column (v) direction
|
| 170 |
+
vm_coordinates vm_coord_rowcol_offset(
|
| 171 |
+
vm_coordinates uv,
|
| 172 |
+
float offset,
|
| 173 |
+
bool horizontal_offset = true
|
| 174 |
+
)
|
| 175 |
+
{
|
| 176 |
+
int index = horizontal_offset ? 0 : 1;
|
| 177 |
+
uv.uv[index] += ::math::floor(uv.uv[index ^ 1]) * offset;
|
| 178 |
+
return uv;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
vm_coordinates vm_coord_grid(
|
| 182 |
+
vm_coordinates uv,
|
| 183 |
+
float scale = 1.0f
|
| 184 |
+
)
|
| 185 |
+
{
|
| 186 |
+
float2x2 scal = float2x2(scale, 0., 0., scale);
|
| 187 |
+
uv.uv = ::math::frac(uv.uv);
|
| 188 |
+
uv.uv -= 0.5f;
|
| 189 |
+
uv.uv = scal * uv.uv;
|
| 190 |
+
uv.uv = uv.uv + 0.5f;
|
| 191 |
+
return uv;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
::base::texture_return vm_tex_lookup(
|
| 195 |
+
uniform texture_2d tex,
|
| 196 |
+
vm_coordinates uv = vm_coord(),
|
| 197 |
+
uniform vm_mono_select mono_source = mono_a,
|
| 198 |
+
float4 scale = float4(1.0f),
|
| 199 |
+
|
| 200 |
+
uniform ::tex::wrap_mode wrap_u = ::tex::wrap_repeat,
|
| 201 |
+
uniform ::tex::wrap_mode wrap_v = ::tex::wrap_repeat,
|
| 202 |
+
uniform float2 crop_u = float2(0.0, 1.0),
|
| 203 |
+
uniform float2 crop_v = float2(0.0, 1.0)
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
float mono;
|
| 207 |
+
float4 lookup = ::tex::lookup_float4(tex, uv.uv, wrap_u, wrap_v, crop_u, crop_v) * scale;
|
| 208 |
+
switch( mono_source ) {
|
| 209 |
+
case mono_r: mono = lookup.x;
|
| 210 |
+
break;
|
| 211 |
+
case mono_g: mono = lookup.y;
|
| 212 |
+
break;
|
| 213 |
+
case mono_b: mono = lookup.z;
|
| 214 |
+
break;
|
| 215 |
+
case mono_a: mono = lookup.w;
|
| 216 |
+
break;
|
| 217 |
+
case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z));
|
| 218 |
+
break;
|
| 219 |
+
}
|
| 220 |
+
return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono);
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
// *** SET CUTOUT ENUM NAMES ***
|
| 224 |
+
export enum cutout_pattern
|
| 225 |
+
[[
|
| 226 |
+
::anno::description("Cutout Pattern."),
|
| 227 |
+
::anno::hidden()
|
| 228 |
+
]]
|
| 229 |
+
{
|
| 230 |
+
pattern_circle = 0
|
| 231 |
+
[[ ::anno::display_name("Circle")]],
|
| 232 |
+
pattern_hexagon = 1
|
| 233 |
+
[[ ::anno::display_name("Hexagon")]],
|
| 234 |
+
pattern_line = 2
|
| 235 |
+
[[ ::anno::display_name("Line") ]],
|
| 236 |
+
|
| 237 |
+
pattern_square = 3
|
| 238 |
+
[[ ::anno::display_name("Square")]],
|
| 239 |
+
pattern_rectangle = 4
|
| 240 |
+
[[ ::anno::display_name("Rectangle")]],
|
| 241 |
+
pattern_cross = 5
|
| 242 |
+
[[ ::anno::display_name("Cross")]],
|
| 243 |
+
|
| 244 |
+
pattern_rhombus = 6
|
| 245 |
+
[[ ::anno::display_name("Rhombus")]],
|
| 246 |
+
pattern_triangle = 7
|
| 247 |
+
[[ ::anno::display_name("Triangle")]],
|
| 248 |
+
pattern_star = 8
|
| 249 |
+
[[ ::anno::display_name("Star")]]
|
| 250 |
+
};
|
| 251 |
+
|
| 252 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 253 |
+
{
|
| 254 |
+
return (input - x)/(y - x);
|
| 255 |
+
}
|
| 256 |
+
|
| 257 |
+
float histogram_scan_big(float input, float width, float position)
|
| 258 |
+
{
|
| 259 |
+
return ::math::clamp(
|
| 260 |
+
remap_xy_to_0_1(input,
|
| 261 |
+
::math::lerp(-width, 1.0, position),
|
| 262 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 263 |
+
0.0,
|
| 264 |
+
1.0);
|
| 265 |
+
}
|
| 266 |
+
|
| 267 |
+
|
| 268 |
+
::base::texture_coordinate_info vmat_transform(
|
| 269 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 270 |
+
uniform float rotation = 0.0,
|
| 271 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 272 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 273 |
+
uniform int uv_space = 0
|
| 274 |
+
)
|
| 275 |
+
{
|
| 276 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 277 |
+
|
| 278 |
+
float4x4 scale =
|
| 279 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 280 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 281 |
+
0. , 0. , 1.0, 0.,
|
| 282 |
+
translation.x , translation.y , 0.0, 1.);
|
| 283 |
+
|
| 284 |
+
float s = ::math::sin(rotation_rad);
|
| 285 |
+
float c = ::math::cos(rotation_rad);
|
| 286 |
+
float4x4 rotate =
|
| 287 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 288 |
+
s , c , 0.0 , 0.0,
|
| 289 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 290 |
+
0. , 0.0 , 0.0 , 1.);
|
| 291 |
+
|
| 292 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
float uint2float(int x)
|
| 296 |
+
{
|
| 297 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
int lowbias32(int x)
|
| 301 |
+
{
|
| 302 |
+
x ^= x >>> 16;
|
| 303 |
+
x *= 0x7feb352d;
|
| 304 |
+
x ^= x >>> 15;
|
| 305 |
+
x *= 0x846ca68b;
|
| 306 |
+
x ^= x >>> 16;
|
| 307 |
+
return x;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
float2 rnd22(int2 p) {
|
| 311 |
+
float2 ret_val = float2(
|
| 312 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 313 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 314 |
+
);
|
| 315 |
+
return ret_val;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
float3 srgb2rgb(float3 val)
|
| 319 |
+
{
|
| 320 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
float2x2 invert_2x2(float2x2 M)
|
| 324 |
+
{
|
| 325 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 326 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 327 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
float3 nonrepeat_lookup(
|
| 331 |
+
uniform texture_2d texture = texture_2d(),
|
| 332 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 333 |
+
float texture_scale = 1.0,
|
| 334 |
+
float3 average_color = float3(0.5),
|
| 335 |
+
float patch_size = 8.0
|
| 336 |
+
)
|
| 337 |
+
{
|
| 338 |
+
|
| 339 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 340 |
+
float Z = patch_size; // patch scale inside example texture
|
| 341 |
+
float CON = 1.0f;
|
| 342 |
+
|
| 343 |
+
float3 O = float3(0.f);
|
| 344 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 345 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 346 |
+
|
| 347 |
+
float2 U = uv_in;
|
| 348 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 349 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 350 |
+
|
| 351 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 352 |
+
// average color work out, take the float value and calculate the apropriate
|
| 353 |
+
// mean value as (value^(1/2.2))
|
| 354 |
+
|
| 355 |
+
float3 m = average_color;
|
| 356 |
+
|
| 357 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 358 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 359 |
+
|
| 360 |
+
if( F[2] > 0.f )
|
| 361 |
+
|
| 362 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 363 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 364 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 365 |
+
else
|
| 366 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 367 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 368 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 369 |
+
O = m + O/::math::length(W);
|
| 370 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 371 |
+
|
| 372 |
+
return float3(O);
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
color endless_texture(
|
| 376 |
+
uniform texture_2d texture = texture_2d(),
|
| 377 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 378 |
+
float texture_scale = 10.0,
|
| 379 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 380 |
+
float patch_size = 8.0,
|
| 381 |
+
bool gamma_correct_lookup = true
|
| 382 |
+
)
|
| 383 |
+
{
|
| 384 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 385 |
+
nonrepeat_lookup (
|
| 386 |
+
texture: texture,
|
| 387 |
+
uvw: uvw,
|
| 388 |
+
texture_scale: texture_scale,
|
| 389 |
+
average_color: average_color,
|
| 390 |
+
patch_size: patch_size
|
| 391 |
+
))
|
| 392 |
+
) : color(nonrepeat_lookup (
|
| 393 |
+
texture: texture,
|
| 394 |
+
uvw: uvw,
|
| 395 |
+
texture_scale: texture_scale,
|
| 396 |
+
average_color: average_color,
|
| 397 |
+
patch_size: patch_size
|
| 398 |
+
));
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
export material Chromium_Sheet(
|
| 403 |
+
uniform bool infinite_tiling = false [[
|
| 404 |
+
::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."),
|
| 405 |
+
::anno::display_name("Infinite Tiling"),
|
| 406 |
+
::anno::in_group("Appearance", "Main")
|
| 407 |
+
]],
|
| 408 |
+
float sheet_brightness = 0.5f [[
|
| 409 |
+
::anno::display_name("Brightness"),
|
| 410 |
+
::anno::description("Controls the brightness of the material."),
|
| 411 |
+
::anno::in_group("Appearance", "Main"),
|
| 412 |
+
::anno::hard_range(0.f, 1.f)
|
| 413 |
+
]],
|
| 414 |
+
float roughness = 0.2f [[
|
| 415 |
+
::anno::display_name("Roughness"),
|
| 416 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 417 |
+
::anno::in_group("Appearance", "Main"),
|
| 418 |
+
::anno::hard_range(0.f, 1.f)
|
| 419 |
+
]],
|
| 420 |
+
float streaks = 0.0f [[
|
| 421 |
+
::anno::display_name("Streaks Weight"),
|
| 422 |
+
::anno::description("Adds directional streaks that occur as part of the sheet manufacturing process."),
|
| 423 |
+
::anno::in_group("Appearance", "Main"),
|
| 424 |
+
::anno::hard_range(0.f, 1.f)
|
| 425 |
+
]],
|
| 426 |
+
uniform float scratch_bump_factor = 0.0f [[
|
| 427 |
+
::anno::description("Determines the degree of bumpiness."),
|
| 428 |
+
::anno::display_name("Bump Factor Streaks"),
|
| 429 |
+
::anno::in_group("Appearance", "Main"),
|
| 430 |
+
::anno::hard_range(0.f, 1.f)
|
| 431 |
+
]],
|
| 432 |
+
float imperfections_amount = 0.6f [[
|
| 433 |
+
::anno::description("Balances between a perfectly smooth metal and a surface that has various imperfections."),
|
| 434 |
+
::anno::display_name("Imperfections Amount"),
|
| 435 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 436 |
+
::anno::hard_range(0.f, 1.f)
|
| 437 |
+
]],
|
| 438 |
+
uniform float impurities_weight_1 = 0.f [[
|
| 439 |
+
::anno::display_name("Washed Imperfections Ratio"),
|
| 440 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 441 |
+
::anno::hard_range(0.f, 1.f)
|
| 442 |
+
]],
|
| 443 |
+
uniform float impurities_weight_2 = 0.939f [[
|
| 444 |
+
::anno::display_name("Noisy Imperfections Ratio"),
|
| 445 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 446 |
+
::anno::hard_range(0.f, 1.f)
|
| 447 |
+
]],
|
| 448 |
+
uniform float impurities_weight_3 = 0.0 [[
|
| 449 |
+
::anno::display_name("Splotchy Imperfection Ratio"),
|
| 450 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 451 |
+
::anno::hard_range(0.f, 1.f)
|
| 452 |
+
]],
|
| 453 |
+
uniform bool enable_round_corners = false [[
|
| 454 |
+
::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."),
|
| 455 |
+
::anno::display_name("Enable Round Corners"),
|
| 456 |
+
::anno::in_group("Round Corners")
|
| 457 |
+
]],
|
| 458 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 459 |
+
::anno::description("Radius of the rounded corners."),
|
| 460 |
+
::anno::display_name("Round Corner Radius"),
|
| 461 |
+
::anno::in_group("Round Corners"),
|
| 462 |
+
::anno::soft_range(0.f, 0.1f)
|
| 463 |
+
]],
|
| 464 |
+
uniform bool across_materials = false [[
|
| 465 |
+
::anno::display_name("Across Materials"),
|
| 466 |
+
::anno::in_group("Round Corners")
|
| 467 |
+
]],
|
| 468 |
+
uniform float2 texture_translate = 0.f [[
|
| 469 |
+
::anno::description("Controls the position of the texture."),
|
| 470 |
+
::anno::display_name("Texture Translate"),
|
| 471 |
+
::anno::in_group("Transform")
|
| 472 |
+
]],
|
| 473 |
+
uniform float texture_rotate = 0.f [[
|
| 474 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 475 |
+
::anno::display_name("Texture Rotate"),
|
| 476 |
+
::anno::in_group("Transform"),
|
| 477 |
+
::anno::soft_range(0.f, 360.f)
|
| 478 |
+
]],
|
| 479 |
+
uniform float2 texture_scale = 1.0f [[
|
| 480 |
+
::anno::description("Larger numbers increase the size."),
|
| 481 |
+
::anno::display_name("Texture Scale"),
|
| 482 |
+
::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)),
|
| 483 |
+
::anno::in_group("Transform")
|
| 484 |
+
]],
|
| 485 |
+
uniform int uv_space_index = 0 [[
|
| 486 |
+
::anno::display_name("UV Space Index"),
|
| 487 |
+
::anno::description("Uses selected UV space for material."),
|
| 488 |
+
::anno::in_group("Transform")
|
| 489 |
+
]]
|
| 490 |
+
)
|
| 491 |
+
[[
|
| 492 |
+
::anno::author("NVIDIA vMaterials"),
|
| 493 |
+
::anno::display_name("Metal Sheet Chromium - New Clean"),
|
| 494 |
+
::anno::description(DESCRIPTION),
|
| 495 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 496 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet.png"),
|
| 497 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 498 |
+
]]
|
| 499 |
+
=
|
| 500 |
+
let {
|
| 501 |
+
color normal_reflectivity = color(0.549302f, 0.5560554f, 0.5542377f);
|
| 502 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 503 |
+
|
| 504 |
+
bool tmp0 = false;
|
| 505 |
+
material_surface tmp1(
|
| 506 |
+
::df::color_custom_curve_layer(normal_reflectivity, grazing_reflectivity, 5.f, color(::math::lerp(0.400000006f, 1.f, sheet_brightness) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[1], 2.20000005f), ::math::lerp(0.f, 0.300000012f, streaks))), ::df::weighted_layer(0.0700000003f, ::df::microfacet_ggx_smith_bsdf(0.150000006f, 0.150000006f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::microfacet_ggx_smith_bsdf((::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)) * (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)), (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)) * (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::math::normalize(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./sheet_metal_norm.jpg", ::tex::gamma_linear), scratch_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), histogram_scan_big(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[2], 0.242000014f, 0.850000024f)))), bsdf(), ::math::normalize(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./sheet_metal_norm.jpg", ::tex::gamma_linear), scratch_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), histogram_scan_big(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[2], 0.242000014f, 0.850000024f)))),
|
| 507 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 508 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 509 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 510 |
+
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));
|
| 511 |
+
material_geometry tmp5(
|
| 512 |
+
float3(0.f),
|
| 513 |
+
1.f,
|
| 514 |
+
enable_round_corners ? ::state::rounded_corner_normal(roundcorner_radius, across_materials, 1.f) : ::state::normal());
|
| 515 |
+
} in
|
| 516 |
+
material(
|
| 517 |
+
thin_walled: tmp0,
|
| 518 |
+
surface: tmp1,
|
| 519 |
+
backface: tmp2,
|
| 520 |
+
ior: tmp3,
|
| 521 |
+
volume: tmp4,
|
| 522 |
+
geometry: tmp5);
|
| 523 |
+
|
| 524 |
+
|
| 525 |
+
|
| 526 |
+
export material Chromium_Sheet_Punched(
|
| 527 |
+
// Cutout parameters
|
| 528 |
+
|
| 529 |
+
uniform cutout_pattern shape_select = pattern_circle //select atlas tile here
|
| 530 |
+
[[
|
| 531 |
+
::anno::description("Select a cutout shape."),
|
| 532 |
+
::anno::display_name("Cutout Shape"),
|
| 533 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 534 |
+
::anno::ui_order(0)
|
| 535 |
+
]],
|
| 536 |
+
float2 punching_grid_size = float2(.5f, .5f)
|
| 537 |
+
[[
|
| 538 |
+
::anno::description("Scales the size of the punching grid."),
|
| 539 |
+
::anno::display_name("Punching Grid Size"),
|
| 540 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 541 |
+
::anno::ui_order(1)
|
| 542 |
+
]],
|
| 543 |
+
float cutout_size = .92f
|
| 544 |
+
[[
|
| 545 |
+
::anno::description("Scales the size of the cutout pattern independently from the base material."),
|
| 546 |
+
::anno::display_name("Cutout Size"),
|
| 547 |
+
::anno::hard_range(0.f, 1.2f),
|
| 548 |
+
::anno::soft_range(0.f, 1.0f),
|
| 549 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 550 |
+
::anno::ui_order(2)
|
| 551 |
+
]],
|
| 552 |
+
float cutout_roundness = .4f
|
| 553 |
+
[[
|
| 554 |
+
::anno::description("At low values it makes the cutouts sharper. Higher values give the shapes a more rounded look."),
|
| 555 |
+
::anno::display_name("Cutout Roundness"),
|
| 556 |
+
::anno::hard_range(0.f, 1.f),
|
| 557 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 558 |
+
::anno::ui_order(3)
|
| 559 |
+
]],
|
| 560 |
+
float cutout_bevel_width = 0.5f
|
| 561 |
+
[[
|
| 562 |
+
::anno::description("Adjusts the width of the bevel transition."),
|
| 563 |
+
::anno::display_name("Cutout Bevel Width"),
|
| 564 |
+
::anno::hard_range(0.f, 1.f),
|
| 565 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 566 |
+
::anno::ui_order(4)
|
| 567 |
+
]],
|
| 568 |
+
float cutout_bump_strength = .8f
|
| 569 |
+
[[
|
| 570 |
+
::anno::description("Sets the strength of the bevelled normal around the cutout."),
|
| 571 |
+
::anno::display_name("Cutout Bevel Strength"),
|
| 572 |
+
::anno::soft_range(0.0f, 1.0f),
|
| 573 |
+
::anno::hard_range(0.0f, 2.0f),
|
| 574 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 575 |
+
::anno::ui_order(5)
|
| 576 |
+
]],
|
| 577 |
+
// Grid Layout parameters
|
| 578 |
+
bool hexagonal_grid = true
|
| 579 |
+
[[
|
| 580 |
+
::anno::description("When enabled, the punching will occur on a hexagonal grid, otherwise a square grid."),
|
| 581 |
+
::anno::display_name("Enable Hexagonal Grid"),
|
| 582 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 583 |
+
::anno::ui_order(6)
|
| 584 |
+
]],
|
| 585 |
+
float square_grid_offset = 0.0f
|
| 586 |
+
[[
|
| 587 |
+
::anno::description("Offsets each row of the grid by a certain amount."),
|
| 588 |
+
::anno::display_name("Square Grid Offset"),
|
| 589 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 590 |
+
::anno::enable_if("hexagonal_grid==false"),
|
| 591 |
+
::anno::ui_order(7)
|
| 592 |
+
]],
|
| 593 |
+
bool horizontal_offset = true
|
| 594 |
+
[[
|
| 595 |
+
::anno::description("Choose whether to offset either in row or column direction."),
|
| 596 |
+
::anno::display_name("Horizontal Offset"),
|
| 597 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 598 |
+
::anno::enable_if("hexagonal_grid==false"),
|
| 599 |
+
::anno::ui_order(8)
|
| 600 |
+
]],
|
| 601 |
+
|
| 602 |
+
|
| 603 |
+
|
| 604 |
+
// Chromium Sheet parameters
|
| 605 |
+
uniform bool infinite_tiling = false [[
|
| 606 |
+
::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."),
|
| 607 |
+
::anno::display_name("Infinite Tiling"),
|
| 608 |
+
::anno::in_group("Appearance", "Main")
|
| 609 |
+
]],
|
| 610 |
+
float sheet_brightness = 0.9f [[
|
| 611 |
+
::anno::display_name("Brightness"),
|
| 612 |
+
::anno::description("Controls the brightness of the material."),
|
| 613 |
+
::anno::in_group("Appearance", "Main"),
|
| 614 |
+
::anno::hard_range(0.f, 1.f)
|
| 615 |
+
]],
|
| 616 |
+
float roughness = 0.2f [[
|
| 617 |
+
::anno::display_name("Roughness"),
|
| 618 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 619 |
+
::anno::in_group("Appearance", "Main"),
|
| 620 |
+
::anno::hard_range(0.f, 1.f)
|
| 621 |
+
]],
|
| 622 |
+
float streaks = 0.1f [[
|
| 623 |
+
::anno::display_name("Streaks Weight"),
|
| 624 |
+
::anno::description("Adds directional streaks that occur as part of the sheet manufacturing process."),
|
| 625 |
+
::anno::in_group("Appearance", "Main"),
|
| 626 |
+
::anno::hard_range(0.f, 1.f)
|
| 627 |
+
]],
|
| 628 |
+
uniform float scratch_bump_factor = 0.0f [[
|
| 629 |
+
::anno::description("Determines the degree of bumpiness."),
|
| 630 |
+
::anno::display_name("Bump Factor Streaks"),
|
| 631 |
+
::anno::in_group("Appearance", "Main"),
|
| 632 |
+
::anno::hard_range(0.f, 1.f)
|
| 633 |
+
]],
|
| 634 |
+
float imperfections_amount = 0.6f [[
|
| 635 |
+
::anno::description("Balances between a perfectly smooth metal and a surface that has various imperfections."),
|
| 636 |
+
::anno::display_name("Imperfections Amount"),
|
| 637 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 638 |
+
::anno::hard_range(0.f, 1.f)
|
| 639 |
+
]],
|
| 640 |
+
uniform float impurities_weight_1 = 0.3f [[
|
| 641 |
+
::anno::display_name("Washed Imperfections Ratio"),
|
| 642 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 643 |
+
::anno::hard_range(0.f, 1.f)
|
| 644 |
+
]],
|
| 645 |
+
uniform float impurities_weight_2 = 1.0f [[
|
| 646 |
+
::anno::display_name("Noisy Imperfections Ratio"),
|
| 647 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 648 |
+
::anno::hard_range(0.f, 1.f)
|
| 649 |
+
]],
|
| 650 |
+
uniform float impurities_weight_3 = 0.5f [[
|
| 651 |
+
::anno::display_name("Splotchy Imperfection Ratio"),
|
| 652 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 653 |
+
::anno::hard_range(0.f, 1.f)
|
| 654 |
+
]],
|
| 655 |
+
uniform float2 texture_translate = 0.f [[
|
| 656 |
+
::anno::description("Controls the position of the texture."),
|
| 657 |
+
::anno::display_name("Texture Translate"),
|
| 658 |
+
::anno::in_group("Transform")
|
| 659 |
+
]],
|
| 660 |
+
uniform float texture_rotate = 0.f [[
|
| 661 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 662 |
+
::anno::display_name("Texture Rotate"),
|
| 663 |
+
::anno::in_group("Transform"),
|
| 664 |
+
::anno::soft_range(0.f, 360.f)
|
| 665 |
+
]],
|
| 666 |
+
uniform float2 texture_scale = 1.0f [[
|
| 667 |
+
::anno::description("Larger numbers increase the size."),
|
| 668 |
+
::anno::display_name("Texture Scale"),
|
| 669 |
+
::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)),
|
| 670 |
+
::anno::in_group("Transform")
|
| 671 |
+
]],
|
| 672 |
+
uniform int uv_space_index = 0 [[
|
| 673 |
+
::anno::display_name("UV Space Index"),
|
| 674 |
+
::anno::description("Uses selected UV space for material."),
|
| 675 |
+
::anno::in_group("Transform")
|
| 676 |
+
]],
|
| 677 |
+
uniform bool enable_round_corners = false [[
|
| 678 |
+
::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."),
|
| 679 |
+
::anno::display_name("Enable Round Corners"),
|
| 680 |
+
::anno::in_group("Round Corners")
|
| 681 |
+
]],
|
| 682 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 683 |
+
::anno::description("Radius of the rounded corners."),
|
| 684 |
+
::anno::display_name("Round Corner Radius"),
|
| 685 |
+
::anno::in_group("Round Corners"),
|
| 686 |
+
::anno::soft_range(0.f, 0.1f)
|
| 687 |
+
]],
|
| 688 |
+
uniform bool across_materials = false [[
|
| 689 |
+
::anno::display_name("Across Materials"),
|
| 690 |
+
::anno::in_group("Round Corners")
|
| 691 |
+
]]
|
| 692 |
+
)
|
| 693 |
+
[[
|
| 694 |
+
::anno::author("NVIDIA vMaterials"),
|
| 695 |
+
::anno::contributor("Rüdiger Raab"),
|
| 696 |
+
::anno::contributor("Maik Rohland"),
|
| 697 |
+
::anno::display_name("Chromium Sheet - Circular Punch"),
|
| 698 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 699 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 700 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched.png"),
|
| 701 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "neutral"))
|
| 702 |
+
]] = let
|
| 703 |
+
{
|
| 704 |
+
material base_mat = Chromium_Sheet(
|
| 705 |
+
infinite_tiling: infinite_tiling,
|
| 706 |
+
sheet_brightness: sheet_brightness,
|
| 707 |
+
roughness: roughness,
|
| 708 |
+
streaks: streaks,
|
| 709 |
+
scratch_bump_factor: scratch_bump_factor,
|
| 710 |
+
imperfections_amount: imperfections_amount,
|
| 711 |
+
impurities_weight_1: impurities_weight_1,
|
| 712 |
+
impurities_weight_2: impurities_weight_2,
|
| 713 |
+
impurities_weight_3: impurities_weight_3,
|
| 714 |
+
texture_translate: texture_translate,
|
| 715 |
+
texture_rotate: texture_rotate,
|
| 716 |
+
texture_scale: texture_scale,
|
| 717 |
+
uv_space_index: uv_space_index,
|
| 718 |
+
enable_round_corners: enable_round_corners,
|
| 719 |
+
roundcorner_radius: roundcorner_radius,
|
| 720 |
+
across_materials: across_materials
|
| 721 |
+
);
|
| 722 |
+
texture_2d punching_cutout = texture_2d("./atlas_02_norm_dist.png", ::tex::gamma_linear);
|
| 723 |
+
|
| 724 |
+
// remap range of slider to avoid artifacts in the bevelling
|
| 725 |
+
float2 punching_scale = texture_scale * 0.01f * punching_grid_size;
|
| 726 |
+
float cutout_roundness_ = cutout_roundness*0.6f+0.4f;
|
| 727 |
+
float cutout_size_lin = (1.0f/cutout_size);
|
| 728 |
+
float cutout_bevel_width_ = 0.1 + cutout_bevel_width * 0.9f;
|
| 729 |
+
|
| 730 |
+
vm_coordinates uv = vm_coord(
|
| 731 |
+
translation: texture_translate,
|
| 732 |
+
rotation: texture_rotate,
|
| 733 |
+
scaling: punching_scale,
|
| 734 |
+
uv_space: uv_space_index
|
| 735 |
+
);
|
| 736 |
+
|
| 737 |
+
vm_coordinates punching_uv = hexagonal_grid ? vm_coord_hex(
|
| 738 |
+
uv: uv,
|
| 739 |
+
scale: cutout_roundness_ * cutout_size_lin
|
| 740 |
+
) : vm_coord_grid(
|
| 741 |
+
uv: vm_coord_rowcol_offset(
|
| 742 |
+
uv: uv,
|
| 743 |
+
offset: square_grid_offset,
|
| 744 |
+
horizontal_offset: horizontal_offset
|
| 745 |
+
),
|
| 746 |
+
scale: cutout_roundness_ * cutout_size_lin
|
| 747 |
+
);
|
| 748 |
+
// select the correct subtile from the atlas
|
| 749 |
+
float4 crop = tile_select(shape_select);
|
| 750 |
+
|
| 751 |
+
::base::texture_return lookup = vm_tex_lookup(
|
| 752 |
+
tex: punching_cutout,
|
| 753 |
+
uv: punching_uv,
|
| 754 |
+
mono_source: mono_a,
|
| 755 |
+
scale: float4(1.0f),
|
| 756 |
+
crop_u: float2(crop.x, crop.y),
|
| 757 |
+
crop_v: float2(crop.z, crop.w),
|
| 758 |
+
wrap_u: ::tex::wrap_clamp,
|
| 759 |
+
wrap_v: ::tex::wrap_clamp
|
| 760 |
+
);
|
| 761 |
+
|
| 762 |
+
float low = (1.0 - cutout_roundness_);
|
| 763 |
+
float high = (cutout_size_lin * (cutout_bevel_width_ * 0.2f) * cutout_roundness_) + (1.0 - cutout_roundness_);
|
| 764 |
+
// remap x...y to (clamped) 0...1
|
| 765 |
+
float x = ::math::clamp((lookup.mono - low)/(high - low), 0.0, 1.0);
|
| 766 |
+
// spherical falloff
|
| 767 |
+
float falloff=::math::sqrt(1.0-x*x);
|
| 768 |
+
// masking falloff as the center of the cutout is flat
|
| 769 |
+
float masked_falloff=falloff<=0.0?1.0:falloff;
|
| 770 |
+
|
| 771 |
+
// where base material is still there, use the value of the base material
|
| 772 |
+
float cutout= ::math::min(falloff<=0.0?0.0:1.0, base_mat.geometry.cutout_opacity);
|
| 773 |
+
|
| 774 |
+
// bring in -.5 ... +.5 range and lerp between lookup and flat normal
|
| 775 |
+
float3 remap_norm = ::math::lerp(float3(lookup.tint), float3(0.5, 0.5, 1.0), masked_falloff) - float3(0.5);
|
| 776 |
+
float3 t_norm = ::math::normalize(remap_norm * float3(cutout_bump_strength, cutout_bump_strength, 1.0));
|
| 777 |
+
|
| 778 |
+
float3 rotfix_norm = float3(::math::cos(punching_uv.rotation) * t_norm.x - ::math::sin(punching_uv.rotation) * t_norm.y,
|
| 779 |
+
::math::sin(punching_uv.rotation) * t_norm.x + ::math::cos(punching_uv.rotation) * t_norm.y,
|
| 780 |
+
t_norm.z);
|
| 781 |
+
|
| 782 |
+
float3 normal = ::state::texture_tangent_u(punching_uv.uv_space_index) * rotfix_norm.x +
|
| 783 |
+
::state::texture_tangent_v(punching_uv.uv_space_index) * rotfix_norm.y +
|
| 784 |
+
::state::normal() * rotfix_norm.z;
|
| 785 |
+
|
| 786 |
+
float3 final_normal = ::base::blend_normals(
|
| 787 |
+
base_normal: normal,
|
| 788 |
+
base_normal_weight: 1.0f,
|
| 789 |
+
detail_normal: base_mat.geometry.normal,
|
| 790 |
+
detail_normal_weight: 1.0f
|
| 791 |
+
);
|
| 792 |
+
|
| 793 |
+
} in material(
|
| 794 |
+
surface: material_surface(
|
| 795 |
+
scattering: base_mat.surface.scattering
|
| 796 |
+
),
|
| 797 |
+
volume: base_mat.volume,
|
| 798 |
+
ior: base_mat.ior,
|
| 799 |
+
thin_walled: true,
|
| 800 |
+
geometry: material_geometry(
|
| 801 |
+
displacement: base_mat.geometry.displacement,
|
| 802 |
+
normal: final_normal,
|
| 803 |
+
cutout_opacity: cutout
|
| 804 |
+
)
|
| 805 |
+
);
|
| 806 |
+
|
| 807 |
+
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
// ------------------------ Chromium Sheet Presets ------------------------
|
| 811 |
+
export material Chromium_Sheet_Soft_Splotches(*)
|
| 812 |
+
[[
|
| 813 |
+
::anno::author("NVIDIA vMaterials"),
|
| 814 |
+
::anno::display_name("Metal Sheet Chromium - Soft Splotches"),
|
| 815 |
+
::anno::description(DESCRIPTION),
|
| 816 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 817 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Soft_Splotches.png"),
|
| 818 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral", "gray"))
|
| 819 |
+
]]
|
| 820 |
+
= Chromium_Sheet(
|
| 821 |
+
infinite_tiling: false,
|
| 822 |
+
sheet_brightness: 0.5f,
|
| 823 |
+
roughness: 0.3f,
|
| 824 |
+
streaks: 0.0f,
|
| 825 |
+
scratch_bump_factor: 0.0f,
|
| 826 |
+
imperfections_amount: 0.75f,
|
| 827 |
+
impurities_weight_1: 0.75f,
|
| 828 |
+
impurities_weight_2: 0.01f,
|
| 829 |
+
impurities_weight_3: 0.98f,
|
| 830 |
+
enable_round_corners: false,
|
| 831 |
+
roundcorner_radius: 0.01f,
|
| 832 |
+
across_materials: false,
|
| 833 |
+
texture_translate: 0.0f,
|
| 834 |
+
texture_rotate: 0.0f,
|
| 835 |
+
texture_scale: 1.0f,
|
| 836 |
+
uv_space_index: 0
|
| 837 |
+
);
|
| 838 |
+
|
| 839 |
+
|
| 840 |
+
|
| 841 |
+
|
| 842 |
+
export material Chromium_Sheet_Matte_Imperfections(*)
|
| 843 |
+
[[
|
| 844 |
+
::anno::author("NVIDIA vMaterials"),
|
| 845 |
+
::anno::display_name("Metal Sheet Chromium - Matte Imperfections"),
|
| 846 |
+
::anno::description(DESCRIPTION),
|
| 847 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 848 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Matte_Imperfections.png"),
|
| 849 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "matte", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 850 |
+
]]= Chromium_Sheet(
|
| 851 |
+
infinite_tiling: false,
|
| 852 |
+
sheet_brightness: 0.85f,
|
| 853 |
+
roughness: 0.75f,
|
| 854 |
+
streaks: 0.0f,
|
| 855 |
+
scratch_bump_factor: 0.0f,
|
| 856 |
+
imperfections_amount: 0.265f,
|
| 857 |
+
impurities_weight_1: 0.75f,
|
| 858 |
+
impurities_weight_2: 0.43f,
|
| 859 |
+
impurities_weight_3: 0.0f,
|
| 860 |
+
enable_round_corners: false,
|
| 861 |
+
roundcorner_radius: 0.01f,
|
| 862 |
+
across_materials: false,
|
| 863 |
+
texture_translate: 0.0f,
|
| 864 |
+
texture_rotate: 0.0f,
|
| 865 |
+
texture_scale: 1.0f,
|
| 866 |
+
uv_space_index: 0
|
| 867 |
+
);
|
| 868 |
+
|
| 869 |
+
|
| 870 |
+
|
| 871 |
+
|
| 872 |
+
export material Chromium_Sheet_Glossy_Imperfections(*)
|
| 873 |
+
[[
|
| 874 |
+
::anno::author("NVIDIA vMaterials"),
|
| 875 |
+
::anno::display_name("Metal Sheet Chromium - Glossy Imperfections"),
|
| 876 |
+
::anno::description(DESCRIPTION),
|
| 877 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 878 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Glossy_Imperfections.png"),
|
| 879 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 880 |
+
]]
|
| 881 |
+
= Chromium_Sheet(
|
| 882 |
+
infinite_tiling: false,
|
| 883 |
+
sheet_brightness: 0.85f,
|
| 884 |
+
roughness: 0.3f,
|
| 885 |
+
streaks: 0.1f,
|
| 886 |
+
scratch_bump_factor: 0.15f,
|
| 887 |
+
imperfections_amount: 0.1f,
|
| 888 |
+
impurities_weight_1: 0.75f,
|
| 889 |
+
impurities_weight_2: 0.89f,
|
| 890 |
+
impurities_weight_3: 0.86f,
|
| 891 |
+
enable_round_corners: false,
|
| 892 |
+
roundcorner_radius: 0.01f,
|
| 893 |
+
across_materials: false,
|
| 894 |
+
texture_translate: 0.0f,
|
| 895 |
+
texture_rotate: 0.0f,
|
| 896 |
+
texture_scale: 1.0f,
|
| 897 |
+
uv_space_index: 0
|
| 898 |
+
);
|
| 899 |
+
|
| 900 |
+
|
| 901 |
+
|
| 902 |
+
|
| 903 |
+
export material Chromium_Sheet_Splotchy_Streaks(*)
|
| 904 |
+
[[
|
| 905 |
+
::anno::author("NVIDIA vMaterials"),
|
| 906 |
+
::anno::display_name("Metal Sheet Chromium - Splotchy Streaks"),
|
| 907 |
+
::anno::description(DESCRIPTION),
|
| 908 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 909 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Splotchy_Streaks.png"),
|
| 910 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 911 |
+
]]= Chromium_Sheet(
|
| 912 |
+
infinite_tiling: false,
|
| 913 |
+
sheet_brightness: 0.85f,
|
| 914 |
+
roughness: 0.6f,
|
| 915 |
+
streaks: 0.1f,
|
| 916 |
+
scratch_bump_factor: 0.2f,
|
| 917 |
+
imperfections_amount: 0.26f,
|
| 918 |
+
impurities_weight_1: 1.0f,
|
| 919 |
+
impurities_weight_2: 0.76f,
|
| 920 |
+
impurities_weight_3: 0.13f,
|
| 921 |
+
enable_round_corners: false,
|
| 922 |
+
roundcorner_radius: 0.01f,
|
| 923 |
+
across_materials: false,
|
| 924 |
+
texture_translate: 0.0f,
|
| 925 |
+
texture_rotate: 0.0f,
|
| 926 |
+
texture_scale: 1.0f,
|
| 927 |
+
uv_space_index: 0
|
| 928 |
+
);
|
| 929 |
+
|
| 930 |
+
export material Chromium_Sheet_Glossy_Streaks(*)
|
| 931 |
+
[[
|
| 932 |
+
::anno::author("NVIDIA vMaterials"),
|
| 933 |
+
::anno::display_name("Metal Sheet Chromium - Glossy Streaks"),
|
| 934 |
+
::anno::description(DESCRIPTION),
|
| 935 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 936 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Glossy_Streaks.png"),
|
| 937 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 938 |
+
]]
|
| 939 |
+
= Chromium_Sheet(
|
| 940 |
+
infinite_tiling: false,
|
| 941 |
+
sheet_brightness: 0.65f,
|
| 942 |
+
roughness: 0.25f,
|
| 943 |
+
streaks: 0.8f,
|
| 944 |
+
scratch_bump_factor: 0.88f,
|
| 945 |
+
imperfections_amount: 0.86f,
|
| 946 |
+
impurities_weight_1: 1.0f,
|
| 947 |
+
impurities_weight_2: 0.75f,
|
| 948 |
+
impurities_weight_3: 0.125f,
|
| 949 |
+
enable_round_corners: false,
|
| 950 |
+
roundcorner_radius: 0.01f,
|
| 951 |
+
across_materials: false,
|
| 952 |
+
texture_translate: 0.0f,
|
| 953 |
+
texture_rotate: 0.0f,
|
| 954 |
+
texture_scale: 1.0f,
|
| 955 |
+
uv_space_index: 0
|
| 956 |
+
);
|
| 957 |
+
|
| 958 |
+
// ------------------------ Punched Chromium Sheet Presets ------------------------
|
| 959 |
+
|
| 960 |
+
export material Chromium_Sheet_Punched_Circular_Small(*)
|
| 961 |
+
[[
|
| 962 |
+
::anno::author("NVIDIA vMaterials"),
|
| 963 |
+
::anno::contributor("Rüdiger Raab"),
|
| 964 |
+
::anno::contributor("Maik Rohland"),
|
| 965 |
+
::anno::display_name("Chromium Sheet - Small Circular Punch"),
|
| 966 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 967 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 968 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Circular_Small.png"),
|
| 969 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "circular", "neutral"))
|
| 970 |
+
]] = Chromium_Sheet_Punched (
|
| 971 |
+
// Punching parameters
|
| 972 |
+
shape_select: pattern_circle,
|
| 973 |
+
punching_grid_size: float2(.6f),
|
| 974 |
+
cutout_size: 0.5f,
|
| 975 |
+
cutout_roundness: 0.4f,
|
| 976 |
+
cutout_bevel_width: 0.5f,
|
| 977 |
+
cutout_bump_strength: 0.8f,
|
| 978 |
+
hexagonal_grid: true,
|
| 979 |
+
square_grid_offset: 0.0f,
|
| 980 |
+
horizontal_offset: true,
|
| 981 |
+
|
| 982 |
+
// Material Parameters
|
| 983 |
+
infinite_tiling: false,
|
| 984 |
+
sheet_brightness: 0.65f,
|
| 985 |
+
roughness: 0.25f,
|
| 986 |
+
streaks: 0.8f,
|
| 987 |
+
scratch_bump_factor: 0.88f,
|
| 988 |
+
imperfections_amount: 0.86f,
|
| 989 |
+
impurities_weight_1: 1.0f,
|
| 990 |
+
impurities_weight_2: 0.75f,
|
| 991 |
+
impurities_weight_3: 0.125f,
|
| 992 |
+
enable_round_corners: false,
|
| 993 |
+
roundcorner_radius: 0.01f,
|
| 994 |
+
across_materials: false,
|
| 995 |
+
texture_translate: 0.0f,
|
| 996 |
+
texture_rotate: 0.0f,
|
| 997 |
+
texture_scale: 1.0f,
|
| 998 |
+
uv_space_index: 0
|
| 999 |
+
);
|
| 1000 |
+
|
| 1001 |
+
|
| 1002 |
+
export material Chromium_Sheet_Punched_Hexagonal(*)
|
| 1003 |
+
[[
|
| 1004 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1005 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1006 |
+
::anno::contributor("Maik Rohland"),
|
| 1007 |
+
::anno::display_name("Chromium Sheet - Hexagonal Punch"),
|
| 1008 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1009 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1010 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Hexagonal.png"),
|
| 1011 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "hexagonal", "neutral"))
|
| 1012 |
+
]] = Chromium_Sheet_Punched (
|
| 1013 |
+
// Punching parameters
|
| 1014 |
+
shape_select: pattern_hexagon,
|
| 1015 |
+
punching_grid_size: 1.5f,
|
| 1016 |
+
cutout_size: .95f,
|
| 1017 |
+
cutout_roundness: 0.4f,
|
| 1018 |
+
cutout_bevel_width: 0.5f,
|
| 1019 |
+
cutout_bump_strength: 1.5f,
|
| 1020 |
+
hexagonal_grid: true,
|
| 1021 |
+
square_grid_offset: 0.0f,
|
| 1022 |
+
horizontal_offset: true,
|
| 1023 |
+
|
| 1024 |
+
// Material Parameters
|
| 1025 |
+
infinite_tiling: false,
|
| 1026 |
+
sheet_brightness: 0.65f,
|
| 1027 |
+
roughness: 0.25f,
|
| 1028 |
+
streaks: 0.8f,
|
| 1029 |
+
scratch_bump_factor: 0.88f,
|
| 1030 |
+
imperfections_amount: 0.86f,
|
| 1031 |
+
impurities_weight_1: 1.0f,
|
| 1032 |
+
impurities_weight_2: 0.75f,
|
| 1033 |
+
impurities_weight_3: 0.125f,
|
| 1034 |
+
enable_round_corners: false,
|
| 1035 |
+
roundcorner_radius: 0.01f,
|
| 1036 |
+
across_materials: false,
|
| 1037 |
+
texture_translate: 0.0f,
|
| 1038 |
+
texture_rotate: 0.0f,
|
| 1039 |
+
texture_scale: 1.0f,
|
| 1040 |
+
uv_space_index: 0
|
| 1041 |
+
);
|
| 1042 |
+
|
| 1043 |
+
|
| 1044 |
+
export material Chromium_Sheet_Punched_Hexagonal_Small(*)
|
| 1045 |
+
[[
|
| 1046 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1047 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1048 |
+
::anno::contributor("Maik Rohland"),
|
| 1049 |
+
::anno::display_name("Chromium Sheet - Small Hexagonal Punch"),
|
| 1050 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1051 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1052 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Hexagonal_Small.png"),
|
| 1053 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "hexagonal", "neutral"))
|
| 1054 |
+
]] = Chromium_Sheet_Punched (
|
| 1055 |
+
// Punching parameters
|
| 1056 |
+
shape_select: pattern_hexagon,
|
| 1057 |
+
punching_grid_size: float2(.75f),
|
| 1058 |
+
cutout_size: .58f,
|
| 1059 |
+
cutout_roundness: 0.4f,
|
| 1060 |
+
cutout_bevel_width: 0.3f,
|
| 1061 |
+
cutout_bump_strength: 1.5f,
|
| 1062 |
+
hexagonal_grid: true,
|
| 1063 |
+
square_grid_offset: 0.0f,
|
| 1064 |
+
horizontal_offset: true,
|
| 1065 |
+
|
| 1066 |
+
// Material Parameters
|
| 1067 |
+
infinite_tiling: false,
|
| 1068 |
+
sheet_brightness: 0.65f,
|
| 1069 |
+
roughness: 0.25f,
|
| 1070 |
+
streaks: 0.8f,
|
| 1071 |
+
scratch_bump_factor: 0.88f,
|
| 1072 |
+
imperfections_amount: 0.86f,
|
| 1073 |
+
impurities_weight_1: 1.0f,
|
| 1074 |
+
impurities_weight_2: 0.75f,
|
| 1075 |
+
impurities_weight_3: 0.125f,
|
| 1076 |
+
enable_round_corners: false,
|
| 1077 |
+
roundcorner_radius: 0.01f,
|
| 1078 |
+
across_materials: false,
|
| 1079 |
+
texture_translate: 0.0f,
|
| 1080 |
+
texture_rotate: 0.0f,
|
| 1081 |
+
texture_scale: 1.0f,
|
| 1082 |
+
uv_space_index: 0
|
| 1083 |
+
);
|
| 1084 |
+
|
| 1085 |
+
|
| 1086 |
+
export material Chromium_Sheet_Punched_Square(*)
|
| 1087 |
+
[[
|
| 1088 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1089 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1090 |
+
::anno::contributor("Maik Rohland"),
|
| 1091 |
+
::anno::display_name("Chromium Sheet - Square Punch"),
|
| 1092 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1093 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1094 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Square.png"),
|
| 1095 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "square", "neutral"))
|
| 1096 |
+
]] = Chromium_Sheet_Punched (
|
| 1097 |
+
// Punching parameters
|
| 1098 |
+
shape_select: pattern_square,
|
| 1099 |
+
punching_grid_size: 1.2f,
|
| 1100 |
+
cutout_size: 0.56f,
|
| 1101 |
+
cutout_roundness: 0.1f,
|
| 1102 |
+
cutout_bevel_width: 0.5f,
|
| 1103 |
+
cutout_bump_strength: 1.5f,
|
| 1104 |
+
hexagonal_grid: false,
|
| 1105 |
+
square_grid_offset: 0.5f,
|
| 1106 |
+
horizontal_offset: true,
|
| 1107 |
+
|
| 1108 |
+
// Material Parameters
|
| 1109 |
+
infinite_tiling: false,
|
| 1110 |
+
sheet_brightness: 0.65f,
|
| 1111 |
+
roughness: 0.25f,
|
| 1112 |
+
streaks: 0.8f,
|
| 1113 |
+
scratch_bump_factor: 0.88f,
|
| 1114 |
+
imperfections_amount: 0.86f,
|
| 1115 |
+
impurities_weight_1: 1.0f,
|
| 1116 |
+
impurities_weight_2: 0.75f,
|
| 1117 |
+
impurities_weight_3: 0.125f,
|
| 1118 |
+
enable_round_corners: false,
|
| 1119 |
+
roundcorner_radius: 0.01f,
|
| 1120 |
+
across_materials: false,
|
| 1121 |
+
texture_translate: 0.0f,
|
| 1122 |
+
texture_rotate: 0.0f,
|
| 1123 |
+
texture_scale: 1.0f,
|
| 1124 |
+
uv_space_index: 0
|
| 1125 |
+
);
|
| 1126 |
+
|
| 1127 |
+
|
| 1128 |
+
export material Chromium_Sheet_Punched_Line(*)
|
| 1129 |
+
[[
|
| 1130 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1131 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1132 |
+
::anno::contributor("Maik Rohland"),
|
| 1133 |
+
::anno::display_name("Chromium Sheet - Line Punch"),
|
| 1134 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1135 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1136 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Line.png"),
|
| 1137 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "line", "neutral"))
|
| 1138 |
+
]] = Chromium_Sheet_Punched (
|
| 1139 |
+
// Punching parameters
|
| 1140 |
+
shape_select: pattern_line,
|
| 1141 |
+
punching_grid_size: 1.3f,
|
| 1142 |
+
cutout_size: 0.59f,
|
| 1143 |
+
cutout_roundness: 0.4f,
|
| 1144 |
+
cutout_bevel_width: 0.3f,
|
| 1145 |
+
cutout_bump_strength: 1.5f,
|
| 1146 |
+
hexagonal_grid: false,
|
| 1147 |
+
square_grid_offset: 0.3333f,
|
| 1148 |
+
horizontal_offset: true,
|
| 1149 |
+
|
| 1150 |
+
// Material Parameters
|
| 1151 |
+
infinite_tiling: false,
|
| 1152 |
+
sheet_brightness: 0.65f,
|
| 1153 |
+
roughness: 0.25f,
|
| 1154 |
+
streaks: 0.8f,
|
| 1155 |
+
scratch_bump_factor: 0.88f,
|
| 1156 |
+
imperfections_amount: 0.86f,
|
| 1157 |
+
impurities_weight_1: 1.0f,
|
| 1158 |
+
impurities_weight_2: 0.75f,
|
| 1159 |
+
impurities_weight_3: 0.125f,
|
| 1160 |
+
enable_round_corners: false,
|
| 1161 |
+
roundcorner_radius: 0.01f,
|
| 1162 |
+
across_materials: false,
|
| 1163 |
+
texture_translate: 0.0f,
|
| 1164 |
+
texture_rotate: 0.0f,
|
| 1165 |
+
texture_scale: 1.0f,
|
| 1166 |
+
uv_space_index: 0
|
| 1167 |
+
);
|
| 1168 |
+
|
| 1169 |
+
|
| 1170 |
+
|
| 1171 |
+
export material Chromium_Sheet_Punched_Cross(*)
|
| 1172 |
+
[[
|
| 1173 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1174 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1175 |
+
::anno::contributor("Maik Rohland"),
|
| 1176 |
+
::anno::display_name("Chromium Sheet - Cross Punch"),
|
| 1177 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1178 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1179 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Cross.png"),
|
| 1180 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "cross", "neutral"))
|
| 1181 |
+
]] = Chromium_Sheet_Punched (
|
| 1182 |
+
// Punching parameters
|
| 1183 |
+
shape_select: pattern_cross,
|
| 1184 |
+
punching_grid_size: 2.0f,
|
| 1185 |
+
cutout_size: 0.59f,
|
| 1186 |
+
cutout_roundness: 0.1f,
|
| 1187 |
+
cutout_bevel_width: 0.44f,
|
| 1188 |
+
cutout_bump_strength: 1.5f,
|
| 1189 |
+
hexagonal_grid: true,
|
| 1190 |
+
square_grid_offset: 0.0f,
|
| 1191 |
+
horizontal_offset: true,
|
| 1192 |
+
|
| 1193 |
+
// Material Parameters
|
| 1194 |
+
infinite_tiling: false,
|
| 1195 |
+
sheet_brightness: 0.65f,
|
| 1196 |
+
roughness: 0.25f,
|
| 1197 |
+
streaks: 0.8f,
|
| 1198 |
+
scratch_bump_factor: 0.88f,
|
| 1199 |
+
imperfections_amount: 0.86f,
|
| 1200 |
+
impurities_weight_1: 1.0f,
|
| 1201 |
+
impurities_weight_2: 0.75f,
|
| 1202 |
+
impurities_weight_3: 0.125f,
|
| 1203 |
+
enable_round_corners: false,
|
| 1204 |
+
roundcorner_radius: 0.01f,
|
| 1205 |
+
across_materials: false,
|
| 1206 |
+
texture_translate: 0.0f,
|
| 1207 |
+
texture_rotate: 0.0f,
|
| 1208 |
+
texture_scale: 1.0f,
|
| 1209 |
+
uv_space_index: 0
|
| 1210 |
+
);
|
| 1211 |
+
|
| 1212 |
+
|
| 1213 |
+
export material Chromium_Sheet_Punched_Rhombus(*)
|
| 1214 |
+
[[
|
| 1215 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1216 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1217 |
+
::anno::contributor("Maik Rohland"),
|
| 1218 |
+
::anno::display_name("Chromium Sheet - Rhombus Punch"),
|
| 1219 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1220 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1221 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Rhombus.png"),
|
| 1222 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "rhombus", "neutral"))
|
| 1223 |
+
]] = Chromium_Sheet_Punched (
|
| 1224 |
+
// Punching parameters
|
| 1225 |
+
shape_select: pattern_rhombus,
|
| 1226 |
+
punching_grid_size: 1.4f,
|
| 1227 |
+
cutout_size: 1.0f,
|
| 1228 |
+
cutout_roundness: 0.8f,
|
| 1229 |
+
cutout_bevel_width: 0.5f,
|
| 1230 |
+
cutout_bump_strength: 1.5f,
|
| 1231 |
+
hexagonal_grid: true,
|
| 1232 |
+
square_grid_offset: 0.0f,
|
| 1233 |
+
horizontal_offset: true,
|
| 1234 |
+
|
| 1235 |
+
// Material Parameters
|
| 1236 |
+
infinite_tiling: false,
|
| 1237 |
+
sheet_brightness: 0.65f,
|
| 1238 |
+
roughness: 0.25f,
|
| 1239 |
+
streaks: 0.8f,
|
| 1240 |
+
scratch_bump_factor: 0.88f,
|
| 1241 |
+
imperfections_amount: 0.86f,
|
| 1242 |
+
impurities_weight_1: 1.0f,
|
| 1243 |
+
impurities_weight_2: 0.75f,
|
| 1244 |
+
impurities_weight_3: 0.125f,
|
| 1245 |
+
enable_round_corners: false,
|
| 1246 |
+
roundcorner_radius: 0.01f,
|
| 1247 |
+
across_materials: false,
|
| 1248 |
+
texture_translate: 0.0f,
|
| 1249 |
+
texture_rotate: 0.0f,
|
| 1250 |
+
texture_scale: 1.0f,
|
| 1251 |
+
uv_space_index: 0
|
| 1252 |
+
);
|
| 1253 |
+
|
| 1254 |
+
|
| 1255 |
+
export material Chromium_Sheet_Punched_Triangle(*)
|
| 1256 |
+
[[
|
| 1257 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1258 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1259 |
+
::anno::contributor("Maik Rohland"),
|
| 1260 |
+
::anno::display_name("Chromium Sheet - Triangle Punch"),
|
| 1261 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1262 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1263 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Triangle.png"),
|
| 1264 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "triangle", "neutral"))
|
| 1265 |
+
]] = Chromium_Sheet_Punched (
|
| 1266 |
+
// Punching parameters
|
| 1267 |
+
shape_select: pattern_triangle,
|
| 1268 |
+
punching_grid_size: 1.3f,
|
| 1269 |
+
cutout_size: 1.08f,
|
| 1270 |
+
cutout_roundness: 1.0f,
|
| 1271 |
+
cutout_bevel_width: 1.0f,
|
| 1272 |
+
cutout_bump_strength: 1.5f,
|
| 1273 |
+
hexagonal_grid: true,
|
| 1274 |
+
square_grid_offset: 0.0f,
|
| 1275 |
+
horizontal_offset: true,
|
| 1276 |
+
|
| 1277 |
+
// Material Parameters
|
| 1278 |
+
infinite_tiling: false,
|
| 1279 |
+
sheet_brightness: 0.65f,
|
| 1280 |
+
roughness: 0.25f,
|
| 1281 |
+
streaks: 0.8f,
|
| 1282 |
+
scratch_bump_factor: 0.88f,
|
| 1283 |
+
imperfections_amount: 0.86f,
|
| 1284 |
+
impurities_weight_1: 1.0f,
|
| 1285 |
+
impurities_weight_2: 0.75f,
|
| 1286 |
+
impurities_weight_3: 0.125f,
|
| 1287 |
+
enable_round_corners: false,
|
| 1288 |
+
roundcorner_radius: 0.01f,
|
| 1289 |
+
across_materials: false,
|
| 1290 |
+
texture_translate: 0.0f,
|
| 1291 |
+
texture_rotate: 0.0f,
|
| 1292 |
+
texture_scale: 1.0f,
|
| 1293 |
+
uv_space_index: 0
|
| 1294 |
+
);
|
| 1295 |
+
|
| 1296 |
+
|
| 1297 |
+
export material Chromium_Sheet_Punched_Star(*)
|
| 1298 |
+
[[
|
| 1299 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1300 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1301 |
+
::anno::contributor("Maik Rohland"),
|
| 1302 |
+
::anno::display_name("Chromium Sheet - Star Punch"),
|
| 1303 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1304 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1305 |
+
::anno::thumbnail("./.thumbs/Chromium_Sheet.Chromium_Sheet_Punched_Star.png"),
|
| 1306 |
+
::anno::key_words(string[]("metal", "sheet", "chromium", "interior", "exterior", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "decorative", "punched", "punching", "star", "neutral"))
|
| 1307 |
+
]] = Chromium_Sheet_Punched (
|
| 1308 |
+
// Punching parameters
|
| 1309 |
+
shape_select: pattern_star,
|
| 1310 |
+
punching_grid_size: 1.5f,
|
| 1311 |
+
cutout_size: 0.68f,
|
| 1312 |
+
cutout_roundness: 0.5f,
|
| 1313 |
+
cutout_bevel_width: 0.44f,
|
| 1314 |
+
cutout_bump_strength: 1.5f,
|
| 1315 |
+
hexagonal_grid: true,
|
| 1316 |
+
square_grid_offset: 0.0f,
|
| 1317 |
+
horizontal_offset: true,
|
| 1318 |
+
|
| 1319 |
+
// Material Parameters
|
| 1320 |
+
infinite_tiling: false,
|
| 1321 |
+
sheet_brightness: 0.65f,
|
| 1322 |
+
roughness: 0.25f,
|
| 1323 |
+
streaks: 0.8f,
|
| 1324 |
+
scratch_bump_factor: 0.88f,
|
| 1325 |
+
imperfections_amount: 0.86f,
|
| 1326 |
+
impurities_weight_1: 1.0f,
|
| 1327 |
+
impurities_weight_2: 0.75f,
|
| 1328 |
+
impurities_weight_3: 0.125f,
|
| 1329 |
+
enable_round_corners: false,
|
| 1330 |
+
roundcorner_radius: 0.01f,
|
| 1331 |
+
across_materials: false,
|
| 1332 |
+
texture_translate: 0.0f,
|
| 1333 |
+
texture_rotate: 0.0f,
|
| 1334 |
+
texture_scale: 1.0f,
|
| 1335 |
+
uv_space_index: 0
|
| 1336 |
+
);
|
Assets/Material/material_0444/Metal_Mesh_Weave_02.mdl
ADDED
|
@@ -0,0 +1,606 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 ::df::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::math::*;
|
| 42 |
+
import ::state::*;
|
| 43 |
+
import ::anno::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::dimension;
|
| 46 |
+
|
| 47 |
+
const string COPYRIGHT =
|
| 48 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 49 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 50 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 51 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 52 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 53 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 54 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 55 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 56 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 57 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 58 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
uniform float4x4 rotation_translation_scale(
|
| 62 |
+
uniform float3 rotation = float3(0.)
|
| 63 |
+
[[ ::anno::description("Rotation applied to every UVW coordinate.") ]],
|
| 64 |
+
uniform float3 translation = float3(0.)
|
| 65 |
+
[[ ::anno::description("Offset applied to every UVW coordinate.") ]],
|
| 66 |
+
uniform float3 scaling = float3(1.)
|
| 67 |
+
[[ ::anno::description("Scale applied to every UVW coordinate.") ]]
|
| 68 |
+
)
|
| 69 |
+
[[
|
| 70 |
+
::anno::description("Construct transformation matrix from Euler rotation, translation and scale."),
|
| 71 |
+
::anno::hidden()
|
| 72 |
+
]]
|
| 73 |
+
{
|
| 74 |
+
float4x4 scale =
|
| 75 |
+
float4x4(scaling.x , 0. , 0. , 0.,
|
| 76 |
+
0. , scaling.y , 0. , 0.,
|
| 77 |
+
0. , 0. , scaling.z , 0.,
|
| 78 |
+
translation.x, translation.y, translation.z, 1.);
|
| 79 |
+
|
| 80 |
+
float3 s = ::math::sin(rotation);
|
| 81 |
+
float3 c = ::math::cos(rotation);
|
| 82 |
+
float4x4 rotate =
|
| 83 |
+
float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0,
|
| 84 |
+
c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0,
|
| 85 |
+
-s.y , s.x*c.y , c.x*c.y , 0.0,
|
| 86 |
+
0. , 0 , 0 , 1.);
|
| 87 |
+
|
| 88 |
+
return scale*rotate;
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
::base::texture_return blend_colors(
|
| 92 |
+
color color_1 = color(1.0, 0.0, 0.0),
|
| 93 |
+
color color_2 = color(0.0, 1.0, 0.0),
|
| 94 |
+
float blend = 0.5
|
| 95 |
+
)
|
| 96 |
+
[[
|
| 97 |
+
::anno::hidden()
|
| 98 |
+
]]
|
| 99 |
+
{
|
| 100 |
+
return ::base::blend_color_layers(
|
| 101 |
+
layers: ::base::color_layer[](
|
| 102 |
+
::base::color_layer(
|
| 103 |
+
layer_color: color_2,
|
| 104 |
+
weight: blend,
|
| 105 |
+
mode: ::base::color_layer_blend
|
| 106 |
+
)),
|
| 107 |
+
base: color_1
|
| 108 |
+
);
|
| 109 |
+
}
|
| 110 |
+
|
| 111 |
+
::base::texture_return multiply_colors(
|
| 112 |
+
color color_1 = color(1.0, 0.0, 0.0),
|
| 113 |
+
color color_2 = color(0.0, 1.0, 0.0),
|
| 114 |
+
float blend = 0.5
|
| 115 |
+
)
|
| 116 |
+
[[
|
| 117 |
+
::anno::hidden()
|
| 118 |
+
]]
|
| 119 |
+
{
|
| 120 |
+
return ::base::blend_color_layers(
|
| 121 |
+
layers: ::base::color_layer[](
|
| 122 |
+
::base::color_layer(
|
| 123 |
+
layer_color: color_2,
|
| 124 |
+
weight: blend,
|
| 125 |
+
mode: ::base::color_layer_multiply
|
| 126 |
+
)),
|
| 127 |
+
base: color_1
|
| 128 |
+
);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
// Returns the normal n in tangent space, given n is in internal space.
|
| 132 |
+
float3 transform_internal_to_tangent(float3 n)
|
| 133 |
+
[[
|
| 134 |
+
::anno::hidden(),
|
| 135 |
+
::anno::unused()
|
| 136 |
+
|
| 137 |
+
]]
|
| 138 |
+
{
|
| 139 |
+
return
|
| 140 |
+
n.x* float3(::state::texture_tangent_u(0).x,::state::texture_tangent_v(0).x,::state::normal().x)+
|
| 141 |
+
n.y* float3(::state::texture_tangent_u(0).y,::state::texture_tangent_v(0).y,::state::normal().y)+
|
| 142 |
+
n.z* float3(::state::texture_tangent_u(0).z,::state::texture_tangent_v(0).z,::state::normal().z);
|
| 143 |
+
}
|
| 144 |
+
|
| 145 |
+
// Returns the normal n in internal space, given n is in tangent space.
|
| 146 |
+
float3 transform_tangent_to_internal(float3 n)
|
| 147 |
+
[[
|
| 148 |
+
::anno::hidden(),
|
| 149 |
+
::anno::unused()
|
| 150 |
+
]]
|
| 151 |
+
{
|
| 152 |
+
return ::state::texture_tangent_u(0) * n.x +
|
| 153 |
+
::state::texture_tangent_v(0) * n.y +
|
| 154 |
+
::state::normal() * n.z ;
|
| 155 |
+
}
|
| 156 |
+
|
| 157 |
+
|
| 158 |
+
// Returns a normal by adding a detail normal to a global normal.
|
| 159 |
+
float3 add_detail_normal(float3 nd = ::state::normal(), float3 n = ::state::normal())
|
| 160 |
+
[[
|
| 161 |
+
::anno::hidden(),
|
| 162 |
+
::anno::unused()
|
| 163 |
+
]]
|
| 164 |
+
{
|
| 165 |
+
// http://blog.selfshadow.com/publications/blending-in-detail/
|
| 166 |
+
float3 n_t = transform_internal_to_tangent(n);
|
| 167 |
+
float3 nd_t = transform_internal_to_tangent(nd);
|
| 168 |
+
|
| 169 |
+
n_t=n_t + float3(0.,0.,1.);
|
| 170 |
+
nd_t = nd_t * float3(-1.,-1.,1.);
|
| 171 |
+
|
| 172 |
+
n = n_t*::math::dot(n_t, nd_t)/n_t.z - nd_t;
|
| 173 |
+
return ::math::normalize(transform_tangent_to_internal(n));
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
enum metal_color_enum{steel = 0, brass = 1, copper = 2};
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
export material Metal_Mesh_Weave_02 (
|
| 180 |
+
color weave_color = color(0.373615, 0.186989, 0.052842)
|
| 181 |
+
[[
|
| 182 |
+
::anno::display_name("Metal Weave Color"),
|
| 183 |
+
::anno::description("Specifies the base color of the material."),
|
| 184 |
+
::anno::in_group("Appearance")
|
| 185 |
+
]],
|
| 186 |
+
float weave_color_variation = 0.0
|
| 187 |
+
[[
|
| 188 |
+
::anno::display_name("Weave Color Variation"),
|
| 189 |
+
::anno::hard_range(float(0.0f), float(1.0f)),
|
| 190 |
+
::anno::description("Adds some brightness variation to the metal color."),
|
| 191 |
+
::anno::in_group("Appearance")
|
| 192 |
+
]],
|
| 193 |
+
float weave_roughness = float(0.6)
|
| 194 |
+
[[
|
| 195 |
+
::anno::display_name("Metal Weave Roughness"),
|
| 196 |
+
::anno::soft_range(float(0.0f), float(1.0f)),
|
| 197 |
+
::anno::description("The Roughness of the material."),
|
| 198 |
+
::anno::in_group("Appearance")
|
| 199 |
+
]],
|
| 200 |
+
color rod_color = color(.37)
|
| 201 |
+
[[
|
| 202 |
+
::anno::display_name("Metal Bar Color"),
|
| 203 |
+
::anno::description("Specifies the base color of the material."),
|
| 204 |
+
::anno::in_group("Appearance")
|
| 205 |
+
]],
|
| 206 |
+
float rod_roughness = float(0.0)
|
| 207 |
+
[[
|
| 208 |
+
::anno::display_name("Metal Bar Roughness"),
|
| 209 |
+
::anno::hard_range(float(0.0f), float(1.0f)),
|
| 210 |
+
::anno::description("The Roughness of the material."),
|
| 211 |
+
::anno::in_group("Appearance")
|
| 212 |
+
]],
|
| 213 |
+
float AO_weight = 0.7
|
| 214 |
+
[[
|
| 215 |
+
::anno::display_name("Metal Darkening"),
|
| 216 |
+
::anno::hard_range(float(0.0f), float(1.0f)),
|
| 217 |
+
::anno::description("Darkens the appearance of the weave by weighing in precalculated ambient occlusion."),
|
| 218 |
+
::anno::in_group("Other")
|
| 219 |
+
]],
|
| 220 |
+
|
| 221 |
+
uniform float bump_amount_1 = 1.0
|
| 222 |
+
[[
|
| 223 |
+
::anno::display_name("Weaving Bump Amount"),
|
| 224 |
+
::anno::description("Specifies the intensity of the normal texture."),
|
| 225 |
+
::anno::in_group("Appearance")
|
| 226 |
+
]],
|
| 227 |
+
|
| 228 |
+
// Adjustments Group
|
| 229 |
+
uniform float2 texture_translate = 0.0f
|
| 230 |
+
[[
|
| 231 |
+
::anno::display_name("Translate"),
|
| 232 |
+
::anno::description("Controls the position of the texture."),
|
| 233 |
+
::anno::in_group("Adjustments")
|
| 234 |
+
]],
|
| 235 |
+
uniform float texture_rotate = 0.0f
|
| 236 |
+
[[
|
| 237 |
+
::anno::display_name("Rotate"),
|
| 238 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 239 |
+
::anno::in_group("Adjustments")
|
| 240 |
+
]],
|
| 241 |
+
uniform float2 texture_scale = 2.0f
|
| 242 |
+
[[
|
| 243 |
+
::anno::display_name("Scale"),
|
| 244 |
+
::anno::description("Larger numbers increase the size."),
|
| 245 |
+
::nvidia::core_definitions::dimension(float2(1.0f, 2.0f)),
|
| 246 |
+
::anno::in_group("Adjustments")
|
| 247 |
+
]]
|
| 248 |
+
)
|
| 249 |
+
[[
|
| 250 |
+
::anno::author("NVIDIA ARC"),
|
| 251 |
+
::anno::display_name("Metalweave 02"),
|
| 252 |
+
::anno::description("A woven brushed metal material."),
|
| 253 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 254 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial")),
|
| 255 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Metal_Mesh_Weave_02.png"),
|
| 256 |
+
::anno::hidden()
|
| 257 |
+
]] = let {
|
| 258 |
+
|
| 259 |
+
float specular = 0.5;
|
| 260 |
+
float metallic = 1.0;
|
| 261 |
+
float rod_roughness_mapped = rod_roughness * 0.5;
|
| 262 |
+
float diffuse_metal_amount = 0.1; // This accounts for the fact, that all the rough metals also behave a bit like
|
| 263 |
+
// diffuse surfaces. This is a lazy method but proves to give enough visual
|
| 264 |
+
// credibility
|
| 265 |
+
// Textures
|
| 266 |
+
texture_2d weave_colormask_tex = texture_2d("./metalweave_02_color_mask.png", ::tex::gamma_srgb);
|
| 267 |
+
texture_2d weave_metalcolormask_tex = texture_2d("./metalweave_02_metalcolor_mask.png", ::tex::gamma_srgb);
|
| 268 |
+
texture_2d weave_roughness_tex = texture_2d("./metalweave_02_rough.jpg", ::tex::gamma_linear);
|
| 269 |
+
texture_2d weave_normal_tex = texture_2d("./metalweave_02_norm.jpg", ::tex::gamma_linear);
|
| 270 |
+
texture_2d AO_tex = texture_2d("./metalweave_02_AO.jpg", ::tex::gamma_srgb);
|
| 271 |
+
|
| 272 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(
|
| 273 |
+
coordinate_system: ::base::texture_coordinate_uvw,
|
| 274 |
+
texture_space: 0
|
| 275 |
+
);
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
::base::texture_coordinate_info transformed_uvw = ::base::transform_coordinate(
|
| 279 |
+
transform: rotation_translation_scale(
|
| 280 |
+
scaling: float3(4.f/texture_scale.x, 4.f/texture_scale.y, 1.0),
|
| 281 |
+
rotation: float3(0.0, 0.0, texture_rotate/180.*::math::PI ),
|
| 282 |
+
translation: float3(texture_translate.x, texture_translate.y, 0.0)
|
| 283 |
+
),
|
| 284 |
+
coordinate: uvw
|
| 285 |
+
);
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
::base::texture_coordinate_info AO_and_norm_uvw = ::base::transform_coordinate(
|
| 289 |
+
transform: float4x4(2 , 0.0 , 0.0, 0.0,
|
| 290 |
+
0.0 , 2 , 0.0, 0.0,
|
| 291 |
+
0.0 , 0.0 , 1.0, 0.0,
|
| 292 |
+
0.0 , 0.0 , 0.0, 1.0),
|
| 293 |
+
coordinate: transformed_uvw
|
| 294 |
+
);
|
| 295 |
+
|
| 296 |
+
::base::texture_coordinate_info color_mask_uvw = ::base::transform_coordinate(
|
| 297 |
+
transform: float4x4(2 , 0.0 , 0.0, 0.0,
|
| 298 |
+
0.0 , 10 , 0.0, 0.0,
|
| 299 |
+
0.0 , 0.0 , 1.0, 0.0,
|
| 300 |
+
0.0 , 0.0 , 0.0, 1.0),
|
| 301 |
+
coordinate: transformed_uvw
|
| 302 |
+
);
|
| 303 |
+
|
| 304 |
+
|
| 305 |
+
float weave_colormask_lookup = ::base::file_texture(
|
| 306 |
+
texture: weave_colormask_tex,
|
| 307 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 308 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 309 |
+
mono_source: ::base::mono_average,
|
| 310 |
+
uvw: color_mask_uvw,
|
| 311 |
+
clip: false
|
| 312 |
+
).mono;
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
float weave_metalcolormask_lookup = ::base::file_texture(
|
| 316 |
+
texture: weave_metalcolormask_tex,
|
| 317 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 318 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 319 |
+
mono_source: ::base::mono_average,
|
| 320 |
+
uvw: transformed_uvw,
|
| 321 |
+
clip: false
|
| 322 |
+
).mono;
|
| 323 |
+
|
| 324 |
+
color AO_lookup = ::base::file_texture(
|
| 325 |
+
texture: AO_tex,
|
| 326 |
+
color_offset: color(0.0, 0.0, 0.0),
|
| 327 |
+
color_scale: color(1.0, 1.0, 1.0),
|
| 328 |
+
mono_source: ::base::mono_average,
|
| 329 |
+
uvw: AO_and_norm_uvw,
|
| 330 |
+
clip: false
|
| 331 |
+
).tint;
|
| 332 |
+
|
| 333 |
+
float weave_roughness_lookup = ::base::file_texture(
|
| 334 |
+
texture: weave_roughness_tex,
|
| 335 |
+
color_offset: color(0.025, 0.025, 0.025),
|
| 336 |
+
color_scale: color(weave_roughness),
|
| 337 |
+
mono_source: ::base::mono_average,
|
| 338 |
+
uvw: transformed_uvw,
|
| 339 |
+
clip: false
|
| 340 |
+
).mono;
|
| 341 |
+
|
| 342 |
+
float roughness = ::math::lerp(weave_roughness_lookup, rod_roughness_mapped, weave_colormask_lookup);
|
| 343 |
+
|
| 344 |
+
color metal_color = blend_colors(weave_color, weave_color * (1.0-(weave_color_variation*0.7)), weave_metalcolormask_lookup).tint;
|
| 345 |
+
|
| 346 |
+
color base_color = multiply_colors(blend_colors(metal_color, rod_color, weave_colormask_lookup).tint,
|
| 347 |
+
AO_lookup,
|
| 348 |
+
AO_weight
|
| 349 |
+
).tint;
|
| 350 |
+
|
| 351 |
+
// Metallic Roughness Model
|
| 352 |
+
bsdf diffuse_bsdf = ::df::diffuse_reflection_bsdf(
|
| 353 |
+
roughness: 0.0f, //assign the user controllable
|
| 354 |
+
tint: base_color //values to the bsdf
|
| 355 |
+
);
|
| 356 |
+
|
| 357 |
+
bsdf ggx_smith_bsdf = ::df::microfacet_ggx_smith_bsdf(
|
| 358 |
+
roughness_u: roughness*roughness,
|
| 359 |
+
roughness_v: roughness*roughness,
|
| 360 |
+
tint: color(1.0, 1.0, 1.0),
|
| 361 |
+
mode: ::df::scatter_reflect
|
| 362 |
+
);
|
| 363 |
+
|
| 364 |
+
bsdf custom_curve_layer_bsdf = ::df::custom_curve_layer(
|
| 365 |
+
normal_reflectivity: 0.08 * specular,
|
| 366 |
+
grazing_reflectivity: 1.0,
|
| 367 |
+
exponent: 3.0,
|
| 368 |
+
weight: 1.0,
|
| 369 |
+
layer: ggx_smith_bsdf,
|
| 370 |
+
base: diffuse_bsdf
|
| 371 |
+
);
|
| 372 |
+
|
| 373 |
+
bsdf directional_factor_bsdf = ::df::directional_factor(
|
| 374 |
+
normal_tint: base_color,
|
| 375 |
+
grazing_tint: base_color,
|
| 376 |
+
exponent: 3.0f,
|
| 377 |
+
base: ggx_smith_bsdf
|
| 378 |
+
);
|
| 379 |
+
|
| 380 |
+
bsdf pre_final_bsdf = ::df::weighted_layer(
|
| 381 |
+
base: custom_curve_layer_bsdf,
|
| 382 |
+
weight: metallic,
|
| 383 |
+
layer: directional_factor_bsdf
|
| 384 |
+
);
|
| 385 |
+
|
| 386 |
+
bsdf final_bsdf = ::df::weighted_layer(
|
| 387 |
+
weight: diffuse_metal_amount,
|
| 388 |
+
layer: diffuse_bsdf,
|
| 389 |
+
base: pre_final_bsdf
|
| 390 |
+
);
|
| 391 |
+
|
| 392 |
+
// Normal lookup
|
| 393 |
+
float3 the_normal = ::base::tangent_space_normal_texture(
|
| 394 |
+
texture: weave_normal_tex,
|
| 395 |
+
factor: bump_amount_1,
|
| 396 |
+
uvw: AO_and_norm_uvw,
|
| 397 |
+
flip_tangent_u: false,
|
| 398 |
+
flip_tangent_v: false
|
| 399 |
+
);
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
} in material (
|
| 403 |
+
surface: material_surface(
|
| 404 |
+
scattering: final_bsdf
|
| 405 |
+
),
|
| 406 |
+
geometry: material_geometry(
|
| 407 |
+
normal: the_normal
|
| 408 |
+
)
|
| 409 |
+
);
|
| 410 |
+
|
| 411 |
+
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
// 1 Copper Steel
|
| 416 |
+
export material Woven_Metal_02_Copper_Steel(*)
|
| 417 |
+
[[
|
| 418 |
+
::anno::author("NVIDIA vMaterials"),
|
| 419 |
+
::anno::display_name("Metal Weave 02 - Copper Steel"),
|
| 420 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 421 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "copper", "steel", "warm")),
|
| 422 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Steel.png"),
|
| 423 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 424 |
+
]]
|
| 425 |
+
= Metal_Mesh_Weave_02(
|
| 426 |
+
weave_color: color(0.812241, 0.302125, 0.136099),
|
| 427 |
+
weave_color_variation: 0.5f,
|
| 428 |
+
weave_roughness: 0.75f,
|
| 429 |
+
rod_color: color(0.368591),
|
| 430 |
+
rod_roughness: 0.0f,
|
| 431 |
+
AO_weight: .7f,
|
| 432 |
+
bump_amount_1: 1.0f,
|
| 433 |
+
texture_translate: 0.0f,
|
| 434 |
+
texture_rotate: 0.0f,
|
| 435 |
+
texture_scale: 2.0f
|
| 436 |
+
);
|
| 437 |
+
|
| 438 |
+
// 2 Copper Pure
|
| 439 |
+
export material Woven_Metal_02_Copper_Pure(*)
|
| 440 |
+
[[
|
| 441 |
+
::anno::author("NVIDIA vMaterials"),
|
| 442 |
+
::anno::display_name("Metal Weave 02 - Copper Pure"),
|
| 443 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 444 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "copper", "warm")),
|
| 445 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Pure.png"),
|
| 446 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 447 |
+
]]
|
| 448 |
+
= Metal_Mesh_Weave_02(
|
| 449 |
+
weave_color: color(0.812241, 0.302125, 0.136099),
|
| 450 |
+
weave_color_variation: 0.5f,
|
| 451 |
+
weave_roughness: 0.33f,
|
| 452 |
+
rod_color: color(0.358654, 0.133209, 0.060032),
|
| 453 |
+
rod_roughness: 0.0f,
|
| 454 |
+
AO_weight: .7f,
|
| 455 |
+
bump_amount_1: 1.0f,
|
| 456 |
+
texture_translate: 0.0f,
|
| 457 |
+
texture_rotate: 0.0f,
|
| 458 |
+
texture_scale: 2.0f
|
| 459 |
+
);
|
| 460 |
+
|
| 461 |
+
|
| 462 |
+
// 3 Brass Steel
|
| 463 |
+
export material Woven_Metal_02_Brass_Steel(*)
|
| 464 |
+
[[
|
| 465 |
+
::anno::author("NVIDIA vMaterials"),
|
| 466 |
+
::anno::display_name("Metal Weave 02 - Brass Steel"),
|
| 467 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 468 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "brass", "steel", "yellow", "gold", "warm")),
|
| 469 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Steel.png"),
|
| 470 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 471 |
+
]]
|
| 472 |
+
= Metal_Mesh_Weave_02(
|
| 473 |
+
weave_color: color(0.652370, 0.464741, 0.163641),
|
| 474 |
+
weave_color_variation: 0.5f,
|
| 475 |
+
weave_roughness: 0.33f,
|
| 476 |
+
rod_color: color(0.368591),
|
| 477 |
+
rod_roughness: 0.0f,
|
| 478 |
+
AO_weight: .7f,
|
| 479 |
+
bump_amount_1: 1.0f,
|
| 480 |
+
texture_translate: 0.0f,
|
| 481 |
+
texture_rotate: 0.0f,
|
| 482 |
+
texture_scale: 2.0f
|
| 483 |
+
);
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
// 4 Brass Pure
|
| 487 |
+
export material Woven_Metal_02_Brass_Pure(*)
|
| 488 |
+
[[
|
| 489 |
+
::anno::author("NVIDIA vMaterials"),
|
| 490 |
+
::anno::display_name("Metal Weave 02 - Brass Pure"),
|
| 491 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 492 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "brass", "yellow", "gold", "warm")),
|
| 493 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Pure.png"),
|
| 494 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 495 |
+
]]
|
| 496 |
+
= Metal_Mesh_Weave_02(
|
| 497 |
+
weave_color: color(0.652370, 0.464741, 0.163641),
|
| 498 |
+
weave_color_variation: 0.5f,
|
| 499 |
+
weave_roughness: 0.33f,
|
| 500 |
+
rod_color: color(0.358654, 0.254916, 0.089194),
|
| 501 |
+
rod_roughness: 0.5f,
|
| 502 |
+
AO_weight: .7f,
|
| 503 |
+
bump_amount_1: 1.0f,
|
| 504 |
+
texture_translate: 0.0f,
|
| 505 |
+
texture_rotate: 0.0f,
|
| 506 |
+
texture_scale: 2.0f
|
| 507 |
+
);
|
| 508 |
+
|
| 509 |
+
// 5 Steel Brass
|
| 510 |
+
export material Woven_Metal_02_Steel_Brass(*)
|
| 511 |
+
[[
|
| 512 |
+
::anno::author("NVIDIA vMaterials"),
|
| 513 |
+
::anno::display_name("Metal Weave 02 - Steel Brass"),
|
| 514 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 515 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "steel", "brass", "gray")),
|
| 516 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Brass.png"),
|
| 517 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 518 |
+
]]
|
| 519 |
+
= Metal_Mesh_Weave_02(
|
| 520 |
+
weave_color: color(0.383775),
|
| 521 |
+
weave_color_variation: 0.5f,
|
| 522 |
+
weave_roughness: 0.33f,
|
| 523 |
+
rod_color: color(0.358654, 0.254916, 0.089194),
|
| 524 |
+
rod_roughness: 0.2f,
|
| 525 |
+
AO_weight: .7f,
|
| 526 |
+
bump_amount_1: 1.0f,
|
| 527 |
+
texture_translate: 0.0f,
|
| 528 |
+
texture_rotate: 0.0f,
|
| 529 |
+
texture_scale: 2.0f
|
| 530 |
+
);
|
| 531 |
+
|
| 532 |
+
|
| 533 |
+
// 6 Steel Brass
|
| 534 |
+
export material Woven_Metal_02_Steel_Pure(*)
|
| 535 |
+
[[
|
| 536 |
+
::anno::author("NVIDIA vMaterials"),
|
| 537 |
+
::anno::display_name("Metal Weave 02 - Steel Pure"),
|
| 538 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 539 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "steel", "gray")),
|
| 540 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Pure.png"),
|
| 541 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 542 |
+
]]
|
| 543 |
+
= Metal_Mesh_Weave_02(
|
| 544 |
+
weave_color: color(0.383775),
|
| 545 |
+
weave_color_variation: 0.5f,
|
| 546 |
+
weave_roughness: 0.33f,
|
| 547 |
+
rod_color: color(0.250840),
|
| 548 |
+
rod_roughness: 0.2f,
|
| 549 |
+
AO_weight: .7f,
|
| 550 |
+
bump_amount_1: 1.0f,
|
| 551 |
+
texture_translate: 0.0f,
|
| 552 |
+
texture_rotate: 0.0f,
|
| 553 |
+
texture_scale: 2.0f
|
| 554 |
+
);
|
| 555 |
+
|
| 556 |
+
|
| 557 |
+
// 7 Gold Glossy
|
| 558 |
+
export material Woven_Metal_02_Gold_Glossy(*)
|
| 559 |
+
[[
|
| 560 |
+
::anno::author("NVIDIA vMaterials"),
|
| 561 |
+
::anno::display_name("Metal Weave 02 - Gold Glossy"),
|
| 562 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 563 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "steel", "gold", "glossy", "warm")),
|
| 564 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Glossy.png"),
|
| 565 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 566 |
+
]]
|
| 567 |
+
= Metal_Mesh_Weave_02(
|
| 568 |
+
weave_color: color(0.796917, 0.493616, 0.103634),
|
| 569 |
+
weave_color_variation: 0.4f,
|
| 570 |
+
weave_roughness: 0.2f,
|
| 571 |
+
rod_color: color(0.368591),
|
| 572 |
+
rod_roughness: 0.2f,
|
| 573 |
+
AO_weight: .7f,
|
| 574 |
+
bump_amount_1: 1.0f,
|
| 575 |
+
texture_translate: 0.0f,
|
| 576 |
+
texture_rotate: 0.0f,
|
| 577 |
+
texture_scale: 2.0f
|
| 578 |
+
);
|
| 579 |
+
|
| 580 |
+
|
| 581 |
+
// 8 Gold Matte
|
| 582 |
+
export material Woven_Metal_02_Gold_Matte(*)
|
| 583 |
+
[[
|
| 584 |
+
::anno::author("NVIDIA vMaterials"),
|
| 585 |
+
::anno::display_name("Metal Weave 02 - Gold Matte"),
|
| 586 |
+
::anno::description("Strong metal shapes woven around metal rods forming a solid sheet of metal."),
|
| 587 |
+
::anno::key_words(string[]("design", "metal", "mesh", "weave", "woven", "fancy", "decorative", "brushed", "bumped", "new", "multimaterial", "steel", "gold", "matte", "warm")),
|
| 588 |
+
::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Matte.png"),
|
| 589 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 590 |
+
]]
|
| 591 |
+
= Metal_Mesh_Weave_02(
|
| 592 |
+
weave_color: color(0.796917, 0.493616, 0.103634),
|
| 593 |
+
weave_color_variation: 0.8f,
|
| 594 |
+
weave_roughness: 0.9f,
|
| 595 |
+
rod_color: color(0.368591),
|
| 596 |
+
rod_roughness: 0.5f,
|
| 597 |
+
AO_weight: .7f,
|
| 598 |
+
bump_amount_1: 1.0f,
|
| 599 |
+
texture_translate: 0.0f,
|
| 600 |
+
texture_rotate: 0.0f,
|
| 601 |
+
texture_scale: 2.0f
|
| 602 |
+
);
|
| 603 |
+
|
| 604 |
+
|
| 605 |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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.4;
|
| 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 |
+
const string COPYRIGHT =
|
| 48 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 49 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 50 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 51 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 52 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 53 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 54 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 55 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 56 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 57 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 58 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
::base::texture_coordinate_info vmat_transform(
|
| 62 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 63 |
+
uniform float rotation = 0.0,
|
| 64 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 65 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 66 |
+
uniform int uv_space = 0
|
| 67 |
+
)
|
| 68 |
+
{
|
| 69 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 70 |
+
|
| 71 |
+
float4x4 scale =
|
| 72 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 73 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 74 |
+
0. , 0. , 1.0, 0.,
|
| 75 |
+
translation.x , translation.y , 0.0, 1.);
|
| 76 |
+
|
| 77 |
+
float s = ::math::sin(rotation_rad);
|
| 78 |
+
float c = ::math::cos(rotation_rad);
|
| 79 |
+
float4x4 rotate =
|
| 80 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 81 |
+
s , c , 0.0 , 0.0,
|
| 82 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 83 |
+
0. , 0.0 , 0.0 , 1.);
|
| 84 |
+
|
| 85 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
float uint2float(int x)
|
| 90 |
+
{
|
| 91 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 92 |
+
}
|
| 93 |
+
|
| 94 |
+
int lowbias32(int x)
|
| 95 |
+
{
|
| 96 |
+
x ^= x >>> 16;
|
| 97 |
+
x *= 0x7feb352d;
|
| 98 |
+
x ^= x >>> 15;
|
| 99 |
+
x *= 0x846ca68b;
|
| 100 |
+
x ^= x >>> 16;
|
| 101 |
+
return x;
|
| 102 |
+
}
|
| 103 |
+
|
| 104 |
+
float2 rnd22(int2 p) {
|
| 105 |
+
float2 ret_val = float2(
|
| 106 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 107 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 108 |
+
);
|
| 109 |
+
return ret_val;
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
float3 srgb2rgb(float3 val)
|
| 113 |
+
{
|
| 114 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
float2x2 invert_2x2(float2x2 M)
|
| 118 |
+
{
|
| 119 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 120 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 121 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
float3 nonrepeat_lookup(
|
| 125 |
+
uniform texture_2d texture = texture_2d(),
|
| 126 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 127 |
+
float texture_scale = 1.0,
|
| 128 |
+
float3 average_color = float3(0.5),
|
| 129 |
+
float patch_size = 8.0
|
| 130 |
+
)
|
| 131 |
+
{
|
| 132 |
+
|
| 133 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 134 |
+
float Z = patch_size; // patch scale inside example texture
|
| 135 |
+
float CON = 1.0f;
|
| 136 |
+
|
| 137 |
+
float3 O = float3(0.f);
|
| 138 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 139 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 140 |
+
|
| 141 |
+
float2 U = uv_in;
|
| 142 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 143 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 144 |
+
|
| 145 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 146 |
+
// average color work out, take the float value and calculate the apropriate
|
| 147 |
+
// mean value as (value^(1/2.2))
|
| 148 |
+
|
| 149 |
+
float3 m = average_color;
|
| 150 |
+
|
| 151 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 152 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 153 |
+
|
| 154 |
+
if( F[2] > 0.f )
|
| 155 |
+
|
| 156 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 157 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 158 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 159 |
+
else
|
| 160 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 161 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 162 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 163 |
+
O = m + O/::math::length(W);
|
| 164 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 165 |
+
|
| 166 |
+
return float3(O);
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
color endless_texture(
|
| 170 |
+
uniform texture_2d texture = texture_2d(),
|
| 171 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 172 |
+
float texture_scale = 10.0,
|
| 173 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 174 |
+
float patch_size = 8.0,
|
| 175 |
+
bool gamma_correct_lookup = true
|
| 176 |
+
)
|
| 177 |
+
{
|
| 178 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 179 |
+
nonrepeat_lookup (
|
| 180 |
+
texture: texture,
|
| 181 |
+
uvw: uvw,
|
| 182 |
+
texture_scale: texture_scale,
|
| 183 |
+
average_color: average_color,
|
| 184 |
+
patch_size: patch_size
|
| 185 |
+
))
|
| 186 |
+
) : color(nonrepeat_lookup (
|
| 187 |
+
texture: texture,
|
| 188 |
+
uvw: uvw,
|
| 189 |
+
texture_scale: texture_scale,
|
| 190 |
+
average_color: average_color,
|
| 191 |
+
patch_size: patch_size
|
| 192 |
+
));
|
| 193 |
+
}
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
export material Silver(
|
| 197 |
+
uniform bool infinite_tiling = true [[
|
| 198 |
+
::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."),
|
| 199 |
+
::anno::display_name("Infinite Tiling"),
|
| 200 |
+
::anno::in_group("Appearance")
|
| 201 |
+
]],
|
| 202 |
+
float roughness = 0.1f [[
|
| 203 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 204 |
+
::anno::display_name("Roughness"),
|
| 205 |
+
::anno::in_group("Appearance"),
|
| 206 |
+
::anno::hard_range(0.f, 1.f)
|
| 207 |
+
]],
|
| 208 |
+
float smudges = 0.5f [[
|
| 209 |
+
::anno::description("Adds blurrier reflection that follow the intensities of the Roughness texture on top."),
|
| 210 |
+
::anno::display_name("Smudges"),
|
| 211 |
+
::anno::in_group("Appearance"),
|
| 212 |
+
::anno::hard_range(0.f, 1.f)
|
| 213 |
+
]],
|
| 214 |
+
uniform bool enable_round_corners = false [[
|
| 215 |
+
::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."),
|
| 216 |
+
::anno::display_name("Enable Round Corners"),
|
| 217 |
+
::anno::in_group("Round Corners")
|
| 218 |
+
]],
|
| 219 |
+
uniform float radius = 0.03f [[
|
| 220 |
+
::anno::description("Radius of the rounded corners."),
|
| 221 |
+
::anno::display_name("Round Corner Radius"),
|
| 222 |
+
::anno::in_group("Round Corners")
|
| 223 |
+
]],
|
| 224 |
+
uniform bool across_materials = false [[
|
| 225 |
+
::anno::display_name("Across Materials"),
|
| 226 |
+
::anno::description("When enabled the round corner effect is applied across different materials."),
|
| 227 |
+
::anno::in_group("Round Corners")
|
| 228 |
+
]],
|
| 229 |
+
uniform float2 texture_translate = 0.f [[
|
| 230 |
+
::anno::display_name("Texture Translate"),
|
| 231 |
+
::anno::description("Controls the position of the texture."),
|
| 232 |
+
::anno::in_group("Transform")
|
| 233 |
+
]],
|
| 234 |
+
uniform float texture_rotate = 0.f [[
|
| 235 |
+
::anno::display_name("Texture Rotate"),
|
| 236 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 237 |
+
::anno::soft_range(0.f, 360.f),
|
| 238 |
+
::anno::in_group("Transform")
|
| 239 |
+
]],
|
| 240 |
+
uniform float2 texture_scale = 1.f [[
|
| 241 |
+
::anno::display_name("Texture Scale"),
|
| 242 |
+
::anno::description("Larger numbers increase the size."),
|
| 243 |
+
::anno::in_group("Transform"),
|
| 244 |
+
::nvidia::core_definitions::dimension(float2(.45f, .45f))
|
| 245 |
+
]],
|
| 246 |
+
uniform int uv_space_index = 0 [[
|
| 247 |
+
::anno::display_name("UV Space Index"),
|
| 248 |
+
::anno::in_group("Advanced")
|
| 249 |
+
]],
|
| 250 |
+
float3 normal = ::state::normal() [[
|
| 251 |
+
::anno::description("Modify the surface normal."),
|
| 252 |
+
::anno::display_name("Normal"),
|
| 253 |
+
::anno::in_group("Advanced")
|
| 254 |
+
]]
|
| 255 |
+
)
|
| 256 |
+
[[
|
| 257 |
+
::anno::author("NVIDIA vMaterials"),
|
| 258 |
+
::anno::display_name("Silver"),
|
| 259 |
+
::anno::description("Pure metal material with optional smudges."),
|
| 260 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 261 |
+
::anno::thumbnail("./.thumbs/Silver.Silver.png"),
|
| 262 |
+
::anno::key_words(string[]("metal", "pure", "smudged", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "silver"))
|
| 263 |
+
]]
|
| 264 |
+
=
|
| 265 |
+
let {
|
| 266 |
+
|
| 267 |
+
color normal_reflectivity = color(0.9614253056f, 0.948983344333f, 0.918968346466f); // Silver
|
| 268 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 269 |
+
|
| 270 |
+
bool tmp0 = false;
|
| 271 |
+
material_surface tmp1(
|
| 272 |
+
::df::color_custom_curve_layer(normal_reflectivity, grazing_reflectivity, 5.f, color(1.f, 1.f, 1.f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.f, 0.5f, roughness) + smudges * (1.f - ::math::lerp(0.f, 0.5f, roughness)), infinite_tiling ? float3(endless_texture(texture_2d("./metal_smudges_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.0820000023f), 8.f, false))[0] : ::base::file_texture(texture_2d("./metal_smudges_rough.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) * ::math::lerp(::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.f, 0.5f, roughness) + smudges * (1.f - ::math::lerp(0.f, 0.5f, roughness)), infinite_tiling ? float3(endless_texture(texture_2d("./metal_smudges_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.0820000023f), 8.f, false))[0] : ::base::file_texture(texture_2d("./metal_smudges_rough.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), ::math::lerp(::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.f, 0.5f, roughness) + smudges * (1.f - ::math::lerp(0.f, 0.5f, roughness)), infinite_tiling ? float3(endless_texture(texture_2d("./metal_smudges_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.0820000023f), 8.f, false))[0] : ::base::file_texture(texture_2d("./metal_smudges_rough.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) * ::math::lerp(::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.f, 0.5f, roughness) + smudges * (1.f - ::math::lerp(0.f, 0.5f, roughness)), infinite_tiling ? float3(endless_texture(texture_2d("./metal_smudges_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.0820000023f), 8.f, false))[0] : ::base::file_texture(texture_2d("./metal_smudges_rough.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), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), bsdf(), normal),
|
| 273 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 274 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 275 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 276 |
+
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));
|
| 277 |
+
material_geometry tmp5(
|
| 278 |
+
float3(0.f),
|
| 279 |
+
1.f,
|
| 280 |
+
enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal());
|
| 281 |
+
} in
|
| 282 |
+
material(
|
| 283 |
+
thin_walled: tmp0,
|
| 284 |
+
surface: tmp1,
|
| 285 |
+
backface: tmp2,
|
| 286 |
+
ior: tmp3,
|
| 287 |
+
volume: tmp4,
|
| 288 |
+
geometry: tmp5);
|
| 289 |
+
|
| 290 |
+
|
| 291 |
+
export material Silver_Polished(*)
|
| 292 |
+
[[
|
| 293 |
+
::anno::author("NVIDIA vMaterials"),
|
| 294 |
+
::anno::display_name("Silver Polished"),
|
| 295 |
+
::anno::description("Pure metal material with optional smudges."),
|
| 296 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 297 |
+
::anno::thumbnail("./.thumbs/Silver.Silver_Polished.png"),
|
| 298 |
+
::anno::key_words(string[]("metal", "pure", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "silver"))
|
| 299 |
+
]]
|
| 300 |
+
= Silver(
|
| 301 |
+
infinite_tiling: true,
|
| 302 |
+
roughness: 0.0f,
|
| 303 |
+
smudges: 0.0f,
|
| 304 |
+
enable_round_corners: false,
|
| 305 |
+
radius: 0.03f,
|
| 306 |
+
across_materials: false,
|
| 307 |
+
texture_translate: float2(0.0f, 0.0f),
|
| 308 |
+
texture_rotate: 0.0f,
|
| 309 |
+
texture_scale: float2(1.0f, 1.0f),
|
| 310 |
+
uv_space_index: 0,
|
| 311 |
+
normal: ::state::normal()
|
| 312 |
+
);
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
export material Silver_Glossy_Fingerprints(*)
|
| 316 |
+
[[
|
| 317 |
+
::anno::author("NVIDIA vMaterials"),
|
| 318 |
+
::anno::display_name("Silver Glossy Fingerprints"),
|
| 319 |
+
::anno::description("Pure metal material with optional smudges."),
|
| 320 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 321 |
+
::anno::thumbnail("./.thumbs/Silver.Silver_Glossy_Fingerprints.png"),
|
| 322 |
+
::anno::key_words(string[]("metal", "pure", "design", "smudged", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "Silver"))
|
| 323 |
+
]]
|
| 324 |
+
= Silver(
|
| 325 |
+
infinite_tiling: true,
|
| 326 |
+
roughness: 0.23f,
|
| 327 |
+
smudges: 1.0f,
|
| 328 |
+
enable_round_corners: false,
|
| 329 |
+
radius: 0.03f,
|
| 330 |
+
across_materials: false,
|
| 331 |
+
texture_translate: float2(0.0f, 0.0f),
|
| 332 |
+
texture_rotate: 0.0f,
|
| 333 |
+
texture_scale: float2(1.0f, 1.0f),
|
| 334 |
+
uv_space_index: 0,
|
| 335 |
+
normal: ::state::normal()
|
| 336 |
+
);
|
| 337 |
+
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
/*
|
| 341 |
+
- Aluminum
|
| 342 |
+
0.911810895428,0.914089043421,0.920152876196
|
| 343 |
+
|
| 344 |
+
- Copper
|
| 345 |
+
0.9654565, 0.6899602, 0.4830392
|
| 346 |
+
|
| 347 |
+
- Chromium
|
| 348 |
+
0.549302, 0.5560554, 0.5542377
|
| 349 |
+
|
| 350 |
+
- Iron
|
| 351 |
+
0.5293683, 0.5132565, 0.4942483
|
| 352 |
+
|
| 353 |
+
- Gold
|
| 354 |
+
1.0,0.722306985258,0.340058756743
|
| 355 |
+
|
| 356 |
+
- Nickel
|
| 357 |
+
0.696691094703,0.640529134605,0.563260231405
|
| 358 |
+
|
| 359 |
+
- Platinum
|
| 360 |
+
0.678533319955,0.639590890417,0.583638675413
|
| 361 |
+
|
| 362 |
+
- Mercury
|
| 363 |
+
0.780978740699,0.779541528985,0.778441417779
|
| 364 |
+
|
| 365 |
+
- Silver
|
| 366 |
+
0.9614253056,0.948983344333,0.918968346466
|
| 367 |
+
|
| 368 |
+
- Titanium
|
| 369 |
+
0.618264052974,0.579396264956,0.542545225681
|
| 370 |
+
|
| 371 |
+
- Tungsten
|
| 372 |
+
0.951001417565,0.815051845356,0.751931718925
|
| 373 |
+
|
| 374 |
+
- Zinc
|
| 375 |
+
0.87467950988,0.868943040106,0.855089634324
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
*/
|
Assets/Material/material_0465/Silver_Brushed.mdl
ADDED
|
@@ -0,0 +1,301 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.5;
|
| 37 |
+
import ::anno::*;
|
| 38 |
+
import ::base::*;
|
| 39 |
+
import ::math::*;
|
| 40 |
+
import ::state::*;
|
| 41 |
+
import ::std::*;
|
| 42 |
+
import ::tex::*;
|
| 43 |
+
import ::df::*;
|
| 44 |
+
import ::nvidia::core_definitions::*;
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
const string COPYRIGHT =
|
| 48 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 49 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 50 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 51 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 52 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 53 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 54 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 55 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 56 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 57 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 58 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 59 |
+
|
| 60 |
+
const string DESCRIPTION = "Brushed metal material with adjustable settings for the brushing";
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
float histogram_range(float input, float range, float position)
|
| 64 |
+
{
|
| 65 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 66 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 67 |
+
return ::math::lerp(low, high, input);
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
::base::texture_coordinate_info vmat_transform(
|
| 71 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 72 |
+
uniform float rotation = 0.0,
|
| 73 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 74 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 75 |
+
uniform int uv_space = 0
|
| 76 |
+
)
|
| 77 |
+
{
|
| 78 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 79 |
+
float4x4 scale =
|
| 80 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 81 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 82 |
+
0. , 0. , 1.0, 0.,
|
| 83 |
+
translation.x , translation.y , 0.0, 1.);
|
| 84 |
+
|
| 85 |
+
float s = ::math::sin(rotation_rad);
|
| 86 |
+
float c = ::math::cos(rotation_rad);
|
| 87 |
+
float4x4 rotate =
|
| 88 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 89 |
+
s , c , 0.0 , 0.0,
|
| 90 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 91 |
+
0. , 0.0 , 0.0 , 1.);
|
| 92 |
+
|
| 93 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 94 |
+
}
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
export material Silver_Brushed(
|
| 98 |
+
float brush_width = 1.0f [[
|
| 99 |
+
::anno::display_name("Roughness Width"),
|
| 100 |
+
::anno::description("Widens the anisotropic metal reflections which leads to a stronger effect of "
|
| 101 |
+
"the metal brushing."),
|
| 102 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 103 |
+
::anno::in_group("Appearance")
|
| 104 |
+
]],
|
| 105 |
+
float brush_height_blur = 0.75f [[
|
| 106 |
+
::anno::display_name("Roughness Height"),
|
| 107 |
+
::anno::description("Increases the anisotropy of the brushed metal, blurring the reflections."),
|
| 108 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 109 |
+
::anno::in_group("Appearance")
|
| 110 |
+
]],
|
| 111 |
+
float scratch_variation_amount = 1.f [[
|
| 112 |
+
::anno::description("Adds a bit variation to the roughness of the brushing pattern in the form of occasional scratches that sprea dout in a wider range."),
|
| 113 |
+
::anno::display_name("Scratch Variation Amount"),
|
| 114 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 115 |
+
::anno::in_group("Appearance")
|
| 116 |
+
]],
|
| 117 |
+
float scratch_reflection_variation = 0.4f [[
|
| 118 |
+
::anno::description("Attenuates the reflection of the brushed metal which will also make the material appear darker."),
|
| 119 |
+
::anno::display_name("Scratch Reflection Variation"),
|
| 120 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 121 |
+
::anno::in_group("Appearance")
|
| 122 |
+
]],
|
| 123 |
+
float scratches_bump = 0.65f [[
|
| 124 |
+
::anno::description("Introduces normal-mapped scratches which further add to the realistic appearance of the surface. However, this might become for the renderer more difficult to resolve."),
|
| 125 |
+
::anno::display_name("Scratches Bump Amount"),
|
| 126 |
+
::anno::hard_range(0.0f, 1.0f),
|
| 127 |
+
::anno::in_group("Appearance")
|
| 128 |
+
]],
|
| 129 |
+
uniform bool enable_round_corners = false [[
|
| 130 |
+
::anno::display_name("Enable Round Corners"),
|
| 131 |
+
::anno::in_group("Round Corners")
|
| 132 |
+
]],
|
| 133 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 134 |
+
::anno::display_name("Round Corner Radius"),
|
| 135 |
+
::anno::description("Adjusts the radius of the round corner effect."),
|
| 136 |
+
::anno::soft_range(0.0f, 0.1f),
|
| 137 |
+
::anno::in_group("Round Corners")
|
| 138 |
+
]],
|
| 139 |
+
uniform bool across_materials = false [[
|
| 140 |
+
::anno::display_name("Across Materials"),
|
| 141 |
+
::anno::description("Applies the rounded corner effect also between other materials."),
|
| 142 |
+
::anno::in_group("Round Corners")
|
| 143 |
+
]],
|
| 144 |
+
uniform float2 texture_translate = 0.f [[
|
| 145 |
+
::anno::display_name("Translate"),
|
| 146 |
+
::anno::description("Controls the position of the texture."),
|
| 147 |
+
::anno::in_group("Transform")
|
| 148 |
+
]],
|
| 149 |
+
uniform float texture_rotate = 0.f [[
|
| 150 |
+
::anno::display_name("Rotate"),
|
| 151 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 152 |
+
::anno::in_group("Transform")
|
| 153 |
+
]],
|
| 154 |
+
uniform float2 texture_scale = 1.f [[
|
| 155 |
+
::anno::display_name("Scale"),
|
| 156 |
+
::anno::description("Larger numbers increase the size."),
|
| 157 |
+
::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)),
|
| 158 |
+
::anno::in_group("Transform")
|
| 159 |
+
]],
|
| 160 |
+
uniform int uv_space_index = 0 [[
|
| 161 |
+
::anno::display_name("UV Space Index"),
|
| 162 |
+
::anno::description("Use selected UV space for material."),
|
| 163 |
+
::anno::in_group("Advanced")
|
| 164 |
+
]]
|
| 165 |
+
)
|
| 166 |
+
[[
|
| 167 |
+
::anno::author("NVIDIA vMaterials"),
|
| 168 |
+
::anno::display_name("Brushed Silver - Strong Brushing"),
|
| 169 |
+
::anno::description(DESCRIPTION),
|
| 170 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 171 |
+
::anno::thumbnail("./.thumbs/Silver_Brushed.Silver_Brushed.png"),
|
| 172 |
+
::anno::key_words(string[]("aec", "metal", "silver", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral"))
|
| 173 |
+
]]
|
| 174 |
+
=
|
| 175 |
+
let {
|
| 176 |
+
color normal_reflectivity = color(0.9614253056f, 0.948983344333f, 0.918968346466f); // Silver
|
| 177 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 178 |
+
|
| 179 |
+
bool tmp0 = false;
|
| 180 |
+
material_surface tmp1(
|
| 181 |
+
::df::color_custom_curve_layer(::nvidia::core_definitions::blend_colors(normal_reflectivity, color(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]), ::base::color_layer_multiply, scratch_reflection_variation).tint, ::nvidia::core_definitions::blend_colors(grazing_reflectivity, color(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]), ::base::color_layer_multiply, scratch_reflection_variation).tint, 5.f, color(1.f, 1.f, 1.f), ::df::weighted_layer(0.0900000036f, ::df::microfacet_ggx_smith_bsdf(0.399000019f, 0.399000019f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::microfacet_ggx_smith_bsdf(::math::lerp(histogram_range(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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.183000013f, ::math::lerp(0.100000001f, 0.400000006f, brush_width)), 0.376000017f, scratch_variation_amount * float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]) * ::math::lerp(histogram_range(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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.183000013f, ::math::lerp(0.100000001f, 0.400000006f, brush_width)), 0.376000017f, scratch_variation_amount * float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]), ::math::lerp(histogram_range(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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.100000001f, ::math::lerp(0.0500000007f, 0.25f, brush_height_blur)), 0.376000017f, scratch_variation_amount * float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]) * ::math::lerp(histogram_range(float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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.100000001f, ::math::lerp(0.0500000007f, 0.25f, brush_height_blur)), 0.376000017f, scratch_variation_amount * float3(::base::file_texture(texture_2d("./brushed_metal_linear_R_rough_G_scratchvar_B_impurities.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 * 0.25f, ::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]), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./brushed_metal_linear_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.25f, ::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), scratches_bump)), bsdf(), ::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./brushed_metal_linear_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.25f, ::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), scratches_bump)),
|
| 182 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 183 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 184 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 185 |
+
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));
|
| 186 |
+
material_geometry tmp5 = enable_round_corners ? material_geometry(float3(0.f), 1.f, ::state::rounded_corner_normal(roundcorner_radius, across_materials, 1.f)) : material_geometry(float3(0.f), 1.f, ::state::normal());
|
| 187 |
+
} in
|
| 188 |
+
material(
|
| 189 |
+
thin_walled: tmp0,
|
| 190 |
+
surface: tmp1,
|
| 191 |
+
backface: tmp2,
|
| 192 |
+
ior: tmp3,
|
| 193 |
+
volume: tmp4,
|
| 194 |
+
geometry: tmp5);
|
| 195 |
+
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
export material Silver_Brushed_Light_Brushing(*)
|
| 199 |
+
[[
|
| 200 |
+
::anno::author("NVIDIA vMaterials"),
|
| 201 |
+
::anno::display_name("Brushed Silver - Light Brushing"),
|
| 202 |
+
::anno::description(DESCRIPTION),
|
| 203 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 204 |
+
::anno::thumbnail("./.thumbs/Silver_Brushed.Silver_Brushed_Light_Brushing.png"),
|
| 205 |
+
::anno::key_words(string[]("aec", "metal", "silver", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral"))
|
| 206 |
+
]]
|
| 207 |
+
= Silver_Brushed (
|
| 208 |
+
brush_width: 0.225f,
|
| 209 |
+
brush_height_blur: 0.035f,
|
| 210 |
+
scratch_variation_amount: 1.0f,
|
| 211 |
+
scratch_reflection_variation: 0.4f,
|
| 212 |
+
scratches_bump: 0.2f,
|
| 213 |
+
enable_round_corners: false,
|
| 214 |
+
roundcorner_radius: 0.01f,
|
| 215 |
+
across_materials: false,
|
| 216 |
+
texture_translate: 0.0f,
|
| 217 |
+
texture_rotate: 0.0f,
|
| 218 |
+
texture_scale: 1.0f,
|
| 219 |
+
uv_space_index: 0
|
| 220 |
+
);
|
| 221 |
+
|
| 222 |
+
|
| 223 |
+
|
| 224 |
+
export material Silver_Brushed_Medium_Light_Brushing(*)
|
| 225 |
+
[[
|
| 226 |
+
::anno::author("NVIDIA vMaterials"),
|
| 227 |
+
::anno::display_name("Brushed Silver - Medium Light Brushing"),
|
| 228 |
+
::anno::description(DESCRIPTION),
|
| 229 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 230 |
+
::anno::thumbnail("./.thumbs/Silver_Brushed.Silver_Brushed_Medium_Light_Brushing.png"),
|
| 231 |
+
::anno::key_words(string[]("aec", "metal", "silver", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral"))
|
| 232 |
+
]]
|
| 233 |
+
= Silver_Brushed (
|
| 234 |
+
brush_width: 0.361f,
|
| 235 |
+
brush_height_blur: 0.204f,
|
| 236 |
+
scratch_variation_amount: 1.0f,
|
| 237 |
+
scratch_reflection_variation: 0.559f,
|
| 238 |
+
scratches_bump: 0.35f,
|
| 239 |
+
enable_round_corners: false,
|
| 240 |
+
roundcorner_radius: 0.01f,
|
| 241 |
+
across_materials: false,
|
| 242 |
+
texture_translate: 0.0f,
|
| 243 |
+
texture_rotate: 0.0f,
|
| 244 |
+
texture_scale: 1.0f,
|
| 245 |
+
uv_space_index: 0
|
| 246 |
+
);
|
| 247 |
+
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
export material Silver_Brushed_Medium_Brushing(*)
|
| 251 |
+
[[
|
| 252 |
+
::anno::author("NVIDIA vMaterials"),
|
| 253 |
+
::anno::display_name("Brushed Silver - Medium Brushing"),
|
| 254 |
+
::anno::description(DESCRIPTION),
|
| 255 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 256 |
+
::anno::thumbnail("./.thumbs/Silver_Brushed.Silver_Brushed_Medium_Brushing.png"),
|
| 257 |
+
::anno::key_words(string[]("aec", "metal", "silver", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral"))
|
| 258 |
+
]]
|
| 259 |
+
= Silver_Brushed (
|
| 260 |
+
brush_width: 0.665f,
|
| 261 |
+
brush_height_blur: 0.471f,
|
| 262 |
+
scratch_variation_amount: 1.0f,
|
| 263 |
+
scratch_reflection_variation: 0.621f,
|
| 264 |
+
scratches_bump: 0.5f,
|
| 265 |
+
enable_round_corners: false,
|
| 266 |
+
roundcorner_radius: 0.01f,
|
| 267 |
+
across_materials: false,
|
| 268 |
+
texture_translate: 0.0f,
|
| 269 |
+
texture_rotate: 0.0f,
|
| 270 |
+
texture_scale: 1.0f,
|
| 271 |
+
uv_space_index: 0
|
| 272 |
+
);
|
| 273 |
+
|
| 274 |
+
|
| 275 |
+
export material Silver_Brushed_Very_Strong_Brushing(*)
|
| 276 |
+
[[
|
| 277 |
+
::anno::author("NVIDIA vMaterials"),
|
| 278 |
+
::anno::display_name("Brushed Silver - Very Strong Brushing"),
|
| 279 |
+
::anno::description(DESCRIPTION),
|
| 280 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 281 |
+
::anno::thumbnail("./.thumbs/Silver_Brushed.Silver_Brushed_Very_Strong_Brushing.png"),
|
| 282 |
+
::anno::key_words(string[]("aec", "metal", "silver", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral"))
|
| 283 |
+
]]
|
| 284 |
+
= Silver_Brushed (
|
| 285 |
+
brush_width: 1.0f,
|
| 286 |
+
brush_height_blur: 1.0f,
|
| 287 |
+
scratch_variation_amount: 1.0f,
|
| 288 |
+
scratch_reflection_variation: 0.824f,
|
| 289 |
+
scratches_bump: 1.0f,
|
| 290 |
+
enable_round_corners: false,
|
| 291 |
+
roundcorner_radius: 0.01f,
|
| 292 |
+
across_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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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.5;
|
| 37 |
+
|
| 38 |
+
import ::anno::*;
|
| 39 |
+
import ::math::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::nvidia::core_definitions::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
const string COPYRIGHT =
|
| 48 |
+
" Copyright 2024 NVIDIA Corporation. All rights reserved.\n"
|
| 49 |
+
" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n"
|
| 50 |
+
" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n"
|
| 51 |
+
" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n"
|
| 52 |
+
" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n"
|
| 53 |
+
" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n"
|
| 54 |
+
" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n"
|
| 55 |
+
" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n"
|
| 56 |
+
" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n"
|
| 57 |
+
" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n"
|
| 58 |
+
" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n";
|
| 59 |
+
|
| 60 |
+
const string DESCRIPTION = "A hammered metal material";
|
| 61 |
+
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
float histogram_range(float input, float range = 1.0f, float position = 0.5f)
|
| 65 |
+
{
|
| 66 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 67 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 68 |
+
return ::math::lerp(low, high, input);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
::base::texture_coordinate_info transform_coordinate_2(
|
| 72 |
+
float4x4 transform
|
| 73 |
+
[[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]],
|
| 74 |
+
::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info()
|
| 75 |
+
[[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]]
|
| 76 |
+
) [[
|
| 77 |
+
::anno::description("Transform a texture coordinate by a matrix.") ,
|
| 78 |
+
::anno::noinline()
|
| 79 |
+
]]
|
| 80 |
+
{
|
| 81 |
+
// Version 2
|
| 82 |
+
float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1);
|
| 83 |
+
//Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant.
|
| 84 |
+
//just pretend there is no other rotation happening
|
| 85 |
+
//get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z.
|
| 86 |
+
float4 u = transform[0];
|
| 87 |
+
float3 ru = ::math::normalize(float3(u.x,u.y,u.z));
|
| 88 |
+
float cos = ru.x;
|
| 89 |
+
float sin = -ru.y;
|
| 90 |
+
|
| 91 |
+
return ::base::texture_coordinate_info(
|
| 92 |
+
float3(r_position.x,r_position.y,r_position.z),
|
| 93 |
+
::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v),
|
| 94 |
+
::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u));
|
| 95 |
+
}
|
| 96 |
+
|
| 97 |
+
|
| 98 |
+
// Takes the standard input that every material has. It combines a couple of
|
| 99 |
+
// functions in one convenience function.
|
| 100 |
+
::base::texture_coordinate_info vmat_transform(
|
| 101 |
+
float2 translation = float2(0.0, 0.0),
|
| 102 |
+
float rotation = 0.0, // rotation in degrees
|
| 103 |
+
float2 scaling = float2(1.0, 1.0),
|
| 104 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 105 |
+
uniform int uv_space = 0
|
| 106 |
+
)
|
| 107 |
+
{
|
| 108 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 109 |
+
float4x4 scale =
|
| 110 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 111 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 112 |
+
0. , 0. , 1.0, 0.,
|
| 113 |
+
translation.x , translation.y , 0.0, 1.);
|
| 114 |
+
|
| 115 |
+
float s = ::math::sin(rotation_rad);
|
| 116 |
+
float c = ::math::cos(rotation_rad);
|
| 117 |
+
float4x4 rotate =
|
| 118 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 119 |
+
s , c , 0.0 , 0.0,
|
| 120 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 121 |
+
0. , 0.0 , 0.0 , 1.);
|
| 122 |
+
|
| 123 |
+
return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 124 |
+
}
|
| 125 |
+
|
| 126 |
+
export material Silver_Hammered(
|
| 127 |
+
color metal_color = color(0.767f, 0.759f, 0.737f) [[
|
| 128 |
+
::anno::description("Adjusts the reflection color of the metal material."),
|
| 129 |
+
::anno::display_name("Metal Color"),
|
| 130 |
+
::anno::in_group("Appearance")
|
| 131 |
+
]],
|
| 132 |
+
float roughness = 0.5f [[
|
| 133 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 134 |
+
::anno::display_name("Roughness"),
|
| 135 |
+
::anno::in_group("Appearance"),
|
| 136 |
+
::anno::hard_range(0.f, 1.f)
|
| 137 |
+
]],
|
| 138 |
+
float diffuse_variation = 0.8f [[
|
| 139 |
+
::anno::description("Adds grime, dirt and imperfections."),
|
| 140 |
+
::anno::display_name("Variation"),
|
| 141 |
+
::anno::in_group("Appearance"),
|
| 142 |
+
::anno::hard_range(0.f, 1.f)
|
| 143 |
+
]],
|
| 144 |
+
uniform float bump_strength = 0.8f [[
|
| 145 |
+
::anno::description("Determines the degree of bumpiness."),
|
| 146 |
+
::anno::display_name("Bump Strength"),
|
| 147 |
+
::anno::in_group("Appearance"),
|
| 148 |
+
::anno::hard_range(0.f, 1.f)
|
| 149 |
+
]],
|
| 150 |
+
|
| 151 |
+
uniform bool roundcorners_enable = false [[
|
| 152 |
+
::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."),
|
| 153 |
+
::anno::display_name("Enable Round Corners"),
|
| 154 |
+
::anno::in_group("Round Corners")
|
| 155 |
+
]],
|
| 156 |
+
uniform float roundcorners_radius_mm = 1.5f [[
|
| 157 |
+
::anno::description("Radius of the rounded corners."),
|
| 158 |
+
::anno::display_name("Round Corner Radius"),
|
| 159 |
+
::anno::in_group("Round Corners")
|
| 160 |
+
]],
|
| 161 |
+
uniform bool roundcorners_across_materials = false [[
|
| 162 |
+
::anno::description("Applies the round corner effect across different materials when enabled."),
|
| 163 |
+
::anno::display_name("Across Materials"),
|
| 164 |
+
::anno::in_group("Round Corners")
|
| 165 |
+
]],
|
| 166 |
+
float2 texture_translate = 0.f [[
|
| 167 |
+
::anno::description("Controls the position of the texture."),
|
| 168 |
+
::anno::display_name("Texture Translate"),
|
| 169 |
+
::anno::in_group("Transform")
|
| 170 |
+
]],
|
| 171 |
+
float texture_rotate = 0.f [[
|
| 172 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 173 |
+
::anno::display_name("Texture Rotate"),
|
| 174 |
+
::anno::in_group("Transform")
|
| 175 |
+
]],
|
| 176 |
+
float2 texture_scale = 1.f [[
|
| 177 |
+
::anno::description("Larger numbers increase the size."),
|
| 178 |
+
::anno::display_name("Texture Scale"),
|
| 179 |
+
::nvidia::core_definitions::dimension(float2(.4f, 0.4f)),
|
| 180 |
+
::anno::in_group("Transform")
|
| 181 |
+
]],
|
| 182 |
+
uniform int uv_space_index = 0 [[
|
| 183 |
+
::anno::description("Use selected UV space."),
|
| 184 |
+
::anno::display_name("UV Space index"),
|
| 185 |
+
::anno::in_group("Advanced")
|
| 186 |
+
]]
|
| 187 |
+
)
|
| 188 |
+
[[
|
| 189 |
+
::anno::display_name("Hammered Silver - Dark Pits"),
|
| 190 |
+
::anno::author("NVIDIA vMaterials"),
|
| 191 |
+
::anno::in_group("Metal"),
|
| 192 |
+
::anno::key_words(string[]("metal", "silver", "blackened", "hammered", "design", "classic", "architecture", "pattern", "reflective", "rough", "bumped", "conductor")),
|
| 193 |
+
::anno::thumbnail("./.thumbs/Silver_Hammered.Silver_Hammered.png"),
|
| 194 |
+
::anno::description(DESCRIPTION),
|
| 195 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 196 |
+
]]
|
| 197 |
+
=
|
| 198 |
+
let {
|
| 199 |
+
bool tmp0 = false;
|
| 200 |
+
material_surface tmp1(::df::weighted_layer(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::df::directional_factor(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(metal_color, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_multiply, diffuse_variation).tint, color(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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]), ::base::color_layer_overlay, diffuse_variation).tint, color(1.f, 1.f, 1.f), 3.f, ::df::microfacet_ggx_smith_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, "")), ::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono * nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(histogram_range(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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], ::math::lerp(0.40200001f, 0.245000005f, roughness), ::math::lerp(0.234000012f, 0.395000011f, roughness))), color(float3(::base::file_texture(texture_2d("./hammered_multi_R_rough_G_corrspots_B_metal.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]), ::base::color_layer_add, ::math::lerp(0.582000017f, 0.280000001f, roughness)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.70600003f, 0.560000002f, roughness)).tint, color(::math::pow(1.f - float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_add, ::math::lerp(0.185000002f, 0.960000038f, roughness)).mono, 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(nvidia::core_definitions::blend_colors(metal_color, color(::math::pow(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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], 2.20000005f)), ::base::color_layer_multiply, diffuse_variation).tint, color(float3(::base::file_texture(texture_2d("./hammered_multi_R_pit_G_ao_B_hammer.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]), ::base::color_layer_overlay, diffuse_variation).tint, 0.f, ""), bsdf(), ::base::tangent_space_normal_texture(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), 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)), ::base::tangent_space_normal_texture(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), 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)), ::base::tangent_space_normal_texture(texture_2d("./hammered_norm.jpg", ::tex::gamma_linear), 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));
|
| 201 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 202 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 203 |
+
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));
|
| 204 |
+
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());
|
| 205 |
+
hair_bsdf tmp6 = hair_bsdf();
|
| 206 |
+
} in
|
| 207 |
+
material(
|
| 208 |
+
thin_walled: tmp0,
|
| 209 |
+
surface: tmp1,
|
| 210 |
+
backface: tmp2,
|
| 211 |
+
ior: tmp3,
|
| 212 |
+
volume: tmp4,
|
| 213 |
+
geometry: tmp5,
|
| 214 |
+
hair: tmp6);
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
export material Silver_Hammered_Shiny(*)
|
| 218 |
+
[[
|
| 219 |
+
::anno::display_name("Hammered Silver - Shiny"),
|
| 220 |
+
::anno::author("NVIDIA vMaterials"),
|
| 221 |
+
::anno::in_group("Metal"),
|
| 222 |
+
::anno::key_words(string[]("metal", "silver", "hammered", "design", "classic", "architecture", "pattern", "reflective", "rough", "bumped", "conductor", "shiny")),
|
| 223 |
+
::anno::thumbnail("./.thumbs/Silver_Hammered.Silver_Hammered_Shiny.png"),
|
| 224 |
+
::anno::description(DESCRIPTION),
|
| 225 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 226 |
+
]]
|
| 227 |
+
= Silver_Hammered(
|
| 228 |
+
metal_color: color(0.767f, 0.759f, 0.737f),
|
| 229 |
+
roughness: 0.3f,
|
| 230 |
+
diffuse_variation: 0.2f,
|
| 231 |
+
bump_strength: 0.5f,
|
| 232 |
+
roundcorners_enable:false,
|
| 233 |
+
roundcorners_radius_mm: 1.5f,
|
| 234 |
+
roundcorners_across_materials: false,
|
| 235 |
+
texture_translate: 0.0f,
|
| 236 |
+
texture_rotate: 0.0f,
|
| 237 |
+
texture_scale: 1.0f,
|
| 238 |
+
uv_space_index: 0
|
| 239 |
+
);
|
| 240 |
+
|
| 241 |
+
export material Silver_Hammered_Dull(*)
|
| 242 |
+
[[
|
| 243 |
+
::anno::display_name("Hammered Silver - Dull"),
|
| 244 |
+
::anno::author("NVIDIA vMaterials"),
|
| 245 |
+
::anno::in_group("Metal"),
|
| 246 |
+
::anno::key_words(string[]("metal", "silver", "hammered", "design", "classic", "architecture", "pattern", "reflective", "rough", "bumped", "conductor", "matte", "dull")),
|
| 247 |
+
::anno::thumbnail("./.thumbs/Silver_Hammered.Silver_Hammered_Dull.png"),
|
| 248 |
+
::anno::description(DESCRIPTION),
|
| 249 |
+
::anno::copyright_notice(COPYRIGHT)
|
| 250 |
+
]]
|
| 251 |
+
= Silver_Hammered(
|
| 252 |
+
metal_color: color(0.767f, 0.759f, 0.737f),
|
| 253 |
+
roughness: 1.0f,
|
| 254 |
+
diffuse_variation: 0.4f,
|
| 255 |
+
bump_strength: 0.8f,
|
| 256 |
+
roundcorners_enable:false,
|
| 257 |
+
roundcorners_radius_mm: 1.5f,
|
| 258 |
+
roundcorners_across_materials: false,
|
| 259 |
+
texture_translate: 0.0f,
|
| 260 |
+
texture_rotate: 0.0f,
|
| 261 |
+
texture_scale: 1.0f,
|
| 262 |
+
uv_space_index: 0
|
| 263 |
+
);
|
Assets/Material/material_0470/Silver_Sheet.mdl
ADDED
|
@@ -0,0 +1,1343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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
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 |
+
const string DESCRIPTION = "A sheet metal material with adjustable imperfections";
|
| 62 |
+
const string DESCRIPTION_PUNCH = "Punched silver sheet metal material with adjustable imperfections and punchings.";
|
| 63 |
+
|
| 64 |
+
|
| 65 |
+
float4 tile_select(uniform int select = 0)
|
| 66 |
+
{
|
| 67 |
+
switch (select)
|
| 68 |
+
{
|
| 69 |
+
case 0: return float4(0.000, 0.333, 0.666, 1.000);
|
| 70 |
+
case 1: return float4(0.333, 0.666, 0.666, 1.000);
|
| 71 |
+
case 2: return float4(0.666, 1.000, 0.666, 1.000);
|
| 72 |
+
|
| 73 |
+
case 3: return float4(0.000, 0.333, 0.333, 0.666);
|
| 74 |
+
case 4: return float4(0.333, 0.666, 0.333, 0.666);
|
| 75 |
+
case 5: return float4(0.666, 1.000, 0.333, 0.666);
|
| 76 |
+
|
| 77 |
+
case 6: return float4(0.000, 0.333, 0.000, 0.333);
|
| 78 |
+
case 7: return float4(0.333, 0.666, 0.000, 0.333);
|
| 79 |
+
case 8: return float4(0.666, 1.000, 0.000, 0.333);
|
| 80 |
+
|
| 81 |
+
default: return float4(0.000, 0.333, 0.000, 0.333);
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
export struct vm_coordinates
|
| 86 |
+
[[
|
| 87 |
+
::anno::hidden()
|
| 88 |
+
]]
|
| 89 |
+
{
|
| 90 |
+
float2 uv;
|
| 91 |
+
float rotation;
|
| 92 |
+
int uv_space_index;
|
| 93 |
+
float4 carry;
|
| 94 |
+
};
|
| 95 |
+
|
| 96 |
+
enum vm_mono_select
|
| 97 |
+
[[
|
| 98 |
+
anno::description("Modes for the creation of a gray-scale value from a color"),
|
| 99 |
+
anno::hidden()
|
| 100 |
+
]]
|
| 101 |
+
{
|
| 102 |
+
mono_r = 0,
|
| 103 |
+
mono_g = 1,
|
| 104 |
+
mono_b = 2,
|
| 105 |
+
mono_a = 3,
|
| 106 |
+
mono_average = 4
|
| 107 |
+
};
|
| 108 |
+
|
| 109 |
+
vm_coordinates vm_coord
|
| 110 |
+
(
|
| 111 |
+
float2 translation = float2(0.0f, 0.0) [[
|
| 112 |
+
::anno::display_name("Translation"),
|
| 113 |
+
::anno::description("Translates the coordinates.")
|
| 114 |
+
]],
|
| 115 |
+
float rotation = 0.0f [[
|
| 116 |
+
::anno::display_name("Rotation"),
|
| 117 |
+
::anno::description("Rotates the coordinates in degrees.")
|
| 118 |
+
]],
|
| 119 |
+
float2 scaling = float2(1.0f, 1.0f) [[
|
| 120 |
+
::anno::display_name("Scaling"),
|
| 121 |
+
::anno::description("Scales the coordinates.")
|
| 122 |
+
]],
|
| 123 |
+
uniform int uv_space = 0 [[
|
| 124 |
+
::anno::display_name("UV Space"),
|
| 125 |
+
::anno::description("Chose the UV space.")
|
| 126 |
+
]]
|
| 127 |
+
)
|
| 128 |
+
[[
|
| 129 |
+
::anno::display_name("vm Transform"),
|
| 130 |
+
::anno::description("Generates coordinates to be used in vm_lookup functions.")
|
| 131 |
+
]]
|
| 132 |
+
{
|
| 133 |
+
vm_coordinates uv;
|
| 134 |
+
::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space);
|
| 135 |
+
uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 136 |
+
uv.uv = float2(info.position.x, info.position.y);
|
| 137 |
+
float sine = ::math::sin(uv.rotation);
|
| 138 |
+
float cosine = ::math::cos(uv.rotation);
|
| 139 |
+
float2x2 rot = float2x2(cosine, -sine, sine, cosine);
|
| 140 |
+
uv.uv = rot * uv.uv;
|
| 141 |
+
uv.uv /= scaling;
|
| 142 |
+
uv.uv += translation;
|
| 143 |
+
return uv;
|
| 144 |
+
}
|
| 145 |
+
|
| 146 |
+
|
| 147 |
+
vm_coordinates vm_coord_hex(
|
| 148 |
+
vm_coordinates uv,
|
| 149 |
+
float scale = 1.0f)
|
| 150 |
+
{
|
| 151 |
+
vm_coordinates uv_return;
|
| 152 |
+
float2 uv_ = float2(uv.uv.x, uv.uv.y);
|
| 153 |
+
|
| 154 |
+
// same as from function get_hex above
|
| 155 |
+
float2 s = float2(1.0f, 1.7320508f);
|
| 156 |
+
float2 n = uv_ - float2(0.5f, 1.0f);
|
| 157 |
+
float4 c = ::math::floor(float4(uv_.x, uv_.y, n.x, n.y)/float4(s.x, s.y, s.x, s.y)) + 0.5f;
|
| 158 |
+
float2 h_1 = uv_ - float2(c.x, c.y) * s;
|
| 159 |
+
float2 h_2 = uv_ - (float2(c.z, c.w) + 0.5f) * s;
|
| 160 |
+
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);
|
| 161 |
+
|
| 162 |
+
uv_return.uv = float2(uv_id.x*scale+0.5, uv_id.y*scale+0.5);
|
| 163 |
+
// unless we introduce random cell rotations where we need to compensate for this in the rotation
|
| 164 |
+
// we can just plain copy the rotation value
|
| 165 |
+
uv_return.rotation = uv.rotation;
|
| 166 |
+
return uv_return;
|
| 167 |
+
}
|
| 168 |
+
|
| 169 |
+
// Offsets a set of uv coordinates in either row (u) or column (v) direction
|
| 170 |
+
vm_coordinates vm_coord_rowcol_offset(
|
| 171 |
+
vm_coordinates uv,
|
| 172 |
+
float offset,
|
| 173 |
+
bool horizontal_offset = true
|
| 174 |
+
)
|
| 175 |
+
{
|
| 176 |
+
int index = horizontal_offset ? 0 : 1;
|
| 177 |
+
uv.uv[index] += ::math::floor(uv.uv[index ^ 1]) * offset;
|
| 178 |
+
return uv;
|
| 179 |
+
}
|
| 180 |
+
|
| 181 |
+
vm_coordinates vm_coord_grid(
|
| 182 |
+
vm_coordinates uv,
|
| 183 |
+
float scale = 1.0f
|
| 184 |
+
)
|
| 185 |
+
{
|
| 186 |
+
float2x2 scal = float2x2(scale, 0., 0., scale);
|
| 187 |
+
uv.uv = ::math::frac(uv.uv);
|
| 188 |
+
uv.uv -= 0.5f;
|
| 189 |
+
uv.uv = scal * uv.uv;
|
| 190 |
+
uv.uv = uv.uv + 0.5f;
|
| 191 |
+
return uv;
|
| 192 |
+
}
|
| 193 |
+
|
| 194 |
+
::base::texture_return vm_tex_lookup(
|
| 195 |
+
uniform texture_2d tex,
|
| 196 |
+
vm_coordinates uv = vm_coord(),
|
| 197 |
+
uniform vm_mono_select mono_source = mono_a,
|
| 198 |
+
float4 scale = float4(1.0f),
|
| 199 |
+
|
| 200 |
+
uniform ::tex::wrap_mode wrap_u = ::tex::wrap_repeat,
|
| 201 |
+
uniform ::tex::wrap_mode wrap_v = ::tex::wrap_repeat,
|
| 202 |
+
uniform float2 crop_u = float2(0.0, 1.0),
|
| 203 |
+
uniform float2 crop_v = float2(0.0, 1.0)
|
| 204 |
+
)
|
| 205 |
+
{
|
| 206 |
+
float mono;
|
| 207 |
+
float4 lookup = ::tex::lookup_float4(tex, uv.uv, wrap_u, wrap_v, crop_u, crop_v) * scale;
|
| 208 |
+
switch( mono_source ) {
|
| 209 |
+
case mono_r: mono = lookup.x;
|
| 210 |
+
break;
|
| 211 |
+
case mono_g: mono = lookup.y;
|
| 212 |
+
break;
|
| 213 |
+
case mono_b: mono = lookup.z;
|
| 214 |
+
break;
|
| 215 |
+
case mono_a: mono = lookup.w;
|
| 216 |
+
break;
|
| 217 |
+
case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z));
|
| 218 |
+
break;
|
| 219 |
+
}
|
| 220 |
+
return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono);
|
| 221 |
+
}
|
| 222 |
+
|
| 223 |
+
// *** SET CUTOUT ENUM NAMES ***
|
| 224 |
+
export enum cutout_pattern
|
| 225 |
+
[[
|
| 226 |
+
::anno::description("Cutout Pattern."),
|
| 227 |
+
::anno::hidden()
|
| 228 |
+
]]
|
| 229 |
+
{
|
| 230 |
+
pattern_circle = 0
|
| 231 |
+
[[ ::anno::display_name("Circle")]],
|
| 232 |
+
pattern_hexagon = 1
|
| 233 |
+
[[ ::anno::display_name("Hexagon")]],
|
| 234 |
+
pattern_line = 2
|
| 235 |
+
[[ ::anno::display_name("Line") ]],
|
| 236 |
+
|
| 237 |
+
pattern_square = 3
|
| 238 |
+
[[ ::anno::display_name("Square")]],
|
| 239 |
+
pattern_rectangle = 4
|
| 240 |
+
[[ ::anno::display_name("Rectangle")]],
|
| 241 |
+
pattern_cross = 5
|
| 242 |
+
[[ ::anno::display_name("Cross")]],
|
| 243 |
+
|
| 244 |
+
pattern_rhombus = 6
|
| 245 |
+
[[ ::anno::display_name("Rhombus")]],
|
| 246 |
+
pattern_triangle = 7
|
| 247 |
+
[[ ::anno::display_name("Triangle")]],
|
| 248 |
+
pattern_star = 8
|
| 249 |
+
[[ ::anno::display_name("Star")]]
|
| 250 |
+
};
|
| 251 |
+
|
| 252 |
+
|
| 253 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 254 |
+
{
|
| 255 |
+
return (input - x)/(y - x);
|
| 256 |
+
}
|
| 257 |
+
|
| 258 |
+
float histogram_scan_big(float input, float width, float position)
|
| 259 |
+
{
|
| 260 |
+
return ::math::clamp(
|
| 261 |
+
remap_xy_to_0_1(input,
|
| 262 |
+
::math::lerp(-width, 1.0, position),
|
| 263 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 264 |
+
0.0,
|
| 265 |
+
1.0);
|
| 266 |
+
}
|
| 267 |
+
|
| 268 |
+
::base::texture_coordinate_info vmat_transform(
|
| 269 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 270 |
+
uniform float rotation = 0.0,
|
| 271 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 272 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 273 |
+
uniform int uv_space = 0
|
| 274 |
+
)
|
| 275 |
+
{
|
| 276 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 277 |
+
|
| 278 |
+
float4x4 scale =
|
| 279 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 280 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 281 |
+
0. , 0. , 1.0, 0.,
|
| 282 |
+
translation.x , translation.y , 0.0, 1.);
|
| 283 |
+
|
| 284 |
+
float s = ::math::sin(rotation_rad);
|
| 285 |
+
float c = ::math::cos(rotation_rad);
|
| 286 |
+
float4x4 rotate =
|
| 287 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 288 |
+
s , c , 0.0 , 0.0,
|
| 289 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 290 |
+
0. , 0.0 , 0.0 , 1.);
|
| 291 |
+
|
| 292 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 293 |
+
}
|
| 294 |
+
|
| 295 |
+
float uint2float(int x)
|
| 296 |
+
{
|
| 297 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 298 |
+
}
|
| 299 |
+
|
| 300 |
+
int lowbias32(int x)
|
| 301 |
+
{
|
| 302 |
+
x ^= x >>> 16;
|
| 303 |
+
x *= 0x7feb352d;
|
| 304 |
+
x ^= x >>> 15;
|
| 305 |
+
x *= 0x846ca68b;
|
| 306 |
+
x ^= x >>> 16;
|
| 307 |
+
return x;
|
| 308 |
+
}
|
| 309 |
+
|
| 310 |
+
float2 rnd22(int2 p) {
|
| 311 |
+
float2 ret_val = float2(
|
| 312 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 313 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 314 |
+
);
|
| 315 |
+
return ret_val;
|
| 316 |
+
}
|
| 317 |
+
|
| 318 |
+
float3 srgb2rgb(float3 val)
|
| 319 |
+
{
|
| 320 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 321 |
+
}
|
| 322 |
+
|
| 323 |
+
float2x2 invert_2x2(float2x2 M)
|
| 324 |
+
{
|
| 325 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 326 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 327 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 328 |
+
}
|
| 329 |
+
|
| 330 |
+
float3 nonrepeat_lookup(
|
| 331 |
+
uniform texture_2d texture = texture_2d(),
|
| 332 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 333 |
+
float texture_scale = 1.0,
|
| 334 |
+
float3 average_color = float3(0.5),
|
| 335 |
+
float patch_size = 8.0
|
| 336 |
+
)
|
| 337 |
+
{
|
| 338 |
+
|
| 339 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 340 |
+
float Z = patch_size; // patch scale inside example texture
|
| 341 |
+
float CON = 1.0f;
|
| 342 |
+
|
| 343 |
+
float3 O = float3(0.f);
|
| 344 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 345 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 346 |
+
|
| 347 |
+
float2 U = uv_in;
|
| 348 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 349 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 350 |
+
|
| 351 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 352 |
+
// average color work out, take the float value and calculate the apropriate
|
| 353 |
+
// mean value as (value^(1/2.2))
|
| 354 |
+
|
| 355 |
+
float3 m = average_color;
|
| 356 |
+
|
| 357 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 358 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 359 |
+
|
| 360 |
+
if( F[2] > 0.f )
|
| 361 |
+
|
| 362 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 363 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 364 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 365 |
+
else
|
| 366 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 367 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 368 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 369 |
+
O = m + O/::math::length(W);
|
| 370 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 371 |
+
|
| 372 |
+
return float3(O);
|
| 373 |
+
}
|
| 374 |
+
|
| 375 |
+
color endless_texture(
|
| 376 |
+
uniform texture_2d texture = texture_2d(),
|
| 377 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 378 |
+
float texture_scale = 10.0,
|
| 379 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 380 |
+
float patch_size = 8.0,
|
| 381 |
+
bool gamma_correct_lookup = true
|
| 382 |
+
)
|
| 383 |
+
{
|
| 384 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 385 |
+
nonrepeat_lookup (
|
| 386 |
+
texture: texture,
|
| 387 |
+
uvw: uvw,
|
| 388 |
+
texture_scale: texture_scale,
|
| 389 |
+
average_color: average_color,
|
| 390 |
+
patch_size: patch_size
|
| 391 |
+
))
|
| 392 |
+
) : color(nonrepeat_lookup (
|
| 393 |
+
texture: texture,
|
| 394 |
+
uvw: uvw,
|
| 395 |
+
texture_scale: texture_scale,
|
| 396 |
+
average_color: average_color,
|
| 397 |
+
patch_size: patch_size
|
| 398 |
+
));
|
| 399 |
+
}
|
| 400 |
+
|
| 401 |
+
|
| 402 |
+
export material Silver_Sheet(
|
| 403 |
+
uniform bool infinite_tiling = false [[
|
| 404 |
+
::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."),
|
| 405 |
+
::anno::display_name("Infinite Tiling"),
|
| 406 |
+
::anno::in_group("Appearance", "Main")
|
| 407 |
+
]],
|
| 408 |
+
float sheet_brightness = 0.5f [[
|
| 409 |
+
::anno::display_name("Brightness"),
|
| 410 |
+
::anno::description("Controls the brightness of the material."),
|
| 411 |
+
::anno::in_group("Appearance", "Main"),
|
| 412 |
+
::anno::hard_range(0.f, 1.f)
|
| 413 |
+
]],
|
| 414 |
+
float roughness = 0.2f [[
|
| 415 |
+
::anno::display_name("Roughness"),
|
| 416 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 417 |
+
::anno::in_group("Appearance", "Main"),
|
| 418 |
+
::anno::hard_range(0.f, 1.f)
|
| 419 |
+
]],
|
| 420 |
+
float streaks = 0.0f [[
|
| 421 |
+
::anno::display_name("Streaks Weight"),
|
| 422 |
+
::anno::description("Adds directional streaks that occur as part of the sheet manufacturing process."),
|
| 423 |
+
::anno::in_group("Appearance", "Main"),
|
| 424 |
+
::anno::hard_range(0.f, 1.f)
|
| 425 |
+
]],
|
| 426 |
+
uniform float scratch_bump_factor = 0.0f [[
|
| 427 |
+
::anno::description("Determines the degree of bumpiness."),
|
| 428 |
+
::anno::display_name("Bump Factor Streaks"),
|
| 429 |
+
::anno::in_group("Appearance", "Main"),
|
| 430 |
+
::anno::hard_range(0.f, 1.f)
|
| 431 |
+
]],
|
| 432 |
+
float imperfections_amount = 0.6f [[
|
| 433 |
+
::anno::description("Balances between a perfectly smooth metal and a surface that has various imperfections."),
|
| 434 |
+
::anno::display_name("Imperfections Amount"),
|
| 435 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 436 |
+
::anno::hard_range(0.f, 1.f)
|
| 437 |
+
]],
|
| 438 |
+
uniform float impurities_weight_1 = 0.f [[
|
| 439 |
+
::anno::display_name("Washed Imperfections Ratio"),
|
| 440 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 441 |
+
::anno::hard_range(0.f, 1.f)
|
| 442 |
+
]],
|
| 443 |
+
uniform float impurities_weight_2 = 0.939f [[
|
| 444 |
+
::anno::display_name("Noisy Imperfections Ratio"),
|
| 445 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 446 |
+
::anno::hard_range(0.f, 1.f)
|
| 447 |
+
]],
|
| 448 |
+
uniform float impurities_weight_3 = 0.0 [[
|
| 449 |
+
::anno::display_name("Splotchy Imperfection Ratio"),
|
| 450 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 451 |
+
::anno::hard_range(0.f, 1.f)
|
| 452 |
+
]],
|
| 453 |
+
uniform bool enable_round_corners = false [[
|
| 454 |
+
::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."),
|
| 455 |
+
::anno::display_name("Enable Round Corners"),
|
| 456 |
+
::anno::in_group("Round Corners")
|
| 457 |
+
]],
|
| 458 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 459 |
+
::anno::description("Radius of the rounded corners."),
|
| 460 |
+
::anno::display_name("Round Corner Radius"),
|
| 461 |
+
::anno::in_group("Round Corners"),
|
| 462 |
+
::anno::soft_range(0.f, 0.1f)
|
| 463 |
+
]],
|
| 464 |
+
uniform bool across_materials = false [[
|
| 465 |
+
::anno::display_name("Across Materials"),
|
| 466 |
+
::anno::in_group("Round Corners")
|
| 467 |
+
]],
|
| 468 |
+
uniform float2 texture_translate = 0.f [[
|
| 469 |
+
::anno::description("Controls the position of the texture."),
|
| 470 |
+
::anno::display_name("Texture Translate"),
|
| 471 |
+
::anno::in_group("Transform")
|
| 472 |
+
]],
|
| 473 |
+
uniform float texture_rotate = 0.f [[
|
| 474 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 475 |
+
::anno::display_name("Texture Rotate"),
|
| 476 |
+
::anno::in_group("Transform"),
|
| 477 |
+
::anno::soft_range(0.f, 360.f)
|
| 478 |
+
]],
|
| 479 |
+
uniform float2 texture_scale = 1.0f [[
|
| 480 |
+
::anno::description("Larger numbers increase the size."),
|
| 481 |
+
::anno::display_name("Texture Scale"),
|
| 482 |
+
::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)),
|
| 483 |
+
::anno::in_group("Transform")
|
| 484 |
+
]],
|
| 485 |
+
uniform int uv_space_index = 0 [[
|
| 486 |
+
::anno::display_name("UV Space Index"),
|
| 487 |
+
::anno::description("Uses selected UV space for material."),
|
| 488 |
+
::anno::in_group("Transform")
|
| 489 |
+
]]
|
| 490 |
+
)
|
| 491 |
+
[[
|
| 492 |
+
::anno::author("NVIDIA vMaterials"),
|
| 493 |
+
::anno::display_name("Metal Sheet Silver - New Clean"),
|
| 494 |
+
::anno::description(DESCRIPTION),
|
| 495 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 496 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet.png"),
|
| 497 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 498 |
+
]]
|
| 499 |
+
=
|
| 500 |
+
let {
|
| 501 |
+
color normal_reflectivity = color(0.9614253056f, 0.948983344333f, 0.918968346466f); // Silver
|
| 502 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 503 |
+
|
| 504 |
+
bool tmp0 = false;
|
| 505 |
+
material_surface tmp1(
|
| 506 |
+
::df::color_custom_curve_layer(normal_reflectivity, grazing_reflectivity, 5.f, color(::math::lerp(0.400000006f, 1.f, sheet_brightness) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[1], 2.20000005f), ::math::lerp(0.f, 0.300000012f, streaks))), ::df::weighted_layer(0.0700000003f, ::df::microfacet_ggx_smith_bsdf(0.150000006f, 0.150000006f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::microfacet_ggx_smith_bsdf((::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)) * (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)), (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)) * (::math::lerp(roughness * 0.5f, (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_1 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[0] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_2 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[1] + (impurities_weight_1 + impurities_weight_2 + impurities_weight_3 > 0.f ? impurities_weight_3 / (impurities_weight_1 + impurities_weight_2 + impurities_weight_3) : 0.333299994f) * roughness * float3(infinite_tiling ? endless_texture(texture_2d("./sheet_metal_multi_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.633000016f, 0.495000005f, 0.542999983f), 2.f, false) : ::base::file_texture(texture_2d("./sheet_metal_multi_rough.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).tint)[2], imperfections_amount) + (float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[0] - 0.5f) * (streaks * 0.5f * 0.5f)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::math::normalize(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./sheet_metal_norm.jpg", ::tex::gamma_linear), scratch_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), histogram_scan_big(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[2], 0.242000014f, 0.850000024f)))), bsdf(), ::math::normalize(::math::lerp(::state::normal(), ::base::tangent_space_normal_texture(texture_2d("./sheet_metal_norm.jpg", ::tex::gamma_linear), scratch_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), histogram_scan_big(float3(::base::file_texture(texture_2d("./sheet_metal_R_rough_G_ao_B_streaks.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).tint)[2], 0.242000014f, 0.850000024f)))),
|
| 507 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 508 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 509 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 510 |
+
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));
|
| 511 |
+
material_geometry tmp5(
|
| 512 |
+
float3(0.f),
|
| 513 |
+
1.f,
|
| 514 |
+
enable_round_corners ? ::state::rounded_corner_normal(roundcorner_radius, across_materials, 1.f) : ::state::normal());
|
| 515 |
+
} in
|
| 516 |
+
material(
|
| 517 |
+
thin_walled: tmp0,
|
| 518 |
+
surface: tmp1,
|
| 519 |
+
backface: tmp2,
|
| 520 |
+
ior: tmp3,
|
| 521 |
+
volume: tmp4,
|
| 522 |
+
geometry: tmp5);
|
| 523 |
+
|
| 524 |
+
|
| 525 |
+
export material Silver_Sheet_Punched(
|
| 526 |
+
// Cutout parameters
|
| 527 |
+
|
| 528 |
+
uniform cutout_pattern shape_select = pattern_circle //select atlas tile here
|
| 529 |
+
[[
|
| 530 |
+
::anno::description("Select a cutout shape."),
|
| 531 |
+
::anno::display_name("Cutout Shape"),
|
| 532 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 533 |
+
::anno::ui_order(0)
|
| 534 |
+
]],
|
| 535 |
+
float2 punching_grid_size = float2(.5f, .5f)
|
| 536 |
+
[[
|
| 537 |
+
::anno::description("Scales the size of the punching grid."),
|
| 538 |
+
::anno::display_name("Punching Grid Size"),
|
| 539 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 540 |
+
::anno::ui_order(1)
|
| 541 |
+
]],
|
| 542 |
+
float cutout_size = .92f
|
| 543 |
+
[[
|
| 544 |
+
::anno::description("Scales the size of the cutout pattern independently from the base material."),
|
| 545 |
+
::anno::display_name("Cutout Size"),
|
| 546 |
+
::anno::hard_range(0.f, 1.2f),
|
| 547 |
+
::anno::soft_range(0.f, 1.0f),
|
| 548 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 549 |
+
::anno::ui_order(2)
|
| 550 |
+
]],
|
| 551 |
+
float cutout_roundness = .4f
|
| 552 |
+
[[
|
| 553 |
+
::anno::description("At low values it makes the cutouts sharper. Higher values give the shapes a more rounded look."),
|
| 554 |
+
::anno::display_name("Cutout Roundness"),
|
| 555 |
+
::anno::hard_range(0.f, 1.f),
|
| 556 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 557 |
+
::anno::ui_order(3)
|
| 558 |
+
]],
|
| 559 |
+
float cutout_bevel_width = 0.5f
|
| 560 |
+
[[
|
| 561 |
+
::anno::description("Adjusts the width of the bevel transition."),
|
| 562 |
+
::anno::display_name("Cutout Bevel Width"),
|
| 563 |
+
::anno::hard_range(0.f, 1.f),
|
| 564 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 565 |
+
::anno::ui_order(4)
|
| 566 |
+
]],
|
| 567 |
+
float cutout_bump_strength = .8f
|
| 568 |
+
[[
|
| 569 |
+
::anno::description("Sets the strength of the bevelled normal around the cutout."),
|
| 570 |
+
::anno::display_name("Cutout Bevel Strength"),
|
| 571 |
+
::anno::soft_range(0.0f, 1.0f),
|
| 572 |
+
::anno::hard_range(0.0f, 2.0f),
|
| 573 |
+
::anno::in_group("Appearance", "Cutout"),
|
| 574 |
+
::anno::ui_order(5)
|
| 575 |
+
]],
|
| 576 |
+
// Grid Layout parameters
|
| 577 |
+
bool hexagonal_grid = true
|
| 578 |
+
[[
|
| 579 |
+
::anno::description("When enabled, the punching will occur on a hexagonal grid, otherwise a square grid."),
|
| 580 |
+
::anno::display_name("Enable Hexagonal Grid"),
|
| 581 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 582 |
+
::anno::ui_order(6)
|
| 583 |
+
]],
|
| 584 |
+
float square_grid_offset = 0.0f
|
| 585 |
+
[[
|
| 586 |
+
::anno::description("Offsets each row of the grid by a certain amount."),
|
| 587 |
+
::anno::display_name("Square Grid Offset"),
|
| 588 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 589 |
+
::anno::enable_if("hexagonal_grid==false"),
|
| 590 |
+
::anno::ui_order(7)
|
| 591 |
+
]],
|
| 592 |
+
bool horizontal_offset = true
|
| 593 |
+
[[
|
| 594 |
+
::anno::description("Choose whether to offset either in row or column direction."),
|
| 595 |
+
::anno::display_name("Horizontal Offset"),
|
| 596 |
+
::anno::in_group("Appearance", "Cutout Layout"),
|
| 597 |
+
::anno::enable_if("hexagonal_grid==false"),
|
| 598 |
+
::anno::ui_order(8)
|
| 599 |
+
]],
|
| 600 |
+
|
| 601 |
+
|
| 602 |
+
|
| 603 |
+
// Silver Sheet parameters
|
| 604 |
+
uniform bool infinite_tiling = false [[
|
| 605 |
+
::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."),
|
| 606 |
+
::anno::display_name("Infinite Tiling"),
|
| 607 |
+
::anno::in_group("Appearance", "Main")
|
| 608 |
+
]],
|
| 609 |
+
float sheet_brightness = 0.5f [[
|
| 610 |
+
::anno::display_name("Brightness"),
|
| 611 |
+
::anno::description("Controls the brightness of the material."),
|
| 612 |
+
::anno::in_group("Appearance", "Main"),
|
| 613 |
+
::anno::hard_range(0.f, 1.f)
|
| 614 |
+
]],
|
| 615 |
+
float roughness = 0.2f [[
|
| 616 |
+
::anno::display_name("Roughness"),
|
| 617 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 618 |
+
::anno::in_group("Appearance", "Main"),
|
| 619 |
+
::anno::hard_range(0.f, 1.f)
|
| 620 |
+
]],
|
| 621 |
+
float streaks = 0.0f [[
|
| 622 |
+
::anno::display_name("Streaks Weight"),
|
| 623 |
+
::anno::description("Adds directional streaks that occur as part of the sheet manufacturing process."),
|
| 624 |
+
::anno::in_group("Appearance", "Main"),
|
| 625 |
+
::anno::hard_range(0.f, 1.f)
|
| 626 |
+
]],
|
| 627 |
+
uniform float scratch_bump_factor = 0.0f [[
|
| 628 |
+
::anno::description("Determines the degree of bumpiness."),
|
| 629 |
+
::anno::display_name("Bump Factor Streaks"),
|
| 630 |
+
::anno::in_group("Appearance", "Main"),
|
| 631 |
+
::anno::hard_range(0.f, 1.f)
|
| 632 |
+
]],
|
| 633 |
+
float imperfections_amount = 0.6f [[
|
| 634 |
+
::anno::description("Balances between a perfectly smooth metal and a surface that has various imperfections."),
|
| 635 |
+
::anno::display_name("Imperfections Amount"),
|
| 636 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 637 |
+
::anno::hard_range(0.f, 1.f)
|
| 638 |
+
]],
|
| 639 |
+
uniform float impurities_weight_1 = 0.f [[
|
| 640 |
+
::anno::display_name("Washed Imperfections Ratio"),
|
| 641 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 642 |
+
::anno::hard_range(0.f, 1.f)
|
| 643 |
+
]],
|
| 644 |
+
uniform float impurities_weight_2 = 0.939f [[
|
| 645 |
+
::anno::display_name("Noisy Imperfections Ratio"),
|
| 646 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 647 |
+
::anno::hard_range(0.f, 1.f)
|
| 648 |
+
]],
|
| 649 |
+
uniform float impurities_weight_3 = 0.0 [[
|
| 650 |
+
::anno::display_name("Splotchy Imperfection Ratio"),
|
| 651 |
+
::anno::in_group("Appearance", "Imperfections"),
|
| 652 |
+
::anno::hard_range(0.f, 1.f)
|
| 653 |
+
]],
|
| 654 |
+
uniform float2 texture_translate = 0.f [[
|
| 655 |
+
::anno::description("Controls the position of the texture."),
|
| 656 |
+
::anno::display_name("Texture Translate"),
|
| 657 |
+
::anno::in_group("Transform")
|
| 658 |
+
]],
|
| 659 |
+
uniform float texture_rotate = 0.f [[
|
| 660 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 661 |
+
::anno::display_name("Texture Rotate"),
|
| 662 |
+
::anno::in_group("Transform"),
|
| 663 |
+
::anno::soft_range(0.f, 360.f)
|
| 664 |
+
]],
|
| 665 |
+
uniform float2 texture_scale = 1.0f [[
|
| 666 |
+
::anno::description("Larger numbers increase the size."),
|
| 667 |
+
::anno::display_name("Texture Scale"),
|
| 668 |
+
::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)),
|
| 669 |
+
::anno::in_group("Transform")
|
| 670 |
+
]],
|
| 671 |
+
uniform int uv_space_index = 0 [[
|
| 672 |
+
::anno::display_name("UV Space Index"),
|
| 673 |
+
::anno::description("Uses selected UV space for material."),
|
| 674 |
+
::anno::in_group("Transform")
|
| 675 |
+
]],
|
| 676 |
+
uniform bool enable_round_corners = false [[
|
| 677 |
+
::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."),
|
| 678 |
+
::anno::display_name("Enable Round Corners"),
|
| 679 |
+
::anno::in_group("Round Corners")
|
| 680 |
+
]],
|
| 681 |
+
uniform float roundcorner_radius = 0.01f [[
|
| 682 |
+
::anno::description("Radius of the rounded corners."),
|
| 683 |
+
::anno::display_name("Round Corner Radius"),
|
| 684 |
+
::anno::in_group("Round Corners"),
|
| 685 |
+
::anno::soft_range(0.f, 0.1f)
|
| 686 |
+
]],
|
| 687 |
+
uniform bool across_materials = false [[
|
| 688 |
+
::anno::display_name("Across Materials"),
|
| 689 |
+
::anno::in_group("Round Corners")
|
| 690 |
+
]]
|
| 691 |
+
)
|
| 692 |
+
[[
|
| 693 |
+
::anno::author("NVIDIA vMaterials"),
|
| 694 |
+
::anno::contributor("Rüdiger Raab"),
|
| 695 |
+
::anno::contributor("Maik Rohland"),
|
| 696 |
+
::anno::display_name("Silver Sheet - Circular Punch"),
|
| 697 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 698 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 699 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched.png"),
|
| 700 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "circular", "neutral"))
|
| 701 |
+
]] = let
|
| 702 |
+
{
|
| 703 |
+
material base_mat = Silver_Sheet(
|
| 704 |
+
infinite_tiling: infinite_tiling,
|
| 705 |
+
sheet_brightness: sheet_brightness,
|
| 706 |
+
roughness: roughness,
|
| 707 |
+
streaks: streaks,
|
| 708 |
+
scratch_bump_factor: scratch_bump_factor,
|
| 709 |
+
imperfections_amount: imperfections_amount,
|
| 710 |
+
impurities_weight_1: impurities_weight_1,
|
| 711 |
+
impurities_weight_2: impurities_weight_2,
|
| 712 |
+
impurities_weight_3: impurities_weight_3,
|
| 713 |
+
texture_translate: texture_translate,
|
| 714 |
+
texture_rotate: texture_rotate,
|
| 715 |
+
texture_scale: texture_scale,
|
| 716 |
+
uv_space_index: uv_space_index,
|
| 717 |
+
enable_round_corners: enable_round_corners,
|
| 718 |
+
roundcorner_radius: roundcorner_radius,
|
| 719 |
+
across_materials: across_materials
|
| 720 |
+
);
|
| 721 |
+
texture_2d punching_cutout = texture_2d("./atlas_02_norm_dist.png", ::tex::gamma_linear);
|
| 722 |
+
|
| 723 |
+
// remap range of slider to avoid artifacts in the bevelling
|
| 724 |
+
float2 punching_scale = texture_scale * 0.01f * punching_grid_size;
|
| 725 |
+
float cutout_roundness_ = cutout_roundness*0.6f+0.4f;
|
| 726 |
+
float cutout_size_lin = (1.0f/cutout_size);
|
| 727 |
+
float cutout_bevel_width_ = 0.1 + cutout_bevel_width * 0.9f;
|
| 728 |
+
|
| 729 |
+
vm_coordinates uv = vm_coord(
|
| 730 |
+
translation: texture_translate,
|
| 731 |
+
rotation: texture_rotate,
|
| 732 |
+
scaling: punching_scale,
|
| 733 |
+
uv_space: uv_space_index
|
| 734 |
+
);
|
| 735 |
+
|
| 736 |
+
vm_coordinates punching_uv = hexagonal_grid ? vm_coord_hex(
|
| 737 |
+
uv: uv,
|
| 738 |
+
scale: cutout_roundness_ * cutout_size_lin
|
| 739 |
+
) : vm_coord_grid(
|
| 740 |
+
uv: vm_coord_rowcol_offset(
|
| 741 |
+
uv: uv,
|
| 742 |
+
offset: square_grid_offset,
|
| 743 |
+
horizontal_offset: horizontal_offset
|
| 744 |
+
),
|
| 745 |
+
scale: cutout_roundness_ * cutout_size_lin
|
| 746 |
+
);
|
| 747 |
+
// select the correct subtile from the atlas
|
| 748 |
+
float4 crop = tile_select(shape_select);
|
| 749 |
+
|
| 750 |
+
::base::texture_return lookup = vm_tex_lookup(
|
| 751 |
+
tex: punching_cutout,
|
| 752 |
+
uv: punching_uv,
|
| 753 |
+
mono_source: mono_a,
|
| 754 |
+
scale: float4(1.0f),
|
| 755 |
+
crop_u: float2(crop.x, crop.y),
|
| 756 |
+
crop_v: float2(crop.z, crop.w),
|
| 757 |
+
wrap_u: ::tex::wrap_clamp,
|
| 758 |
+
wrap_v: ::tex::wrap_clamp
|
| 759 |
+
);
|
| 760 |
+
|
| 761 |
+
float low = (1.0 - cutout_roundness_);
|
| 762 |
+
float high = (cutout_size_lin * (cutout_bevel_width_ * 0.2f) * cutout_roundness_) + (1.0 - cutout_roundness_);
|
| 763 |
+
// remap x...y to (clamped) 0...1
|
| 764 |
+
float x = ::math::clamp((lookup.mono - low)/(high - low), 0.0, 1.0);
|
| 765 |
+
// spherical falloff
|
| 766 |
+
float falloff=::math::sqrt(1.0-x*x);
|
| 767 |
+
// masking falloff as the center of the cutout is flat
|
| 768 |
+
float masked_falloff=falloff<=0.0?1.0:falloff;
|
| 769 |
+
|
| 770 |
+
// where base material is still there, use the value of the base material
|
| 771 |
+
float cutout= ::math::min(falloff<=0.0?0.0:1.0, base_mat.geometry.cutout_opacity);
|
| 772 |
+
|
| 773 |
+
// bring in -.5 ... +.5 range and lerp between lookup and flat normal
|
| 774 |
+
float3 remap_norm = ::math::lerp(float3(lookup.tint), float3(0.5, 0.5, 1.0), masked_falloff) - float3(0.5);
|
| 775 |
+
float3 t_norm = ::math::normalize(remap_norm * float3(cutout_bump_strength, cutout_bump_strength, 1.0));
|
| 776 |
+
|
| 777 |
+
float3 rotfix_norm = float3(::math::cos(punching_uv.rotation) * t_norm.x - ::math::sin(punching_uv.rotation) * t_norm.y,
|
| 778 |
+
::math::sin(punching_uv.rotation) * t_norm.x + ::math::cos(punching_uv.rotation) * t_norm.y,
|
| 779 |
+
t_norm.z);
|
| 780 |
+
|
| 781 |
+
float3 normal = ::state::texture_tangent_u(punching_uv.uv_space_index) * rotfix_norm.x +
|
| 782 |
+
::state::texture_tangent_v(punching_uv.uv_space_index) * rotfix_norm.y +
|
| 783 |
+
::state::normal() * rotfix_norm.z;
|
| 784 |
+
|
| 785 |
+
float3 final_normal = ::base::blend_normals(
|
| 786 |
+
base_normal: normal,
|
| 787 |
+
base_normal_weight: 1.0f,
|
| 788 |
+
detail_normal: base_mat.geometry.normal,
|
| 789 |
+
detail_normal_weight: 1.0f
|
| 790 |
+
);
|
| 791 |
+
|
| 792 |
+
} in material(
|
| 793 |
+
surface: material_surface(
|
| 794 |
+
scattering: base_mat.surface.scattering
|
| 795 |
+
),
|
| 796 |
+
volume: base_mat.volume,
|
| 797 |
+
ior: base_mat.ior,
|
| 798 |
+
thin_walled: true,
|
| 799 |
+
geometry: material_geometry(
|
| 800 |
+
displacement: base_mat.geometry.displacement,
|
| 801 |
+
normal: final_normal,
|
| 802 |
+
cutout_opacity: cutout
|
| 803 |
+
)
|
| 804 |
+
);
|
| 805 |
+
|
| 806 |
+
|
| 807 |
+
// ------------------------ Silver Sheet Presets ------------------------
|
| 808 |
+
export material Silver_Sheet_Soft_Splotches(*)
|
| 809 |
+
[[
|
| 810 |
+
::anno::author("NVIDIA vMaterials"),
|
| 811 |
+
::anno::display_name("Metal Sheet Silver - Soft Splotches"),
|
| 812 |
+
::anno::description(DESCRIPTION),
|
| 813 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 814 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Soft_Splotches.png"),
|
| 815 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral", "gray"))
|
| 816 |
+
]]
|
| 817 |
+
= Silver_Sheet(
|
| 818 |
+
infinite_tiling: false,
|
| 819 |
+
sheet_brightness: 0.5f,
|
| 820 |
+
roughness: 0.3f,
|
| 821 |
+
streaks: 0.0f,
|
| 822 |
+
scratch_bump_factor: 0.0f,
|
| 823 |
+
imperfections_amount: 0.75f,
|
| 824 |
+
impurities_weight_1: 0.75f,
|
| 825 |
+
impurities_weight_2: 0.01f,
|
| 826 |
+
impurities_weight_3: 0.98f,
|
| 827 |
+
enable_round_corners: false,
|
| 828 |
+
roundcorner_radius: 0.01f,
|
| 829 |
+
across_materials: false,
|
| 830 |
+
texture_translate: 0.0f,
|
| 831 |
+
texture_rotate: 0.0f,
|
| 832 |
+
texture_scale: 1.0f,
|
| 833 |
+
uv_space_index: 0
|
| 834 |
+
);
|
| 835 |
+
|
| 836 |
+
|
| 837 |
+
|
| 838 |
+
|
| 839 |
+
export material Silver_Sheet_Matte_Imperfections(*)
|
| 840 |
+
[[
|
| 841 |
+
::anno::author("NVIDIA vMaterials"),
|
| 842 |
+
::anno::display_name("Metal Sheet Silver - Matte Imperfections"),
|
| 843 |
+
::anno::description(DESCRIPTION),
|
| 844 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 845 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Matte_Imperfections.png"),
|
| 846 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "matte", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 847 |
+
]]= Silver_Sheet(
|
| 848 |
+
infinite_tiling: false,
|
| 849 |
+
sheet_brightness: 0.85f,
|
| 850 |
+
roughness: 0.75f,
|
| 851 |
+
streaks: 0.0f,
|
| 852 |
+
scratch_bump_factor: 0.0f,
|
| 853 |
+
imperfections_amount: 0.265f,
|
| 854 |
+
impurities_weight_1: 0.75f,
|
| 855 |
+
impurities_weight_2: 0.43f,
|
| 856 |
+
impurities_weight_3: 0.0f,
|
| 857 |
+
enable_round_corners: false,
|
| 858 |
+
roundcorner_radius: 0.01f,
|
| 859 |
+
across_materials: false,
|
| 860 |
+
texture_translate: 0.0f,
|
| 861 |
+
texture_rotate: 0.0f,
|
| 862 |
+
texture_scale: 1.0f,
|
| 863 |
+
uv_space_index: 0
|
| 864 |
+
);
|
| 865 |
+
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
|
| 869 |
+
export material Silver_Sheet_Glossy_Imperfections(*)
|
| 870 |
+
[[
|
| 871 |
+
::anno::author("NVIDIA vMaterials"),
|
| 872 |
+
::anno::display_name("Metal Sheet Silver - Glossy Imperfections"),
|
| 873 |
+
::anno::description(DESCRIPTION),
|
| 874 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 875 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Glossy_Imperfections.png"),
|
| 876 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 877 |
+
]]
|
| 878 |
+
= Silver_Sheet(
|
| 879 |
+
infinite_tiling: false,
|
| 880 |
+
sheet_brightness: 0.85f,
|
| 881 |
+
roughness: 0.3f,
|
| 882 |
+
streaks: 0.1f,
|
| 883 |
+
scratch_bump_factor: 0.15f,
|
| 884 |
+
imperfections_amount: 0.1f,
|
| 885 |
+
impurities_weight_1: 0.75f,
|
| 886 |
+
impurities_weight_2: 0.89f,
|
| 887 |
+
impurities_weight_3: 0.86f,
|
| 888 |
+
enable_round_corners: false,
|
| 889 |
+
roundcorner_radius: 0.01f,
|
| 890 |
+
across_materials: false,
|
| 891 |
+
texture_translate: 0.0f,
|
| 892 |
+
texture_rotate: 0.0f,
|
| 893 |
+
texture_scale: 1.0f,
|
| 894 |
+
uv_space_index: 0
|
| 895 |
+
);
|
| 896 |
+
|
| 897 |
+
|
| 898 |
+
|
| 899 |
+
|
| 900 |
+
export material Silver_Sheet_Splotchy_Streaks(*)
|
| 901 |
+
[[
|
| 902 |
+
::anno::author("NVIDIA vMaterials"),
|
| 903 |
+
::anno::display_name("Metal Sheet Silver - Splotchy Streaks"),
|
| 904 |
+
::anno::description(DESCRIPTION),
|
| 905 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 906 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Splotchy_Streaks.png"),
|
| 907 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 908 |
+
]]= Silver_Sheet(
|
| 909 |
+
infinite_tiling: false,
|
| 910 |
+
sheet_brightness: 0.85f,
|
| 911 |
+
roughness: 0.6f,
|
| 912 |
+
streaks: 0.1f,
|
| 913 |
+
scratch_bump_factor: 0.2f,
|
| 914 |
+
imperfections_amount: 0.26f,
|
| 915 |
+
impurities_weight_1: 1.0f,
|
| 916 |
+
impurities_weight_2: 0.76f,
|
| 917 |
+
impurities_weight_3: 0.13f,
|
| 918 |
+
enable_round_corners: false,
|
| 919 |
+
roundcorner_radius: 0.01f,
|
| 920 |
+
across_materials: false,
|
| 921 |
+
texture_translate: 0.0f,
|
| 922 |
+
texture_rotate: 0.0f,
|
| 923 |
+
texture_scale: 1.0f,
|
| 924 |
+
uv_space_index: 0
|
| 925 |
+
);
|
| 926 |
+
|
| 927 |
+
export material Silver_Sheet_Glossy_Streaks(*)
|
| 928 |
+
[[
|
| 929 |
+
::anno::author("NVIDIA vMaterials"),
|
| 930 |
+
::anno::display_name("Metal Sheet Silver - Glossy Streaks"),
|
| 931 |
+
::anno::description(DESCRIPTION),
|
| 932 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 933 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Glossy_Streaks.png"),
|
| 934 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "glossy", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "neutral"))
|
| 935 |
+
]]
|
| 936 |
+
= Silver_Sheet(
|
| 937 |
+
infinite_tiling: false,
|
| 938 |
+
sheet_brightness: 0.65f,
|
| 939 |
+
roughness: 0.25f,
|
| 940 |
+
streaks: 0.8f,
|
| 941 |
+
scratch_bump_factor: 0.88f,
|
| 942 |
+
imperfections_amount: 0.86f,
|
| 943 |
+
impurities_weight_1: 1.0f,
|
| 944 |
+
impurities_weight_2: 0.75f,
|
| 945 |
+
impurities_weight_3: 0.125f,
|
| 946 |
+
enable_round_corners: false,
|
| 947 |
+
roundcorner_radius: 0.01f,
|
| 948 |
+
across_materials: false,
|
| 949 |
+
texture_translate: 0.0f,
|
| 950 |
+
texture_rotate: 0.0f,
|
| 951 |
+
texture_scale: 1.0f,
|
| 952 |
+
uv_space_index: 0
|
| 953 |
+
);
|
| 954 |
+
|
| 955 |
+
|
| 956 |
+
// ------------------------ Punched Silver Sheet Presets ------------------------
|
| 957 |
+
|
| 958 |
+
export material Silver_Sheet_Punched_Small_Circular(*)
|
| 959 |
+
[[
|
| 960 |
+
::anno::author("NVIDIA vMaterials"),
|
| 961 |
+
::anno::contributor("Rüdiger Raab"),
|
| 962 |
+
::anno::contributor("Maik Rohland"),
|
| 963 |
+
::anno::display_name("Silver Sheet - Small Circular Punch"),
|
| 964 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 965 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 966 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Small_Circular.png"),
|
| 967 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "circular", "neutral"))
|
| 968 |
+
]]
|
| 969 |
+
= Silver_Sheet_Punched(
|
| 970 |
+
// Punching Parameters
|
| 971 |
+
shape_select: pattern_circle,
|
| 972 |
+
punching_grid_size: 1.0f,
|
| 973 |
+
cutout_size: 0.5f,
|
| 974 |
+
cutout_roundness: 0.4f,
|
| 975 |
+
cutout_bevel_width: 0.5f,
|
| 976 |
+
cutout_bump_strength: 0.8f,
|
| 977 |
+
hexagonal_grid: true,
|
| 978 |
+
square_grid_offset: 0.0f,
|
| 979 |
+
horizontal_offset: true,
|
| 980 |
+
|
| 981 |
+
// Material Parameters
|
| 982 |
+
infinite_tiling: false,
|
| 983 |
+
sheet_brightness: 0.85f,
|
| 984 |
+
roughness: 0.4f,
|
| 985 |
+
streaks: 0.0f,
|
| 986 |
+
scratch_bump_factor: 0.0f,
|
| 987 |
+
imperfections_amount: 0.2f,
|
| 988 |
+
impurities_weight_1: 0.0f,
|
| 989 |
+
impurities_weight_2: 0.5f,
|
| 990 |
+
impurities_weight_3: 0.86f,
|
| 991 |
+
enable_round_corners: false,
|
| 992 |
+
roundcorner_radius: 0.01f,
|
| 993 |
+
across_materials: false,
|
| 994 |
+
texture_translate: 0.0f,
|
| 995 |
+
texture_rotate: 0.0f,
|
| 996 |
+
texture_scale: 1.0f,
|
| 997 |
+
uv_space_index: 0
|
| 998 |
+
);
|
| 999 |
+
|
| 1000 |
+
|
| 1001 |
+
export material Silver_Sheet_Punched_Hexagonal(*)
|
| 1002 |
+
[[
|
| 1003 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1004 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1005 |
+
::anno::contributor("Maik Rohland"),
|
| 1006 |
+
::anno::display_name("Silver Sheet - Hexagonal Punch"),
|
| 1007 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1008 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1009 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Hexagonal.png"),
|
| 1010 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "hexagonal", "neutral"))
|
| 1011 |
+
]]
|
| 1012 |
+
= Silver_Sheet_Punched(
|
| 1013 |
+
// Punching Parameters
|
| 1014 |
+
shape_select: pattern_hexagon,
|
| 1015 |
+
punching_grid_size: 1.5f,
|
| 1016 |
+
cutout_size: .95f,
|
| 1017 |
+
cutout_roundness: 0.4f,
|
| 1018 |
+
cutout_bevel_width: 0.5f,
|
| 1019 |
+
cutout_bump_strength: 1.5f,
|
| 1020 |
+
hexagonal_grid: true,
|
| 1021 |
+
square_grid_offset: 0.0f,
|
| 1022 |
+
horizontal_offset: true,
|
| 1023 |
+
|
| 1024 |
+
// Material Parameters
|
| 1025 |
+
infinite_tiling: false,
|
| 1026 |
+
sheet_brightness: 0.85f,
|
| 1027 |
+
roughness: 0.4f,
|
| 1028 |
+
streaks: 0.0f,
|
| 1029 |
+
scratch_bump_factor: 0.0f,
|
| 1030 |
+
imperfections_amount: 0.2f,
|
| 1031 |
+
impurities_weight_1: 0.0f,
|
| 1032 |
+
impurities_weight_2: 0.5f,
|
| 1033 |
+
impurities_weight_3: 0.86f,
|
| 1034 |
+
enable_round_corners: false,
|
| 1035 |
+
roundcorner_radius: 0.01f,
|
| 1036 |
+
across_materials: false,
|
| 1037 |
+
texture_translate: 0.0f,
|
| 1038 |
+
texture_rotate: 0.0f,
|
| 1039 |
+
texture_scale: 1.0f,
|
| 1040 |
+
uv_space_index: 0
|
| 1041 |
+
);
|
| 1042 |
+
|
| 1043 |
+
|
| 1044 |
+
|
| 1045 |
+
export material Silver_Sheet_Punched_Hexagonal_Small(*)
|
| 1046 |
+
[[
|
| 1047 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1048 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1049 |
+
::anno::contributor("Maik Rohland"),
|
| 1050 |
+
::anno::display_name("Silver Sheet - Small Hexagonal Punch"),
|
| 1051 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1052 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1053 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Hexagonal_Small.png"),
|
| 1054 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "hexagonal", "neutral"))
|
| 1055 |
+
]]
|
| 1056 |
+
= Silver_Sheet_Punched(
|
| 1057 |
+
// Punching Parameters
|
| 1058 |
+
shape_select: pattern_hexagon,
|
| 1059 |
+
punching_grid_size: float2(.75f),
|
| 1060 |
+
cutout_size: .58f,
|
| 1061 |
+
cutout_roundness: 0.4f,
|
| 1062 |
+
cutout_bevel_width: 0.3f,
|
| 1063 |
+
cutout_bump_strength: 1.5f,
|
| 1064 |
+
hexagonal_grid: true,
|
| 1065 |
+
square_grid_offset: 0.0f,
|
| 1066 |
+
horizontal_offset: true,
|
| 1067 |
+
|
| 1068 |
+
// Material Parameters
|
| 1069 |
+
infinite_tiling: false,
|
| 1070 |
+
sheet_brightness: 0.85f,
|
| 1071 |
+
roughness: 0.4f,
|
| 1072 |
+
streaks: 0.0f,
|
| 1073 |
+
scratch_bump_factor: 0.0f,
|
| 1074 |
+
imperfections_amount: 0.2f,
|
| 1075 |
+
impurities_weight_1: 0.0f,
|
| 1076 |
+
impurities_weight_2: 0.5f,
|
| 1077 |
+
impurities_weight_3: 0.86f,
|
| 1078 |
+
enable_round_corners: false,
|
| 1079 |
+
roundcorner_radius: 0.01f,
|
| 1080 |
+
across_materials: false,
|
| 1081 |
+
texture_translate: 0.0f,
|
| 1082 |
+
texture_rotate: 0.0f,
|
| 1083 |
+
texture_scale: 1.0f,
|
| 1084 |
+
uv_space_index: 0
|
| 1085 |
+
);
|
| 1086 |
+
|
| 1087 |
+
|
| 1088 |
+
export material Silver_Sheet_Punched_Square(*)
|
| 1089 |
+
[[
|
| 1090 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1091 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1092 |
+
::anno::contributor("Maik Rohland"),
|
| 1093 |
+
::anno::display_name("Silver Sheet - Square Punch"),
|
| 1094 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1095 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1096 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Square.png"),
|
| 1097 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "square", "neutral"))
|
| 1098 |
+
]]
|
| 1099 |
+
= Silver_Sheet_Punched(
|
| 1100 |
+
// Punching Parameters
|
| 1101 |
+
shape_select: pattern_square,
|
| 1102 |
+
punching_grid_size: 1.2f,
|
| 1103 |
+
cutout_size: 0.56f,
|
| 1104 |
+
cutout_roundness: 0.1f,
|
| 1105 |
+
cutout_bevel_width: 0.5f,
|
| 1106 |
+
cutout_bump_strength: 1.5f,
|
| 1107 |
+
hexagonal_grid: false,
|
| 1108 |
+
square_grid_offset: 0.5f,
|
| 1109 |
+
horizontal_offset: true,
|
| 1110 |
+
|
| 1111 |
+
// Material Parameters
|
| 1112 |
+
infinite_tiling: false,
|
| 1113 |
+
sheet_brightness: 0.85f,
|
| 1114 |
+
roughness: 0.4f,
|
| 1115 |
+
streaks: 0.0f,
|
| 1116 |
+
scratch_bump_factor: 0.0f,
|
| 1117 |
+
imperfections_amount: 0.2f,
|
| 1118 |
+
impurities_weight_1: 0.0f,
|
| 1119 |
+
impurities_weight_2: 0.5f,
|
| 1120 |
+
impurities_weight_3: 0.86f,
|
| 1121 |
+
enable_round_corners: false,
|
| 1122 |
+
roundcorner_radius: 0.01f,
|
| 1123 |
+
across_materials: false,
|
| 1124 |
+
texture_translate: 0.0f,
|
| 1125 |
+
texture_rotate: 0.0f,
|
| 1126 |
+
texture_scale: 1.0f,
|
| 1127 |
+
uv_space_index: 0
|
| 1128 |
+
);
|
| 1129 |
+
|
| 1130 |
+
|
| 1131 |
+
export material Silver_Sheet_Punched_Line(*)
|
| 1132 |
+
[[
|
| 1133 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1134 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1135 |
+
::anno::contributor("Maik Rohland"),
|
| 1136 |
+
::anno::display_name("Silver Sheet - Line Punch"),
|
| 1137 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1138 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1139 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Line.png"),
|
| 1140 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "line", "neutral"))
|
| 1141 |
+
]]
|
| 1142 |
+
= Silver_Sheet_Punched(
|
| 1143 |
+
// Punching Parameters
|
| 1144 |
+
shape_select: pattern_line,
|
| 1145 |
+
punching_grid_size: 1.3f,
|
| 1146 |
+
cutout_size: 0.59f,
|
| 1147 |
+
cutout_roundness: 0.4f,
|
| 1148 |
+
cutout_bevel_width: 0.3f,
|
| 1149 |
+
cutout_bump_strength: 1.5f,
|
| 1150 |
+
hexagonal_grid: false,
|
| 1151 |
+
square_grid_offset: 0.3333f,
|
| 1152 |
+
horizontal_offset: true,
|
| 1153 |
+
|
| 1154 |
+
// Material Parameters
|
| 1155 |
+
infinite_tiling: false,
|
| 1156 |
+
sheet_brightness: 0.85f,
|
| 1157 |
+
roughness: 0.4f,
|
| 1158 |
+
streaks: 0.0f,
|
| 1159 |
+
scratch_bump_factor: 0.0f,
|
| 1160 |
+
imperfections_amount: 0.2f,
|
| 1161 |
+
impurities_weight_1: 0.0f,
|
| 1162 |
+
impurities_weight_2: 0.5f,
|
| 1163 |
+
impurities_weight_3: 0.86f,
|
| 1164 |
+
enable_round_corners: false,
|
| 1165 |
+
roundcorner_radius: 0.01f,
|
| 1166 |
+
across_materials: false,
|
| 1167 |
+
texture_translate: 0.0f,
|
| 1168 |
+
texture_rotate: 0.0f,
|
| 1169 |
+
texture_scale: 1.0f,
|
| 1170 |
+
uv_space_index: 0
|
| 1171 |
+
);
|
| 1172 |
+
|
| 1173 |
+
|
| 1174 |
+
export material Silver_Sheet_Punched_Cross(*)
|
| 1175 |
+
[[
|
| 1176 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1177 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1178 |
+
::anno::contributor("Maik Rohland"),
|
| 1179 |
+
::anno::display_name("Silver Sheet - Cross Punch"),
|
| 1180 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1181 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1182 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Cross.png"),
|
| 1183 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "cross", "neutral"))
|
| 1184 |
+
]]
|
| 1185 |
+
= Silver_Sheet_Punched(
|
| 1186 |
+
// Punching Parameters
|
| 1187 |
+
shape_select: pattern_cross,
|
| 1188 |
+
punching_grid_size: 2.0f,
|
| 1189 |
+
cutout_size: 0.59f,
|
| 1190 |
+
cutout_roundness: 0.1f,
|
| 1191 |
+
cutout_bevel_width: 0.44f,
|
| 1192 |
+
cutout_bump_strength: 1.5f,
|
| 1193 |
+
hexagonal_grid: true,
|
| 1194 |
+
square_grid_offset: 0.0f,
|
| 1195 |
+
horizontal_offset: true,
|
| 1196 |
+
|
| 1197 |
+
// Material Parameters
|
| 1198 |
+
infinite_tiling: false,
|
| 1199 |
+
sheet_brightness: 0.85f,
|
| 1200 |
+
roughness: 0.4f,
|
| 1201 |
+
streaks: 0.0f,
|
| 1202 |
+
scratch_bump_factor: 0.0f,
|
| 1203 |
+
imperfections_amount: 0.2f,
|
| 1204 |
+
impurities_weight_1: 0.0f,
|
| 1205 |
+
impurities_weight_2: 0.5f,
|
| 1206 |
+
impurities_weight_3: 0.86f,
|
| 1207 |
+
enable_round_corners: false,
|
| 1208 |
+
roundcorner_radius: 0.01f,
|
| 1209 |
+
across_materials: false,
|
| 1210 |
+
texture_translate: 0.0f,
|
| 1211 |
+
texture_rotate: 0.0f,
|
| 1212 |
+
texture_scale: 1.0f,
|
| 1213 |
+
uv_space_index: 0
|
| 1214 |
+
);
|
| 1215 |
+
|
| 1216 |
+
|
| 1217 |
+
export material Silver_Sheet_Punched_Rhombus(*)
|
| 1218 |
+
[[
|
| 1219 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1220 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1221 |
+
::anno::contributor("Maik Rohland"),
|
| 1222 |
+
::anno::display_name("Silver Sheet - Rhombus Punch"),
|
| 1223 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1224 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1225 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Rhombus.png"),
|
| 1226 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "rhombus", "neutral"))
|
| 1227 |
+
]]
|
| 1228 |
+
= Silver_Sheet_Punched(
|
| 1229 |
+
// Punching Parameters
|
| 1230 |
+
shape_select: pattern_rhombus,
|
| 1231 |
+
punching_grid_size: 1.4f,
|
| 1232 |
+
cutout_size: 1.0f,
|
| 1233 |
+
cutout_roundness: 0.8f,
|
| 1234 |
+
cutout_bevel_width: 0.5f,
|
| 1235 |
+
cutout_bump_strength: 1.5f,
|
| 1236 |
+
hexagonal_grid: true,
|
| 1237 |
+
square_grid_offset: 0.0f,
|
| 1238 |
+
horizontal_offset: true,
|
| 1239 |
+
|
| 1240 |
+
// Material Parameters
|
| 1241 |
+
infinite_tiling: false,
|
| 1242 |
+
sheet_brightness: 0.85f,
|
| 1243 |
+
roughness: 0.4f,
|
| 1244 |
+
streaks: 0.0f,
|
| 1245 |
+
scratch_bump_factor: 0.0f,
|
| 1246 |
+
imperfections_amount: 0.2f,
|
| 1247 |
+
impurities_weight_1: 0.0f,
|
| 1248 |
+
impurities_weight_2: 0.5f,
|
| 1249 |
+
impurities_weight_3: 0.86f,
|
| 1250 |
+
enable_round_corners: false,
|
| 1251 |
+
roundcorner_radius: 0.01f,
|
| 1252 |
+
across_materials: false,
|
| 1253 |
+
texture_translate: 0.0f,
|
| 1254 |
+
texture_rotate: 0.0f,
|
| 1255 |
+
texture_scale: 1.0f,
|
| 1256 |
+
uv_space_index: 0
|
| 1257 |
+
);
|
| 1258 |
+
|
| 1259 |
+
|
| 1260 |
+
export material Silver_Sheet_Punched_Triangle(*)
|
| 1261 |
+
[[
|
| 1262 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1263 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1264 |
+
::anno::contributor("Maik Rohland"),
|
| 1265 |
+
::anno::display_name("Silver Sheet - Triangle Punch"),
|
| 1266 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1267 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1268 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Triangle.png"),
|
| 1269 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "triangle", "neutral"))
|
| 1270 |
+
]]
|
| 1271 |
+
= Silver_Sheet_Punched(
|
| 1272 |
+
// Punching Parameters
|
| 1273 |
+
shape_select: pattern_triangle,
|
| 1274 |
+
punching_grid_size: 1.3f,
|
| 1275 |
+
cutout_size: 1.08f,
|
| 1276 |
+
cutout_roundness: 1.0f,
|
| 1277 |
+
cutout_bevel_width: 1.0f,
|
| 1278 |
+
cutout_bump_strength: 1.5f,
|
| 1279 |
+
hexagonal_grid: true,
|
| 1280 |
+
square_grid_offset: 0.0f,
|
| 1281 |
+
horizontal_offset: true,
|
| 1282 |
+
|
| 1283 |
+
// Material Parameters
|
| 1284 |
+
infinite_tiling: false,
|
| 1285 |
+
sheet_brightness: 0.85f,
|
| 1286 |
+
roughness: 0.4f,
|
| 1287 |
+
streaks: 0.0f,
|
| 1288 |
+
scratch_bump_factor: 0.0f,
|
| 1289 |
+
imperfections_amount: 0.2f,
|
| 1290 |
+
impurities_weight_1: 0.0f,
|
| 1291 |
+
impurities_weight_2: 0.5f,
|
| 1292 |
+
impurities_weight_3: 0.86f,
|
| 1293 |
+
enable_round_corners: false,
|
| 1294 |
+
roundcorner_radius: 0.01f,
|
| 1295 |
+
across_materials: false,
|
| 1296 |
+
texture_translate: 0.0f,
|
| 1297 |
+
texture_rotate: 0.0f,
|
| 1298 |
+
texture_scale: 1.0f,
|
| 1299 |
+
uv_space_index: 0
|
| 1300 |
+
);
|
| 1301 |
+
|
| 1302 |
+
|
| 1303 |
+
export material Silver_Sheet_Punched_Star(*)
|
| 1304 |
+
[[
|
| 1305 |
+
::anno::author("NVIDIA vMaterials"),
|
| 1306 |
+
::anno::contributor("Rüdiger Raab"),
|
| 1307 |
+
::anno::contributor("Maik Rohland"),
|
| 1308 |
+
::anno::display_name("Silver Sheet - Star Punch"),
|
| 1309 |
+
::anno::description(DESCRIPTION_PUNCH),
|
| 1310 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 1311 |
+
::anno::thumbnail("./.thumbs/Silver_Sheet.Silver_Sheet_Punched_Star.png"),
|
| 1312 |
+
::anno::key_words(string[]("metal", "sheet", "silver", "imperfections", "new", "unfinished", "reflective", "oxidized", "construction", "design", "infinite tiling", "punched", "punching", "star", "neutral"))
|
| 1313 |
+
]]
|
| 1314 |
+
= Silver_Sheet_Punched(
|
| 1315 |
+
// Punching Parameters
|
| 1316 |
+
shape_select: pattern_star,
|
| 1317 |
+
punching_grid_size: 1.5f,
|
| 1318 |
+
cutout_size: 0.68f,
|
| 1319 |
+
cutout_roundness: 0.5f,
|
| 1320 |
+
cutout_bevel_width: 0.44f,
|
| 1321 |
+
cutout_bump_strength: 1.5f,
|
| 1322 |
+
hexagonal_grid: true,
|
| 1323 |
+
square_grid_offset: 0.0f,
|
| 1324 |
+
horizontal_offset: true,
|
| 1325 |
+
|
| 1326 |
+
// Material Parameters
|
| 1327 |
+
infinite_tiling: false,
|
| 1328 |
+
sheet_brightness: 0.85f,
|
| 1329 |
+
roughness: 0.4f,
|
| 1330 |
+
streaks: 0.0f,
|
| 1331 |
+
scratch_bump_factor: 0.0f,
|
| 1332 |
+
imperfections_amount: 0.2f,
|
| 1333 |
+
impurities_weight_1: 0.0f,
|
| 1334 |
+
impurities_weight_2: 0.5f,
|
| 1335 |
+
impurities_weight_3: 0.86f,
|
| 1336 |
+
enable_round_corners: false,
|
| 1337 |
+
roundcorner_radius: 0.01f,
|
| 1338 |
+
across_materials: false,
|
| 1339 |
+
texture_translate: 0.0f,
|
| 1340 |
+
texture_rotate: 0.0f,
|
| 1341 |
+
texture_scale: 1.0f,
|
| 1342 |
+
uv_space_index: 0
|
| 1343 |
+
);
|
Assets/Material/material_0480/Steel_Painted_Cracked.mdl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Assets/Material/material_0490/Tungsten_Foil.mdl
ADDED
|
@@ -0,0 +1,497 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
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 |
+
const string DESCRIPTION = "Metal foil material with additional controls for wrinkling the material";
|
| 62 |
+
|
| 63 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 64 |
+
{
|
| 65 |
+
return (input - x)/(y - x);
|
| 66 |
+
}
|
| 67 |
+
|
| 68 |
+
float histogram_scan_big(float input, float width, float position)
|
| 69 |
+
{
|
| 70 |
+
return ::math::clamp(
|
| 71 |
+
remap_xy_to_0_1(input,
|
| 72 |
+
::math::lerp(-width, 1.0, position),
|
| 73 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 74 |
+
0.0,
|
| 75 |
+
1.0);
|
| 76 |
+
}
|
| 77 |
+
|
| 78 |
+
::base::texture_coordinate_info vmat_transform(
|
| 79 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 80 |
+
uniform float rotation = 0.0,
|
| 81 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 82 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 83 |
+
uniform int uv_space = 0
|
| 84 |
+
)
|
| 85 |
+
{
|
| 86 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 87 |
+
|
| 88 |
+
float4x4 scale =
|
| 89 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 90 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 91 |
+
0. , 0. , 1.0, 0.,
|
| 92 |
+
translation.x , translation.y , 0.0, 1.);
|
| 93 |
+
|
| 94 |
+
float s = ::math::sin(rotation_rad);
|
| 95 |
+
float c = ::math::cos(rotation_rad);
|
| 96 |
+
float4x4 rotate =
|
| 97 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 98 |
+
s , c , 0.0 , 0.0,
|
| 99 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 100 |
+
0. , 0.0 , 0.0 , 1.);
|
| 101 |
+
|
| 102 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
float histogram_range(float input, float range, float position)
|
| 106 |
+
{
|
| 107 |
+
float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0);
|
| 108 |
+
float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0);
|
| 109 |
+
return ::math::lerp(low, high, input);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
float uint2float(int x)
|
| 113 |
+
{
|
| 114 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
int lowbias32(int x)
|
| 118 |
+
{
|
| 119 |
+
x ^= x >>> 16;
|
| 120 |
+
x *= 0x7feb352d;
|
| 121 |
+
x ^= x >>> 15;
|
| 122 |
+
x *= 0x846ca68b;
|
| 123 |
+
x ^= x >>> 16;
|
| 124 |
+
return x;
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
float2 rnd22(int2 p) {
|
| 128 |
+
float2 ret_val = float2(
|
| 129 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 130 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 131 |
+
);
|
| 132 |
+
return ret_val;
|
| 133 |
+
}
|
| 134 |
+
|
| 135 |
+
float3 srgb2rgb(float3 val)
|
| 136 |
+
{
|
| 137 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 138 |
+
}
|
| 139 |
+
|
| 140 |
+
float2x2 invert_2x2(float2x2 M)
|
| 141 |
+
{
|
| 142 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 143 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 144 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 145 |
+
}
|
| 146 |
+
|
| 147 |
+
float3 nonrepeat_lookup(
|
| 148 |
+
uniform texture_2d texture = texture_2d(),
|
| 149 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 150 |
+
float texture_scale = 1.0,
|
| 151 |
+
float3 average_color = float3(0.5),
|
| 152 |
+
float patch_size = 8.0
|
| 153 |
+
)
|
| 154 |
+
{
|
| 155 |
+
|
| 156 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 157 |
+
float Z = patch_size; // patch scale inside example texture
|
| 158 |
+
float CON = 1.0f;
|
| 159 |
+
|
| 160 |
+
float3 O = float3(0.f);
|
| 161 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 162 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 163 |
+
|
| 164 |
+
float2 U = uv_in;
|
| 165 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 166 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 167 |
+
|
| 168 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 169 |
+
// average color work out, take the float value and calculate the apropriate
|
| 170 |
+
// mean value as (value^(1/2.2))
|
| 171 |
+
|
| 172 |
+
float3 m = average_color;
|
| 173 |
+
|
| 174 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 175 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 176 |
+
|
| 177 |
+
if( F[2] > 0.f )
|
| 178 |
+
|
| 179 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 180 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 181 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 182 |
+
else
|
| 183 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 184 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 185 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 186 |
+
O = m + O/::math::length(W);
|
| 187 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 188 |
+
|
| 189 |
+
return float3(O);
|
| 190 |
+
}
|
| 191 |
+
|
| 192 |
+
color endless_texture(
|
| 193 |
+
uniform texture_2d texture = texture_2d(),
|
| 194 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 195 |
+
float texture_scale = 10.0,
|
| 196 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 197 |
+
float patch_size = 8.0,
|
| 198 |
+
bool gamma_correct_lookup = true
|
| 199 |
+
)
|
| 200 |
+
{
|
| 201 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 202 |
+
nonrepeat_lookup (
|
| 203 |
+
texture: texture,
|
| 204 |
+
uvw: uvw,
|
| 205 |
+
texture_scale: texture_scale,
|
| 206 |
+
average_color: average_color,
|
| 207 |
+
patch_size: patch_size
|
| 208 |
+
))
|
| 209 |
+
) : color(nonrepeat_lookup (
|
| 210 |
+
texture: texture,
|
| 211 |
+
uvw: uvw,
|
| 212 |
+
texture_scale: texture_scale,
|
| 213 |
+
average_color: average_color,
|
| 214 |
+
patch_size: patch_size
|
| 215 |
+
));
|
| 216 |
+
}
|
| 217 |
+
|
| 218 |
+
float3 endless_normal(
|
| 219 |
+
uniform texture_2d texture = texture_2d(),
|
| 220 |
+
float factor = 1.0,
|
| 221 |
+
bool flip_tangent_u = false,
|
| 222 |
+
bool flip_tangent_v = false,
|
| 223 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 224 |
+
float texture_scale = 1.0,
|
| 225 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 226 |
+
float patch_size = 8.0
|
| 227 |
+
)
|
| 228 |
+
{
|
| 229 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 230 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 231 |
+
|
| 232 |
+
if (flip_tangent_u)
|
| 233 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 234 |
+
if (flip_tangent_v)
|
| 235 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 236 |
+
|
| 237 |
+
// normalized Lookup
|
| 238 |
+
float3 tangent_space_normal =
|
| 239 |
+
(nonrepeat_lookup (
|
| 240 |
+
texture: texture,
|
| 241 |
+
uvw: uvw,
|
| 242 |
+
texture_scale: texture_scale,
|
| 243 |
+
average_color: average_color,
|
| 244 |
+
patch_size: patch_size
|
| 245 |
+
) - 0.5) * (2.0 * factor);
|
| 246 |
+
|
| 247 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 248 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 249 |
+
::state::normal()*1.0);
|
| 250 |
+
}
|
| 251 |
+
|
| 252 |
+
export material Tungsten_Foil(
|
| 253 |
+
uniform bool infinite_tiling = true [[
|
| 254 |
+
::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."),
|
| 255 |
+
::anno::display_name("Infinite Tiling"),
|
| 256 |
+
::anno::in_group("Infinite Tiing")
|
| 257 |
+
]],
|
| 258 |
+
float brightness = 1.f [[
|
| 259 |
+
::anno::description("Ajusts the total reflectivity of the metal."),
|
| 260 |
+
::anno::display_name("Brightness"),
|
| 261 |
+
::anno::hard_range(0.f, 1.f),
|
| 262 |
+
::anno::in_group("Appearance")
|
| 263 |
+
]],
|
| 264 |
+
float roughness = 0.15f [[
|
| 265 |
+
::anno::display_name("Roughness"),
|
| 266 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 267 |
+
::anno::hard_range(0.f, 1.f),
|
| 268 |
+
::anno::in_group("Appearance")
|
| 269 |
+
]],
|
| 270 |
+
float roughness_variation = 0.564f [[
|
| 271 |
+
::anno::description("Amount of variation applied to the roughness, higher numbers add more non uniform appearance to the reflectivity of the material."),
|
| 272 |
+
::anno::display_name("Roughness Variation"),
|
| 273 |
+
::anno::hard_range(0.f, 1.f),
|
| 274 |
+
::anno::in_group("Appearance")
|
| 275 |
+
]],
|
| 276 |
+
float smudges = 0.35f [[
|
| 277 |
+
::anno::description("Adds blurrier reflections that show smudges on the surface."),
|
| 278 |
+
::anno::display_name("Smudges"),
|
| 279 |
+
::anno::hard_range(0.f, 1.f),
|
| 280 |
+
::anno::in_group("Appearance")
|
| 281 |
+
]],
|
| 282 |
+
uniform float bump_strength = 0.05f [[
|
| 283 |
+
::anno::description("Specifies the strength of the bump."),
|
| 284 |
+
::anno::display_name("Bump Strength"),
|
| 285 |
+
::anno::hard_range(0.f, 1.f),
|
| 286 |
+
::anno::in_group("Appearance")
|
| 287 |
+
]],
|
| 288 |
+
uniform float2 texture_translate = 0.f [[
|
| 289 |
+
::anno::description("Controls the position of the texture."),
|
| 290 |
+
::anno::display_name("Texture Translate"),
|
| 291 |
+
::anno::in_group("Transform")
|
| 292 |
+
]],
|
| 293 |
+
uniform float texture_rotate = 0.0f [[
|
| 294 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 295 |
+
::anno::display_name("Texture Rotate"),
|
| 296 |
+
::anno::in_group("Transform")
|
| 297 |
+
]],
|
| 298 |
+
uniform float2 texture_scale = 1.f [[
|
| 299 |
+
::anno::description("Larger numbers increase the size."),
|
| 300 |
+
::anno::display_name("Texture Scale"),
|
| 301 |
+
::nvidia::core_definitions::dimension(float2(0.4, 0.4)),
|
| 302 |
+
::anno::in_group("Transform")
|
| 303 |
+
]],
|
| 304 |
+
uniform int uv_space_index = 0 [[
|
| 305 |
+
::anno::display_name("UV Space Index"),
|
| 306 |
+
::anno::in_group("Transform")
|
| 307 |
+
]],
|
| 308 |
+
uniform bool enable_round_corners = false [[
|
| 309 |
+
::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."),
|
| 310 |
+
::anno::display_name("Enable Round Corners"),
|
| 311 |
+
::anno::in_group("Round Corners")
|
| 312 |
+
]],
|
| 313 |
+
uniform float radius = 0.002f [[
|
| 314 |
+
::anno::description("Radius of the rounded corners."),
|
| 315 |
+
::anno::display_name("Round Corner Radius"),
|
| 316 |
+
::anno::in_group("Round Corners")
|
| 317 |
+
]],
|
| 318 |
+
uniform bool across_materials = false [[
|
| 319 |
+
::anno::display_name("Across Materials"),
|
| 320 |
+
::anno::in_group("Round Corners")
|
| 321 |
+
]]
|
| 322 |
+
)
|
| 323 |
+
[[
|
| 324 |
+
::anno::author("NVIDIA vMaterials"),
|
| 325 |
+
::anno::display_name("Tungsten Foil - Slightly Wrinkled"),
|
| 326 |
+
::anno::description(DESCRIPTION),
|
| 327 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 328 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil.png"),
|
| 329 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 330 |
+
]]
|
| 331 |
+
=
|
| 332 |
+
let {
|
| 333 |
+
color normal_reflectivity = color(0.951001417565f, 0.815051845356f, 0.751931718925f); // Tungsten
|
| 334 |
+
color grazing_reflectivity = color(0.99942f, 1.f, 1.f);
|
| 335 |
+
|
| 336 |
+
bool tmp0 = false;
|
| 337 |
+
material_surface tmp1(
|
| 338 |
+
::df::weighted_layer(0.0299999993f, ::df::microfacet_ggx_smith_bsdf(0.300000012f, 0.300000012f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::color_custom_curve_layer(normal_reflectivity, grazing_reflectivity, 5.f, color(::math::lerp(0.600000024f, 1.f, brightness) * histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[2], 2.20000005f), 1.f, bump_strength * 0.400000006f)), ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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]) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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]), (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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]) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[0], roughness * 0.5f * roughness_variation, roughness * 0.5f) + roughness * 0.5f * roughness_variation * (float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.328999996f, 0.513999999f, 0.764999986f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_rough1_G_rough2_G_ao.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).tint)[1] - 0.5f) + (1.f - roughness) * smudges * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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] + roughness_variation * 0.200000003f * float3(infinite_tiling ? endless_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 10.f, float3(0.0820000023f), 8.f, false) : ::base::file_texture(texture_2d("./foil_crumpled_R_smudge_G_splotch.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]), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), bsdf(), infinite_tiling ? endless_normal(texture_2d("./foil_crumpled_norm.jpg", ::tex::gamma_linear), bump_strength * 1.5f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : ::base::tangent_space_normal_texture(texture_2d("./foil_crumpled_norm.jpg", ::tex::gamma_linear), bump_strength * 1.5f, 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("./foil_crumpled_norm.jpg", ::tex::gamma_linear), bump_strength * 1.5f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.5f, 0.5f, 1.f), 8.f) : ::base::tangent_space_normal_texture(texture_2d("./foil_crumpled_norm.jpg", ::tex::gamma_linear), bump_strength * 1.5f, 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)),
|
| 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 |
+
enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal());
|
| 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 |
+
export material Tungsten_Foil_Smudged_Foil(*)
|
| 358 |
+
[[
|
| 359 |
+
::anno::author("NVIDIA vMaterials"),
|
| 360 |
+
::anno::display_name("Tungsten Foil - Smudged"),
|
| 361 |
+
::anno::description(DESCRIPTION),
|
| 362 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 363 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil_Smudged_Foil.png"),
|
| 364 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "smooth", "unfinished", "decorative", "creative", "neutral"))
|
| 365 |
+
]]
|
| 366 |
+
= Tungsten_Foil(
|
| 367 |
+
infinite_tiling: true,
|
| 368 |
+
roughness: 0.15f,
|
| 369 |
+
roughness_variation: 0.84f,
|
| 370 |
+
smudges: 0.35f,
|
| 371 |
+
bump_strength: 0.0f,
|
| 372 |
+
texture_translate: 0.0f,
|
| 373 |
+
texture_rotate: 0.0f,
|
| 374 |
+
texture_scale: 1.0f,
|
| 375 |
+
uv_space_index: 0,
|
| 376 |
+
enable_round_corners: false,
|
| 377 |
+
radius: 0.002f,
|
| 378 |
+
across_materials: false
|
| 379 |
+
);
|
| 380 |
+
|
| 381 |
+
|
| 382 |
+
export material Tungsten_Foil_Shiny_Wrinkled(*)
|
| 383 |
+
[[
|
| 384 |
+
::anno::author("NVIDIA vMaterials"),
|
| 385 |
+
::anno::display_name("Tungsten Foil - Shiny Wrinkled"),
|
| 386 |
+
::anno::description(DESCRIPTION),
|
| 387 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 388 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil_Shiny_Wrinkled.png"),
|
| 389 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "shiny", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 390 |
+
]]
|
| 391 |
+
= Tungsten_Foil(
|
| 392 |
+
infinite_tiling: true,
|
| 393 |
+
roughness: 0.25f,
|
| 394 |
+
roughness_variation: 0.25f,
|
| 395 |
+
smudges: 0.75f,
|
| 396 |
+
bump_strength: 0.25f,
|
| 397 |
+
texture_translate: 0.0f,
|
| 398 |
+
texture_rotate: 0.0f,
|
| 399 |
+
texture_scale: 1.0f,
|
| 400 |
+
uv_space_index: 0,
|
| 401 |
+
enable_round_corners: false,
|
| 402 |
+
radius: 0.002f,
|
| 403 |
+
across_materials: false
|
| 404 |
+
);
|
| 405 |
+
|
| 406 |
+
|
| 407 |
+
|
| 408 |
+
|
| 409 |
+
export material Tungsten_Foil_Matte_Wrinkled(*)
|
| 410 |
+
[[
|
| 411 |
+
::anno::author("NVIDIA vMaterials"),
|
| 412 |
+
::anno::display_name("Tungsten Foil - Matte Wrinkled"),
|
| 413 |
+
::anno::description(DESCRIPTION),
|
| 414 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 415 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil_Matte_Wrinkled.png"),
|
| 416 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "matte", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral", "gray"))
|
| 417 |
+
]]
|
| 418 |
+
= Tungsten_Foil(
|
| 419 |
+
infinite_tiling: true,
|
| 420 |
+
roughness: 0.65f,
|
| 421 |
+
roughness_variation: 1.0f,
|
| 422 |
+
smudges: 0.4f,
|
| 423 |
+
bump_strength: 0.15f,
|
| 424 |
+
texture_translate: 0.0f,
|
| 425 |
+
texture_rotate: 0.0f,
|
| 426 |
+
texture_scale: 1.0f,
|
| 427 |
+
uv_space_index: 0,
|
| 428 |
+
enable_round_corners: false,
|
| 429 |
+
radius: 0.002f,
|
| 430 |
+
across_materials: false
|
| 431 |
+
);
|
| 432 |
+
|
| 433 |
+
|
| 434 |
+
|
| 435 |
+
export material Tungsten_Foil_Heavy_Glossy_Wrinkles(*)
|
| 436 |
+
[[
|
| 437 |
+
::anno::author("NVIDIA vMaterials"),
|
| 438 |
+
::anno::display_name("Tungsten Foil - Heavy Glossy Wrinkles"),
|
| 439 |
+
::anno::description(DESCRIPTION),
|
| 440 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 441 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil_Heavy_Glossy_Wrinkles.png"),
|
| 442 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "smooth", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral"))
|
| 443 |
+
]]
|
| 444 |
+
= Tungsten_Foil(
|
| 445 |
+
infinite_tiling: true,
|
| 446 |
+
roughness: 0.164f,
|
| 447 |
+
roughness_variation: 0.021f,
|
| 448 |
+
smudges: 0.143f,
|
| 449 |
+
bump_strength: 0.99f,
|
| 450 |
+
texture_translate: 0.0f,
|
| 451 |
+
texture_rotate: 0.0f,
|
| 452 |
+
texture_scale: 1.0f,
|
| 453 |
+
uv_space_index: 0,
|
| 454 |
+
enable_round_corners: false,
|
| 455 |
+
radius: 0.002f,
|
| 456 |
+
across_materials: false
|
| 457 |
+
);
|
| 458 |
+
|
| 459 |
+
|
| 460 |
+
|
| 461 |
+
export material Tungsten_Foil_Heavy_Matte_Wrinkled(*)
|
| 462 |
+
[[
|
| 463 |
+
::anno::author("NVIDIA vMaterials"),
|
| 464 |
+
::anno::display_name("Tungsten Foil - Heavy Matte Wrinkled"),
|
| 465 |
+
::anno::description(DESCRIPTION),
|
| 466 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 467 |
+
::anno::thumbnail("./.thumbs/Tungsten_Foil.Tungsten_Foil_Heavy_Matte_Wrinkled.png"),
|
| 468 |
+
::anno::key_words(string[]("design", "metal", "tungsten", "foil", "matte", "bumped", "crumpled", "wrinkled", "creased", "unfinished", "decorative", "creative", "neutral", "gray"))
|
| 469 |
+
]]
|
| 470 |
+
= Tungsten_Foil(
|
| 471 |
+
infinite_tiling: true,
|
| 472 |
+
roughness: 0.889f,
|
| 473 |
+
roughness_variation: 0.018f,
|
| 474 |
+
smudges: 0.246f,
|
| 475 |
+
bump_strength: 0.732f,
|
| 476 |
+
texture_translate: 0.0f,
|
| 477 |
+
texture_rotate: 0.0f,
|
| 478 |
+
texture_scale: 1.0f,
|
| 479 |
+
uv_space_index: 0,
|
| 480 |
+
enable_round_corners: false,
|
| 481 |
+
radius: 0.002f,
|
| 482 |
+
across_materials: false
|
| 483 |
+
);
|
| 484 |
+
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
|
| 492 |
+
|
| 493 |
+
|
| 494 |
+
|
| 495 |
+
|
| 496 |
+
|
| 497 |
+
|
Assets/Material/material_0508/Caoutchouc.mdl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
Assets/Material/material_0515/Chalk_Paint_Pebbles.mdl
ADDED
|
@@ -0,0 +1,802 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
import ::anno::*;
|
| 40 |
+
import ::base::*;
|
| 41 |
+
import ::df::*;
|
| 42 |
+
import ::math::*;
|
| 43 |
+
import ::state::*;
|
| 44 |
+
import ::tex::*;
|
| 45 |
+
import ::nvidia::core_definitions::dimension;
|
| 46 |
+
import ::nvidia::core_definitions::blend_colors;
|
| 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 =
|
| 63 |
+
"A diffuse chalk paint material with a slightly glossy sheen, evenly applied with a bumpy look and feel";
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
float remap_xy_to_0_1(float input, float x, float y)
|
| 67 |
+
{
|
| 68 |
+
return (input - x)/(y - x);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
float histogram_scan_big(float input, float width, float position)
|
| 72 |
+
{
|
| 73 |
+
return ::math::clamp(
|
| 74 |
+
remap_xy_to_0_1(input,
|
| 75 |
+
::math::lerp(-width, 1.0, position),
|
| 76 |
+
::math::lerp(0.0, 1.0 + width, position)),
|
| 77 |
+
0.0,
|
| 78 |
+
1.0);
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
::base::texture_coordinate_info vmat_transform(
|
| 82 |
+
uniform float2 translation = float2(0.0, 0.0),
|
| 83 |
+
uniform float rotation = 0.0,
|
| 84 |
+
uniform float2 scaling = float2(1.0, 1.0),
|
| 85 |
+
uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw,
|
| 86 |
+
uniform int uv_space = 0
|
| 87 |
+
)
|
| 88 |
+
{
|
| 89 |
+
float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f;
|
| 90 |
+
|
| 91 |
+
float4x4 scale =
|
| 92 |
+
float4x4(1.0 /scaling.x, 0. , 0. , 0.,
|
| 93 |
+
0. , 1.0 /scaling.y , 0. , 0.,
|
| 94 |
+
0. , 0. , 1.0, 0.,
|
| 95 |
+
translation.x , translation.y , 0.0, 1.);
|
| 96 |
+
|
| 97 |
+
float s = ::math::sin(rotation_rad);
|
| 98 |
+
float c = ::math::cos(rotation_rad);
|
| 99 |
+
float4x4 rotate =
|
| 100 |
+
float4x4( c , -s , 0.0 , 0.0,
|
| 101 |
+
s , c , 0.0 , 0.0,
|
| 102 |
+
0.0, 0.0 , 1.0 , 0.0,
|
| 103 |
+
0. , 0.0 , 0.0 , 1.);
|
| 104 |
+
|
| 105 |
+
return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space));
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
float uint2float(int x)
|
| 110 |
+
{
|
| 111 |
+
return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0);
|
| 112 |
+
}
|
| 113 |
+
|
| 114 |
+
int lowbias32(int x)
|
| 115 |
+
{
|
| 116 |
+
x ^= x >>> 16;
|
| 117 |
+
x *= 0x7feb352d;
|
| 118 |
+
x ^= x >>> 15;
|
| 119 |
+
x *= 0x846ca68b;
|
| 120 |
+
x ^= x >>> 16;
|
| 121 |
+
return x;
|
| 122 |
+
}
|
| 123 |
+
|
| 124 |
+
float2 rnd22(int2 p) {
|
| 125 |
+
float2 ret_val = float2(
|
| 126 |
+
uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f,
|
| 127 |
+
uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f
|
| 128 |
+
);
|
| 129 |
+
return ret_val;
|
| 130 |
+
}
|
| 131 |
+
|
| 132 |
+
float3 srgb2rgb(float3 val)
|
| 133 |
+
{
|
| 134 |
+
return ::math::pow(::math::max(val, float3(0.0f)), 2.2);
|
| 135 |
+
}
|
| 136 |
+
|
| 137 |
+
float2x2 invert_2x2(float2x2 M)
|
| 138 |
+
{
|
| 139 |
+
float det = M[0][0]*M[1][1] - M[0][1]*M[1][0];
|
| 140 |
+
//https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/
|
| 141 |
+
return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]);
|
| 142 |
+
}
|
| 143 |
+
|
| 144 |
+
float3 nonrepeat_lookup(
|
| 145 |
+
uniform texture_2d texture = texture_2d(),
|
| 146 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 147 |
+
float texture_scale = 1.0,
|
| 148 |
+
float3 average_color = float3(0.5),
|
| 149 |
+
float patch_size = 8.0
|
| 150 |
+
)
|
| 151 |
+
{
|
| 152 |
+
|
| 153 |
+
float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale;
|
| 154 |
+
float Z = patch_size; // patch scale inside example texture
|
| 155 |
+
float CON = 1.0f;
|
| 156 |
+
|
| 157 |
+
float3 O = float3(0.f);
|
| 158 |
+
float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f);
|
| 159 |
+
float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space
|
| 160 |
+
|
| 161 |
+
float2 U = uv_in;
|
| 162 |
+
float2 V = M * uv_in; //pre-tilted hexa coordinates
|
| 163 |
+
int2 I = int2(::math::floor(V)); // hexa-tile id
|
| 164 |
+
|
| 165 |
+
// The mean color needs to be determined in Photoshop then to make the
|
| 166 |
+
// average color work out, take the float value and calculate the apropriate
|
| 167 |
+
// mean value as (value^(1/2.2))
|
| 168 |
+
|
| 169 |
+
float3 m = average_color;
|
| 170 |
+
|
| 171 |
+
float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W;
|
| 172 |
+
F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates
|
| 173 |
+
|
| 174 |
+
if( F[2] > 0.f )
|
| 175 |
+
|
| 176 |
+
O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON))
|
| 177 |
+
+ (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON))
|
| 178 |
+
+ (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON));
|
| 179 |
+
else
|
| 180 |
+
O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON))
|
| 181 |
+
+ (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON))
|
| 182 |
+
+ (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON));
|
| 183 |
+
O = m + O/::math::length(W);
|
| 184 |
+
O = ::math::clamp( (O), 0.0, 1.0);
|
| 185 |
+
|
| 186 |
+
return float3(O);
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
color endless_texture(
|
| 190 |
+
uniform texture_2d texture = texture_2d(),
|
| 191 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 192 |
+
float texture_scale = 10.0,
|
| 193 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 194 |
+
float patch_size = 8.0,
|
| 195 |
+
bool gamma_correct_lookup = true
|
| 196 |
+
)
|
| 197 |
+
{
|
| 198 |
+
return gamma_correct_lookup ? color(srgb2rgb(
|
| 199 |
+
nonrepeat_lookup (
|
| 200 |
+
texture: texture,
|
| 201 |
+
uvw: uvw,
|
| 202 |
+
texture_scale: texture_scale,
|
| 203 |
+
average_color: average_color,
|
| 204 |
+
patch_size: patch_size
|
| 205 |
+
))
|
| 206 |
+
) : color(nonrepeat_lookup (
|
| 207 |
+
texture: texture,
|
| 208 |
+
uvw: uvw,
|
| 209 |
+
texture_scale: texture_scale,
|
| 210 |
+
average_color: average_color,
|
| 211 |
+
patch_size: patch_size
|
| 212 |
+
));
|
| 213 |
+
}
|
| 214 |
+
|
| 215 |
+
float3 endless_normal(
|
| 216 |
+
uniform texture_2d texture = texture_2d(),
|
| 217 |
+
float factor = 1.0,
|
| 218 |
+
bool flip_tangent_u = false,
|
| 219 |
+
bool flip_tangent_v = false,
|
| 220 |
+
::base::texture_coordinate_info uvw = ::base::coordinate_source(),
|
| 221 |
+
float texture_scale = 1.0,
|
| 222 |
+
float3 average_color = float3(0.5, 0.5, 1.0),
|
| 223 |
+
float patch_size = 8.0
|
| 224 |
+
)
|
| 225 |
+
{
|
| 226 |
+
float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u;
|
| 227 |
+
float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v;
|
| 228 |
+
|
| 229 |
+
if (flip_tangent_u)
|
| 230 |
+
transformed_tangent_u=-transformed_tangent_u;
|
| 231 |
+
if (flip_tangent_v)
|
| 232 |
+
transformed_tangent_v=-transformed_tangent_v;
|
| 233 |
+
|
| 234 |
+
// normalized Lookup
|
| 235 |
+
float3 tangent_space_normal =
|
| 236 |
+
(nonrepeat_lookup (
|
| 237 |
+
texture: texture,
|
| 238 |
+
uvw: uvw,
|
| 239 |
+
texture_scale: texture_scale,
|
| 240 |
+
average_color: average_color,
|
| 241 |
+
patch_size: patch_size
|
| 242 |
+
) - 0.5) * (2.0 * factor);
|
| 243 |
+
|
| 244 |
+
return ::math::normalize(uvw.tangent_u * tangent_space_normal.x +
|
| 245 |
+
uvw.tangent_v * tangent_space_normal.y +
|
| 246 |
+
::state::normal()*1.0);
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
float3 normalmap_normal(
|
| 250 |
+
uniform texture_2d texture,
|
| 251 |
+
float factor = 1.0,
|
| 252 |
+
::base::texture_coordinate_info uvw = ::base::texture_coordinate_info()
|
| 253 |
+
)
|
| 254 |
+
{
|
| 255 |
+
float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0);
|
| 256 |
+
return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal());
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
export material Chalk_Paint_Pebbles(
|
| 260 |
+
uniform bool infinite_tiling = true [[
|
| 261 |
+
::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."),
|
| 262 |
+
::anno::in_group("Appearance")
|
| 263 |
+
]],
|
| 264 |
+
float patch_size = 0.9f [[
|
| 265 |
+
::anno::description("Determines the size of the sampled area in the texture. Larger values sample smaller areas, resulting in a more fragmented look of the source texture. Tweak the value so that the appearance of the infinite tiling looks good to you."),
|
| 266 |
+
::anno::in_group("Appearance"),
|
| 267 |
+
::anno::hard_range(0.f, 1.f)
|
| 268 |
+
]],
|
| 269 |
+
color paint_color = color(0.1042f, 0.32314f, 0.031327f) [[
|
| 270 |
+
::anno::description("Sets the diffuse color of the paint material."),
|
| 271 |
+
::anno::in_group("Appearance")
|
| 272 |
+
]],
|
| 273 |
+
float paint_brightness = 0.737f [[
|
| 274 |
+
::anno::description("Adjusts the brightness of the paint."),
|
| 275 |
+
::anno::display_name("Paint Brightness"),
|
| 276 |
+
::anno::in_group("Appearance"),
|
| 277 |
+
::anno::hard_range(0.f, 1.f)
|
| 278 |
+
]],
|
| 279 |
+
float paint_roughness = 0.9f [[
|
| 280 |
+
::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."),
|
| 281 |
+
::anno::display_name("Paint Roughness"),
|
| 282 |
+
::anno::in_group("Appearance"),
|
| 283 |
+
::anno::hard_range(0.f, 1.f)
|
| 284 |
+
]],
|
| 285 |
+
float bump_strength = 1.f [[
|
| 286 |
+
::anno::description("Specifies the strength of the bump."),
|
| 287 |
+
::anno::display_name("Bump Strength"),
|
| 288 |
+
::anno::in_group("Appearance"),
|
| 289 |
+
::anno::hard_range(0.f, 1.f)
|
| 290 |
+
]],
|
| 291 |
+
uniform float2 texture_translate = 0.f [[
|
| 292 |
+
::anno::description("Controls the position of the texture."),
|
| 293 |
+
::anno::display_name("Translate"),
|
| 294 |
+
::anno::in_group("Transform")
|
| 295 |
+
]],
|
| 296 |
+
uniform float texture_rotate = 0.f [[
|
| 297 |
+
::anno::description("Rotates angle of the texture in degrees."),
|
| 298 |
+
::anno::display_name("Rotate"),
|
| 299 |
+
::anno::in_group("Transform")
|
| 300 |
+
]],
|
| 301 |
+
uniform float2 texture_scale = 1.f [[
|
| 302 |
+
::anno::description("Larger numbers increase the size."),
|
| 303 |
+
::anno::display_name("Scale"),
|
| 304 |
+
::nvidia::core_definitions::dimension(float2(1.0, 1.0)),
|
| 305 |
+
::anno::in_group("Transform")
|
| 306 |
+
]],
|
| 307 |
+
uniform int uv_space_index = 0 [[
|
| 308 |
+
::anno::description("Use selected UV space for material."),
|
| 309 |
+
::anno::display_name("UV Space Index"),
|
| 310 |
+
::anno::in_group("Advanced")
|
| 311 |
+
]]
|
| 312 |
+
)
|
| 313 |
+
[[
|
| 314 |
+
::anno::author("NVIDIA vMaterials"),
|
| 315 |
+
::anno::display_name("Chalk Paint Pebbles - Extra White"),
|
| 316 |
+
::anno::description(DESCRIPTION),
|
| 317 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 318 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles.png"),
|
| 319 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "white", "light", "neutral"))
|
| 320 |
+
]]
|
| 321 |
+
=
|
| 322 |
+
let {
|
| 323 |
+
bool tmp0 = false;
|
| 324 |
+
float2 corrected_texture_scale = texture_scale * 0.5;
|
| 325 |
+
|
| 326 |
+
material_surface tmp1(
|
| 327 |
+
::df::custom_curve_layer(0.02f, 1.f, 5.f, histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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.266000003f, 0.180000007f), ::df::microfacet_beckmann_smith_bsdf(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.51f, 0.502f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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] * float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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.985000074f, ::math::lerp(0.36f, 0.09f, paint_roughness)), histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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] * float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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.985000074f, ::math::lerp(0.36f, 0.09f, paint_roughness)), 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(paint_color, color(float3(infinite_tiling ? endless_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./Chalk_Paint_Pebbles_multi_R_diff_G_rough_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, corrected_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]), ::base::color_layer_multiply, 0.8f).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::math::lerp(0.400000006f, 0.f, paint_brightness)).tint, 0.f, ""), ::state::normal()),
|
| 328 |
+
material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 329 |
+
material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance));
|
| 330 |
+
color tmp3 = color(1.f, 1.f, 1.f);
|
| 331 |
+
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));
|
| 332 |
+
material_geometry tmp5(
|
| 333 |
+
float3(0.f),
|
| 334 |
+
1.f,
|
| 335 |
+
infinite_tiling ? endless_normal(texture_2d("./Chalk_Paint_Pebbles_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(60.f, 0.1f, patch_size)) : normalmap_normal(texture_2d("./Chalk_Paint_Pebbles_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index)));
|
| 336 |
+
} in
|
| 337 |
+
material(
|
| 338 |
+
thin_walled: tmp0,
|
| 339 |
+
surface: tmp1,
|
| 340 |
+
backface: tmp2,
|
| 341 |
+
ior: tmp3,
|
| 342 |
+
volume: tmp4,
|
| 343 |
+
geometry: tmp5);
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
|
| 347 |
+
export material Chalk_Paint_Pebbles_Origami(*)
|
| 348 |
+
[[
|
| 349 |
+
::anno::author("NVIDIA vMaterials"),
|
| 350 |
+
::anno::display_name("Chalk Paint Pebbles - Origami"),
|
| 351 |
+
::anno::description(DESCRIPTION),
|
| 352 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 353 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Origami.png"),
|
| 354 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "white", "light", "neutral", "desaturated"))
|
| 355 |
+
]]
|
| 356 |
+
= Chalk_Paint_Pebbles(
|
| 357 |
+
infinite_tiling: true,
|
| 358 |
+
patch_size: 0.9f,
|
| 359 |
+
paint_color: color(0.684843f, 0.684843f, 0.634958f),
|
| 360 |
+
paint_brightness: 0.7f,
|
| 361 |
+
paint_roughness: 0.9f,
|
| 362 |
+
bump_strength: 0.7f,
|
| 363 |
+
texture_translate: 0.f,
|
| 364 |
+
texture_rotate: 0.f,
|
| 365 |
+
texture_scale: 1.0f,
|
| 366 |
+
uv_space_index: 0
|
| 367 |
+
);
|
| 368 |
+
|
| 369 |
+
|
| 370 |
+
|
| 371 |
+
export material Chalk_Paint_Pebbles_Rose_Ash(*)
|
| 372 |
+
[[
|
| 373 |
+
::anno::author("NVIDIA vMaterials"),
|
| 374 |
+
::anno::display_name("Chalk Paint Pebbles - Rose Ash"),
|
| 375 |
+
::anno::description(DESCRIPTION),
|
| 376 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 377 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Rose_Ash.png"),
|
| 378 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "pink", "light", "warm", "desaturated"))
|
| 379 |
+
]]
|
| 380 |
+
= Chalk_Paint_Pebbles(
|
| 381 |
+
infinite_tiling: true,
|
| 382 |
+
patch_size: 0.9f,
|
| 383 |
+
paint_color: color(0.684843f, 0.664642f, 0.620393f),
|
| 384 |
+
paint_brightness: 0.7f,
|
| 385 |
+
paint_roughness: 0.9f,
|
| 386 |
+
bump_strength: 0.7f,
|
| 387 |
+
texture_translate: 0.f,
|
| 388 |
+
texture_rotate: 0.f,
|
| 389 |
+
texture_scale: 1.0f,
|
| 390 |
+
uv_space_index: 0
|
| 391 |
+
);
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
|
| 395 |
+
export material Chalk_Paint_Pebbles_Moonlight(*)
|
| 396 |
+
[[
|
| 397 |
+
::anno::author("NVIDIA vMaterials"),
|
| 398 |
+
::anno::display_name("Chalk Paint Pebbles - Moonlight"),
|
| 399 |
+
::anno::description(DESCRIPTION),
|
| 400 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 401 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Moonlight.png"),
|
| 402 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "light", "neutral"))
|
| 403 |
+
]]
|
| 404 |
+
= Chalk_Paint_Pebbles(
|
| 405 |
+
infinite_tiling: true,
|
| 406 |
+
patch_size: 0.9f,
|
| 407 |
+
paint_color: color(0.674701f, 0.674701f, 0.674701f),
|
| 408 |
+
paint_brightness: 0.7f,
|
| 409 |
+
paint_roughness: 0.9f,
|
| 410 |
+
bump_strength: 0.7f,
|
| 411 |
+
texture_translate: 0.f,
|
| 412 |
+
texture_rotate: 0.f,
|
| 413 |
+
texture_scale: 1.0f,
|
| 414 |
+
uv_space_index: 0
|
| 415 |
+
);
|
| 416 |
+
|
| 417 |
+
|
| 418 |
+
|
| 419 |
+
export material Chalk_Paint_Pebbles_Elation(*)
|
| 420 |
+
[[
|
| 421 |
+
::anno::author("NVIDIA vMaterials"),
|
| 422 |
+
::anno::display_name("Chalk Paint Pebbles - Elation"),
|
| 423 |
+
::anno::description(DESCRIPTION),
|
| 424 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 425 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Elation.png"),
|
| 426 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "lilac", "light", "desaturated"))
|
| 427 |
+
]]
|
| 428 |
+
= Chalk_Paint_Pebbles(
|
| 429 |
+
infinite_tiling: true,
|
| 430 |
+
patch_size: 0.9f,
|
| 431 |
+
paint_color: color(0.664642f, 0.659643f, 0.700210f),
|
| 432 |
+
paint_brightness: 0.7f,
|
| 433 |
+
paint_roughness: 0.9f,
|
| 434 |
+
bump_strength: 0.7f,
|
| 435 |
+
texture_translate: 0.f,
|
| 436 |
+
texture_rotate: 0.f,
|
| 437 |
+
texture_scale: 1.0f,
|
| 438 |
+
uv_space_index: 0
|
| 439 |
+
);
|
| 440 |
+
|
| 441 |
+
|
| 442 |
+
|
| 443 |
+
export material Chalk_Paint_Pebbles_Misty(*)
|
| 444 |
+
[[
|
| 445 |
+
::anno::author("NVIDIA vMaterials"),
|
| 446 |
+
::anno::display_name("Chalk Paint Pebbles - Misty"),
|
| 447 |
+
::anno::description(DESCRIPTION),
|
| 448 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 449 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Misty.png"),
|
| 450 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "light", "desaturated"))
|
| 451 |
+
]]
|
| 452 |
+
= Chalk_Paint_Pebbles(
|
| 453 |
+
infinite_tiling: true,
|
| 454 |
+
patch_size: 0.9f,
|
| 455 |
+
paint_color: color(0.568561f, 0.610786f, 0.596528f),
|
| 456 |
+
paint_brightness: 0.7f,
|
| 457 |
+
paint_roughness: 0.9f,
|
| 458 |
+
bump_strength: 0.7f,
|
| 459 |
+
texture_translate: 0.f,
|
| 460 |
+
texture_rotate: 0.f,
|
| 461 |
+
texture_scale: 1.0f,
|
| 462 |
+
uv_space_index: 0
|
| 463 |
+
);
|
| 464 |
+
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
export material Chalk_Paint_Pebbles_Moonstone(*)
|
| 468 |
+
[[
|
| 469 |
+
::anno::author("NVIDIA vMaterials"),
|
| 470 |
+
::anno::display_name("Chalk Paint Pebbles - Moonstone"),
|
| 471 |
+
::anno::description(DESCRIPTION),
|
| 472 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 473 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Moonstone.png"),
|
| 474 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "neutral"))
|
| 475 |
+
]]
|
| 476 |
+
= Chalk_Paint_Pebbles(
|
| 477 |
+
infinite_tiling: true,
|
| 478 |
+
patch_size: 0.9f,
|
| 479 |
+
paint_color: color(0.506143f, 0.510471f, 0.489035f),
|
| 480 |
+
paint_brightness: 0.7f,
|
| 481 |
+
paint_roughness: 0.9f,
|
| 482 |
+
bump_strength: 0.7f,
|
| 483 |
+
texture_translate: 0.f,
|
| 484 |
+
texture_rotate: 0.f,
|
| 485 |
+
texture_scale: 1.0f,
|
| 486 |
+
uv_space_index: 0
|
| 487 |
+
);
|
| 488 |
+
|
| 489 |
+
|
| 490 |
+
|
| 491 |
+
export material Chalk_Paint_Pebbles_Roses(*)
|
| 492 |
+
[[
|
| 493 |
+
::anno::author("NVIDIA vMaterials"),
|
| 494 |
+
::anno::display_name("Chalk Paint Pebbles - Roses"),
|
| 495 |
+
::anno::description(DESCRIPTION),
|
| 496 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 497 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Roses.png"),
|
| 498 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "red", "light", "desaturated"))
|
| 499 |
+
]]
|
| 500 |
+
= Chalk_Paint_Pebbles(
|
| 501 |
+
infinite_tiling: true,
|
| 502 |
+
patch_size: 0.9f,
|
| 503 |
+
paint_color: color(0.644771f, 0.506143f, 0.472246f),
|
| 504 |
+
paint_brightness: 0.7f,
|
| 505 |
+
paint_roughness: 0.9f,
|
| 506 |
+
bump_strength: 0.7f,
|
| 507 |
+
texture_translate: 0.f,
|
| 508 |
+
texture_rotate: 0.f,
|
| 509 |
+
texture_scale: 1.0f,
|
| 510 |
+
uv_space_index: 0
|
| 511 |
+
);
|
| 512 |
+
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
|
| 516 |
+
|
| 517 |
+
export material Chalk_Paint_Pebbles_Felted_Wool(*)
|
| 518 |
+
[[
|
| 519 |
+
::anno::author("NVIDIA vMaterials"),
|
| 520 |
+
::anno::display_name("Chalk Paint Pebbles - Felted Wool"),
|
| 521 |
+
::anno::description(DESCRIPTION),
|
| 522 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 523 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Felted_Wool.png"),
|
| 524 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "desaturated"))
|
| 525 |
+
]]
|
| 526 |
+
= Chalk_Paint_Pebbles(
|
| 527 |
+
infinite_tiling: true,
|
| 528 |
+
patch_size: 0.9f,
|
| 529 |
+
paint_color: color(0.356441f, 0.331956f, 0.279539f),
|
| 530 |
+
paint_brightness: 0.7f,
|
| 531 |
+
paint_roughness: 0.9f,
|
| 532 |
+
bump_strength: 0.7f,
|
| 533 |
+
texture_translate: 0.f,
|
| 534 |
+
texture_rotate: 0.f,
|
| 535 |
+
texture_scale: 1.0f,
|
| 536 |
+
uv_space_index: 0
|
| 537 |
+
);
|
| 538 |
+
|
| 539 |
+
|
| 540 |
+
|
| 541 |
+
export material Chalk_Paint_Pebbles_Bark(*)
|
| 542 |
+
[[
|
| 543 |
+
::anno::author("NVIDIA vMaterials"),
|
| 544 |
+
::anno::display_name("Chalk Paint Pebbles - Bark"),
|
| 545 |
+
::anno::description(DESCRIPTION),
|
| 546 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 547 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Bark.png"),
|
| 548 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown"))
|
| 549 |
+
]]
|
| 550 |
+
= Chalk_Paint_Pebbles(
|
| 551 |
+
infinite_tiling: true,
|
| 552 |
+
patch_size: 0.9f,
|
| 553 |
+
paint_color: color(0.215402f, 0.204714f, 0.174419f),
|
| 554 |
+
paint_brightness: 0.7f,
|
| 555 |
+
paint_roughness: 0.9f,
|
| 556 |
+
bump_strength: 0.7f,
|
| 557 |
+
texture_translate: 0.f,
|
| 558 |
+
texture_rotate: 0.f,
|
| 559 |
+
texture_scale: 1.0f,
|
| 560 |
+
uv_space_index: 0
|
| 561 |
+
);
|
| 562 |
+
|
| 563 |
+
|
| 564 |
+
|
| 565 |
+
export material Chalk_Paint_Pebbles_Morning_Dew(*)
|
| 566 |
+
[[
|
| 567 |
+
::anno::author("NVIDIA vMaterials"),
|
| 568 |
+
::anno::display_name("Chalk Paint Pebbles - Morning Dew"),
|
| 569 |
+
::anno::description(DESCRIPTION),
|
| 570 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 571 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Morning_Dew.png"),
|
| 572 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "desturated"))
|
| 573 |
+
]]
|
| 574 |
+
= Chalk_Paint_Pebbles(
|
| 575 |
+
infinite_tiling: true,
|
| 576 |
+
patch_size: 0.9f,
|
| 577 |
+
paint_color: color(0.292183f, 0.370860f, 0.349348f),
|
| 578 |
+
paint_brightness: 0.7f,
|
| 579 |
+
paint_roughness: 0.9f,
|
| 580 |
+
bump_strength: 0.7f,
|
| 581 |
+
texture_translate: 0.f,
|
| 582 |
+
texture_rotate: 0.f,
|
| 583 |
+
texture_scale: 1.0f,
|
| 584 |
+
uv_space_index: 0
|
| 585 |
+
);
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
|
| 589 |
+
|
| 590 |
+
export material Chalk_Paint_Pebbles_Contemplation(*)
|
| 591 |
+
[[
|
| 592 |
+
::anno::author("NVIDIA vMaterials"),
|
| 593 |
+
::anno::display_name("Chalk Paint Pebbles - Contemplation"),
|
| 594 |
+
::anno::description(DESCRIPTION),
|
| 595 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 596 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Contemplation.png"),
|
| 597 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "teal", "cool", "desaturated"))
|
| 598 |
+
]]
|
| 599 |
+
= Chalk_Paint_Pebbles(
|
| 600 |
+
infinite_tiling: true,
|
| 601 |
+
patch_size: 0.9f,
|
| 602 |
+
paint_color: color(0.210021f, 0.288993f, 0.311724f),
|
| 603 |
+
paint_brightness: 0.7f,
|
| 604 |
+
paint_roughness: 0.9f,
|
| 605 |
+
bump_strength: 0.7f,
|
| 606 |
+
texture_translate: 0.f,
|
| 607 |
+
texture_rotate: 0.f,
|
| 608 |
+
texture_scale: 1.0f,
|
| 609 |
+
uv_space_index: 0
|
| 610 |
+
);
|
| 611 |
+
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
export material Chalk_Paint_Pebbles_Distance(*)
|
| 615 |
+
[[
|
| 616 |
+
::anno::author("NVIDIA vMaterials"),
|
| 617 |
+
::anno::display_name("Chalk Paint Pebbles - Distance"),
|
| 618 |
+
::anno::description(DESCRIPTION),
|
| 619 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 620 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Distance.png"),
|
| 621 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "desaturated"))
|
| 622 |
+
]]
|
| 623 |
+
= Chalk_Paint_Pebbles(
|
| 624 |
+
infinite_tiling: true,
|
| 625 |
+
patch_size: 0.9f,
|
| 626 |
+
paint_color: color(0.174419f, 0.231992f, 0.273331f),
|
| 627 |
+
paint_brightness: 0.7f,
|
| 628 |
+
paint_roughness: 0.9f,
|
| 629 |
+
bump_strength: 0.7f,
|
| 630 |
+
texture_translate: 0.f,
|
| 631 |
+
texture_rotate: 0.f,
|
| 632 |
+
texture_scale: 1.0f,
|
| 633 |
+
uv_space_index: 0
|
| 634 |
+
);
|
| 635 |
+
|
| 636 |
+
|
| 637 |
+
|
| 638 |
+
export material Chalk_Paint_Pebbles_Deep_Emerald(*)
|
| 639 |
+
[[
|
| 640 |
+
::anno::author("NVIDIA vMaterials"),
|
| 641 |
+
::anno::display_name("Chalk Paint Pebbles - Deep Emerald"),
|
| 642 |
+
::anno::description(DESCRIPTION),
|
| 643 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 644 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Deep_Emerald.png"),
|
| 645 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "dark"))
|
| 646 |
+
]]
|
| 647 |
+
= Chalk_Paint_Pebbles(
|
| 648 |
+
infinite_tiling: true,
|
| 649 |
+
patch_size: 0.9f,
|
| 650 |
+
paint_color: color(0.077511f, 0.160259f, 0.176843f),
|
| 651 |
+
paint_brightness: 0.7f,
|
| 652 |
+
paint_roughness: 0.9f,
|
| 653 |
+
bump_strength: 0.7f,
|
| 654 |
+
texture_translate: 0.f,
|
| 655 |
+
texture_rotate: 0.f,
|
| 656 |
+
texture_scale: 1.0f,
|
| 657 |
+
uv_space_index: 0
|
| 658 |
+
);
|
| 659 |
+
|
| 660 |
+
|
| 661 |
+
|
| 662 |
+
export material Chalk_Paint_Pebbles_Night_Watch(*)
|
| 663 |
+
[[
|
| 664 |
+
::anno::author("NVIDIA vMaterials"),
|
| 665 |
+
::anno::display_name("Chalk Paint Pebbles - Night Watch"),
|
| 666 |
+
::anno::description(DESCRIPTION),
|
| 667 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 668 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Night_Watch.png"),
|
| 669 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "dark", "blue", "desaturated"))
|
| 670 |
+
]]
|
| 671 |
+
= Chalk_Paint_Pebbles(
|
| 672 |
+
infinite_tiling: true,
|
| 673 |
+
patch_size: 0.9f,
|
| 674 |
+
paint_color: color(0.106357f, 0.151181f, 0.146750f),
|
| 675 |
+
paint_brightness: 0.7f,
|
| 676 |
+
paint_roughness: 0.9f,
|
| 677 |
+
bump_strength: 0.7f,
|
| 678 |
+
texture_translate: 0.f,
|
| 679 |
+
texture_rotate: 0.f,
|
| 680 |
+
texture_scale: 1.0f,
|
| 681 |
+
uv_space_index: 0
|
| 682 |
+
);
|
| 683 |
+
|
| 684 |
+
|
| 685 |
+
|
| 686 |
+
export material Chalk_Paint_Pebbles_Wine(*)
|
| 687 |
+
[[
|
| 688 |
+
::anno::author("NVIDIA vMaterials"),
|
| 689 |
+
::anno::display_name("Chalk Paint Pebbles - Wine"),
|
| 690 |
+
::anno::description(DESCRIPTION),
|
| 691 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 692 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Wine.png"),
|
| 693 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "red", "dark", "warm", "desaturated"))
|
| 694 |
+
]]
|
| 695 |
+
= Chalk_Paint_Pebbles(
|
| 696 |
+
infinite_tiling: true,
|
| 697 |
+
patch_size: 0.9f,
|
| 698 |
+
paint_color: color(0.212702f, 0.129743f, 0.144562f),
|
| 699 |
+
paint_brightness: 0.7f,
|
| 700 |
+
paint_roughness: 0.9f,
|
| 701 |
+
bump_strength: 0.7f,
|
| 702 |
+
texture_translate: 0.f,
|
| 703 |
+
texture_rotate: 0.f,
|
| 704 |
+
texture_scale: 1.0f,
|
| 705 |
+
uv_space_index: 0
|
| 706 |
+
);
|
| 707 |
+
|
| 708 |
+
|
| 709 |
+
|
| 710 |
+
export material Chalk_Paint_Pebbles_Black_Bean(*)
|
| 711 |
+
[[
|
| 712 |
+
::anno::author("NVIDIA vMaterials"),
|
| 713 |
+
::anno::display_name("Chalk Paint Pebbles - Black Bean"),
|
| 714 |
+
::anno::description(DESCRIPTION),
|
| 715 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 716 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Black_Bean.png"),
|
| 717 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "dark"))
|
| 718 |
+
]]
|
| 719 |
+
= Chalk_Paint_Pebbles(
|
| 720 |
+
infinite_tiling: true,
|
| 721 |
+
patch_size: 0.9f,
|
| 722 |
+
paint_color: color(0.117733f, 0.097356f, 0.090467f),
|
| 723 |
+
paint_brightness: 0.7f,
|
| 724 |
+
paint_roughness: 0.9f,
|
| 725 |
+
bump_strength: 0.7f,
|
| 726 |
+
texture_translate: 0.f,
|
| 727 |
+
texture_rotate: 0.f,
|
| 728 |
+
texture_scale: 1.0f,
|
| 729 |
+
uv_space_index: 0
|
| 730 |
+
);
|
| 731 |
+
|
| 732 |
+
|
| 733 |
+
|
| 734 |
+
export material Chalk_Paint_Pebbles_Dark_Forest(*)
|
| 735 |
+
[[
|
| 736 |
+
::anno::author("NVIDIA vMaterials"),
|
| 737 |
+
::anno::display_name("Chalk Paint Pebbles - Dark Forest"),
|
| 738 |
+
::anno::description(DESCRIPTION),
|
| 739 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 740 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Dark_Forest.png"),
|
| 741 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "dark", "neutral"))
|
| 742 |
+
]]
|
| 743 |
+
= Chalk_Paint_Pebbles(
|
| 744 |
+
infinite_tiling: true,
|
| 745 |
+
patch_size: 0.9f,
|
| 746 |
+
paint_color: color(0.123658f, 0.140238f, 0.146750f),
|
| 747 |
+
paint_brightness: 0.7f,
|
| 748 |
+
paint_roughness: 0.9f,
|
| 749 |
+
bump_strength: 0.7f,
|
| 750 |
+
texture_translate: 0.f,
|
| 751 |
+
texture_rotate: 0.f,
|
| 752 |
+
texture_scale: 1.0f,
|
| 753 |
+
uv_space_index: 0
|
| 754 |
+
);
|
| 755 |
+
|
| 756 |
+
|
| 757 |
+
|
| 758 |
+
export material Chalk_Paint_Pebbles_Charcoal_Blue(*)
|
| 759 |
+
[[
|
| 760 |
+
::anno::author("NVIDIA vMaterials"),
|
| 761 |
+
::anno::display_name("Chalk Paint Pebbles - Charcoal Blue"),
|
| 762 |
+
::anno::description(DESCRIPTION),
|
| 763 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 764 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Charcoal_Blue.png"),
|
| 765 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "charcoal", "cool", "dark"))
|
| 766 |
+
]]
|
| 767 |
+
= Chalk_Paint_Pebbles(
|
| 768 |
+
infinite_tiling: true,
|
| 769 |
+
patch_size: 0.9f,
|
| 770 |
+
paint_color: color(0.111966f, 0.123658f, 0.148957f),
|
| 771 |
+
paint_brightness: 0.7f,
|
| 772 |
+
paint_roughness: 0.9f,
|
| 773 |
+
bump_strength: 0.7f,
|
| 774 |
+
texture_translate: 0.f,
|
| 775 |
+
texture_rotate: 0.f,
|
| 776 |
+
texture_scale: 1.0f,
|
| 777 |
+
uv_space_index: 0
|
| 778 |
+
);
|
| 779 |
+
|
| 780 |
+
|
| 781 |
+
|
| 782 |
+
export material Chalk_Paint_Pebbles_Summernight(*)
|
| 783 |
+
[[
|
| 784 |
+
::anno::author("NVIDIA vMaterials"),
|
| 785 |
+
::anno::display_name("Chalk Paint Pebbles - Summernight"),
|
| 786 |
+
::anno::description(DESCRIPTION),
|
| 787 |
+
::anno::copyright_notice(COPYRIGHT),
|
| 788 |
+
::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Summernight.png"),
|
| 789 |
+
::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "dark", "desaturated" ))
|
| 790 |
+
]]
|
| 791 |
+
= Chalk_Paint_Pebbles(
|
| 792 |
+
infinite_tiling: true,
|
| 793 |
+
patch_size: 0.9f,
|
| 794 |
+
paint_color: color(0.069965f, 0.102704f, 0.115793f),
|
| 795 |
+
paint_brightness: 0.7f,
|
| 796 |
+
paint_roughness: 0.9f,
|
| 797 |
+
bump_strength: 0.7f,
|
| 798 |
+
texture_translate: 0.f,
|
| 799 |
+
texture_rotate: 0.f,
|
| 800 |
+
texture_scale: 1.0f,
|
| 801 |
+
uv_space_index: 0
|
| 802 |
+
);
|