diff --git a/Assets/Material/Garment/train/Candy002_1K_JPG.usd b/Assets/Material/Garment/train/Candy002_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..2c11a1756da7078c1530e5f69f76b0bb22278044 Binary files /dev/null and b/Assets/Material/Garment/train/Candy002_1K_JPG.usd differ diff --git a/Assets/Material/Garment/train/Carpet009_1K_JPG.usd b/Assets/Material/Garment/train/Carpet009_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..cfced1e4eb7d4f321eb4fc4177472de52638fde1 Binary files /dev/null and b/Assets/Material/Garment/train/Carpet009_1K_JPG.usd differ diff --git a/Assets/Material/Garment/train/Carpet015_1K_JPG.usd b/Assets/Material/Garment/train/Carpet015_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..a971daeb4837e3a222111370c6b327af31db6312 Binary files /dev/null and b/Assets/Material/Garment/train/Carpet015_1K_JPG.usd differ diff --git a/Assets/Material/Garment/train/PaintedPlaster002_1K_JPG.usd b/Assets/Material/Garment/train/PaintedPlaster002_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..6393aaf4a81b2a6f4790e8b1ec3136b3d93fe3a0 Binary files /dev/null and b/Assets/Material/Garment/train/PaintedPlaster002_1K_JPG.usd differ diff --git a/Assets/Material/Garment/train/PavingStones058_1K_JPG.usd b/Assets/Material/Garment/train/PavingStones058_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..e36f20e2856ff987671fddaba7485da4155fa8be Binary files /dev/null and b/Assets/Material/Garment/train/PavingStones058_1K_JPG.usd differ diff --git a/Assets/Material/Garment/train/SolarPanel004_1K_JPG.usd b/Assets/Material/Garment/train/SolarPanel004_1K_JPG.usd new file mode 100644 index 0000000000000000000000000000000000000000..56ba718ecf11bcc3ad7378fba333bb01e0df50dd Binary files /dev/null and b/Assets/Material/Garment/train/SolarPanel004_1K_JPG.usd differ diff --git a/Assets/Material/material_0002/Roof_Tiles_BaseColor.png b/Assets/Material/material_0002/Roof_Tiles_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..c8c7b0c0e7804836bfade2892bd6bc773b0d4034 --- /dev/null +++ b/Assets/Material/material_0002/Roof_Tiles_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd9beefee8a342565a18c6c4b81dae852491b729456273ae3e316d9c89a048c7 +size 2069576 diff --git a/Assets/Material/material_0002/Roof_Tiles_Normal.png b/Assets/Material/material_0002/Roof_Tiles_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..888ee5bc82264f1b49ab41986d639e0d9d6e52a5 --- /dev/null +++ b/Assets/Material/material_0002/Roof_Tiles_Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7dd0412ac134d2803a1c5ab1d7f83e785606a562fa29a3e9a3b3fb94f8cdae0f +size 4523888 diff --git a/Assets/Material/material_0002/Roof_Tiles_ORM.png b/Assets/Material/material_0002/Roof_Tiles_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..1499682a6efc0dcd42ed7b95ac9f2f0aa4900f61 --- /dev/null +++ b/Assets/Material/material_0002/Roof_Tiles_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e710c9379c80a2e5d65dc4c58507d19ce633f32074ffa79a89844484afaa7b1 +size 3373855 diff --git a/Assets/Material/material_0005/Carpet_Berber_Gray.mdl b/Assets/Material/material_0005/Carpet_Berber_Gray.mdl new file mode 100644 index 0000000000000000000000000000000000000000..78ace21610d6d36ea5c8fd44c3bb16818288596e --- /dev/null +++ b/Assets/Material/material_0005/Carpet_Berber_Gray.mdl @@ -0,0 +1,42 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; + +export material Carpet_Berber_Gray(*) + = OmniPBR( + diffuse_color_constant: color(1.0, 1.0, 1.0), + diffuse_texture: texture_2d("./Carpet_Berber_Gray_BaseColor.png", ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.0, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Carpet_Berber_Gray_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(0.0, 0.0, 0.0), + emissive_mask_texture: texture_2d(), + emissive_intensity: 0.0, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Carpet_Berber_Gray_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.3f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0020/Concrete_Block_BaseColor.png b/Assets/Material/material_0020/Concrete_Block_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..09ac21b619921e610ecbfd0c26b4742c9b90fdfb --- /dev/null +++ b/Assets/Material/material_0020/Concrete_Block_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4fe6043d29eff01713e7f05bc94196c74a44111e2bf6cb498360d56ab24feac +size 7159753 diff --git a/Assets/Material/material_0020/Concrete_Block_Normal.png b/Assets/Material/material_0020/Concrete_Block_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..69cadc5c44eae5168512ce024ea44e76bda1a1d7 --- /dev/null +++ b/Assets/Material/material_0020/Concrete_Block_Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d656762be938870f0aefeb4fc063516bd3fbad725d2bcf4a190022a3c84925d +size 9705053 diff --git a/Assets/Material/material_0020/Concrete_Block_ORM.png b/Assets/Material/material_0020/Concrete_Block_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..044f00524c68e1921d25090dbc4165a044568a5a --- /dev/null +++ b/Assets/Material/material_0020/Concrete_Block_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46dd082d557505452eca7b46c905b5a31843be2422552994be4420b8e0c3ea1e +size 3591693 diff --git a/Assets/Material/material_0024/Concrete_Smooth_BaseColor.png b/Assets/Material/material_0024/Concrete_Smooth_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..221723145191654c6da4874ce88791755b0b47b7 --- /dev/null +++ b/Assets/Material/material_0024/Concrete_Smooth_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b689b120bb3a4ad428d31a455f584e8371af3fcce5825f1d61120f93cd263ec1 +size 5871529 diff --git a/Assets/Material/material_0024/Concrete_Smooth_Normal.png b/Assets/Material/material_0024/Concrete_Smooth_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..f035040f96bd9279ed5c9fb9e8216844bf1839d9 --- /dev/null +++ b/Assets/Material/material_0024/Concrete_Smooth_Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94598acbe252fa87aa7bc4ad6f14da743578e03c325e2c9e46b179b1c9eab02d +size 9269027 diff --git a/Assets/Material/material_0024/Concrete_Smooth_ORM.png b/Assets/Material/material_0024/Concrete_Smooth_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..d5f77944d97e34be1163de17c042d264bd61021f --- /dev/null +++ b/Assets/Material/material_0024/Concrete_Smooth_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f9403f411c15d307cf9eacbf9ec2b33ab7a3348be717712096689f9e1584ace +size 2289864 diff --git a/Assets/Material/material_0037/Chrome.mdl b/Assets/Material/material_0037/Chrome.mdl new file mode 100644 index 0000000000000000000000000000000000000000..bb2adc3c7596370c1e2b8fd7c124126ffbcdf20d --- /dev/null +++ b/Assets/Material/material_0037/Chrome.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Chrome(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Chrome_BaseColor.png" /* tag 2777, version 767000234 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.5f, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Chrome_ORM.png" /* tag 2779, version 2298758028 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Chrome_N.png" /* tag 2781, version 3962068930 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0041/Iron_BaseColor.png b/Assets/Material/material_0041/Iron_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..17e5093ce137d4dc87ff24990734c057ec23e19b --- /dev/null +++ b/Assets/Material/material_0041/Iron_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6dfd99dda89054212b3610ec32efc35ac09607a58f560fee42cc7aef721ec07 +size 6191967 diff --git a/Assets/Material/material_0041/Iron_N.png b/Assets/Material/material_0041/Iron_N.png new file mode 100644 index 0000000000000000000000000000000000000000..1f00bb94980253fed5666c35873943e9d26add4b --- /dev/null +++ b/Assets/Material/material_0041/Iron_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e1127afe0a33ac5d7c9ab888228080c6d46b34b0d5b98f6484d6f7d0f40915b +size 24544686 diff --git a/Assets/Material/material_0041/Iron_ORM.png b/Assets/Material/material_0041/Iron_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..c99fdfed4587603de433740c0e5ec3c1e3979d4e --- /dev/null +++ b/Assets/Material/material_0041/Iron_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f1b4f0f3db1db87e07e2ba8eaf96af1b8a68425ebd4b180d22d74979d4b4a0f6 +size 13004040 diff --git a/Assets/Material/material_0052/Paint_Gloss_Finish_BaseColor.png b/Assets/Material/material_0052/Paint_Gloss_Finish_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..13cca5e76a141b3cd85961c404e61db67d1d8691 --- /dev/null +++ b/Assets/Material/material_0052/Paint_Gloss_Finish_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7e943d2da8a763700341c1147020ba4501df4d205055e01264a5111acab1789 +size 16906 diff --git a/Assets/Material/material_0052/Paint_Gloss_Finish_N.png b/Assets/Material/material_0052/Paint_Gloss_Finish_N.png new file mode 100644 index 0000000000000000000000000000000000000000..fb2ca59cac16cb4e140b190f19ab0ce7a3a46427 --- /dev/null +++ b/Assets/Material/material_0052/Paint_Gloss_Finish_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c967c5323ba12a3d1d7224b1e9c305aa035332be8686096c60dffbc5f02e2370 +size 6452535 diff --git a/Assets/Material/material_0052/Paint_Gloss_Finish_ORM.png b/Assets/Material/material_0052/Paint_Gloss_Finish_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..285009d0079e700efc1822d74873fda0f54d720b --- /dev/null +++ b/Assets/Material/material_0052/Paint_Gloss_Finish_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bf79d681e3c65b6318ae23cf59471d5a2fe7e82ee4791c19bb81b26d9203bf5 +size 1498956 diff --git a/Assets/Material/material_0053/Paint_Matte_Finish_BaseColor.png b/Assets/Material/material_0053/Paint_Matte_Finish_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..351af061bf5aa024ea2ee02d20086e30c66f4419 --- /dev/null +++ b/Assets/Material/material_0053/Paint_Matte_Finish_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a656cfef47f73cf59fabab27d26dec8587e3397c086ad48dfd933ccd3c48244a +size 16903 diff --git a/Assets/Material/material_0053/Paint_Matte_Finish_N.png b/Assets/Material/material_0053/Paint_Matte_Finish_N.png new file mode 100644 index 0000000000000000000000000000000000000000..a735ab08e9828fe6b8bcaec2090b65983c20cf8e --- /dev/null +++ b/Assets/Material/material_0053/Paint_Matte_Finish_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5ea957ae1d0603238e2328728f37bd5188aef6b238bdc52c44e33fdf9b4e3df +size 5855337 diff --git a/Assets/Material/material_0053/Paint_Matte_Finish_ORM.png b/Assets/Material/material_0053/Paint_Matte_Finish_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..03712e2441a2dbdce766d2b9a6a50a76f9771625 --- /dev/null +++ b/Assets/Material/material_0053/Paint_Matte_Finish_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:47949aafc8dd498f316b1da8774e9572f923672ff7c1b42fd1c2a15beaaa6be9 +size 926494 diff --git a/Assets/Material/material_0057/Asphalt.mdl b/Assets/Material/material_0057/Asphalt.mdl new file mode 100644 index 0000000000000000000000000000000000000000..80cff4d6191c541ea583dfb103a6b2a8eba848cd --- /dev/null +++ b/Assets/Material/material_0057/Asphalt.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Asphalt(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Asphalt_BaseColor.png" /* tag 2852, version 2204418729 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 0.75f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 0.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.f, + metallic_texture_influence: 0.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Asphalt_ORM.png" /* tag 2856, version 3899907150 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 0.5f, + normalmap_texture: texture_2d("./Asphalt_N.png" /* tag 2854, version 540269590 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0061/Grass_Winter_N.png b/Assets/Material/material_0061/Grass_Winter_N.png new file mode 100644 index 0000000000000000000000000000000000000000..d75b8374ce8f1c19433fc46baaaa0c9efd98c5d0 --- /dev/null +++ b/Assets/Material/material_0061/Grass_Winter_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f071f9fae50f22212bf8784616bcd8f50e7c9579443042a2e0badb172d8e99b +size 9049058 diff --git a/Assets/Material/material_0061/Grass_Winter_ORM.png b/Assets/Material/material_0061/Grass_Winter_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..0d6ca16180d9c7d19aa5d6fdad45b4682eaffd4e --- /dev/null +++ b/Assets/Material/material_0061/Grass_Winter_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8255bd4741e45c623b092ab0897180f480f978a4fa29513632c2b5c86710ef0f +size 7292404 diff --git a/Assets/Material/material_0061/Grass_Winter_baseColor.png b/Assets/Material/material_0061/Grass_Winter_baseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..2c39e9555b1a14abd92cf9e9fdb6dca0fc95b68b --- /dev/null +++ b/Assets/Material/material_0061/Grass_Winter_baseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de05785c587aa55073b07cd1e1732cc52a673216df387582b85af1b1fb707dfa +size 10829297 diff --git a/Assets/Material/material_0067/Water_Normal.png b/Assets/Material/material_0067/Water_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..8313458a6163b68756e71e7d3213db930e230538 --- /dev/null +++ b/Assets/Material/material_0067/Water_Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af668cd9f0017237cf52ec4e838928f03c66529c7b293a2bf1fa4626fb271892 +size 1647671 diff --git a/Assets/Material/material_0070/Veneer_OU_Walnut_BaseColor.png b/Assets/Material/material_0070/Veneer_OU_Walnut_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..e974a1eaaec085acaeb34beaaae0f7d606ff9143 --- /dev/null +++ b/Assets/Material/material_0070/Veneer_OU_Walnut_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c4ecbbf4415e12966e6c4da4894cb27322ad4ac00ab9d619252934c9061b093 +size 3143008 diff --git a/Assets/Material/material_0070/Veneer_OU_Walnut_Normal.png b/Assets/Material/material_0070/Veneer_OU_Walnut_Normal.png new file mode 100644 index 0000000000000000000000000000000000000000..652544c17b23855d46a17b5d0a371ee9ae64cb6e --- /dev/null +++ b/Assets/Material/material_0070/Veneer_OU_Walnut_Normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9084debed6d5508235adb127d04a82e754cfaa116f8320e9cf54a88ecc77bf2e +size 8489522 diff --git a/Assets/Material/material_0071/Veneer_UX_Walnut_Cherry.mdl b/Assets/Material/material_0071/Veneer_UX_Walnut_Cherry.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1b6ac1da9472e2053c4d3f88e3941d1c03be29be --- /dev/null +++ b/Assets/Material/material_0071/Veneer_UX_Walnut_Cherry.mdl @@ -0,0 +1,42 @@ +mdl 1.4; + +using ::OmniPBR import OmniPBR; +import ::tex::gamma_mode; +import ::state::normal; + +export material Veneer_UX_Walnut_Cherry(*) + = OmniPBR( + diffuse_color_constant: color(1.0, 1.0, 1.0), + diffuse_texture: texture_2d("./Veneer_OU_Walnut_BaseColor.png", ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(0.928f, 0.447f, 0.325f), //0.941f, 0.447f, 0.161f + reflection_roughness_constant: 0.55, + reflection_roughness_texture_influence: 0.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.0, + metallic_texture_influence: 0.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: false, + ORM_texture: texture_2d(), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(0.0, 0.0, 0.0), + emissive_mask_texture: texture_2d(), + emissive_intensity: 0.0, + bump_factor: 0.9f, + normalmap_texture: texture_2d("./Veneer_OU_Walnut_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 1.f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0075/Ceramic_Tile_12_BaseColor.png b/Assets/Material/material_0075/Ceramic_Tile_12_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..ccf72408ded1adb26893fe21624a8ce83bac77aa --- /dev/null +++ b/Assets/Material/material_0075/Ceramic_Tile_12_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:604e5ca9e7f43e9612f9de8d432266d1e77de7eca9faee34ab36e07c29471cde +size 1776232 diff --git a/Assets/Material/material_0075/Ceramic_Tile_12_N.png b/Assets/Material/material_0075/Ceramic_Tile_12_N.png new file mode 100644 index 0000000000000000000000000000000000000000..d9b8834ded767ac983879cfa38a0bc835536fab0 --- /dev/null +++ b/Assets/Material/material_0075/Ceramic_Tile_12_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fdf483746eac2a65225dcfeb14b512137889841fb446d86c2b51a4f17546b08 +size 16518448 diff --git a/Assets/Material/material_0075/Ceramic_Tile_12_ORM.png b/Assets/Material/material_0075/Ceramic_Tile_12_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..cef066bcb2fc8c1c2e9057217a7f5e20504c359e --- /dev/null +++ b/Assets/Material/material_0075/Ceramic_Tile_12_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d81f9aa5a5096c625b997c202df60ded1c6674223f247819974cbdbc3fe1a85b +size 10253670 diff --git a/Assets/Material/material_0077/Ceramic_Tile_6.mdl b/Assets/Material/material_0077/Ceramic_Tile_6.mdl new file mode 100644 index 0000000000000000000000000000000000000000..14800fff2706e55ace2ebfa69fffaa9fd4b9afe6 --- /dev/null +++ b/Assets/Material/material_0077/Ceramic_Tile_6.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Ceramic_Tile_6(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Ceramic_Tile_6_BaseColor.png" /* tag 2956, version 3373013613 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.f, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Ceramic_Tile_6_ORM.png" /* tag 2958, version 3215807061 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Ceramic_Tile_6_N.png" /* tag 2960, version 862119224 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0090/Porcelain_Tile_4_Linen_BaseColor.png b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..ff74dae9aecda85f0cb91890880b0ac7f28582ab --- /dev/null +++ b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61db91018ba3d89b08113a2c4ff8ac8c7b7c83555e59ebbbf94f36e2e7026d64 +size 5653839 diff --git a/Assets/Material/material_0090/Porcelain_Tile_4_Linen_N.png b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_N.png new file mode 100644 index 0000000000000000000000000000000000000000..fbe34c57b5121ab19d8f1719d9b95c054b8f4c07 --- /dev/null +++ b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a56862d64820482cd56499a324e4c31da164fc0f5b69ad8abd8e69798c0edf5 +size 17151235 diff --git a/Assets/Material/material_0090/Porcelain_Tile_4_Linen_ORM.png b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..30e364143f01611a836b36a61a30bb71a04105c8 --- /dev/null +++ b/Assets/Material/material_0090/Porcelain_Tile_4_Linen_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:075876fad7899b7499c054b762199b1d0e435caa31085ec7537ce4fdedd39f65 +size 10900370 diff --git a/Assets/Material/material_0098/Cloth_Black_BaseColor.png b/Assets/Material/material_0098/Cloth_Black_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..5deca9580c37f596c701b597297ed26502b9b89f --- /dev/null +++ b/Assets/Material/material_0098/Cloth_Black_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6ece9dd7cf6d30e2be8dfb2689f587e75cc0ace3997a4b1492c06cfc74f32ed +size 11803 diff --git a/Assets/Material/material_0098/Cloth_Black_DN.png b/Assets/Material/material_0098/Cloth_Black_DN.png new file mode 100644 index 0000000000000000000000000000000000000000..9d8b38dd5fe17628cea6fbd21a648fc29222932b --- /dev/null +++ b/Assets/Material/material_0098/Cloth_Black_DN.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01539c4dc33c314a174e508ed54ad4c6e0cec679c94083e77430d23fa18a89db +size 426540 diff --git a/Assets/Material/material_0098/Cloth_Black_N.png b/Assets/Material/material_0098/Cloth_Black_N.png new file mode 100644 index 0000000000000000000000000000000000000000..1fc6086ae79e54a4b008816e150b008ddc04b1b0 --- /dev/null +++ b/Assets/Material/material_0098/Cloth_Black_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8015158d7306597f132a80982d6da5fd21a6b7c50eeffd833d83f3df3a3c2d8f +size 1605889 diff --git a/Assets/Material/material_0098/Cloth_Black_ORM.png b/Assets/Material/material_0098/Cloth_Black_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..56bf7bcd71246fb751c139034f1230c1aacd7809 --- /dev/null +++ b/Assets/Material/material_0098/Cloth_Black_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:caa7aa74758e3deb270280937616ad4694913510e44326f0c4e59013607bb837 +size 2683462 diff --git a/Assets/Material/material_0101/Leather_Brown_BaseColor.png b/Assets/Material/material_0101/Leather_Brown_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..35444fca7381f6414b1813d2b7af68ec897c1b67 --- /dev/null +++ b/Assets/Material/material_0101/Leather_Brown_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03612a9987b68f7c2912d85b33470b24bd3a1f2412ae86c1de213f286294e345 +size 6210642 diff --git a/Assets/Material/material_0101/Leather_Brown_N.png b/Assets/Material/material_0101/Leather_Brown_N.png new file mode 100644 index 0000000000000000000000000000000000000000..a8e564be0f859d0c7f46fdf7fbb64612c8711b63 --- /dev/null +++ b/Assets/Material/material_0101/Leather_Brown_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2fb39c1e82b2965699faca4f47d2022573f90c8d03ef6f4a737a119a10ede870 +size 23691175 diff --git a/Assets/Material/material_0101/Leather_Brown_ORM.png b/Assets/Material/material_0101/Leather_Brown_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..70a8ae9a51e915e6cf303e715dd5294e872d7f96 --- /dev/null +++ b/Assets/Material/material_0101/Leather_Brown_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3d6e543d993bb1f4211aac6c3ee6c7bdaf333f361126caa62323e1044b6fa06b +size 4838867 diff --git a/Assets/Material/material_0104/Linen_Blue_BaseColor.png b/Assets/Material/material_0104/Linen_Blue_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..84f0c285a0da55315493b8a82dd24af936dd096e --- /dev/null +++ b/Assets/Material/material_0104/Linen_Blue_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:879b88c315491d4d5639dfc2078c79648d9db084c592c7603d1ee689de932901 +size 1259856 diff --git a/Assets/Material/material_0104/Linen_Blue_DN.png b/Assets/Material/material_0104/Linen_Blue_DN.png new file mode 100644 index 0000000000000000000000000000000000000000..9d8b38dd5fe17628cea6fbd21a648fc29222932b --- /dev/null +++ b/Assets/Material/material_0104/Linen_Blue_DN.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01539c4dc33c314a174e508ed54ad4c6e0cec679c94083e77430d23fa18a89db +size 426540 diff --git a/Assets/Material/material_0104/Linen_Blue_N.png b/Assets/Material/material_0104/Linen_Blue_N.png new file mode 100644 index 0000000000000000000000000000000000000000..0dfe9530f4704d4e3272f139123bd3e0cce62a74 --- /dev/null +++ b/Assets/Material/material_0104/Linen_Blue_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa714886c449b08620be0b21d56b49cbc1a65dbe50a0c6011ffd6178e3813e52 +size 1602817 diff --git a/Assets/Material/material_0104/Linen_Blue_ORM.png b/Assets/Material/material_0104/Linen_Blue_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..bbf0310b47cd7b3dc04deb01aad1d728436a0267 --- /dev/null +++ b/Assets/Material/material_0104/Linen_Blue_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44086ab0178b69e15a1bef7e53aef40fe64f8aa20c21f7b2508862850df898da +size 4872184 diff --git a/Assets/Material/material_0105/Linen_White_BaseColor.png b/Assets/Material/material_0105/Linen_White_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..d2ea0ce5f0f54f401cb3af4a8fdde58b0ad5a67a --- /dev/null +++ b/Assets/Material/material_0105/Linen_White_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d8e0daa31f696f7d2d7b030ab0b3aadeb8fb8e20219d0885cb3b9ee6dc4b297 +size 1220426 diff --git a/Assets/Material/material_0105/Linen_White_DN.png b/Assets/Material/material_0105/Linen_White_DN.png new file mode 100644 index 0000000000000000000000000000000000000000..9d8b38dd5fe17628cea6fbd21a648fc29222932b --- /dev/null +++ b/Assets/Material/material_0105/Linen_White_DN.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01539c4dc33c314a174e508ed54ad4c6e0cec679c94083e77430d23fa18a89db +size 426540 diff --git a/Assets/Material/material_0105/Linen_White_N.png b/Assets/Material/material_0105/Linen_White_N.png new file mode 100644 index 0000000000000000000000000000000000000000..8bfc2c3b528abb82fd5716a813b6cf7500e0ae5e --- /dev/null +++ b/Assets/Material/material_0105/Linen_White_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c093e01343ba040b8e76f00ce9de9504cc551071594f46fe5b6000f0c77c2ee +size 1608426 diff --git a/Assets/Material/material_0105/Linen_White_ORM.png b/Assets/Material/material_0105/Linen_White_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..525d450f5c3a621e684ef914b08c9fad3399153d --- /dev/null +++ b/Assets/Material/material_0105/Linen_White_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0ed22a924c11076b09ea6c0d39a81612bc650ca1e5817f5bef9be80b1100605 +size 4378121 diff --git a/Assets/Material/material_0123/Oak_BaseColor.png b/Assets/Material/material_0123/Oak_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..18b53db115bcd6cdae015f3ca956adf3764bc304 --- /dev/null +++ b/Assets/Material/material_0123/Oak_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:58648d35e3b8a9d953948ce0394b56aa95184e1f88b5abab139e7a32a2b44043 +size 5383545 diff --git a/Assets/Material/material_0123/Oak_N.png b/Assets/Material/material_0123/Oak_N.png new file mode 100644 index 0000000000000000000000000000000000000000..6d2055c8f79a7d9b08e9ba8c588da078deffcabd --- /dev/null +++ b/Assets/Material/material_0123/Oak_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4538148c60da7c94d88d656bbc62106a16bd652052bc196cab56ee6d9e01c249 +size 2939899 diff --git a/Assets/Material/material_0123/Oak_ORM.png b/Assets/Material/material_0123/Oak_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..47c3db5ef5a00f242074339be24e08233e0a0817 --- /dev/null +++ b/Assets/Material/material_0123/Oak_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:754ccca3176ccb3bbeb648af574c57eb5be0b876c579faaf45f9e8a09f71ec39 +size 1171706 diff --git a/Assets/Material/material_0128/Timber_Cladding.mdl b/Assets/Material/material_0128/Timber_Cladding.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5ac515056225369e2bc51505545976b7690b4b7c --- /dev/null +++ b/Assets/Material/material_0128/Timber_Cladding.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Timber_Cladding(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Timber_Cladding_BaseColor.png", ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 1.f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.f, + metallic_texture_influence: 1.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Timber_Cladding_ORM.png", ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(0.f, 0.f, 0.f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 0.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Timber_Cladding_Normal.png", ::tex::gamma_linear), + detail_bump_factor: 0.3f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0134/Walnut.mdl b/Assets/Material/material_0134/Walnut.mdl new file mode 100644 index 0000000000000000000000000000000000000000..38906cdc63fce5fec18002a4489c13aa07c66934 --- /dev/null +++ b/Assets/Material/material_0134/Walnut.mdl @@ -0,0 +1,54 @@ +mdl 1.4; + +import ::OmniPBR::OmniPBR; +import ::anno::author; +import ::anno::description; +import ::anno::display_name; +import ::anno::key_words; +import ::anno::version; +import ::tex::gamma_mode; +import ::state::normal; + +export material Walnut(*) +[[ + ::anno::display_name("Omni PBR "), + ::anno::description("Omni PBR, supports ORM textures"), + ::anno::version(1, 0, 0, ""), + ::anno::author("NVIDIA CORPORATION"), + ::anno::key_words(string[]("omni", "PBR", "omniverse", "generic")) +]] + = ::OmniPBR::OmniPBR( + diffuse_color_constant: color(0.200000003f, 0.200000003f, 0.200000003f), + diffuse_texture: texture_2d("./Walnut_BaseColor.png" /* tag 2767, version 2362837691 */, ::tex::gamma_srgb), + albedo_desaturation: 0.f, + albedo_add: 0.f, + albedo_brightness: 1.f, + diffuse_tint: color(1.f, 1.f, 1.f), + reflection_roughness_constant: 0.5f, + reflection_roughness_texture_influence: 1.f, + reflectionroughness_texture: texture_2d(), + metallic_constant: 0.f, + metallic_texture_influence: 0.f, + metallic_texture: texture_2d(), + specular_level: 0.5f, + enable_ORM_texture: true, + ORM_texture: texture_2d("./Walnut_ORM.png" /* tag 2769, version 2941301943 */, ::tex::gamma_linear), + ao_to_diffuse: 0.f, + ao_texture: texture_2d(), + enable_emission: false, + emissive_color: color(1.f, 0.100000001f, 0.100000001f), + emissive_mask_texture: texture_2d(), + emissive_intensity: 40.f, + bump_factor: 1.f, + normalmap_texture: texture_2d("./Walnut_N.png" /* tag 2771, version 1355386593 */, ::tex::gamma_linear), + detail_bump_factor: 0.300000012f, + detail_normalmap_texture: texture_2d(), + project_uvw: false, + world_or_object: false, + uv_space_index: 0, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + detail_texture_translate: 0.f, + detail_texture_rotate: 0.f, + detail_texture_scale: 1.f); diff --git a/Assets/Material/material_0135/Walnut_Planks_BaseColor.png b/Assets/Material/material_0135/Walnut_Planks_BaseColor.png new file mode 100644 index 0000000000000000000000000000000000000000..8c68ddec863fbfd8698f6ee470cf74dcc909dba6 --- /dev/null +++ b/Assets/Material/material_0135/Walnut_Planks_BaseColor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01236a8842e811d2c6520ab7a808aebe3031dd88d77e26302adb66292daf1363 +size 4856749 diff --git a/Assets/Material/material_0135/Walnut_Planks_N.png b/Assets/Material/material_0135/Walnut_Planks_N.png new file mode 100644 index 0000000000000000000000000000000000000000..bca646dcede5f1f04bd10a3e7994a21e5391d8bc --- /dev/null +++ b/Assets/Material/material_0135/Walnut_Planks_N.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ecaeb454231fb319a6c8d4a63769396b9fa228e0572f4e3fce73db78bac0881c +size 2638595 diff --git a/Assets/Material/material_0135/Walnut_Planks_ORM.png b/Assets/Material/material_0135/Walnut_Planks_ORM.png new file mode 100644 index 0000000000000000000000000000000000000000..daee277204a049ac6ff188f474bfc9b72c0dbb08 --- /dev/null +++ b/Assets/Material/material_0135/Walnut_Planks_ORM.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29fd8a9317a9a9775cb8b77a3ce055b3282a07f03bca24f22a1d31c528832c86 +size 1554785 diff --git a/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_normal.png b/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..db5e926a8825dddad70da54dac4dc72b5aa73548 --- /dev/null +++ b/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9329eebcbf54726f32bce50a0e3cf9da99266cd8d832bafe31b30feea91f4b26 +size 2107165 diff --git a/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_orm.png b/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..455ae2721425f017d6e990a982cb403f95cd3b7c --- /dev/null +++ b/Assets/Material/material_0138/ov_carbonfiber_uncoated_03_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b09d2a390f04673613b7aedf4f6954a6cde607b2271131153fea469f1e5e65ab +size 2227324 diff --git a/Assets/Material/material_0139/Carbon_Fiber_NH_02_Clearcoat.mdl b/Assets/Material/material_0139/Carbon_Fiber_NH_02_Clearcoat.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d623da159cd04bd62e0cf1b102b4cbc53d05f3f1 --- /dev/null +++ b/Assets/Material/material_0139/Carbon_Fiber_NH_02_Clearcoat.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Carbon_Fiber_NH_02_Clearcoat(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(10.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(0.0462044626f, 0.0462046266f, 0.0462041646f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_carbonfiber_uncoated_03_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_carbonfiber_uncoated_03_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.349999994f), + normal_image: texture_2d("./ov_carbonfiber_uncoated_03_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: true, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0141/noise_scratch2.png b/Assets/Material/material_0141/noise_scratch2.png new file mode 100644 index 0000000000000000000000000000000000000000..42575d188fbaa6cd6d8ec9fbfce69d4c52fda2d8 --- /dev/null +++ b/Assets/Material/material_0141/noise_scratch2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fa8edb872eff7882e90c5a683d1c4af1b468633acaa720780327fadee91a3ec +size 29801141 diff --git a/Assets/Material/material_0146/noise_scratch2.png b/Assets/Material/material_0146/noise_scratch2.png new file mode 100644 index 0000000000000000000000000000000000000000..42575d188fbaa6cd6d8ec9fbfce69d4c52fda2d8 --- /dev/null +++ b/Assets/Material/material_0146/noise_scratch2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fa8edb872eff7882e90c5a683d1c4af1b468633acaa720780327fadee91a3ec +size 29801141 diff --git a/Assets/Material/material_0152/Carpaint_Metallic_03.mdl b/Assets/Material/material_0152/Carpaint_Metallic_03.mdl new file mode 100644 index 0000000000000000000000000000000000000000..18d19c37011012cc3bbc3fe35c114d046bee9dbf --- /dev/null +++ b/Assets/Material/material_0152/Carpaint_Metallic_03.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Carpaint_Metallic_03(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(8.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(0.999989986f, 1.f, 0.999999046f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d(), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d(), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.400000006f), + normal_image: texture_2d(), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: true, + coat_color: color(0.0209565498f, 0.140299141f, 0.17161715f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.0599999987f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2, + enable_flakes: true, + flake_color: color(1.f, 0.999989986f, 0.999989986f), + flake_size: 0.0899999961f, + flakes_density: 0.280000001f, + flakes_spread: 0.150000006f, + flake_roughness: 0.25f); diff --git a/Assets/Material/material_0153/Carpaint_Metallic_04.mdl b/Assets/Material/material_0153/Carpaint_Metallic_04.mdl new file mode 100644 index 0000000000000000000000000000000000000000..65da8fcb71af79bd3cca49f3ee332a30277368fc --- /dev/null +++ b/Assets/Material/material_0153/Carpaint_Metallic_04.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Carpaint_Metallic_04(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(8.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(0.999989986f, 1.f, 0.999998987f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d(), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d(), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.400000006f), + normal_image: texture_2d(), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: true, + coat_color: color(0.257425725f, 0.25722149f, 0.256576151f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.0599999987f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2, + enable_flakes: true, + flake_color: color(1.f, 0.999989986f, 0.999989986f), + flake_size: 0.0899999961f, + flakes_density: 0.280000001f, + flakes_spread: 0.150000006f, + flake_roughness: 0.25f); diff --git a/Assets/Material/material_0157/Carpaint_Metallic_08.mdl b/Assets/Material/material_0157/Carpaint_Metallic_08.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f6930efa359c398e295e48f93ab1483df2ad519f --- /dev/null +++ b/Assets/Material/material_0157/Carpaint_Metallic_08.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Carpaint_Metallic_08(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(8.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(1.f, 0.999989986f, 0.999989986f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d(), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d(), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.400000006f), + normal_image: texture_2d(), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: true, + coat_color: color(0.097934328f, 0.0859283879f, 0.161716163f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.0599999987f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_2, + enable_flakes: true, + flake_color: color(0.854785442f, 0.854781866f, 0.854776859f), + flake_size: 0.229999989f, + flakes_density: 0.280000001f, + flakes_spread: 0.150000006f, + flake_roughness: 0.239999995f); diff --git a/Assets/Material/material_0161/Fabric_Denim_01.mdl b/Assets/Material/material_0161/Fabric_Denim_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f2c6d5f554cbc6bf3364b4787c9964b6e1ee9cf2 --- /dev/null +++ b/Assets/Material/material_0161/Fabric_Denim_01.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Fabric_Denim_01(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(0.200000003f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_fabric_denim_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.702970266f, 0.418846399f, 0.199522913f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_fabric_denim_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_fabric_denim_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_fabric_denim_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.699999988f), + normal_image: texture_2d("./ov_fabric_denim_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0162/Fabric_Denim_02.mdl b/Assets/Material/material_0162/Fabric_Denim_02.mdl new file mode 100644 index 0000000000000000000000000000000000000000..992de50fffda2d705514fe96238c95b03b86fd97 --- /dev/null +++ b/Assets/Material/material_0162/Fabric_Denim_02.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Fabric_Denim_02(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(0.200000003f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_fabric_denim_02_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.805280507f, 0.164776891f, 0.164776891f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_fabric_denim_02_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_fabric_denim_02_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_fabric_denim_02_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.699999988f), + normal_image: texture_2d("./ov_fabric_denim_02_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0163/leather_blend_mask_04.png b/Assets/Material/material_0163/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0163/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0163/ov_clouds_01_normal.png b/Assets/Material/material_0163/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0163/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0163/ov_fabric_grain_01_basecolor.png b/Assets/Material/material_0163/ov_fabric_grain_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..41a269cc299057fd93733e2fbe07a0788323c4a7 --- /dev/null +++ b/Assets/Material/material_0163/ov_fabric_grain_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6c2a3782a906cd4ace5d8b83fdda3d18c17440a31a306ffb543f0f382332733 +size 14839189 diff --git a/Assets/Material/material_0163/ov_fabric_grain_01_normal.png b/Assets/Material/material_0163/ov_fabric_grain_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..cbdc6c958cee62eff5276b11c8b21c05ad149d0f --- /dev/null +++ b/Assets/Material/material_0163/ov_fabric_grain_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df0a3feac69a59d8510e9a3d32b0a0861f1af94b71019c45200b0e128cee14f8 +size 29391880 diff --git a/Assets/Material/material_0163/ov_fabric_grain_01_orm.png b/Assets/Material/material_0163/ov_fabric_grain_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..febb56511dcc2a86d73400908f5bea1096ee74b7 --- /dev/null +++ b/Assets/Material/material_0163/ov_fabric_grain_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:590a0cd2cb7dc698a7a2d6ca97f87ddbac73b798d3c37c289b4a1888f4f55745 +size 9256870 diff --git a/Assets/Material/material_0164/Fabric_Pattern_01.mdl b/Assets/Material/material_0164/Fabric_Pattern_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e8b114ea9d191bae8e2c05320b1619417ef1d910 --- /dev/null +++ b/Assets/Material/material_0164/Fabric_Pattern_01.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Fabric_Pattern_01(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(2.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.00999999978f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(0.200000003f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_fabric_pattern_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.858085811f, 0.679643571f, 0.438954771f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.779999971f, + metalness_image: texture_2d("./ov_fabric_pattern_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_fabric_pattern_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_fabric_pattern_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.75f), + normal_image: texture_2d("./ov_fabric_pattern_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0165/leather_blend_mask_04.png b/Assets/Material/material_0165/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0165/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0165/ov_clouds_01_normal.png b/Assets/Material/material_0165/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0165/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0165/ov_fabric_pattern_02_basecolor.png b/Assets/Material/material_0165/ov_fabric_pattern_02_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..04dd4c38aab2820d8fe6f44c291693204c5e5b78 --- /dev/null +++ b/Assets/Material/material_0165/ov_fabric_pattern_02_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f352f01f9a5da62ecf05049578a2784bb2002472d3bd72f8e1db1ea6ae70aa1 +size 2456133 diff --git a/Assets/Material/material_0165/ov_fabric_pattern_02_normal.png b/Assets/Material/material_0165/ov_fabric_pattern_02_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..232349e73d3482b8818f945332f48f8afbe37fdc --- /dev/null +++ b/Assets/Material/material_0165/ov_fabric_pattern_02_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ea6e3bc4ac3b00f52ac8f2ea9f8a855ac58412079782c086439864ca15ca338 +size 29105837 diff --git a/Assets/Material/material_0165/ov_fabric_pattern_02_orm.png b/Assets/Material/material_0165/ov_fabric_pattern_02_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..6a7617790633a79f426194fd9a7d00a8a9fa2897 --- /dev/null +++ b/Assets/Material/material_0165/ov_fabric_pattern_02_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20b1ef46004214961054d0451d7894de3392bbb67a85246be39493572092d61b +size 6831725 diff --git a/Assets/Material/material_0166/leather_blend_mask_04.png b/Assets/Material/material_0166/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0166/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0166/ov_clouds_01_normal.png b/Assets/Material/material_0166/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0166/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0166/ov_fabric_polyester_01_basecolor.png b/Assets/Material/material_0166/ov_fabric_polyester_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..aa91021ecba619802d38ff977e73d2798ccec4b8 --- /dev/null +++ b/Assets/Material/material_0166/ov_fabric_polyester_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c3b2d914647713772c384c648319a2b85518724b66d4cefdcab4e1c5f70caea +size 13357087 diff --git a/Assets/Material/material_0166/ov_fabric_polyester_01_normal.png b/Assets/Material/material_0166/ov_fabric_polyester_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..ca1bd92a0e868e5089363e275c5555182b0917dc --- /dev/null +++ b/Assets/Material/material_0166/ov_fabric_polyester_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:280919048f18329456b75fb2601ec56c242999227d2c7a09bad6022bbd867073 +size 29250838 diff --git a/Assets/Material/material_0166/ov_fabric_polyester_01_orm.png b/Assets/Material/material_0166/ov_fabric_polyester_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..fb6f75021bcdcd5b38f1f437a9ca139772d8e8a4 --- /dev/null +++ b/Assets/Material/material_0166/ov_fabric_polyester_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75a1acd4cee57de490f53837b75fce02cf4c97993eb5166ab185efa4b05bced9 +size 19159600 diff --git a/Assets/Material/material_0167/leather_blend_mask_04.png b/Assets/Material/material_0167/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0167/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0167/ov_clouds_01_normal.png b/Assets/Material/material_0167/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0167/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0167/ov_fabric_polyester_02_basecolor.png b/Assets/Material/material_0167/ov_fabric_polyester_02_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..25408dfca9b6aa16dd476d898823c1608cd0ffd6 --- /dev/null +++ b/Assets/Material/material_0167/ov_fabric_polyester_02_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b21c065e9c783c45799930d16a32b8459e2bf1ec52a78d33f4a0b1428245b6d5 +size 10133358 diff --git a/Assets/Material/material_0167/ov_fabric_polyester_02_normal.png b/Assets/Material/material_0167/ov_fabric_polyester_02_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..76fda6a26f6021125114952e1539b63092b33b06 --- /dev/null +++ b/Assets/Material/material_0167/ov_fabric_polyester_02_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d2de320abfb05560ea2f904c5da48a98848f240ebdd0aee5a2cbc71f29c0968 +size 28966097 diff --git a/Assets/Material/material_0167/ov_fabric_polyester_02_orm.png b/Assets/Material/material_0167/ov_fabric_polyester_02_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..ea610631079b3b895a9e3e8905de62a0bf1e8c15 --- /dev/null +++ b/Assets/Material/material_0167/ov_fabric_polyester_02_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48845e49c8e320c6844cfee420d1b828d072f2d92630a1fe8c1d4970afd653c8 +size 20630073 diff --git a/Assets/Material/material_0170/leather_blend_mask_04.png b/Assets/Material/material_0170/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0170/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0170/ov_clouds_01_normal.png b/Assets/Material/material_0170/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0170/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0170/ov_fabric_weave_01_basecolor.png b/Assets/Material/material_0170/ov_fabric_weave_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..a655d92c9c9bdf1d82da7f6fbe7bb27f15d83fd1 --- /dev/null +++ b/Assets/Material/material_0170/ov_fabric_weave_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5771edb617ef0fb7513f743d1d606285e5fe6bb7018ec03f5a0aa4a9a96c841 +size 10883081 diff --git a/Assets/Material/material_0170/ov_fabric_weave_01_normal.png b/Assets/Material/material_0170/ov_fabric_weave_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..433fd602d027f827b22d679bcce27da7f8b24a08 --- /dev/null +++ b/Assets/Material/material_0170/ov_fabric_weave_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fa6a81be012bda77d3f70578f07540e30f20b54c091f950e3e2654acf28f2df +size 27014768 diff --git a/Assets/Material/material_0170/ov_fabric_weave_01_orm.png b/Assets/Material/material_0170/ov_fabric_weave_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..b4d5a462c1e21a8bdbdeefb841a8acd61d90a5d8 --- /dev/null +++ b/Assets/Material/material_0170/ov_fabric_weave_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3833ecbbc1a5c9ff789ae811562fe36e088571f53bb2ebb91501340d66a5e8ac +size 18591924 diff --git a/Assets/Material/material_0186/leather_blend_mask_04.png b/Assets/Material/material_0186/leather_blend_mask_04.png new file mode 100644 index 0000000000000000000000000000000000000000..9b769cd81d316b307725657a1fa6fe31cb4dbfda --- /dev/null +++ b/Assets/Material/material_0186/leather_blend_mask_04.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b182c72d8b856fb5313db42a1ab7cb7520603378487e5130b6808bf1afbf1c2 +size 59804120 diff --git a/Assets/Material/material_0186/ov_clouds_01_normal.png b/Assets/Material/material_0186/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0186/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0186/ov_leather_g_01_basecolor.png b/Assets/Material/material_0186/ov_leather_g_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..6f368ba11e86beee4e754ca228fb8011c48933de --- /dev/null +++ b/Assets/Material/material_0186/ov_leather_g_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4819bd76d7c17fed41a45de63cd158afe7541366a766446e66403b5789c97edc +size 25820910 diff --git a/Assets/Material/material_0186/ov_leather_g_01_normal.png b/Assets/Material/material_0186/ov_leather_g_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..cf82159563de011265024fb9435d294a21b7d1a3 --- /dev/null +++ b/Assets/Material/material_0186/ov_leather_g_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22ce43fa4c8efbeacedf0ad2b7be50fd2aa93d4c26547bc8e3a62ed9fd1e0dd0 +size 102575307 diff --git a/Assets/Material/material_0186/ov_leather_g_01_orm.png b/Assets/Material/material_0186/ov_leather_g_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..7b9bffad58a19e440c0098d64ccd893c48f2787f --- /dev/null +++ b/Assets/Material/material_0186/ov_leather_g_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:799bc407a8c78ca1e54a49c6731e8ba0ad99086ea519ceb18df1d0db379247cc +size 26044589 diff --git a/Assets/Material/material_0187/Leather_Dots_Square_01.mdl b/Assets/Material/material_0187/Leather_Dots_Square_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fcc2e082131be14823153cf2158db5321a1fe496 --- /dev/null +++ b/Assets/Material/material_0187/Leather_Dots_Square_01.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Leather_Dots_Square_01(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(2.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(0.075000003f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(0.5f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_leather_h_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.82838285f, 0.239792794f, 0.0574126542f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.850000024f), + normal_image: texture_2d("./ov_leather_h_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: true, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d("./ov_leather_h_01_basecolor.png", ::tex::gamma_default, ""), + layer_1_diffuse_reflection_color: color(0.772277236f, 0.215360701f, 0.0433290899f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_default, ""), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_default, ""), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d("./ov_leather_h_01_orm.png", ::tex::gamma_default, ""), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.949999988f, 0.699999988f), + layer_1_normal_image: texture_2d("./ov_leather_h_01_normal.png", ::tex::gamma_linear, ""), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.25f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0188/Leather_Grain_01.mdl b/Assets/Material/material_0188/Leather_Grain_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..dc3f79675df1ea95183d8beeac6ab8a61a8b5a55 --- /dev/null +++ b/Assets/Material/material_0188/Leather_Grain_01.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Leather_Grain_01(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(0.075000003f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(0.5f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_metal_a_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.20792079f, 0.0705361813f, 0.0178413875f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.600000024f), + normal_image: texture_2d("./ov_leather_a_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: true, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_3, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d("./leather_blend_mask_01.png", ::tex::gamma_default, ""), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d("./ov_metal_a_01_basecolor.png", ::tex::gamma_default, ""), + layer_1_diffuse_reflection_color: color(0.320132017f, 0.133824989f, 0.030639695f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_default, ""), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_default, ""), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d("./ov_leather_a_01_orm.png", ::tex::gamma_default, ""), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.75f), + layer_1_normal_image: texture_2d("./ov_leather_a_01_normal.png", ::tex::gamma_linear, ""), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0193/noise_scratch2.png b/Assets/Material/material_0193/noise_scratch2.png new file mode 100644 index 0000000000000000000000000000000000000000..42575d188fbaa6cd6d8ec9fbfce69d4c52fda2d8 --- /dev/null +++ b/Assets/Material/material_0193/noise_scratch2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fa8edb872eff7882e90c5a683d1c4af1b468633acaa720780327fadee91a3ec +size 29801141 diff --git a/Assets/Material/material_0193/ov_clouds_01_normal.png b/Assets/Material/material_0193/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0193/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0193/ov_leather_J_01_basecolor.png b/Assets/Material/material_0193/ov_leather_J_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..549f8bb30af7e685aa1417a883f1d6e0eb57ac94 --- /dev/null +++ b/Assets/Material/material_0193/ov_leather_J_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:613c3a31fc2081395343904a01b228e2aca50f26afb717883cb92d6b0e8ffd23 +size 16318530 diff --git a/Assets/Material/material_0193/ov_leather_J_01_normal.png b/Assets/Material/material_0193/ov_leather_J_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..eb674ac30f439c24b0c5c4f31680f9a732b15f3b --- /dev/null +++ b/Assets/Material/material_0193/ov_leather_J_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2983849eca2e9569fbfd1a99af1ba17d967af82cf5a4dd877366a94518072350 +size 111023613 diff --git a/Assets/Material/material_0193/ov_leather_J_01_orm.png b/Assets/Material/material_0193/ov_leather_J_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..c341e0e38e644c528be8394be18286190ead8dd2 --- /dev/null +++ b/Assets/Material/material_0193/ov_leather_J_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42a3a880bd5d69469b2e85e6483a332b16bd10f1bfe382337282c7bf713d2340 +size 28530148 diff --git a/Assets/Material/material_0193/perlin1.png b/Assets/Material/material_0193/perlin1.png new file mode 100644 index 0000000000000000000000000000000000000000..f7205a65fdb2f37d54c3e1cf9daf5e8bb38325b7 --- /dev/null +++ b/Assets/Material/material_0193/perlin1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b13601318915755c410a10be573ddd2a2cac5ce8e3580d177fa7788392b30ba +size 4646936 diff --git a/Assets/Material/material_0195/leather_blend_mask_03.png b/Assets/Material/material_0195/leather_blend_mask_03.png new file mode 100644 index 0000000000000000000000000000000000000000..203d4f6aa92a375d24b2099d685dff52e7c130c3 --- /dev/null +++ b/Assets/Material/material_0195/leather_blend_mask_03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad0c6807fdafcf32fb6ff8e8ad3f0a6fead2a04a402bcc3938f2ba6f68af8e77 +size 57446511 diff --git a/Assets/Material/material_0195/ov_clouds_01_normal.png b/Assets/Material/material_0195/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0195/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0195/ov_leather_c_01_basecolor.png b/Assets/Material/material_0195/ov_leather_c_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..0d19b5cdfdee49ee3e2226b31a4fe898dc0aec1a --- /dev/null +++ b/Assets/Material/material_0195/ov_leather_c_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bf48e239b855f18e63e882aab19e0202f1d8c7800fd1e550e4ee24b2dad9e59 +size 10338460 diff --git a/Assets/Material/material_0195/ov_leather_c_01_normal.png b/Assets/Material/material_0195/ov_leather_c_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..205d79cdd24f1dca3e4b92aac18172a76754da08 --- /dev/null +++ b/Assets/Material/material_0195/ov_leather_c_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9be5cabe292067b6842986125164bf2cd4ca4573a9600ad664975106f28c677a +size 103078254 diff --git a/Assets/Material/material_0195/ov_leather_c_01_orm.png b/Assets/Material/material_0195/ov_leather_c_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..18b87939a12aae379d0f6f79472ef9ed9956c4d8 --- /dev/null +++ b/Assets/Material/material_0195/ov_leather_c_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:055951f5d3238c110493a1edbb3d85de51127a0afa0895cffb5a8b8ebbf6cede +size 32063583 diff --git a/Assets/Material/material_0200/leather_blend_mask_02.png b/Assets/Material/material_0200/leather_blend_mask_02.png new file mode 100644 index 0000000000000000000000000000000000000000..23d6cb66ee853e1f83c62f606c14079ec6dd4d55 --- /dev/null +++ b/Assets/Material/material_0200/leather_blend_mask_02.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de134de187316eb5dab649639912046d63f3b757171fdbcf3df51bc7c1d2a257 +size 50123227 diff --git a/Assets/Material/material_0200/ov_clouds_01_normal.png b/Assets/Material/material_0200/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0200/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0200/ov_suede_01_basecolor.png b/Assets/Material/material_0200/ov_suede_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..e9cd5bfcef0c21922cfb98bf41c65272a5853198 --- /dev/null +++ b/Assets/Material/material_0200/ov_suede_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72157ae368721138fb4bb52c44af0e6565168b6d2d857ca4d4f363a7e07e2615 +size 114624992 diff --git a/Assets/Material/material_0200/ov_suede_01_normal.png b/Assets/Material/material_0200/ov_suede_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..dd85b19727cb62e2f539cdb65a8c5945f3a1cebc --- /dev/null +++ b/Assets/Material/material_0200/ov_suede_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f4f15ebad687b9e35508b6a4e5fca14a86136c64a8103cf490afb2669f940a4 +size 101838810 diff --git a/Assets/Material/material_0200/ov_suede_01_orm.png b/Assets/Material/material_0200/ov_suede_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..d760128f8bdc6fae5fe245ddde5f58eadacc175b --- /dev/null +++ b/Assets/Material/material_0200/ov_suede_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a0cf037789af19c777e26547ddfbbbd21f472ddccffb5907ae6d0b0bc3fa3573 +size 83411017 diff --git a/Assets/Material/material_0202/Suede_07.mdl b/Assets/Material/material_0202/Suede_07.mdl new file mode 100644 index 0000000000000000000000000000000000000000..eceb2cee6ffab8815512e68ae68905d90a8684ea --- /dev/null +++ b/Assets/Material/material_0202/Suede_07.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Suede_07(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.5f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(0.0500000007f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_suede_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.745874584f, 0.699148536f, 0.674487233f), + base_color_scale: 1.f, + base_color_offset: 0.459999979f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.769999981f, 0.730000019f), + normal_image: texture_2d("./ov_suede_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: true, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_02.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d("./ov_suede_01_basecolor.png", ::tex::gamma_default, ""), + layer_1_diffuse_reflection_color: color(1.f, 0.905252814f, 0.825082541f), + layer_1_base_color_offset: 0.189999998f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d("./ov_suede_01_orm.png", ::tex::gamma_default, ""), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.75f, 0.649999976f), + layer_1_normal_image: texture_2d("./ov_suede_01_normal.png", ::tex::gamma_linear, ""), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 2.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 0.5f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0204/Suede_09.mdl b/Assets/Material/material_0204/Suede_09.mdl new file mode 100644 index 0000000000000000000000000000000000000000..59d9d2aa898d5682aee2959545eb7bafff3a2f0e --- /dev/null +++ b/Assets/Material/material_0204/Suede_09.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Suede_09(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.5f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(0.0500000007f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.188118815f, 0.0285592917f, 0.0285592917f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.949999988f, 0.850000024f), + normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: true, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d("./leather_blend_mask_04.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d("./leather_blend_mask_02.png", ::tex::gamma_default, ""), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.599999964f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d("./ov_suede_02_basecolor.png", ::tex::gamma_default, ""), + layer_1_diffuse_reflection_color: color(0.148514867f, 0.0313694738f, 0.0313694738f), + layer_1_base_color_offset: 0.0899999961f, + layer_1_base_color_scale: 1.09000003f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d("./ov_suede_02_orm.png", ::tex::gamma_default, ""), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.850000024f, 0.75f), + layer_1_normal_image: texture_2d("./ov_suede_02_normal.png", ::tex::gamma_linear, ""), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: true, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_2, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d("./ov_clouds_01_normal.png", ::tex::gamma_linear, ""), + detail_normal_flip_green: true, + detail_normal_scale: 0.5f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0206/ov_metal_a_01_basecolor.png b/Assets/Material/material_0206/ov_metal_a_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..aae2f240a639a17c4c8f9dabd47ede8265eed636 --- /dev/null +++ b/Assets/Material/material_0206/ov_metal_a_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da73706b08ee13c26600233f1f1a2d33734e431bd3df1677ae1ebfb6480a96e1 +size 154427 diff --git a/Assets/Material/material_0206/ov_metal_a_01_normal.png b/Assets/Material/material_0206/ov_metal_a_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..e2d2addfa7bf9bde189203430b0b09b732eeaad1 --- /dev/null +++ b/Assets/Material/material_0206/ov_metal_a_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7da54a8d75accbf1d08b922a13a5b693afd2b35776aea4f871dc871d5a31629 +size 22463078 diff --git a/Assets/Material/material_0206/ov_metal_a_01_orm.png b/Assets/Material/material_0206/ov_metal_a_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..ca8399a62d685a3f660d121cb4773ac9060390e4 --- /dev/null +++ b/Assets/Material/material_0206/ov_metal_a_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59302b2d5f64882f7a62c7a88b78de62b39588f44fc3f26f94db2723ba415653 +size 11787191 diff --git a/Assets/Material/material_0211/ov_metal_a_01_basecolor.png b/Assets/Material/material_0211/ov_metal_a_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..aae2f240a639a17c4c8f9dabd47ede8265eed636 --- /dev/null +++ b/Assets/Material/material_0211/ov_metal_a_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da73706b08ee13c26600233f1f1a2d33734e431bd3df1677ae1ebfb6480a96e1 +size 154427 diff --git a/Assets/Material/material_0211/ov_metal_a_01_normal.png b/Assets/Material/material_0211/ov_metal_a_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..e2d2addfa7bf9bde189203430b0b09b732eeaad1 --- /dev/null +++ b/Assets/Material/material_0211/ov_metal_a_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7da54a8d75accbf1d08b922a13a5b693afd2b35776aea4f871dc871d5a31629 +size 22463078 diff --git a/Assets/Material/material_0211/ov_metal_a_01_orm.png b/Assets/Material/material_0211/ov_metal_a_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..ca8399a62d685a3f660d121cb4773ac9060390e4 --- /dev/null +++ b/Assets/Material/material_0211/ov_metal_a_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59302b2d5f64882f7a62c7a88b78de62b39588f44fc3f26f94db2723ba415653 +size 11787191 diff --git a/Assets/Material/material_0211/ov_plastic_grain_b_01_basecolor.png b/Assets/Material/material_0211/ov_plastic_grain_b_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..f81d46b5334e9e988c43967b190e90fd6d0cd6e4 --- /dev/null +++ b/Assets/Material/material_0211/ov_plastic_grain_b_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20161e1195084384c2c0a8b13f9484e5b4efee62a94da6d4fffea4f2ec68e82b +size 60384 diff --git a/Assets/Material/material_0211/ov_plastic_grain_b_01_normal.png b/Assets/Material/material_0211/ov_plastic_grain_b_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..04dddd36297f742187a294b00b1154295f8d960c --- /dev/null +++ b/Assets/Material/material_0211/ov_plastic_grain_b_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8a93efcf26f5791c6b6af0fe37d5c134e54003972c46907b2b7a0fbf343a43e +size 27793619 diff --git a/Assets/Material/material_0211/ov_plastic_grain_b_01_orm.png b/Assets/Material/material_0211/ov_plastic_grain_b_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..e9680f18a24cc84ca46c82b4bfbc7586eb0f059e --- /dev/null +++ b/Assets/Material/material_0211/ov_plastic_grain_b_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db06a8e3b7edc11d8330da1255ef15aa57394e728d8b40d0a7cf98ab63bbf9a0 +size 8909095 diff --git a/Assets/Material/material_0211/ov_plastic_grain_c_01_roughness.png b/Assets/Material/material_0211/ov_plastic_grain_c_01_roughness.png new file mode 100644 index 0000000000000000000000000000000000000000..ee74723a859320c3b1425fa96b0bf02ca4625f67 --- /dev/null +++ b/Assets/Material/material_0211/ov_plastic_grain_c_01_roughness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:480c60264173cdda0d8695eefa9e2cb88633a9b8c4d473d560f16f4af4802e32 +size 7164072 diff --git a/Assets/Material/material_0211/perlin1.png b/Assets/Material/material_0211/perlin1.png new file mode 100644 index 0000000000000000000000000000000000000000..f7205a65fdb2f37d54c3e1cf9daf5e8bb38325b7 --- /dev/null +++ b/Assets/Material/material_0211/perlin1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b13601318915755c410a10be573ddd2a2cac5ce8e3580d177fa7788392b30ba +size 4646936 diff --git a/Assets/Material/material_0213/ov_plastic_grain_b_01_basecolor.png b/Assets/Material/material_0213/ov_plastic_grain_b_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..f81d46b5334e9e988c43967b190e90fd6d0cd6e4 --- /dev/null +++ b/Assets/Material/material_0213/ov_plastic_grain_b_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20161e1195084384c2c0a8b13f9484e5b4efee62a94da6d4fffea4f2ec68e82b +size 60384 diff --git a/Assets/Material/material_0213/ov_plastic_grain_b_01_normal.png b/Assets/Material/material_0213/ov_plastic_grain_b_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..04dddd36297f742187a294b00b1154295f8d960c --- /dev/null +++ b/Assets/Material/material_0213/ov_plastic_grain_b_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8a93efcf26f5791c6b6af0fe37d5c134e54003972c46907b2b7a0fbf343a43e +size 27793619 diff --git a/Assets/Material/material_0213/ov_plastic_grain_b_01_orm.png b/Assets/Material/material_0213/ov_plastic_grain_b_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..e9680f18a24cc84ca46c82b4bfbc7586eb0f059e --- /dev/null +++ b/Assets/Material/material_0213/ov_plastic_grain_b_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db06a8e3b7edc11d8330da1255ef15aa57394e728d8b40d0a7cf98ab63bbf9a0 +size 8909095 diff --git a/Assets/Material/material_0216/Metal_Polished_02.mdl b/Assets/Material/material_0216/Metal_Polished_02.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fc3fc908d65482ea7268578919a38ff6f60bca42 --- /dev/null +++ b/Assets/Material/material_0216/Metal_Polished_02.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Metal_Polished_02(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_metal_machine_polished_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.260726094f, 0.192839593f, 0.0937925503f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.5f, 0.0250000004f), + normal_image: texture_2d("./ov_metal_machine_polished_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.949999988f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: true, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 0.25f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d("./ov_metal_machine_polished_01_anisotropy_level.png", ::tex::gamma_default, ""), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.5f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0218/Metal_Polished_Dirty_02.mdl b/Assets/Material/material_0218/Metal_Polished_Dirty_02.mdl new file mode 100644 index 0000000000000000000000000000000000000000..5966d92bafb5b3f9e8b1c4ac270a78ae77c29758 --- /dev/null +++ b/Assets/Material/material_0218/Metal_Polished_Dirty_02.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Metal_Polished_Dirty_02(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(2.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_metal_machine_polished_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.524752498f, 0.43076992f, 0.268437743f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_metal_machine_polished_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.5f, 0.0250000004f), + normal_image: texture_2d("./ov_metal_machine_polished_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: true, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d("./ov_metal_machine_polished_01_roughvar.png", ::tex::gamma_linear, ""), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d("./ov_metal_machine_polished_01_roughvar.png", ::tex::gamma_default, ""), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 1.f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(0.488448858f, 0.369029909f, 0.207953468f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.125f, 0.0500000007f), + layer_1_normal_image: texture_2d("./ov_plastic_grain_c_01_normal.png", ::tex::gamma_linear, ""), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: true, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d("./noise_scratch1.png", ::tex::gamma_default, ""), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_3, + layer_2_blend_detail_image: texture_2d("./dirt_slight4.png", ::tex::gamma_default, ""), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.5f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(0.0594059229f, 0.0580305718f, 0.0501911454f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: true, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 0.25f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d("./ov_metal_machine_polished_01_anisotropy_level.png", ::tex::gamma_default, ""), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.5f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0225/ov_clay_smooth_01_basecolor.png b/Assets/Material/material_0225/ov_clay_smooth_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..ee264787b972b9d608c1ff79bffebca7ce0986cf --- /dev/null +++ b/Assets/Material/material_0225/ov_clay_smooth_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35b1aa11442c64614ba27d2e921524857e70ce8f4b99fad0fb99256bb4f8c145 +size 25355967 diff --git a/Assets/Material/material_0225/ov_clay_smooth_01_normal.png b/Assets/Material/material_0225/ov_clay_smooth_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..2f917ef116e1d324c1991ca2d9c560e46b3a4438 --- /dev/null +++ b/Assets/Material/material_0225/ov_clay_smooth_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2eaacb5513c77cd145f2ec8cc4b8511af11f5c7744c9752917c0f4c870e14a7a +size 101854961 diff --git a/Assets/Material/material_0225/ov_clay_smooth_01_orm.png b/Assets/Material/material_0225/ov_clay_smooth_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..3cfc777a18bfe1f4c74cf518f2737d312b5305c9 --- /dev/null +++ b/Assets/Material/material_0225/ov_clay_smooth_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0954b3e8c7e528981a0937b6628aee835a53ac732a753364f6fea327e7374db1 +size 34370548 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_ambientOcclusion.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_ambientOcclusion.png new file mode 100644 index 0000000000000000000000000000000000000000..32061baaf4ef9fa5af639c2b2ec1a00a7863bded --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_ambientOcclusion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:421e881c03e0a4f92ad83180f68acfe6ac54ceae1748de9e9e56a54fbcaf839f +size 3940082 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_basecolor.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..3d40e6e953f00ec2129414e143cf0c4fb0af14ca --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a1f7c9056490bceef1ba888ce3ad5157f84ead76766b1c1182483087b97f554 +size 5563917 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_emissive.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_emissive.png new file mode 100644 index 0000000000000000000000000000000000000000..572fa605c6ec4b80ed2ad1746f2fac32fc478f7e --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_emissive.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1528b1a1205dcb463708536f7a1ad5f8ac7cc821aaf934c3326bfc5316db60cd +size 146834 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_metallic.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..f29f89a520a48f2d66e9e056c8c789240385658f --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab522ae6399407df6bb791dc878ea73a7a59e13513a45e555540d83524a39447 +size 6810090 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_normal.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..ac1e8accf8488fc3a740ee0617039968e003f8de --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b04c7b97b6995030fb7ac205f3e01017ea60faf3c5f0f9fad45e5e6ee5ad9263 +size 8200579 diff --git a/Assets/Material/material_0226/ov_dash_ctrls_starter_01_roughness.png b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_roughness.png new file mode 100644 index 0000000000000000000000000000000000000000..0686e55c91fa814caab2ad4da8f202e8459e6f2f --- /dev/null +++ b/Assets/Material/material_0226/ov_dash_ctrls_starter_01_roughness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb6f63252c0d228f413fa6500fbf9e5ed9e555c7ac20eb59ddb7a31ed816b380 +size 6809823 diff --git a/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_ambientOcclusion.png b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_ambientOcclusion.png new file mode 100644 index 0000000000000000000000000000000000000000..5a24991dc5438c8b9dac32dd73b28596d8c36281 --- /dev/null +++ b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_ambientOcclusion.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83bd48a7ce59657c59a27fc353d7bc8bcf396c9719c204395602023e4b93ad3b +size 7403 diff --git a/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_basecolor.png b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..8df07b443476092d29a1c479f0eea981ed8ac2af --- /dev/null +++ b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:255647d53e3fddc07cf91c0612916ea03b10a212a05fa5412c6e57419f618da5 +size 1257258 diff --git a/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_metallic.png b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..7614dc15d47398a3946c885d909507776e22cc82 --- /dev/null +++ b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d15f1be82dcac15b71d5d7b3ece4c96ceeadbdd42bcd59fee4db2c15ccd8361d +size 7404 diff --git a/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_normal.png b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..891c9ce2fc461a35bb024f7474e3507ef27e47b7 --- /dev/null +++ b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e99af29527a96ed302dad6eda8250f629c4df9ea646d43d51ed735a1dab6e54 +size 1784726 diff --git a/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_roughness.png b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_roughness.png new file mode 100644 index 0000000000000000000000000000000000000000..34e92206c2cad548007b42a5de17439a19fec2ef --- /dev/null +++ b/Assets/Material/material_0227/ov_car_K_emblem_color_glazed_01_roughness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71b36e400a9031841c2902e44785857e5e1a017fa501d1f63c793f7e2c46fead +size 1747957 diff --git a/Assets/Material/material_0228/ov_car_KOENIGSEGG_emblem_stitch_01_roughness.png b/Assets/Material/material_0228/ov_car_KOENIGSEGG_emblem_stitch_01_roughness.png new file mode 100644 index 0000000000000000000000000000000000000000..739518ff9f6eddc1f7e03194d86f3f7a54b48db1 --- /dev/null +++ b/Assets/Material/material_0228/ov_car_KOENIGSEGG_emblem_stitch_01_roughness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:285ed3553022814facf8e0dbd93336a68f3c62e291cdc2554e11fa6e386b7692 +size 1889070 diff --git a/Assets/Material/material_0229/Koenigsegg_Emblem_Leather_Steering_Wheel_Logo.mdl b/Assets/Material/material_0229/Koenigsegg_Emblem_Leather_Steering_Wheel_Logo.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9c8608b9a71f302a3c3871f7e49b009301405c5c --- /dev/null +++ b/Assets/Material/material_0229/Koenigsegg_Emblem_Leather_Steering_Wheel_Logo.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Koenigsegg_Emblem_Leather_Steering_Wheel_Logo(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::texture_coord_0, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(0.075907588f, 0.0280061457f, 0.0077661234f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_car_KOENIGSEGG_emblem_stitch_02_ambientOcclusion.png", ::tex::gamma_default, ""), + cavity_channel: Templates::OmniUber_Automotive::rgb, + roughness_image: texture_2d("./ov_car_KOENIGSEGG_emblem_stitch_02_roughness.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::rgb, + roughness_u: 1.f, + roughness_range_position: float2(1.f, 0.5f), + normal_image: texture_2d("./ov_car_KOENIGSEGG_emblem_stitch_02_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_1, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0241/Reflectors_01.mdl b/Assets/Material/material_0241/Reflectors_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..131e4a0c0f76dbcea441bfa8a851c227839e8a29 --- /dev/null +++ b/Assets/Material/material_0241/Reflectors_01.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Reflectors_01(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(2.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(1.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d("./ov_reflectors_pattern_01_basecolor.png", ::tex::gamma_default, ""), + diffuse_reflection_color: color(0.25f, 0.249997497f, 0.249997497f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_linear, ""), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 0.5f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_linear, ""), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d("./ov_reflectors_pattern_01_orm.png", ::tex::gamma_default, ""), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.125f), + normal_image: texture_2d("./ov_reflectors_pattern_01_normal.png", ::tex::gamma_linear, ""), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(0.949999988f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: false, + coat_color: color(1.f, 1.f, 1.f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d(), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: false, + flake_color: color(1.f, 1.f, 1.f), + flake_size: 0.125f, + flakes_density: 0.25f, + flakes_spread: 0.150000006f, + flake_roughness: 0.0500000007f); diff --git a/Assets/Material/material_0244/ov_reflectors_pattern_01_basecolor.png b/Assets/Material/material_0244/ov_reflectors_pattern_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..935d5d9072776bbbcbe7b0595dae1d6327a71474 --- /dev/null +++ b/Assets/Material/material_0244/ov_reflectors_pattern_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20666fc885dc66c3f7492baf6b2ef94b7e72fde31edf3b55f458578510491c24 +size 231021 diff --git a/Assets/Material/material_0244/ov_reflectors_pattern_01_mask.png b/Assets/Material/material_0244/ov_reflectors_pattern_01_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..43d42295ac55fba5f0cd9d779f1b6e5af9c3a954 --- /dev/null +++ b/Assets/Material/material_0244/ov_reflectors_pattern_01_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cea10e6e5ef28c4d3f809d736ed8443589f924445916d10dd0c5f5b0f5f5f9b +size 358724 diff --git a/Assets/Material/material_0244/ov_reflectors_pattern_01_normal.png b/Assets/Material/material_0244/ov_reflectors_pattern_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..c0f9f019368e78f3c98ae35a96f49f9f354db03b --- /dev/null +++ b/Assets/Material/material_0244/ov_reflectors_pattern_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68541b96e46dcfd4dcbc7e3fb0fcf32f1c5d842ac25c4db2d8396ac68a566c7d +size 3129795 diff --git a/Assets/Material/material_0244/ov_reflectors_pattern_01_orm.png b/Assets/Material/material_0244/ov_reflectors_pattern_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..b8a9c0f3f4fd841d3dc92f1ca440b09583b4d021 --- /dev/null +++ b/Assets/Material/material_0244/ov_reflectors_pattern_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d697b8ffe7b4d298c7091b5eba48f358761efe3f29da1cdff6ae288ce093f52 +size 16736324 diff --git a/Assets/Material/material_0257/Rim_Carpaint_Silver.mdl b/Assets/Material/material_0257/Rim_Carpaint_Silver.mdl new file mode 100644 index 0000000000000000000000000000000000000000..c733ae9fbaa73345b208710202ff4d345da9f803 --- /dev/null +++ b/Assets/Material/material_0257/Rim_Carpaint_Silver.mdl @@ -0,0 +1,177 @@ +mdl 1.8; + +import ::state::normal; +import ::OmniSurface::OmniShared::emission_mode; +import ..::Templates::OmniUber_Automotive::*; +import ::tex::gamma_mode; + +export material Rim_Carpaint_Silver(*) + = Templates::OmniUber_Automotive::OmniUber_Automotive( + uvs_mode_01: Templates::OmniUber_Automotive::triplanar, + uv_scale_01: float2(1.f), + uv_offset_01: float2(0.f), + uv_offset_time_01: float2(0.f), + uv_rotation_01: 0.f, + triplanar_blend_range_01: 0.5f, + uvs_mode_02: Templates::OmniUber_Automotive::triplanar, + uv_scale_02: float2(8.f), + uv_offset_02: float2(0.f), + uv_offset_time_02: float2(0.f), + uv_rotation_02: 0.f, + triplanar_blend_range_02: 0.5f, + uvs_mode_03: Templates::OmniUber_Automotive::triplanar, + uv_scale_03: float2(1.f), + uv_offset_03: float2(0.f), + uv_offset_time_03: float2(0.f), + uv_rotation_03: 0.f, + triplanar_blend_range_03: 0.5f, + uvs_mode_04: Templates::OmniUber_Automotive::triplanar, + uv_scale_04: float2(1.f), + uv_offset_04: float2(0.f), + uv_offset_time_04: float2(0.f), + uv_rotation_04: 0.f, + triplanar_blend_range_04: 0.5f, + enable_opacity: false, + uv_set_opacity: Templates::OmniUber_Automotive::uv_set_1, + opacity_image: texture_2d(), + opacity_channel: Templates::OmniUber_Automotive::a, + geometry_opacity_threshold: 0.150000006f, + uv_set_layer_0: Templates::OmniUber_Automotive::uv_set_1, + base_color_image: texture_2d(), + diffuse_reflection_color: color(0.861377478f, 0.86138612f, 0.861385107f), + base_color_scale: 1.f, + base_color_offset: 0.f, + base_color_desaturation: 0.f, + metalness_image: texture_2d(), + metalness_channel: Templates::OmniUber_Automotive::b, + metalness: 1.f, + specular_reflection_weight: 1.f, + specular_reflection_color: color(1.f, 1.f, 1.f), + cavity_image: texture_2d(), + cavity_channel: Templates::OmniUber_Automotive::r, + roughness_image: texture_2d(), + roughness_channel: Templates::OmniUber_Automotive::g, + roughness_u: 1.f, + roughness_range_position: float2(0.f, 0.400000006f), + normal_image: texture_2d(), + normal_flip_green: true, + normal_scale: 1.f, + enable_layer_1: false, + layer_1_order: Templates::OmniUber_Automotive::above, + layer_1_blend_source: Templates::OmniUber_Automotive::texture, + layer_1_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_splatmap: texture_2d(), + layer_1_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_direction: float3(0.f, 1.f, 0.f), + layer_1_blend_axis: Templates::OmniUber_Automotive::y, + layer_1_blend_object_space: true, + layer_1_blend_scale: 1.f, + layer_1_blend_offset: 0.f, + layer_1_blend_primvar_name: "", + layer_1_uv_set_detail: Templates::OmniUber_Automotive::uv_set_1, + layer_1_blend_detail_image: texture_2d(), + layer_1_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_1_blend_threshold: 0.330000013f, + layer_1_blend_factor_override: 0.f, + uv_set_layer_1: Templates::OmniUber_Automotive::uv_set_1, + layer_1_base_color_image: texture_2d(), + layer_1_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_1_base_color_offset: 0.f, + layer_1_base_color_scale: 1.f, + layer_1_base_color_desaturation: 0.f, + layer_1_metalness_image: texture_2d(), + layer_1_metalness_channel: Templates::OmniUber_Automotive::b, + layer_1_metalness: 1.f, + layer_1_specular_reflection_weight: 1.f, + layer_1_cavity_image: texture_2d(), + layer_1_cavity_channel: Templates::OmniUber_Automotive::r, + layer_1_roughness_image: texture_2d(), + layer_1_roughness_channel: Templates::OmniUber_Automotive::g, + layer_1_roughness_u: 1.f, + layer_1_roughness_range_position: float2(1.f, 0.5f), + layer_1_normal_image: texture_2d(), + layer_1_normal_flip_green: true, + layer_1_normal_scale: 1.f, + enable_layer_2: false, + layer_2_order: Templates::OmniUber_Automotive::above, + layer_2_blend_source: Templates::OmniUber_Automotive::texture, + layer_2_uv_set_blend_factor: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_splatmap: texture_2d(), + layer_2_blend_splatmap_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_direction: float3(0.f, 1.f, 0.f), + layer_2_blend_axis: Templates::OmniUber_Automotive::y, + layer_2_blend_object_space: true, + layer_2_blend_scale: 1.f, + layer_2_blend_offset: 0.f, + layer_2_blend_primvar_name: "", + layer_2_uv_set_detail: Templates::OmniUber_Automotive::uv_set_2, + layer_2_blend_detail_image: texture_2d(), + layer_2_blend_detail_image_channel: Templates::OmniUber_Automotive::r, + layer_2_blend_threshold: 0.330000013f, + layer_2_blend_factor_override: 0.f, + uv_set_layer_2: Templates::OmniUber_Automotive::uv_set_2, + layer_2_base_color_image: texture_2d(), + layer_2_diffuse_reflection_color: color(1.f, 1.f, 1.f), + layer_2_base_color_offset: 0.f, + layer_2_base_color_scale: 1.f, + layer_2_base_color_desaturation: 0.f, + layer_2_metalness_image: texture_2d(), + layer_2_metalness_channel: Templates::OmniUber_Automotive::b, + layer_2_metalness: 1.f, + layer_2_specular_reflection_weight: 1.f, + layer_2_cavity_image: texture_2d(), + layer_2_cavity_channel: Templates::OmniUber_Automotive::r, + layer_2_roughness_image: texture_2d(), + layer_2_roughness_channel: Templates::OmniUber_Automotive::g, + layer_2_roughness_u: 1.f, + layer_2_roughness_range_position: float2(1.f, 0.5f), + layer_2_normal_image: texture_2d(), + layer_2_normal_flip_green: true, + layer_2_normal_scale: 1.f, + enable_anisotropy: false, + uv_set_anisotropy: Templates::OmniUber_Automotive::uv_set_1, + anisotropic_roughness_u: 1.f, + anisotropic_roughness_v: 0.25f, + anisotropic_direction_image: texture_2d(), + anisotropic_direction_channel: Templates::OmniUber_Automotive::r, + anisotropic_direction: 0.f, + enable_detail_normal: false, + uv_set_detail_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_detail_weight: Templates::OmniUber_Automotive::uv_set_1, + detail_normal_image: texture_2d(), + detail_normal_flip_green: true, + detail_normal_scale: 1.f, + detail_normal_weight_image: texture_2d(), + detail_normal_weight_channel: Templates::OmniUber_Automotive::r, + enable_emission: false, + uv_set_emission: Templates::OmniUber_Automotive::uv_set_1, + uv_set_emission_mask: Templates::OmniUber_Automotive::uv_set_1, + emission_image: texture_2d(), + emission_mask_image: texture_2d(), + emission_mode: OmniSurface::OmniShared::emission_lx, + emission_intensity: 1.f, + emission_color: color(1.f, 1.f, 1.f), + emission_use_temperature: false, + emission_temperature: 6500.f, + enable_coat: true, + coat_color: color(0.5f, 0.499996752f, 0.499994993f), + coat_mask_image: texture_2d(), + coat_mask_channel: Templates::OmniUber_Automotive::r, + coat_roughness_image: texture_2d("./noise_scratch2.png", ::tex::gamma_default, ""), + coat_roughness_channel: Templates::OmniUber_Automotive::r, + coat_roughness: 0.199999988f, + coat_ior: 1.60000002f, + coat_anisotropy: 0.f, + coat_anisotropy_rotation: 0.f, + coat_affect_color: 0.f, + coat_affect_roughness: 0.f, + coat_normal_image: texture_2d(), + coat_normal_flip_green: true, + uv_set_coat_roughness_normal: Templates::OmniUber_Automotive::uv_set_1, + uv_set_coat_mask: Templates::OmniUber_Automotive::uv_set_1, + enable_flakes: true, + flake_color: color(1.f, 0.999989986f, 0.999989986f), + flake_size: 0.170000002f, + flakes_density: 0.459999979f, + flakes_spread: 0.579999983f, + flake_roughness: 0.0899999961f); diff --git a/Assets/Material/material_0259/noise_scratch3.png b/Assets/Material/material_0259/noise_scratch3.png new file mode 100644 index 0000000000000000000000000000000000000000..f95bbb0f4409439d292e0e0ece66458bbe77d978 --- /dev/null +++ b/Assets/Material/material_0259/noise_scratch3.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8ca24a8d7ccaf22e289c312d243b15fe71c7de3570b39bc0d7e27886b0d16279 +size 27823189 diff --git a/Assets/Material/material_0259/ov_metal_a_01_orm.png b/Assets/Material/material_0259/ov_metal_a_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..ca8399a62d685a3f660d121cb4773ac9060390e4 --- /dev/null +++ b/Assets/Material/material_0259/ov_metal_a_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59302b2d5f64882f7a62c7a88b78de62b39588f44fc3f26f94db2723ba415653 +size 11787191 diff --git a/Assets/Material/material_0259/ov_plastic_grain_b_01_normal.png b/Assets/Material/material_0259/ov_plastic_grain_b_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..04dddd36297f742187a294b00b1154295f8d960c --- /dev/null +++ b/Assets/Material/material_0259/ov_plastic_grain_b_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8a93efcf26f5791c6b6af0fe37d5c134e54003972c46907b2b7a0fbf343a43e +size 27793619 diff --git a/Assets/Material/material_0266/dust1.png b/Assets/Material/material_0266/dust1.png new file mode 100644 index 0000000000000000000000000000000000000000..da023b0f011e19b19ef51b3f23e59dac433eaea6 --- /dev/null +++ b/Assets/Material/material_0266/dust1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce691cdbbc357e50caf27b661ff559fee22a84d109731c28f480845ff1a4fa09 +size 49016652 diff --git a/Assets/Material/material_0266/screen_dash1.png b/Assets/Material/material_0266/screen_dash1.png new file mode 100644 index 0000000000000000000000000000000000000000..a9acfc6972e29469d5daa044bdcec0068dc8e35b --- /dev/null +++ b/Assets/Material/material_0266/screen_dash1.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fef54cc2ddea45d67da854bb32230ebb64ecea2ac5e35bf674bf9b75b5564b35 +size 1427669 diff --git a/Assets/Material/material_0271/ov_clouds_01_normal.png b/Assets/Material/material_0271/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0271/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_basecolor.png b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..d007cd40029273b5bf4d81a5df63f54e26741720 --- /dev/null +++ b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d21c68b15c008b1c03b20d74e81e8e2a5d555b5654973eae7281ad4566871b62 +size 58664993 diff --git a/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_normal.png b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..d8b61761f03fa18f6cb9c777578eda176b780b33 --- /dev/null +++ b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c198dbf75f7471694eade20b5b14b7c8ee1ef7a6b78ad0a8e6868e73ede195b6 +size 433776481 diff --git a/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_orm.png b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..0a91c3e0e29e082ee1a19c7acf6259fe61e47072 --- /dev/null +++ b/Assets/Material/material_0271/ov_tire_rubber_trim_sedan_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14a5bcd2c52266c43fb4599c64730560da076874be228497a69373dbb672c055 +size 110461179 diff --git a/Assets/Material/material_0278/ov_clouds_01_normal.png b/Assets/Material/material_0278/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0278/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_basecolor.png b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..ac5622b8df87baf18883cff758ff2db9527f47ce --- /dev/null +++ b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e77e744992e2d03a6d025e926d09db7e0ad9a84c58f704e2d08e94e69c23ee9 +size 58948514 diff --git a/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_normal.png b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..1d00b1dd05a048311480d6ca67f5068035adfde8 --- /dev/null +++ b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3b51209425e1a7c2932b044f9e3c0350686c54e137a645e881e6f53e1e2de3d +size 438867315 diff --git a/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_orm.png b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..c09be7a9ed96509ac6345d0a01c7767e619a8117 --- /dev/null +++ b/Assets/Material/material_0278/ov_tire_rubber_trim_truck_05_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6bf56f3a9fa149be08da77f36fa940fd921c12489518421d9426743f0a0b9cf8 +size 111113074 diff --git a/Assets/Material/material_0282/ov_clouds_01_normal.png b/Assets/Material/material_0282/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0282/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0282/ov_wood_grain_d_01_basecolor.png b/Assets/Material/material_0282/ov_wood_grain_d_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..04855a044ebedeb411f64ab9f4e9e72d33a51ed7 --- /dev/null +++ b/Assets/Material/material_0282/ov_wood_grain_d_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca2f059c49d11deffbac77887d73fa618dcb2355b49ecf88d9b5fd95a1680caf +size 5970780 diff --git a/Assets/Material/material_0282/ov_wood_grain_d_01_normal.png b/Assets/Material/material_0282/ov_wood_grain_d_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..d1f1be90aff028f303180fbaf8b0f9384889d9d6 --- /dev/null +++ b/Assets/Material/material_0282/ov_wood_grain_d_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86c22f54b424f3a5ddbc94e0ac659b630d60f6c1c24c53c33215a0a09a6d959f +size 20968365 diff --git a/Assets/Material/material_0282/ov_wood_grain_d_01_orm.png b/Assets/Material/material_0282/ov_wood_grain_d_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..5468b14e70223bafcc75b6519923461bd79f7c8c --- /dev/null +++ b/Assets/Material/material_0282/ov_wood_grain_d_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b20460acd6272952a95e0f837a6dc27ebcb2fbeb79984da86de93c410445f103 +size 8411936 diff --git a/Assets/Material/material_0283/ov_clouds_01_normal.png b/Assets/Material/material_0283/ov_clouds_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..b0da2618fec86c95eaf970e40f696f0ed4f0f2c1 --- /dev/null +++ b/Assets/Material/material_0283/ov_clouds_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b26fd13e4aec1c3c1cc82460bef994133a4eb845133a761ae845127d5780ac3f +size 21194805 diff --git a/Assets/Material/material_0283/ov_wood_grain_e_01_basecolor.png b/Assets/Material/material_0283/ov_wood_grain_e_01_basecolor.png new file mode 100644 index 0000000000000000000000000000000000000000..442c3808b9d9ea33092ef4977ca1217077bcb7b4 --- /dev/null +++ b/Assets/Material/material_0283/ov_wood_grain_e_01_basecolor.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:254afa4abf8e8703d6758d04125dd6554c65174647395b839d73a45f961aa024 +size 7547753 diff --git a/Assets/Material/material_0283/ov_wood_grain_e_01_normal.png b/Assets/Material/material_0283/ov_wood_grain_e_01_normal.png new file mode 100644 index 0000000000000000000000000000000000000000..17bf2d11d90e47e3b8d1394e000cce6bcf70ac66 --- /dev/null +++ b/Assets/Material/material_0283/ov_wood_grain_e_01_normal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33dfa3d86ddb92c469cd966fa00c08848f735580f85bbc326d2b5c9e878882e0 +size 20985998 diff --git a/Assets/Material/material_0283/ov_wood_grain_e_01_orm.png b/Assets/Material/material_0283/ov_wood_grain_e_01_orm.png new file mode 100644 index 0000000000000000000000000000000000000000..1396089f2f41372a9524072fe572cc1d454e2f7b --- /dev/null +++ b/Assets/Material/material_0283/ov_wood_grain_e_01_orm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8061c3ca9bcb32dc8dd4fcc7d2f0311c53753d502c75209b4185d29976922a6 +size 8553330 diff --git a/Assets/Material/material_0289/carpet_rough_woven_diff.jpg b/Assets/Material/material_0289/carpet_rough_woven_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4be1cef100faa44d3fa7dc277b60bc8782b3eec7 --- /dev/null +++ b/Assets/Material/material_0289/carpet_rough_woven_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5735c46226b35e5f0aeed778c0c483f5b1e8899d7e4f2b31e168611e15c4339f +size 2250464 diff --git a/Assets/Material/material_0289/carpet_rough_woven_multi_R_rough_G_ao_B_vari.jpg b/Assets/Material/material_0289/carpet_rough_woven_multi_R_rough_G_ao_B_vari.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9c8cd2bdf0ee79d9194c36f02536373a92ce9969 --- /dev/null +++ b/Assets/Material/material_0289/carpet_rough_woven_multi_R_rough_G_ao_B_vari.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1def2bcbe3f9c45a513eda1417b68fe76c0e393b9820dc18f84a97afed9893b6 +size 6302294 diff --git a/Assets/Material/material_0289/carpet_rough_woven_norm.jpg b/Assets/Material/material_0289/carpet_rough_woven_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..597a598058b6c753fde0e73093cfe93648df5e30 --- /dev/null +++ b/Assets/Material/material_0289/carpet_rough_woven_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11b49c509ed177d101e2a50cfc677578464d4818dc6b2745e01bb881fc50adb6 +size 4368264 diff --git a/Assets/Material/material_0292/diamond_R_id_G_offs_B_color.png b/Assets/Material/material_0292/diamond_R_id_G_offs_B_color.png new file mode 100644 index 0000000000000000000000000000000000000000..aa182e4fc1605cff1bd24d4f1ead13bef2781b52 --- /dev/null +++ b/Assets/Material/material_0292/diamond_R_id_G_offs_B_color.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26f8d5836e2653567b567cd755ac22a866e137b3f1241ad109112701dee159fa +size 9322 diff --git a/Assets/Material/material_0292/diamond_multi_R_height_G_edgefade_B_ao.jpg b/Assets/Material/material_0292/diamond_multi_R_height_G_edgefade_B_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..23aa4c978131aea7f53b7a2b549742483a1da97e --- /dev/null +++ b/Assets/Material/material_0292/diamond_multi_R_height_G_edgefade_B_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a172af84077b15d340788f0b7778fb78ceb43167bfd55d50d0c63e90fae58375 +size 1324396 diff --git a/Assets/Material/material_0292/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg b/Assets/Material/material_0292/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d06e52b5a71f876dd991ee9e31da1cc4351aaabc --- /dev/null +++ b/Assets/Material/material_0292/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba8e6b9eecbed2c1814167afb8e3a893524332b776da6f822043f75ae08acd4c +size 4231676 diff --git a/Assets/Material/material_0292/diamond_multi_R_rough_G_thickness_B_drops.jpg b/Assets/Material/material_0292/diamond_multi_R_rough_G_thickness_B_drops.jpg new file mode 100644 index 0000000000000000000000000000000000000000..61f3b530fe1d00b792bb91195d718acdab1d4982 --- /dev/null +++ b/Assets/Material/material_0292/diamond_multi_R_rough_G_thickness_B_drops.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e21b9af4d88920cb9e75892473bab0906d79f091cad7153fb2e2d7c2783be416 +size 6882962 diff --git a/Assets/Material/material_0292/diamond_norm.jpg b/Assets/Material/material_0292/diamond_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ac4b500e53df83559ab9b1f6ae92c9b0fef43b89 --- /dev/null +++ b/Assets/Material/material_0292/diamond_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29dd665471d9588d2cfbd87acb96d46852317486cd4d3c318f7dae28fb890a9a +size 866744 diff --git a/Assets/Material/material_0292/mortar_diff.jpg b/Assets/Material/material_0292/mortar_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..217c8b38b3dfae5abbe3bef2911d40a736fa1ed3 --- /dev/null +++ b/Assets/Material/material_0292/mortar_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ba01f0c53f3ab271c4765611a65cf2bd72c4c7e273bb7e7ab1b64023c991d28 +size 1973915 diff --git a/Assets/Material/material_0292/mortar_norm.jpg b/Assets/Material/material_0292/mortar_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0c65aff8e016ed23e3f3be71a1a098b24bda1434 --- /dev/null +++ b/Assets/Material/material_0292/mortar_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a51e470390be20256a8859e6b87b2c32eca24bf79f9685fb57f65ff89d5fb2c +size 4323469 diff --git a/Assets/Material/material_0298/Ceramic_Tiles_Glazed_Square.mdl b/Assets/Material/material_0298/Ceramic_Tiles_Glazed_Square.mdl new file mode 100644 index 0000000000000000000000000000000000000000..35925282dfb03eaa8ddc353b14c949d80f073de9 --- /dev/null +++ b/Assets/Material/material_0298/Ceramic_Tiles_Glazed_Square.mdl @@ -0,0 +1,2589 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA’s Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.6; +import ::base::*; +import ::state::*; +import ::math::*; +import ::anno::*; +import ::tex::*; +import ::df::*; +import ::nvidia::core_definitions::*; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +// Returns the normal n in tangent space, given n is in internal space. +float3 transform_internal_to_tangent(float3 n) +[[ + anno::hidden() +]] +{ + return + n.x* float3(state::texture_tangent_u(0).x,state::texture_tangent_v(0).x,state::normal().x)+ + n.y* float3(state::texture_tangent_u(0).y,state::texture_tangent_v(0).y,state::normal().y)+ + n.z* float3(state::texture_tangent_u(0).z,state::texture_tangent_v(0).z,state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +[[ + anno::hidden() +]] +{ + return state::texture_tangent_u(0) * n.x + + state::texture_tangent_v(0) * n.y + + state::normal() * n.z ; +} + +// https://nullprogram.com/blog/2018/07/31/ +//bias: 0.17353355999581582 ( very probably the best of its kind ) +// NOTE: To turn this back to a float, one must divide the value by 4294967296.f +// which corresponds to 0xffffffff, however MDL seems to turn this into -1. +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +float2 rnd22(int2 p, int seed = 0) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + seed + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + + +float3 rgb2srgb(float3 val) [[ anno::unused() ]] { + return ::math::pow( ::math::max(val, float3(0.f)), float3(1./2.2) ); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float2 texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0, + int seed = 0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) / texture_scale; + float Z = patch_size; // patch scale inside example texture + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I, seed))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1), seed))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0), seed))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1), seed))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0), seed))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1), seed))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +struct ceramic_tiles_return { + color diffuse; + float dirt; + float tiles_isotropic_rough_squared; + float glazing_roughness; + float3 normal; + float4 randvals; + ::base::texture_coordinate_info tiles_uvw; +}; + +ceramic_tiles_return Ceramic_Tiles_Glazed_Square_Generator( + + // Ceramic textures + // *** MAPS *** + uniform texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure // R - Diffuse color mix noise 1 + = texture_2d() [[ // G - finish_roughness + ::anno::description("Tiles texture that contains the textures " // B - Craquelure + "for diffuse color mixing, the roughness and the craquelure."), + ::anno::display_name("Tiles Noise1 Roughness Craquelure"), + ::anno::in_group("Textures"), + ::anno::ui_order(1) + ]], + uniform texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops // R - Diffuse color mix noise 2 + = texture_2d()[[ // G - Glazing Thickness + ::anno::description("Tiles texture that contains the textures " // B - Drops (roughness) + "for diffuse color mixing, glazing thickness and drops."), + ::anno::display_name("Tiles Noise2 Thickness Drops"), + ::anno::in_group("Textures"), + ::anno::ui_order(2) + ]], + + uniform texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao // R - Height + = texture_2d() [[ // B - AO + ::anno::description("Tiles texture that contains the textures " // G - Edgefade (diffuse) + "for the tiles height, the edge fade and AO."), + ::anno::display_name("Tiles Height Edgefade AO"), + ::anno::in_group("Textures"), + ::anno::ui_order(3) + ]], + + uniform texture_2d tex_lin_tiles_norm = texture_2d() // Normal texture for the tiles + [[ + ::anno::description("The normal texture to be used for the ceramic tiles."), + ::anno::display_name("Tiles Normal"), + ::anno::in_group("Textures"), + ::anno::ui_order(4) + ]], + // uniform texture_2d tex_lin_orange_peel_norm = texture_2d(), // Orange Peel Texture + + // Grout + uniform texture_2d tex_srgb_grout_diffuse_tex = texture_2d() // Diffuse Grout texture + [[ + ::anno::description("The diffuse texture for the grout."), + ::anno::display_name("Grout Diffuse"), + ::anno::in_group("Textures"), + ::anno::ui_order(5) + ]], + uniform texture_2d tex_lin_grout_normal = texture_2d() // texture with normal for the grout + [[ + ::anno::description("The normal texture for the grout."), + ::anno::display_name("Grout Normal"), + ::anno::in_group("Textures"), + ::anno::ui_order(6) + ]], + + // OTHER TEXTURE REQUIRED + // OPTIONAL: Diffuse texture for the ceramix underneath the glazing. Probably not very visible + + color tiles_color_1 = color(0.6f) + [[ + ::anno::description("Mixing color 1 for the ceramic tiles."), + ::anno::display_name("Tiles Color 1"), + ::anno::in_group("Appearance"), + ::anno::ui_order(7) + ]], + color tiles_color_2 = color(0.7f) + [[ + ::anno::description("Mixing color 2 for the ceramic tiles."), + ::anno::display_name("Tiles Color 2"), + ::anno::in_group("Appearance"), + ::anno::ui_order(8) + ]], + color tiles_color_3 = color(0.8f) + [[ + ::anno::description("Mixing color 3 for the tiles."), + ::anno::display_name("Tiles Color 3"), + ::anno::in_group("Appearance"), + ::anno::ui_order(9) + ]], + float tiles_random_brightness = 0.0f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(10) + ]], + int tiles_random_seed = 0 + [[ + ::anno::description("Choose a different seed number to obtain a different randomization pattern."), + ::anno::display_name("Tiles Random Seed"), + ::anno::in_group("Tiles"), + ::anno::ui_order(11) + ]], + + uniform float tiles_bump_strength = 1.0f + [[ + ::anno::description("Adjusts the strength of the tiles bump map."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(12) + ]], + float tiles_random_slope_orientation = 0.03f + [[ + ::anno::description("When increasing this value, tiles are slanted in random directions. " + "This breaks up the even look and gives the appearance that the tiles work was done by hand."), + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::hard_range(0.0f, 5.0f), + ::anno::in_group("Tiles"), + ::anno::ui_order(13) + ]], + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Global rotation of the texture lookup for the tiles textures in degrees."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::soft_range(-360.0f, 360.0f), + ::anno::in_group("Tiles"), + ::anno::ui_order(15) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Random rotation of the textures for the tiles in degrees."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.0f, 360.0f), + ::anno::in_group("Tiles"), + ::anno::ui_order(16) + ]], + float tiles_scale = 1.0f + [[ + ::anno::description("Scales the texture in the tiles."), + ::anno::display_name("Tiles Texture Scale"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.0f, 2.0f), + ::anno::ui_order(17) + ]], + float tiles_random_scale = 0.0f + [[ + ::anno::description("Adds random variation to the scaling of the texture lookup for the tiles."), + ::anno::display_name("Tiles Random Texture Scale"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::in_group("Tiles"), + ::anno::ui_order(18) + ]], + + float glazing_varying_thickness_weight = 0.0f + [[ + ::anno::description("Adds a varying thickness to the glazing which makes the underlying " + "ceramic color shine through."), + ::anno::display_name("Glazing Varying Thickness Weight"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Glazing"), + ::anno::ui_order(19) + ]], + float glazing_edgefade_weight = 0.0f + [[ + ::anno::description("Adds a fading effect so that the glazing is thinner at the edges " + "of the tiles. This revelas the ceramic color which will begin to shine through."), + ::anno::display_name("Glazing Edgefade Weight"), + ::anno::in_group("Glazing"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(20) + ]], + float glazing_edgefade_randomness = 0.0f + [[ + ::anno::description("Adds Randomness to the edgefade effect, so that tiles have varying edgefading effect."), + ::anno::display_name("Glazing Edgefade Randomness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Glazing"), + ::anno::ui_order(10) + ]], + float glazing_craquelure_weight = 0.0f + [[ + ::anno::description("Adds craquelure to the tiles to give them a more antique appearance."), + ::anno::display_name("Glazing Craquelure Weight"), + ::anno::in_group("Glazing"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(21) + ]], + uniform float glazing_orange_peel_bump = 1.0f + [[ + ::anno::description("Adds an unevenness to the glazing so that it appears more natural."), + ::anno::display_name("Glazing Orange Peel Bump"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::hard_range(0.0f, 3.0f), + ::anno::in_group("Glazing"), + ::anno::ui_order(22) + ]], + uniform float glazing_orangepeel_size = 1.0f + [[ + ::anno::description("Adjusts the size of the orangepeel on the glazing."), + ::anno::display_name("Glazing Orange Peel Size"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::in_group("Glazing"), + ::anno::ui_order(23) + ]], + uniform int glazing_orangepeel_noise_levels = 3 + [[ + ::anno::description("A higher number of levels makes the glazing layer to appear noisier " + "while a low level gives the glazing a realtively smooth appearance."), + ::anno::display_name("Glazing Orange Peel Noise Levels"), + ::anno::hard_range(0, 6), + ::anno::in_group("Glazing"), + ::anno::ui_order(24) + ]], + uniform float3 glazing_orangepeel_distortion = float3(0.0f) + [[ + ::anno::description("An optional input to add distortion to the glazing orange peel."), + ::anno::display_name("Glazing Orange Peel Distortion"), + ::anno::in_group("Glazing"), + ::anno::ui_order(25) + ]], + + // Roughness + float tiles_roughness = 0.04f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(26) + ]], + float tiles_roughness_range = 0.5f + [[ + ::anno::description("The amount how much the roughness is varying around its base roughness value."), + ::anno::display_name("Tiles Roughness Range"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(27) + ]], + float drops_amount = 0.5f + [[ + ::anno::description("Adds residue of dried drops on the tiles which can be seen in the specular highlight."), + ::anno::display_name("Drops Amount"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(28) + ]], + float grout_brightness = 0.5f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float grout_roughness = 0.8f + [[ + ::anno::description("The roughness of the grout."), + ::anno::display_name("Grout Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + + float grout_height = 0.1f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float grout_softness = 0.1f + [[ + ::anno::description("The softness of the transition between the grout and the tiles."), + ::anno::display_name("Grout Transition Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float grout_bump_strength = 1.0f + [[ + ::anno::description("The strength of the grout bumpmap."), + ::anno::display_name("Grout Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float grout_scale = 1.0f + [[ + ::anno::description("Scales the texture lookup for the grout independently from the tiles."), + ::anno::display_name("Grout Scale"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 2.f) + ]], + float ao_amount = 0.5f + [[ + ::anno::description("The amount of ambient occlusion to convey more depth of grout. Used for artistical tweaking."), + ::anno::display_name("Ambient Occlusion Amount"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotation angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(-360.f, 360.f) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 + [[ + ::anno::description("The UV texture space to be used."), + ::anno::display_name("Texture Space"), + ::anno::in_group("Advanced"), + ::anno::ui_order(10) + ]] +) +[[ + ::anno::description("Glazed Ceramic Tiles generator. This function should be hidden as it has all of its " + "parameters exposed. Expose in the material that it is generated with just the parameters that are needed " + "for easy tweaking."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Ceramic Tiles Generator Function"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Glazed_Square.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= 0.625; + color ceramic_color = color(1.0f); + ::base::texture_coordinate_info base_uv = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + ::base::texture_coordinate_info grout_uv = ::base::texture_coordinate_info( + position: base_uv.position / grout_scale, + tangent_u: base_uv.tangent_u, + tangent_v: base_uv.tangent_v + + ); + + //float2 tile_id_uv = float2(base_uv.position.x, base_uv.position.y)*10.0f; + +// --------------------------- Rand Tiles Routine ------------------------------------------------------- + + // rand_tiles_return rand_tiles_ret = rand_tiles( + // tex_lin_tiles_id_offset_color_tex: tex_lin_tiles_id_offset_color_tex, + // base_uv: base_uv, + // texture_space: uv_space_index, + // scale: scale, + // tiles_rotate: tiles_rotate, + // tiles_random_rotation: tiles_random_rotation, + // tiles_scale: tiles_scale, + // tiles_random_scale: tiles_random_scale + // ); + + // 1. Get UVs for tex_lin_tiles_id_offset_color_tex lookup plus the according cell indices + // 2. Perform lookup, correct tiles borders and generate the random values for the tiles + // 3. Use random values to generate random values for the randomized UVs + // - random scale (1 floats) + // - random rotation (1 float) + // - random offset (2 floats) + // - random brightness (1 float) + // 4. Do the random UV generation using 'vmat_transform'-function + + int rand_val_1, rand_val_2, rand_val_3, rand_val_4, rand_val_5, rand_val_6; + float rnd1, rnd2, rnd3, rnd4, rnd5, rnd6; + + // The 10x scaling factor is to match the repetition of the tiles in the textures + int2 cell_id = int2(int(::math::floor(base_uv.position.x*10.0)), int(::math::floor(base_uv.position.y*10.0))); + + rand_val_1 = lowbias32(tiles_random_seed + lowbias32(cell_id.x + lowbias32(cell_id.y))); + rand_val_2 = lowbias32(rand_val_1); + rand_val_3 = lowbias32(rand_val_2); + rand_val_4 = lowbias32(rand_val_3); + rand_val_5 = lowbias32(rand_val_4); + rand_val_6 = lowbias32(rand_val_5); + + rnd1 = uint2float(rand_val_1)/4294967296.f; + rnd2 = uint2float(rand_val_2)/4294967296.f; + rnd3 = uint2float(rand_val_3)/4294967296.f; + rnd4 = uint2float(rand_val_4)/4294967296.f; + rnd5 = uint2float(rand_val_5)/4294967296.f; + rnd6 = uint2float(rand_val_6)/4294967296.f; + + // Generate 2 different sets of lookups. Re-Using random numbers between functions at different positions. + // Hoping that this little save does not leave an impression on the eye + ::base::texture_coordinate_info tiles_lookup_uvw_1 = + vmat_transform( + translation:texture_translate + (float2(rnd1, rnd2)) * 17.77, + rotation: texture_rotate + (tiles_rotate + (rnd3 - 0.5f) * tiles_random_rotation), + scaling: texture_scale * (float2(tiles_scale) + tiles_scale* float2(rnd4) * tiles_random_scale), + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + +// ---------------------------------------------------------------------------------- + color tiles_diff = color(1.0f, 0.0, 0.0f); + color grout_diff_lookup = color(0.5f, 1.5f, 0.5f); + + // Lookup for Edgefade and tiles height, using the non-shifted original UV coordinates + float3 R_height_G_edgefade_B_ao = ::tex::lookup_float3( + tex: tex_tiles_multi_R_height_G_edgefade_B_ao, + coord: float2(base_uv.position.x, base_uv.position.y) + ); + + // Lookup for Noise 1, Noise 2 and Craquelure + float3 R_noise1_G_noise2_B_craquelure = ::tex::lookup_float3( + tex: tex_tiles_multi_R_noise1_G_noise2_B_craquelure, + coord: float2(tiles_lookup_uvw_1.position.x, tiles_lookup_uvw_1.position.y) + ); + + // Lookup the Finish Roughness, Glazing Thickness and Drops + // float3 R_rough_G_thickness_B_drops = ::tex::lookup_float3( + // tex: tex_tiles_multi_R_rough_G_thickness_B_drops, + // coord: float2(tiles_lookup_uvw_2.position.x, tiles_lookup_uvw_2.position.y) + // ); + + + float3 R_rough_G_thickness_B_drops = nonrepeat_lookup( + texture: tex_tiles_multi_R_rough_G_thickness_B_drops, + uvw: base_uv, + average_color: float3(0.469f, 0.327f, 0.033f), + texture_scale: texture_scale, + patch_size: 6.0, + seed: tiles_random_seed + ); + + float grout_mask = ::math::smoothstep(grout_height, grout_height + grout_softness, R_height_G_edgefade_B_ao.x); + + if (grout_mask < 0.999f) + { + // Grout Diffuse + grout_diff_lookup = ::base::file_texture( + texture: tex_srgb_grout_diffuse_tex, + uvw: grout_uv).tint; + grout_diff_lookup = ::nvidia::core_definitions::blend_colors( + color_1: grout_diff_lookup, + color_2: color(grout_brightness), + mode: ::base::color_layer_overlay, + weight: 1.0f).tint; + } + if (grout_mask >= 0.001f) + { + // Compositing the diffuse color + ::base::color_layer layer_1 = ::base::color_layer( + layer_color: tiles_color_2, + weight: R_noise1_G_noise2_B_craquelure.x, + mode: ::base::color_layer_blend + ); + // Color 3 + ::base::color_layer layer_2 = ::base::color_layer( + layer_color: tiles_color_3, + weight: R_noise1_G_noise2_B_craquelure.y, + mode: ::base::color_layer_blend + ); + // Varying brightness + ::base::color_layer layer_3 = ::base::color_layer( + layer_color: color(rnd6), + weight: tiles_random_brightness, + mode: ::base::color_layer_overlay + ); + // Varying glazing thickness + ::base::color_layer layer_4 = ::base::color_layer( + layer_color: ceramic_color, + weight: R_rough_G_thickness_B_drops.y * glazing_varying_thickness_weight * .15f, + mode: ::base::color_layer_blend + ); + // Edge Fade + ::base::color_layer layer_5 = ::base::color_layer( + layer_color: ceramic_color, + weight: glazing_edgefade_weight * (R_height_G_edgefade_B_ao.y + (0.5 - rnd3) * glazing_edgefade_randomness), + mode: ::base::color_layer_blend + ); + // Craquelure + ::base::color_layer layer_6 = ::base::color_layer( + layer_color: color(::math::pow(R_noise1_G_noise2_B_craquelure.z, 2.2f)), + weight: glazing_craquelure_weight, + mode: ::base::color_layer_overlay + ); + + ::base::color_layer[] tile_layers = ::base::color_layer[]( + layer_1, layer_2, layer_3, layer_4, layer_5, layer_6 + ); + + tiles_diff = ::base::blend_color_layers( + layers: tile_layers, + base: tiles_color_1 + ).tint; + } + + ::base::texture_return tiles_diff_final = ::nvidia::core_definitions::blend_colors( + color_1: grout_diff_lookup, + color_2: tiles_diff, + mode: ::nvidia::core_definitions::color_layer_blend, + weight: grout_mask + ); + + tiles_diff_final = (ao_amount > 0.0) ? ::nvidia::core_definitions::blend_colors( + color_1: tiles_diff_final.tint, + color_2: color(R_height_G_edgefade_B_ao.z), + mode: ::nvidia::core_definitions::color_layer_multiply, + weight: (1.0f - grout_height) * ao_amount + ) : tiles_diff_final; + + +// ******** COAT Roughness ******** + + float glazing_roughness = histogram_range(R_rough_G_thickness_B_drops.x, tiles_roughness_range, tiles_roughness); + glazing_roughness += R_rough_G_thickness_B_drops.z * drops_amount; + glazing_roughness = ::math::lerp(grout_roughness, glazing_roughness, grout_mask); + + +// ******** NORMALS ******** + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_norm, + factor: tiles_bump_strength, + uvw: base_uv + ); + + // Grout Normal + float3 grout_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_grout_normal, + factor: grout_bump_strength, + uvw: grout_uv + ); + + float3 orange_peel_normal = ::base::perlin_noise_bump_texture( + uvw: base_uv, + factor: glazing_orange_peel_bump * .2f, + size: glazing_orangepeel_size * ::state::scene_units_per_meter(), + apply_marble: false, + apply_dent: false, + noise_phase: 0.0f, + noise_levels: glazing_orangepeel_noise_levels, + absolute_noise: false, + ridged_noise: false, + noise_distortion: glazing_orangepeel_distortion, + noise_threshold_high: 1.0f, + noise_threshold_low: 0.0f, + noise_bands: 1.0f, + normal: ::state::normal() + ); + +// Randomized Tiles normals - This needs to be probably rotated with the normal of the uv-tiles + float slope_amount = 0.07 * tiles_random_slope_orientation; + float3 slope = ::math::normalize( + ::state::texture_tangent_u(0) * (rnd5 - 0.5) * slope_amount + + ::state::texture_tangent_v(0) * (rnd6 - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(slope); + float3 tiles_normal_t = transform_internal_to_tangent(tiles_normal); + float3 orange_peel_normal_t = transform_internal_to_tangent(orange_peel_normal); + + // 1st detail normal + n_t=n_t + float3(0.,0.,1.); + tiles_normal_t = tiles_normal_t * float3(-1.,-1.,1.); + float3 n = n_t*math::dot(n_t, tiles_normal_t)/n_t.z - tiles_normal_t; + + // 2nd detail normal + n_t = n + float3(0.,0.,1.); + orange_peel_normal_t = orange_peel_normal_t * float3(-1.,-1.,1.); + n = n_t*math::dot(n_t, orange_peel_normal_t)/n_t.z - orange_peel_normal_t; + + float3 normal_final = ::math::normalize(transform_tangent_to_internal(n)); + normal_final = ::math::lerp(grout_normal, normal_final, grout_mask); + + return ceramic_tiles_return( + diffuse: tiles_diff_final.tint, + dirt: R_rough_G_thickness_B_drops.x, + tiles_isotropic_rough_squared: 0.2, + glazing_roughness: glazing_roughness * glazing_roughness, + normal: normal_final, + randvals: float4(rnd1, rnd2, rnd3, rnd4), + tiles_uvw: tiles_lookup_uvw_1 + ); +} + + +export material Ceramic_Tiles_Glazed_Square( + +// Main Tweaks + int tiles_random_seed = 0 + [[ + ::anno::description("Choose a different seed number to obtain a different randomization pattern."), + ::anno::display_name("Tiles Random Seed"), + ::anno::in_group("Main"), + ::anno::ui_order(0) + ]], + color tiles_color_1 = color(0.014444f, 0.034340f, 0.215861f) + [[ + ::anno::description("Mixing color 1 for the ceramic tiles."), + ::anno::display_name("Tiles Color 1"), + ::anno::in_group("Main"), + ::anno::ui_order(1) + ]], + color tiles_color_2 = color(0.017642f, 0.039546f, 0.219526f) + [[ + ::anno::description("Mixing color 2 for the ceramic tiles."), + ::anno::display_name("Tiles Color 2"), + ::anno::in_group("Main"), + ::anno::ui_order(2) + ]], + color tiles_color_3 = color(0.014444f, 0.018500f, 0.219526f) + [[ + ::anno::description("Mixing color 3 for the tiles."), + ::anno::display_name("Tiles Color 3"), + ::anno::in_group("Main"), + ::anno::ui_order(3) + ]], + float tiles_random_brightness = 0.015f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::in_group("Main"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(4) + ]], + float tiles_roughness = 0.039f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::in_group("Main"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float tiles_roughness_range = 0.003f + [[ + ::anno::description("The amount how much the roughness is varying around its base roughness value."), + ::anno::display_name("Tiles Roughness Range"), + ::anno::in_group("Main"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(6) + ]], + float tiles_random_slope_orientation = 0.05f + [[ + ::anno::description("When increasing this value, tiles are slanted in random directions. " + "This breaks up the even look and gives the appearance that the tiles work was done by hand."), + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::hard_range(0.0f, 5.0f), + ::anno::in_group("Main"), + ::anno::ui_order(7) + ]], + uniform float glazing_orange_peel_bump = 0.03f + [[ + ::anno::description("Adds an unevenness to the glazing so that it appears more natural."), + ::anno::display_name("Glazing Orange Peel Bump"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::hard_range(0.0f, 5.0f), + ::anno::in_group("Main"), + ::anno::ui_order(8) + ]], + float glazing_edgefade_weight = 0.0f + [[ + ::anno::description("Adds a fading effect so that the glazing is thinner at the edges " + "of the tiles. This revelas the ceramic color which will begin to shine through."), + ::anno::display_name("Glazing Edgefade Weight"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Main"), + ::anno::ui_order(9) + ]], + float glazing_edgefade_randomness = 0.0f + [[ + ::anno::description("Adds Randomness to the edgefade effect, so that tiles have varying edgefading effect."), + ::anno::display_name("Glazing Edgefade Randomness"), + ::anno::enable_if("glazing_edgefade_weight > 0.0f"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Main"), + ::anno::ui_order(10) + ]], + float glazing_craquelure_weight = 0.0f + [[ + ::anno::description("Adds craquelure to the tiles to give them a more antique appearance."), + ::anno::display_name("Glazing Craquelure Weight"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Main"), + ::anno::ui_order(11) + ]], + float drops_amount = 0.0f + [[ + ::anno::description("Adds residue of dried drops on the tiles which can be seen in the specular highlight."), + ::anno::display_name("Drops Amount"), + ::anno::in_group("Main"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(12) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Main"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(13) + ]], + float grout_height = 0.05f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Main"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(14) + ]], + uniform float grout_scale = 1.0f + [[ + ::anno::description("Scales the texture lookup for the grout independently from the tiles."), + ::anno::display_name("Grout Scale"), + ::anno::in_group("Advanced", "Grout"), + ::anno::soft_range(0.f, 2.f), + ::anno::ui_order(15) + ]], + uniform float tiles_bump_strength = 1.0f + [[ + ::anno::description("Adjusts the strength of the tiles bump map."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Main"), + ::anno::ui_order(16) + ]], + color dirt_color = color(0.0582f, 0.037f, 0.0265f) + [[ + ::anno::description("Sets the color of the dirt layer."), + ::anno::display_name("Dirt Layer Color"), + ::anno::in_group("Main"), + ::anno::ui_order(17) + ]], + float dirt_weight = 0.0f + [[ + ::anno::description("The weight of the dirt layer."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Main"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(19) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(-360.f, 360.f), + ::anno::ui_order(20) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform"), + ::anno::ui_order(21) + ]], + + + + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Globally rotates the texture lookup for the tiles textures in degrees."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(22) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Randomly rotates the textures for the tiles in degrees."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(23) + ]], + float tiles_scale = 1.0f + [[ + ::anno::description("Scales the texture in the tiles."), + ::anno::display_name("Tiles Texture Scale"), + ::anno::soft_range(0.0f, 2.0f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(24) + ]], + float tiles_random_scale = 0.0f + [[ + ::anno::description("Adds random variation to the scaling of the texture lookup for the tiles."), + ::anno::display_name("Tiles Random Texture Scale"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(25) + ]], + + float glazing_varying_thickness_weight = 0.00f + [[ + ::anno::description("Adds a varying thickness to the glazing which makes the underlying " + "ceramic color shine through."), + ::anno::display_name("Glazing Varying Thickness Weight"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Advanced", "Glazing"), + ::anno::ui_order(26) + ]], + uniform float glazing_orangepeel_size = 0.05f + [[ + ::anno::description("Adjusts the size of the orangepeel on the glazing."), + ::anno::display_name("Glazing Orange Peel Size"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::in_group("Advanced", "Glazing"), + ::anno::ui_order(27) + ]], + uniform int glazing_orangepeel_noise_levels = 4 + [[ + ::anno::description("A higher number of levels makes the glazing layer to appear noisier " + "while a low level gives the glazing a realtively smooth appearance."), + ::anno::display_name("Glazing Orange Peel Noise Levels"), + ::anno::soft_range(0, 6), + ::anno::in_group("Advanced", "Glazing"), + ::anno::ui_order(28) + ]], + + float grout_roughness = 0.8f + [[ + ::anno::description("The roughness of the grout."), + ::anno::display_name("Grout Roughness"), + ::anno::in_group("Advanced", "Grout"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(29) + ]], + float grout_softness = 0.05f + [[ + ::anno::description("The softness of the transition between the grout and the tiles."), + ::anno::display_name("Grout Transition Roughness"), + ::anno::in_group("Advanced", "Grout"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(30) + ]], + uniform float grout_bump_strength = 1.0f + [[ + ::anno::description("The strength of the grout bumpmap."), + ::anno::display_name("Grout Bump Strength"), + ::anno::in_group("Advanced", "Grout"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(31) + ]], + float ao_amount = 0.5f + [[ + ::anno::description("The amount of ambient occlusion to convey more depth of grout. Used for artistical tweaking."), + ::anno::display_name("Ambient Occlusion Amount"), + ::anno::in_group("Advanced"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(32) + ]], + uniform int uv_space_index = 0 + [[ + ::anno::description("The UV texture space to be used."), + ::anno::display_name("Texture Space"), + ::anno::in_group("Advanced"), + ::anno::ui_order(33) + ]] + +) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Glazed_Square.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_norm = texture_2d("./square_tiles_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./square_tiles_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./tiles_multi_R_noise1_G_noise2_B_craquelure.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_Square_Generator( + // tex_lin_tiles_id_offset_color_tex: tex_lin_tiles_id_offset_color_tex, + tex_tiles_multi_R_noise1_G_noise2_B_craquelure: tex_tiles_multi_R_noise1_G_noise2_B_craquelure, + tex_tiles_multi_R_rough_G_thickness_B_drops: tex_tiles_multi_R_rough_G_thickness_B_drops, + tex_tiles_multi_R_height_G_edgefade_B_ao: tex_tiles_multi_R_height_G_edgefade_B_ao, + tex_lin_tiles_norm: tex_lin_tiles_norm, + tex_srgb_grout_diffuse_tex: tex_srgb_grout_diffuse_tex, + tex_lin_grout_normal: tex_lin_grout_normal, + + tiles_random_seed: tiles_random_seed, + tiles_color_1: tiles_color_1, + tiles_color_2: tiles_color_2, + tiles_color_3: tiles_color_3, + tiles_random_brightness: tiles_random_brightness, + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + tiles_rotate: tiles_rotate, + tiles_random_rotation : tiles_random_rotation, + tiles_scale : tiles_scale, + tiles_random_scale: tiles_random_scale, + + glazing_varying_thickness_weight: glazing_varying_thickness_weight, + glazing_edgefade_weight: glazing_edgefade_weight, + glazing_edgefade_randomness: glazing_edgefade_randomness, + glazing_craquelure_weight: glazing_craquelure_weight, + glazing_orange_peel_bump: glazing_orange_peel_bump, + glazing_orangepeel_size: glazing_orangepeel_size, + glazing_orangepeel_noise_levels: glazing_orangepeel_noise_levels, + + tiles_roughness: tiles_roughness, + tiles_roughness_range: tiles_roughness_range, + drops_amount: drops_amount, + grout_roughness: grout_roughness, + + grout_brightness: grout_brightness, + grout_height: grout_height, + grout_softness: grout_softness, + grout_bump_strength: grout_bump_strength, + grout_scale: grout_scale, + ao_amount: ao_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + + uv_space_index: uv_space_index + ); + + bsdf diff = ::df::diffuse_reflection_bsdf( + tint: ret.diffuse + ); + + +} in material ( + surface : material_surface ( + scattering : + ::df::weighted_layer( + weight: dirt_weight * ret.dirt, + layer: ::df::diffuse_reflection_bsdf ( tint: dirt_color), + base: df::fresnel_layer ( + ior : 1.5, + layer : df::microfacet_ggx_smith_bsdf( + roughness_u: ret.glazing_roughness, + roughness_v: ret.glazing_roughness, + tint : color(1.), + mode : df::scatter_reflect), + base : diff + ) + ) + ), + geometry: material_geometry( + normal: ret.normal + ) +); + +export material Ceramic_Tiles_Square_Dark_Blue_New_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.014444f, 0.034340f, 0.215861f), + tiles_color_2: color(0.017642f, 0.039546f, 0.219526f), + tiles_color_3: color(0.014444f, 0.018500f, 0.219526f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.11f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Dark_Blue_Varied_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.014444f, 0.034340f, 0.215861f), + tiles_color_2: color(0.017642f, 0.039546f, 0.219526f), + tiles_color_3: color(0.014444f, 0.018500f, 0.219526f), + tiles_random_brightness: 1.0f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + + + + +export material Ceramic_Tiles_Square_Dark_Green_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Green_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.003677f, 0.051269f, 0.003347f), + tiles_color_2: color(0.051269f, 0.109462f, 0.049707f), + tiles_color_3: color(0.006995f, 0.027321f, 0.013702f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Dark_Green_New_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Green_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.003677f, 0.051269f, 0.003347f), + tiles_color_2: color(0.051269f, 0.109462f, 0.049707f), + tiles_color_3: color(0.006995f, 0.027321f, 0.013702f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Dark_Green_Varied_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Green Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Green_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.003677f, 0.051269f, 0.003347f), + tiles_color_2: color(0.051269f, 0.109462f, 0.049707f), + tiles_color_3: color(0.006995f, 0.027321f, 0.013702f), + tiles_random_brightness: 0.58f, + tiles_roughness: 0.04f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_3: color(0.651406f, 0.651406f, 0.651406f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_3: color(0.651406f, 0.651406f, 0.651406f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Square_White_Worn_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - White Worn"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_White_Worn_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "worn", "aged", "old", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.491021f, 0.491021f, 0.491021f), + tiles_color_2: color(0.651406f, 0.651406f, 0.564712f), + tiles_color_3: color(0.651406f, 0.651406f, 0.479320f), + tiles_random_brightness: 0.07f, + tiles_roughness: 0.51f, + tiles_roughness_range: 1.00f, + tiles_random_slope_orientation: 0.35f, + glazing_orange_peel_bump: 0.1f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.30f, + drops_amount: 0.93f, + grout_brightness: 0.12f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 + ); + + export material Ceramic_Tiles_Square_Antique_White(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed square tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 2, + tiles_color_1: color(0.603827f, 0.533276f, 0.473531f), + tiles_color_2: color(0.496933f, 0.445201f, 0.401978f), + tiles_color_3: color(0.571125f, 0.539479f, 0.462077f), + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.1f, + glazing_orange_peel_bump: 0.18f, + glazing_edgefade_weight: 0.17f, + glazing_edgefade_randomness: 0.50f, + glazing_craquelure_weight: 0.66f, + drops_amount: 0.20f, + grout_brightness: 0.09f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 360.0f, + tiles_scale: 1.00f, + tiles_random_scale: 0.25f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 1.00f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed square tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Antique_White_Dirty.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 3, + tiles_color_1: color(0.603827f, 0.533276f, 0.473531f), + tiles_color_2: color(0.496933f, 0.445201f, 0.401978f), + tiles_color_3: color(0.571125f, 0.539479f, 0.462077f), + tiles_random_brightness: 0.02f, + tiles_roughness: 0.5f, + tiles_roughness_range: 0.6f, + tiles_random_slope_orientation: 0.1f, + glazing_orange_peel_bump: 0.18f, + glazing_edgefade_weight: 0.17f, + glazing_edgefade_randomness: 0.50f, + glazing_craquelure_weight: 0.66f, + drops_amount: 0.20f, + grout_brightness: 0.09f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.6f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 360.0f, + tiles_scale: 1.00f, + tiles_random_scale: 0.25f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 1.00f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_2: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_3: color(0.009721f, 0.009721f, 0.009721f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 + ); + + +export material Ceramic_Tiles_Square_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_2: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_3: color(0.009721f, 0.009721f, 0.009721f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.05f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Black_Matte_Rough(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 17, + tiles_color_1: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_2: color(0.012983f, 0.012983f, 0.012983f), + tiles_color_3: color(0.009721f, 0.009721f, 0.009721f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.35f, + tiles_roughness_range: 0.12f, + tiles_random_slope_orientation: 0.04f, + glazing_orange_peel_bump: 0.5f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:6, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Dark_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.045186f, 0.042311f, 0.039546f), + tiles_color_2: color(0.051269f, 0.048172f, 0.045186f), + tiles_color_3: color(0.040915f, 0.038204f, 0.035601f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Dark_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Dark Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Dark_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.045186f, 0.042311f, 0.039546f), + tiles_color_2: color(0.051269f, 0.048172f, 0.045186f), + tiles_color_3: color(0.040915f, 0.038204f, 0.035601f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.05f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_2: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_3: color(0.187821f, 0.187821f, 0.187821f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_2: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_3: color(0.187821f, 0.187821f, 0.187821f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.05f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Gray_Matte_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Gray Matte Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Gray_Matte_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "matte", "gray", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_2: color(0.187821f, 0.187821f, 0.162029f), + tiles_color_3: color(0.187821f, 0.187821f, 0.187821f), + tiles_random_brightness: 0.81f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.05f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "mint", "green")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.230740f, 0.309469f, 0.165132f), + tiles_color_2: color(0.226966f, 0.304987f, 0.162029f), + tiles_color_3: color(0.223228f, 0.300544f, 0.158961f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Mint Green Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "mint", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.230740f, 0.309469f, 0.165132f), + tiles_color_2: color(0.226966f, 0.304987f, 0.162029f), + tiles_color_3: color(0.223228f, 0.300544f, 0.158961f), + tiles_random_brightness: 0.61f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.313989f, 0.361307f, 0.027321f), + tiles_color_2: color(0.309469f, 0.356400f, 0.027321f), + tiles_color_3: color(0.304987f, 0.351533f, 0.027321f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Lime Green Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "lime", "green", "random", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 8, + tiles_color_1: color(0.313989f, 0.361307f, 0.027321f), + tiles_color_2: color(0.309469f, 0.356400f, 0.027321f), + tiles_color_3: color(0.304987f, 0.351533f, 0.027321f), + tiles_random_brightness: 0.52f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.371238f, 0.033105f), + tiles_color_2: color(0.584078f, 0.366253f, 0.033105f), + tiles_color_3: color(0.577580f, 0.361307f, 0.033105f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Yellow Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.371238f, 0.033105f), + tiles_color_2: color(0.584078f, 0.366253f, 0.033105f), + tiles_color_3: color(0.577580f, 0.361307f, 0.033105f), + tiles_random_brightness: 0.45f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.029557f, 0.107023f, 0.135633f), + tiles_color_2: color(0.029557f, 0.104616f, 0.132868f), + tiles_color_3: color(0.028426f, 0.102242f, 0.130136f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Petrol Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.039546f, 0.152926f, 0.194618f), + tiles_color_2: color(0.038204f, 0.144128f, 0.181164f), + tiles_color_3: color(0.039546f, 0.149960f, 0.191202f), + tiles_random_brightness: 0.70f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.07f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Square_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.327778f, 0.021219f, 0.020289f), + tiles_color_2: color(0.327778f, 0.021219f, 0.017642f), + tiles_color_3: color(0.274677f, 0.018500f, 0.017642f), + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Square_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Red Random"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.327778f, 0.021219f, 0.020289f), + tiles_color_2: color(0.327778f, 0.021219f, 0.017642f), + tiles_color_3: color(0.274677f, 0.018500f, 0.017642f), + tiles_random_brightness: 0.55f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 + ); + + +export material Ceramic_Tiles_Square_Brown(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Tiles - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square.Ceramic_Tiles_Square_Brown.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "new", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square( + tiles_random_seed: 0, + tiles_color_1: color(0.078187f, 0.054480f, 0.038204f), + tiles_color_2: color(0.068478f, 0.048172f, 0.034340f), + tiles_color_3: color(0.049707f, 0.035601f, 0.025187f), + tiles_random_brightness: 0.0f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.15f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.05f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: 0.0f, + texture_rotate: 0.00f, + texture_scale: 1.00f, + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 1.00f, + tiles_random_scale: 0.00f, + glazing_varying_thickness_weight:0.00f, + glazing_orangepeel_size: 0.05f, + glazing_orangepeel_noise_levels:4, + grout_roughness: 0.8f, + grout_softness: 0.1f, + grout_bump_strength: 1.0f, + ao_amount: 0.5f, + uv_space_index: 0 + ); \ No newline at end of file diff --git a/Assets/Material/material_0300/mortar_diff.jpg b/Assets/Material/material_0300/mortar_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..217c8b38b3dfae5abbe3bef2911d40a736fa1ed3 --- /dev/null +++ b/Assets/Material/material_0300/mortar_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ba01f0c53f3ab271c4765611a65cf2bd72c4c7e273bb7e7ab1b64023c991d28 +size 1973915 diff --git a/Assets/Material/material_0300/mortar_norm.jpg b/Assets/Material/material_0300/mortar_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0c65aff8e016ed23e3f3be71a1a098b24bda1434 --- /dev/null +++ b/Assets/Material/material_0300/mortar_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a51e470390be20256a8859e6b87b2c32eca24bf79f9685fb57f65ff89d5fb2c +size 4323469 diff --git a/Assets/Material/material_0300/subway_R_id_G_offs_B_rotation.png b/Assets/Material/material_0300/subway_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..eb426f6789d33e9fb676512e8aaa2aef5bb39f27 --- /dev/null +++ b/Assets/Material/material_0300/subway_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b3e984bd49de42fe1c85e90c13200d25300a0f215bf6a6b6a977d461ef502dd +size 3598 diff --git a/Assets/Material/material_0300/subway_multi_R_height_G_edgefade_B_ao.jpg b/Assets/Material/material_0300/subway_multi_R_height_G_edgefade_B_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f4c4c422f7891264040eed26195caa28b19da7c6 --- /dev/null +++ b/Assets/Material/material_0300/subway_multi_R_height_G_edgefade_B_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b20a1bc983b8f55691332af81fd2e49030d6228d09af4ca32d5df49930071dc +size 3197836 diff --git a/Assets/Material/material_0300/subway_norm.jpg b/Assets/Material/material_0300/subway_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1f7d9b1d0295f22b93d68a501e4e4c6dc32d5eaf --- /dev/null +++ b/Assets/Material/material_0300/subway_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14e532a7af1a59177f8646dcd50814871ac16ac66954a1c189b2a1b5582d42f1 +size 1040901 diff --git a/Assets/Material/material_0300/tiles2_multi_R_noise1_G_noise2_B_craquelure.png b/Assets/Material/material_0300/tiles2_multi_R_noise1_G_noise2_B_craquelure.png new file mode 100644 index 0000000000000000000000000000000000000000..cc178dd2ba8c84a8cd5bed59b0e98a1bcdcb4bc9 --- /dev/null +++ b/Assets/Material/material_0300/tiles2_multi_R_noise1_G_noise2_B_craquelure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdc4febf25f6f36e18b25d69a9a0d06d1fff29cca5efc28f9f3f6bfaa39dbee0 +size 29457521 diff --git a/Assets/Material/material_0300/tiles_multi_R_rough_G_thickness_B_drops.jpg b/Assets/Material/material_0300/tiles_multi_R_rough_G_thickness_B_drops.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7071ccf60ebc0ba4a1dacd71ecb1c3d7ecb9b6ea --- /dev/null +++ b/Assets/Material/material_0300/tiles_multi_R_rough_G_thickness_B_drops.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10dbddb4d6b704222a03102fc75e8279bf8e037384eb043752109c504ad41f32 +size 4405716 diff --git a/Assets/Material/material_0302/Grog_Fired_Clay.mdl b/Assets/Material/material_0302/Grog_Fired_Clay.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fa5d961870063b7a5e6fbc3bf96c02bebdc71c2b --- /dev/null +++ b/Assets/Material/material_0302/Grog_Fired_Clay.mdl @@ -0,0 +1,446 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.4; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A fired clay material with an adjustable dirt layer."; + +float remap(float input, float low, float high) +{ + //return low + input * (high - low); + return ::math::lerp(low, high, input); +} + + + +float remap(float input, float low_1, float high_1, float low_2, float high_2) +{ + return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1); +} + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +float3 normalmap_normal( + uniform texture_2d texture, + float factor = 1.0, + ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info() +) +{ + float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal()); +} + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + + + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + +export material Grog_Fired_Clay( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float patch_size = 0.8f [[ + ::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."), + ::anno::display_name("Patch Size"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float diffuse_brightness = 0.5f [[ + ::anno::description("Adjusts the lightness of the material."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float roughness = 0.5f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt = 0.f [[ + ::anno::description("Adds dirt aggregations in the dimples of the wall."), + ::anno::display_name("Dirt"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float bump_strength = 1.f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float2 texture_translate = float2(0.381000012f, 0.73300004f) [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Rotate"), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(0.17f, 0.17f)), + ::anno::in_group("Transform") + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float radius_mm = 0.f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = true [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Use selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Fired Clay - New"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Grog_Fired_Clay.Grog_Fired_Clay.png"), + ::anno::key_words(string[]("clay", "infinite tiling", "new", "natural", "design", "rough", "bumped", "brown")) +]] + = + let { +material_surface mat_bsdf( + ::df::weighted_layer(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.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], 1.f, ::math::lerp(1.f, 0.583000004f, dirt)), ::df::custom_curve_layer(0.0199999996f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.605000019f, 0.781000018f, ::math::lerp(0.0500000007f, 0.649999976f, roughness), ::math::lerp(0.400000006f, 0.899999976f, roughness)), 0.f, 1.f) * ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.605000019f, 0.781000018f, ::math::lerp(0.0500000007f, 0.649999976f, roughness), ::math::lerp(0.400000006f, 0.899999976f, roughness)), 0.f, 1.f), ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.605000019f, 0.781000018f, ::math::lerp(0.0500000007f, 0.649999976f, roughness), ::math::lerp(0.400000006f, 0.899999976f, roughness)), 0.f, 1.f) * ::math::clamp(remap(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.605000019f, 0.781000018f, ::math::lerp(0.0500000007f, 0.649999976f, roughness), ::math::lerp(0.400000006f, 0.899999976f, roughness)), 0.f, 1.f), 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(color(0.050875999f, 0.0226240009f, 0.00489600003f), ::nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./fired_clay_fired_clay_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.68599999f, 0.549000025f, 0.458999991f), ::math::lerp(30.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./fired_clay_fired_clay_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::math::lerp(0.349999994f, 0.f, diffuse_brightness)).tint, ::base::color_layer_blend, remap(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.749000013f, 0.944999993f, 0.718999982f), ::math::lerp(30.f, 0.100000001f, patch_size), false) : ::base::file_texture(texture_2d("./fired_clay_multi_R_rough_G_ao_B_dirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.235000014f, ::math::lerp(0.400000006f, 0.75f, dirt)), 0.258000016f, 1.f)).tint, ::math::lerp(0.f, 0.564999998f, roughness), ""), bsdf(), infinite_tiling ? endless_normal(texture_2d("./fired_clay_fired_clay_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(30.f, 0.100000001f, patch_size)) : normalmap_normal(texture_2d("./fired_clay_fired_clay_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), infinite_tiling ? endless_normal(texture_2d("./fired_clay_fired_clay_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(30.f, 0.100000001f, patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(30.f, 0.100000001f, patch_size)) : normalmap_normal(texture_2d("./fired_clay_fired_clay_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), ::df::diffuse_reflection_bsdf(color(0.0331050009f, 0.0240330007f, 0.0201050006f), 0.654000044f, ""), ::state::normal()), + material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + material_geometry geom( + float3(0.f), + 1.f, + enable_round_corners ? ::state::rounded_corner_normal(radius_mm * 0.001f, across_materials, 1.f) : ::state::normal()); + + + } in + material( + thin_walled: false, + surface: mat_bsdf, + ior: tmp3, + geometry: geom); + + +export material Grog_Fired_Clay_Glaced(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Fired Clay - Glaced"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Grog_Fired_Clay.Grog_Fired_Clay_Glaced.png"), + ::anno::key_words(string[]("clay", "glazed", "infinite tiling", "natural", "design", "brown")) +]] = Grog_Fired_Clay( + infinite_tiling: true, + patch_size: 0.8f, + diffuse_brightness: 0.7f, + roughness: 0.0f, + dirt: 0.0f, + bump_strength: 0.25f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + + +export material Grog_Fired_Clay_Dirt(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Fired Clay - Dirt"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Grog_Fired_Clay.Grog_Fired_Clay_Dirt.png"), + ::anno::key_words(string[]("clay", "infinite tiling", "aged", "old", "dirty", "dirt", "natural", "design", "rough", "bumped", "brown")) +]] = Grog_Fired_Clay( + infinite_tiling: true, + patch_size: 0.8f, + diffuse_brightness: 0.5f, + roughness: 0.4f, + dirt: 1.0f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + + +export material Grog_Fired_Clay_Dried_Dirt(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Fired Clay - Dried Dirt"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Grog_Fired_Clay.Grog_Fired_Clay_Dried_Dirt.png"), + ::anno::key_words(string[]("clay", "infinite tiling", "aged", "old", "dirty", "dirt", "dry", "natural", "design", "rough", "bumped", "brown")) +]] = Grog_Fired_Clay( + infinite_tiling: true, + patch_size: 0.8f, + diffuse_brightness: 0.2f, + roughness: 0.85f, + dirt: 1.0f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); \ No newline at end of file diff --git a/Assets/Material/material_0309/precastconcrete_diff.png b/Assets/Material/material_0309/precastconcrete_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..b55a5d98cf9f9e019d476e590d43839fa7c2a63d --- /dev/null +++ b/Assets/Material/material_0309/precastconcrete_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bac81f3d1b2a872a249df7137cc4e852ccb4c459cba002b6a7360bcf87c3cca3 +size 7238964 diff --git a/Assets/Material/material_0309/precastconcrete_grunge_mask.png b/Assets/Material/material_0309/precastconcrete_grunge_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..3ccbd5346fac61d99ad1cf11fede5b52609e5c93 --- /dev/null +++ b/Assets/Material/material_0309/precastconcrete_grunge_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db9aca6ba0d02c659b79588b00034b46cafb4da66eaf572cdb100fd32627c30b +size 7990326 diff --git a/Assets/Material/material_0309/precastconcrete_norm.jpg b/Assets/Material/material_0309/precastconcrete_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..04662096e53d20f803508c5bd05edd3a8342620f --- /dev/null +++ b/Assets/Material/material_0309/precastconcrete_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1551798235a7c507fffbfc399cb7650a330031b4b189c7b0307590edbb91ca3 +size 5003204 diff --git a/Assets/Material/material_0309/precastconcrete_rough.png b/Assets/Material/material_0309/precastconcrete_rough.png new file mode 100644 index 0000000000000000000000000000000000000000..2f03992928146ba82b3f02e0c4449381415ac8c2 --- /dev/null +++ b/Assets/Material/material_0309/precastconcrete_rough.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03843cbedba4f328ae41259f9cd4dcc335ef7f91c1fb2e02ef49f0efb5b60c9b +size 7914960 diff --git a/Assets/Material/material_0310/concrete_rough_ORM.jpg b/Assets/Material/material_0310/concrete_rough_ORM.jpg new file mode 100644 index 0000000000000000000000000000000000000000..664d29ca2eebe627ca775189f2e859207cc0360b --- /dev/null +++ b/Assets/Material/material_0310/concrete_rough_ORM.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:216035e8875e2831b210929cab158d8ada4b38742c93132618713a679afd77b3 +size 2086875 diff --git a/Assets/Material/material_0310/concrete_rough_diff.jpg b/Assets/Material/material_0310/concrete_rough_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5dc807808b0677739844bcb00e9d2a9e509157dc --- /dev/null +++ b/Assets/Material/material_0310/concrete_rough_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8dfbe927ee90a92fb04f7e9a8b15039f7100caf52ff37324691e2a0150f1018a +size 1441663 diff --git a/Assets/Material/material_0310/concrete_rough_norm.jpg b/Assets/Material/material_0310/concrete_rough_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a41eb5dd357095cedf9035db4f2b5164a9940632 --- /dev/null +++ b/Assets/Material/material_0310/concrete_rough_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ed5304c68d7cd73a9c00d0feb705245f486846592fc8482b69989934aca555f +size 1381045 diff --git a/Assets/Material/material_0310/moss_diff.jpg b/Assets/Material/material_0310/moss_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b1e3f847eb41d6fbd122967df2c1063672eb14d3 --- /dev/null +++ b/Assets/Material/material_0310/moss_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f01800b456e31f6575e429a8eb9751d7a71fa0ee61d3e16effa9d7709babaf8 +size 990554 diff --git a/Assets/Material/material_0310/moss_multi_R_rough_G_ao_B_height.jpg b/Assets/Material/material_0310/moss_multi_R_rough_G_ao_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2ba8c6e860510f279dc3c682eda1ef9592a98745 --- /dev/null +++ b/Assets/Material/material_0310/moss_multi_R_rough_G_ao_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e0385935f7d40b4e34f09bd217e61dc5e00dfdd1f6894773d249a68b4a7eace +size 1367046 diff --git a/Assets/Material/material_0310/moss_norm.jpg b/Assets/Material/material_0310/moss_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c5b0544ac433c7aad634cafe3bb4430d5912fa86 --- /dev/null +++ b/Assets/Material/material_0310/moss_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b73ab37b3c9ce9358d9442a8226185bffa65181695582f47c617ededcc6d725 +size 1231076 diff --git a/Assets/Material/material_0311/concrete_wall_aged_R_rough_G_ao_B_grunge.jpg b/Assets/Material/material_0311/concrete_wall_aged_R_rough_G_ao_B_grunge.jpg new file mode 100644 index 0000000000000000000000000000000000000000..eed54809c3f5b3783891e13324cf6309da9d1ffd --- /dev/null +++ b/Assets/Material/material_0311/concrete_wall_aged_R_rough_G_ao_B_grunge.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6124231693078da68949c3571695caf7cc9fcacedb3a6e114265a2208ad2817b +size 6333377 diff --git a/Assets/Material/material_0311/concrete_wall_aged_diff.jpg b/Assets/Material/material_0311/concrete_wall_aged_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f3fab3ff00fb975f1d392762119d3e191f65c190 --- /dev/null +++ b/Assets/Material/material_0311/concrete_wall_aged_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bb719ec0a85f8b49dc4a9deb9486f4a96f77b4e0a7f2b2894354e06483e2a2c +size 2356253 diff --git a/Assets/Material/material_0311/concrete_wall_aged_norm.jpg b/Assets/Material/material_0311/concrete_wall_aged_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..670c6583be7e67480a0af75d074ba7cab1fb4fd6 --- /dev/null +++ b/Assets/Material/material_0311/concrete_wall_aged_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72e1a9d0fdf6c4b71a79daa662555e78181c8dc82caedfda3e686895486847c6 +size 3162754 diff --git a/Assets/Material/material_0312/concrete_wall_aged_scratched_diff.jpg b/Assets/Material/material_0312/concrete_wall_aged_scratched_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d4db4f22a352c874fc07a40be52ff4e1a1a7d66e --- /dev/null +++ b/Assets/Material/material_0312/concrete_wall_aged_scratched_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:514eb5db90abbe64e2b834d0ffb383a664fad895691f6393bab7223f7ccf2f5b +size 1894571 diff --git a/Assets/Material/material_0312/concrete_wall_aged_scratched_norm.jpg b/Assets/Material/material_0312/concrete_wall_aged_scratched_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8e6a83d8d5c0368fad056124f2d2a3f5d4f62f37 --- /dev/null +++ b/Assets/Material/material_0312/concrete_wall_aged_scratched_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5ac543395861790b974bdcfda8939e6934795450b5421847c78dd9b207f3f96 +size 3010902 diff --git a/Assets/Material/material_0313/Concrete_Wall_Even.mdl b/Assets/Material/material_0313/Concrete_Wall_Even.mdl new file mode 100644 index 0000000000000000000000000000000000000000..96611a67c4a0d8d7816e1b54c4d7960028c8ea41 --- /dev/null +++ b/Assets/Material/material_0313/Concrete_Wall_Even.mdl @@ -0,0 +1,449 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA’s Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float remap(float input, float low_1, float high_1, float low_2, float high_2) +{ + return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1); +} + +float histogram_scan(float input, float width, float position) +{ + float low = ::math::clamp(1.0f - position * 2.0, 0.0f ,1.0f); + float high = ::math::clamp(position > 0.5f ? 1.0 : 2.0f - 2 * position, 0.0f, 1.0f); + //float center = (low + high)/2.0f); + float offset = ((high - low) / 2.0) * width; + low += offset; + high -= offset; + return ::math::clamp( + remap(input, + low, + high, + 0.0, + 1.0), + 0.0, + 1.0); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + + +export material Concrete_Wall_Even( + uniform bool infinite_tiling = false [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + color diffuse_tint = color(0.737205f) [[ + ::anno::description("Choose the color of the concrete wall."), + ::anno::display_name("Diffuse Tint"), + ::anno::in_group("Appearance") + ]], + float diffuse_brightness = 0.65f [[ + ::anno::description("Adjusts the lightness of the diffuse color."), + ::anno::display_name("Diffuse Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float roughness = 0.62f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_layer_weight = 0.0f [[ + ::anno::description("Weight of the dirt layer."), + ::anno::display_name("Dirt Amount"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f) + ]], + color dirt_layer_color = color(0.6f, 0.6f, 0.6f) [[ + ::anno::description("Set the color of the dirt layer."), + ::anno::display_name("Dirt Layer Color"), + ::anno::in_group("Appearance", "Dirt") + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.5, 1.5)), + ::anno::in_group("Transform") + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool roundcorners_across_materials = true [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform") + ]] +) +[[ + ::anno::description("A flat concrete wall."), + ::anno::in_group("Concrete"), + ::anno::display_name("Concrete Wall Even - Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Concrete_Wall_Even.Concrete_Wall_Even.png"), + ::anno::key_words(string[]("concrete", "wall", "outdoor", "indoor", "even", "new", "construction", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.0299999993f, 1.f, 5.f, histogram_scan(float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.919999957f, 0.109999999f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] + float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] * dirt_layer_weight * 0.50999999f, 1.f, roughness * 0.25f + 0.649999976f) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] + float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] * dirt_layer_weight * 0.50999999f, 1.f, roughness * 0.25f + 0.649999976f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] + float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] * dirt_layer_weight * 0.50999999f, 1.f, roughness * 0.25f + 0.649999976f) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] + float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] * dirt_layer_weight * 0.50999999f, 1.f, roughness * 0.25f + 0.649999976f), 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(nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.55686301f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, diffuse_tint, ::base::color_layer_overlay, 1.f).tint, dirt_layer_color, ::base::color_layer_multiply, float3(infinite_tiling ? endless_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.203922004f, 0.917647004f, 0.164706007f), 10.f, true) : ::base::file_texture(texture_2d("./concrete_wall_even_R_rough_G_ao_B_grunge.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] * dirt_layer_weight).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, diffuse_brightness * -0.400000006f + 0.400000006f).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./concrete_wall_even_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.498039007f, 0.498039007f, 0.996078014f), 10.f) : ::base::tangent_space_normal_texture(texture_2d("./concrete_wall_even_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f)), infinite_tiling ? endless_normal(texture_2d("./concrete_wall_even_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.498039007f, 0.498039007f, 0.996078014f), 10.f) : ::base::tangent_space_normal_texture(texture_2d("./concrete_wall_even_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 1.f, 0.f)), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + +export material Concrete_Wall_Even_New_Shiny(*) +[[ + ::anno::description("A flat concrete wall."), + ::anno::in_group("Concrete"), + ::anno::display_name("Concrete Wall Even - Shiny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Concrete_Wall_Even.Concrete_Wall_Even_New_Shiny.png"), + ::anno::key_words(string[]("concrete", "wall", "outdoor", "indoor", "even", "new", "shiny", "construction", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Concrete_Wall_Even +( + infinite_tiling: false, + diffuse_tint: color(0.6f, 0.6f, 0.6f), + diffuse_brightness: .65f, + roughness: .0f, + dirt_layer_weight: 0.0f, + dirt_layer_color: color(0.420508f, 0.378676f, 0.348865f), + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 2.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + +export material Concrete_Wall_Even_Brownish_Dirty(*) +[[ + ::anno::description("A flat concrete wall with a brownish dirt layer on top."), + ::anno::in_group("Concrete"), + ::anno::display_name("Concrete Wall Even - Dirty Brownish"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Concrete_Wall_Even.Concrete_Wall_Even_Brownish_Dirty.png"), + ::anno::key_words(string[]("concrete", "wall", "outdoor", "indoor", "even", "dirt", "dirty", "grunge", "construction", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Concrete_Wall_Even +( + infinite_tiling: false, + diffuse_tint: color(0.701170f, 0.645555f, 0.566810f), + diffuse_brightness: .65f, + roughness: .65f, + dirt_layer_weight: 1.0f, + dirt_layer_color: color(0.399293f, 0.358654f, 0.280124f), + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 2.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +export material Concrete_Wall_Even_Greenish_Dirty(*) +[[ + ::anno::description("A flat concrete wall."), + ::anno::in_group("Concrete"), + ::anno::display_name("Concrete Wall Even - Dirty Greenish"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Concrete_Wall_Even.Concrete_Wall_Even_Greenish_Dirty.png"), + ::anno::key_words(string[]("concrete", "wall", "outdoor", "indoor", "even", "dirt", "dirty", "grunge", "construction", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Concrete_Wall_Even +( + infinite_tiling: false, + diffuse_tint: color(0.673049f, 0.701170f, 0.666117f), + diffuse_brightness: .65f, + roughness: .65f, + dirt_layer_weight: 1.0f, + dirt_layer_color: color(0.219520f, 0.271577f, 0.193972f), + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 2.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); \ No newline at end of file diff --git a/Assets/Material/material_0319/denim_R_diff_G_mask.jpg b/Assets/Material/material_0319/denim_R_diff_G_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..39d198c17d310dd34205d51e0b56f536a524c24f --- /dev/null +++ b/Assets/Material/material_0319/denim_R_diff_G_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22c456a7dba14368eedca624ee481eb958b03854582266a084604b24d85e596e +size 3298503 diff --git a/Assets/Material/material_0319/denim_R_rough_G_ao_B_height.jpg b/Assets/Material/material_0319/denim_R_rough_G_ao_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b0e3fff490ba3049676c29c3476b36444b287d15 --- /dev/null +++ b/Assets/Material/material_0319/denim_R_rough_G_ao_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de00bacfe7ce277f470fce28ca160b7f6041b28459c20c4f813fd37fd49584ae +size 3660431 diff --git a/Assets/Material/material_0319/denim_norm.jpg b/Assets/Material/material_0319/denim_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f9c1225e7561b0c0039bf1e5ef7d295d6e8f1b9a --- /dev/null +++ b/Assets/Material/material_0319/denim_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d7ab77074abc4034bb22f2c92e74a2d4c1e273a2b6552e41775d02164494576 +size 2968586 diff --git a/Assets/Material/material_0319/denim_warp.jpg b/Assets/Material/material_0319/denim_warp.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1b21f9ca5b70320c91e7e43ca90f4d1cd2512851 --- /dev/null +++ b/Assets/Material/material_0319/denim_warp.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d9eab80f30ad65fa32197d8241c4dfc8241a96482ec5d4dd11dafb7e39c16db +size 259956 diff --git a/Assets/Material/material_0319/denim_wear.jpg b/Assets/Material/material_0319/denim_wear.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e269756edf0fcbbea0560ac3b97653af71679d78 --- /dev/null +++ b/Assets/Material/material_0319/denim_wear.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2c99f7a9a8abd4acee43666a5269263a10a14bb3e7055b33d5d6de9e4254524 +size 340101 diff --git a/Assets/Material/material_0325/fine_woven_cotton_diff.jpg b/Assets/Material/material_0325/fine_woven_cotton_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..996437be98facd07ec1130bf643edf8471bad795 --- /dev/null +++ b/Assets/Material/material_0325/fine_woven_cotton_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc96cc8fc5da5495ab44d243a9fe8b549cba7523c04e4c93ea3d2d643323b9d0 +size 4206716 diff --git a/Assets/Material/material_0325/fine_woven_cotton_multi_R_rough_G_ao.jpg b/Assets/Material/material_0325/fine_woven_cotton_multi_R_rough_G_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4e33de6178cbd7db1f9b572a4d9eefeaa63e4bba --- /dev/null +++ b/Assets/Material/material_0325/fine_woven_cotton_multi_R_rough_G_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87b7ce3d32cbc0ef8a3e9c7bde8214b91b97422a245e97e10972716946910273 +size 3889854 diff --git a/Assets/Material/material_0325/fine_woven_cotton_norm.jpg b/Assets/Material/material_0325/fine_woven_cotton_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4e390fae764e239c5ee707f5df23736e6c3a9a82 --- /dev/null +++ b/Assets/Material/material_0325/fine_woven_cotton_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27af7247cd5fe3e5cf3508d8f3b4436682263a299abc6c450b3695042db4fb86 +size 5114440 diff --git a/Assets/Material/material_0330/Polyester_Herringbone.mdl b/Assets/Material/material_0330/Polyester_Herringbone.mdl new file mode 100644 index 0000000000000000000000000000000000000000..316c1fc6d030670bfe707d8bdde4b2f7ee81465d --- /dev/null +++ b/Assets/Material/material_0330/Polyester_Herringbone.mdl @@ -0,0 +1,710 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A synthetic fabric material."; + +annotation preview_scale( float f); + + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + + + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float3 rgb2srgb(float3 val) [[ anno::unused() ]] { + return ::math::pow( ::math::max(val, float3(0.f)), float3(1./2.2) ); +} + + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Hack: try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + //TODO: at least also handle sign of z? + //TODO: handle tangent becoming 0 + + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, .5), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} +export material Polyester_Herringbone( + color color_1 = color(0.0318959989f, 0.0382039994f, 0.0451860018f) [[ + ::anno::description("Choose the color of the fabric."), + ::anno::display_name("Fabric Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float roughness = 0.3f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float roughness_variation = 0.05f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float variation_scale = 2.f [[ + ::anno::description("Larger numbers decrease the size of the roughness variation."), + ::anno::display_name("Variation Scale"), + ::anno::in_group("Appearance"), + ::anno::ui_order(3) + ]], + uniform float bump_strength = 1.f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(5) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(6) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::preview_scale(1.8f), + ::anno::ui_order(7) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(8) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(9) + ]], + uniform float radius = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform bool across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(11) + ]]) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Dark Grey"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "grey", "dark", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = + let { + bool tmp0 = false; + material_surface tmp1(df::custom_curve_layer(0.0399999991f, 1.f, 5.f, math::pow(histogram_scan_big(float3(endless_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.jpg", ::tex::gamma_linear), base::coordinate_source(base::texture_coordinate_uvw, 0), variation_scale, float3(0.600000024f, 0.631372988f, 0.439215988f), 3.f, false))[2], 1.f, math::lerp(0.f, 0.219999999f, math::pow(roughness_variation, 0.349999994f))), 1.49000001f), df::microfacet_ggx_smith_bsdf(histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1], 1.f, math::lerp(0.400000006f, 1.f, roughness)) * histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1], 1.f, math::lerp(0.400000006f, 1.f, roughness)), histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1], 1.f, math::lerp(0.400000006f, 1.f, roughness)) * histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1], 1.f, math::lerp(0.400000006f, 1.f, roughness)), color(1.f, 1.f, 1.f), nvidia::core_definitions::blend_colors(color_1, color(histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 1.f, 0.300000012f)), base::color_layer_multiply, 0.859999955f, true).tint, state::texture_tangent_u(0), df::scatter_reflect), df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(color_1, color(histogram_range(float3(base::file_texture(texture_2d("./polyester_herringbone_multi_R_diff_G_rough_B_dirt.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, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 1.f, 0.300000012f)), base::color_layer_multiply, 0.859999955f, true).tint, 0.f), base::tangent_space_normal_texture(texture_2d("./polyester_herringbone_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, 0.f, int2(0), tex::wrap_repeat, 30.f)), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? state::rounded_corner_normal(radius, across_materials, 1.f) : state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + geometry: tmp5); + + +export material Polyester_Herringbone_Light_Grey(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Light Grey"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "grey", "bright", "light", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Light_Grey.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.577580f, 0.012983f, 0.127438f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Silver(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Silver"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "silver", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Silver.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.304987f, 0.304987f, 0.304987f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Tan(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Tan"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "tan", "orange", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Tan.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.012983f, 0.351533f, 0.545724f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Brown(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "dark", "brown", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Brown.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.132868f, 0.072272f, 0.052861f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Light_Brown(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Light Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "light", "brown", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Light_Brown.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.361307f, 0.194618f, 0.102242f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Beige(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Beige"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "beige", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Beige.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.502886f, 0.396755f, 0.300544f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Burgundy(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Burgundy"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "burgundy", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Burgundy.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.181164f, 0.012983f, 0.031896f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Maroon(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Maroon"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "maroon", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Maroon.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.122139f, 0.012983f, 0.012983f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Pastel_Blue(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Pastel Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "cold", "pastel", "blue", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Pastel_Blue.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.337164f, 0.386429f, 0.527115f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Royal_Blue(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Royal Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "cold", "royal", "blue", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Royal_Blue.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.f, 0.012983f, 0.205079f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Orange(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Orange"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "orange", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Orange.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.715694f, 0.177888f, 0.004025f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Green(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "cold", "green", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Green.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.040915f, 0.130136f, 0.068478f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material Polyester_Herringbone_Yellow(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Polyester Herringbone Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]( "warm", "yellow", "dielectric", "automotive", "polyester", "herringbone", "belts", "car", "artifical", "fabric", "soft", "cloth")), + ::anno::thumbnail("./.thumbs/Polyester_Herringbone.Polyester_Herringbone_Yellow.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Polyester_Herringbone +( + color_1: color(0.896269f, 0.617207f, 0.012983f), + roughness: .3f, + roughness_variation: .25f, + variation_scale: 2.f, + bump_strength: 1.f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); \ No newline at end of file diff --git a/Assets/Material/material_0359/Mulch.mdl b/Assets/Material/material_0359/Mulch.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4fd9d5bfffbe8cca4f63f1523ea2192b1b399139 --- /dev/null +++ b/Assets/Material/material_0359/Mulch.mdl @@ -0,0 +1,506 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A mulch material"; + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float3 rgb2srgb(float3 val) [[ ::anno::unused() ]] { + return ::math::pow( ::math::max(val, float3(0.f)), float3(1./2.2) ); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 + //bool srgb2rgb = false, + //bool rgb2srgb = false +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); + //return ::state::normal(); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + //TODO: at least also handle sign of z? + //TODO: handle tangent becoming 0 + + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +export material Mulch( + uniform bool infinite_tiling = false [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float brightness = 1.0f [[ + ::anno::description("Adjusts the lightness of the material."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float roughness = 0.8f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float reflectivity = 0.0f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float bump_strength = 0.5f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform") + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(2.0f, 2.0f)), + ::anno::in_group("Transform") + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float radius = 0.f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = true [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform") + ]]) +[[ + ::anno::display_name("Mulch"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch.png"), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, ::math::pow(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.800000012f, ::math::lerp(0.400000006f, 0.600000024f, reflectivity)), 2.20000005f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.449999988f, 0.789999962f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.449999988f, 0.789999962f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.449999988f, 0.789999962f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.449999988f, 0.789999962f, roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./mulch_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.568000019f, 0.404000014f, 0.293000013f), 8.f, true) : ::base::file_texture(texture_2d("./mulch_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(histogram_range(0.099999994f, 1.f, float3(infinite_tiling ? endless_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.617999971f, 0.880999982f, 0.499000013f), 8.f, false) : ::base::file_texture(texture_2d("./mulch_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2])), ::base::color_layer_multiply, ::math::lerp(1.f, 0.f, brightness)).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./mulch_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.497999996f, 0.465999991f, 0.878000021f), 8.f) : ::base::tangent_space_normal_texture(texture_2d("./mulch_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)), infinite_tiling ? endless_normal(texture_2d("./mulch_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 8.f, float3(0.497999996f, 0.465999991f, 0.878000021f), 8.f) : ::base::tangent_space_normal_texture(texture_2d("./mulch_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)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + geometry: tmp5); + +export material Mulch_Dry(*) +[[ + ::anno::display_name("Mulch - Dry"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn", "dry")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch_Dry.png"), + ::anno::author("NVIDIA vMaterials") +]] += Mulch +( + infinite_tiling: false, + brightness: 0.7f, + roughness: 0.8f, + reflectivity: 0.4f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + enable_round_corners: false, + radius: 1.5f, + across_materials: false, + uv_space_index: 0 +); + +export material Mulch_Dry_Contrast(*) +[[ + ::anno::display_name("Mulch - Dry Contrast"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn", "dry", "contrast")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch_Dry_Contrast.png"), + ::anno::author("NVIDIA vMaterials") +]] += Mulch +( + infinite_tiling: false, + brightness: 0.15f, + roughness: 1.0f, + reflectivity: 0.9f, + bump_strength: 0.8f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + enable_round_corners: false, + radius: 1.5f, + across_materials: false, + uv_space_index: 0 +); + +export material Mulch_Mist_Damp(*) +[[ + ::anno::display_name("Mulch - Mist Damp"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn", "mist", "damp")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch_Mist_Damp.png"), + ::anno::author("NVIDIA vMaterials") +]] += Mulch +( + infinite_tiling: false, + brightness: 0.0f, + roughness: 0.15f, + reflectivity: 0.9f, + bump_strength: 0.75f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + enable_round_corners: false, + radius: 1.5f, + across_materials: false, + uv_space_index: 0 +); + +export material Mulch_Wet(*) +[[ + ::anno::display_name("Mulch - Wet"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn", "wet")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch_Wet.png"), + ::anno::author("NVIDIA vMaterials") +]] += Mulch +( + infinite_tiling: false, + brightness: 0.0f, + roughness: 0.0f, + reflectivity: 0.0f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + enable_round_corners: false, + radius: 1.5f, + across_materials: false, + uv_space_index: 0 +); + +export material Mulch_Sun(*) +[[ + ::anno::display_name("Mulch - Sun"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "infinite", "tiling", "wood", "nature", "tree", "bark", "mulch", "brown", "organic", "ground", "exterior", "rough", "plant", "gardening", "autumn", "bright", "sun")), + ::anno::thumbnail("./.thumbs/Mulch.Mulch_Sun.png"), + ::anno::author("NVIDIA vMaterials") +]] += Mulch +( + infinite_tiling: false, + brightness: 0.8f, + roughness: 0.0f, + reflectivity: 0.7f, + bump_strength: 0.7f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + enable_round_corners: false, + radius: 1.5f, + across_materials: false, + uv_space_index: 0 +); \ No newline at end of file diff --git a/Assets/Material/material_0361/rough_gravel_diff.jpg b/Assets/Material/material_0361/rough_gravel_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8d8adb4a8dddaf0c7409e261f6bfe1ac99077a7f --- /dev/null +++ b/Assets/Material/material_0361/rough_gravel_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b331ae377428fd983fbd583b673b5942ffe516c2373ef19478a76fd4e67a1180 +size 4336851 diff --git a/Assets/Material/material_0361/rough_gravel_norm.jpg b/Assets/Material/material_0361/rough_gravel_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8b09e5a968be1e121f8acb182873cc94d3bb873 --- /dev/null +++ b/Assets/Material/material_0361/rough_gravel_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9ab8c520d83a9f8d2527877d2edcd978db0135362706c4df6aa403a2044d7a74 +size 3926355 diff --git a/Assets/Material/material_0361/rough_gravel_rough.jpg b/Assets/Material/material_0361/rough_gravel_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..24ed5901c1bded97f1511297d22871992be542a1 --- /dev/null +++ b/Assets/Material/material_0361/rough_gravel_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31e994166f0eaacdb4f2a18f2fe191e68ff3ece85b70a4f4d1e7b9304c7222a5 +size 6694401 diff --git a/Assets/Material/material_0362/cobblestone_tiny_diff.jpg b/Assets/Material/material_0362/cobblestone_tiny_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c7c0e6c686d68a6ab2b2075d61953959c4811b53 --- /dev/null +++ b/Assets/Material/material_0362/cobblestone_tiny_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d4d67730d34d2ea18916ef8acdde73ce15c8d291298acc21f2df2680654befb +size 1568584 diff --git a/Assets/Material/material_0362/cobblestone_tiny_mask.jpg b/Assets/Material/material_0362/cobblestone_tiny_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..564f31fcb8bb65162b79ede75d850982094cefe8 --- /dev/null +++ b/Assets/Material/material_0362/cobblestone_tiny_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12cbb88f6569560746ce1a810758ba0b76a278db20af003a500ae8646913fcfc +size 786891 diff --git a/Assets/Material/material_0362/cobblestone_tiny_multi.jpg b/Assets/Material/material_0362/cobblestone_tiny_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f9fb714562d5911a2298fbbbef6b579a56202d74 --- /dev/null +++ b/Assets/Material/material_0362/cobblestone_tiny_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:00c42ca341301c57cb876fc10841bee68321681b1dcf2abc65411da133ad9a64 +size 1361132 diff --git a/Assets/Material/material_0362/cobblestone_tiny_norm.jpg b/Assets/Material/material_0362/cobblestone_tiny_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..561ada07064ea250f438c731589c1f75832df22d --- /dev/null +++ b/Assets/Material/material_0362/cobblestone_tiny_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a02c039330e4078cc12d5d1bf75121cbf1cad6c3e6f9367daaf47fcab8e97a95 +size 1733896 diff --git a/Assets/Material/material_0364/abs_quilted_leather_multi_R_rough_G_ao_B_seam.jpg b/Assets/Material/material_0364/abs_quilted_leather_multi_R_rough_G_ao_B_seam.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c21582744494cc7f93a8908acad8c28179b800f3 --- /dev/null +++ b/Assets/Material/material_0364/abs_quilted_leather_multi_R_rough_G_ao_B_seam.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:acce58480d2c62c17028c3b395453cbc8bb1103caea7fb7a69a910910661e712 +size 1859882 diff --git a/Assets/Material/material_0364/abs_quilted_leather_norm.jpg b/Assets/Material/material_0364/abs_quilted_leather_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..10b2f974ec840536a332ad854dff60fb531660c6 --- /dev/null +++ b/Assets/Material/material_0364/abs_quilted_leather_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b5dc2f93c708e5560cfe84ef0146a6054dc16ededbda69624bbafa16783ac76 +size 1306538 diff --git a/Assets/Material/material_0365/ABS_Soft_Leather.mdl b/Assets/Material/material_0365/ABS_Soft_Leather.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2be18929ebc1b890a7a2ca53075547ea717a3c39 --- /dev/null +++ b/Assets/Material/material_0365/ABS_Soft_Leather.mdl @@ -0,0 +1,1645 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A synthetic leather material."; +const string DESCRIPTION_PUNCHED = "A synthetic leather material with punched holes. Available punch shapes are circles, lines, rectangles and squares."; + +annotation preview_scale( float f); + + +// returns the min-max coordinates of a 2x2 atlas tile +float4 tile_select_2x2(uniform int select = 0) +{ + switch(select) + { + case 2: return float4(0.0f, 0.5f, 0.0f, 0.5f); + case 3: return float4(0.5f, 1.0f, 0.0f, 0.5f); + case 0: return float4(0.0f, 0.5f, 0.5f, 1.0f); + case 1: return float4(0.5f, 1.0f, 0.5f, 1.0f); + + default: return float4(0.0f, 0.5f, 0.0f, 0.5f); + } +} + + +export struct vm_coordinates +[[ + ::anno::hidden() +]] +{ + float2 uv; + float rotation; + int uv_space_index; + float4 carry; +}; + +enum vm_mono_select +[[ + anno::description("Modes for the creation of a gray-scale value from a color."), + anno::hidden() +]] +{ + mono_r = 0, + mono_g = 1, + mono_b = 2, + mono_a = 3, + mono_average = 4 +}; + +vm_coordinates vm_coord +( + float2 translation = float2(0.0f, 0.0) [[ + ::anno::display_name("Translation"), + ::anno::description("Translates the coordinates.") + ]], + float rotation = 0.0f [[ + ::anno::display_name("Rotation"), + ::anno::description("Rotates the coordinates in degrees.") + ]], + float2 scaling = float2(1.0f, 1.0f) [[ + ::anno::display_name("Scaling"), + ::anno::description("Scales the coordinates.") + ]], + uniform int uv_space = 0 [[ + ::anno::display_name("UV Space"), + ::anno::description("Choose the UV space.") + ]] +) +[[ + ::anno::display_name("vm Transform"), + ::anno::description("Generates coordinates to be used in vm_lookup functions.") +]] +{ + vm_coordinates uv; + ::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space); + uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f; + uv.uv = float2(info.position.x, info.position.y); + float sine = ::math::sin(uv.rotation); + float cosine = ::math::cos(uv.rotation); + float2x2 rot = float2x2(cosine, -sine, sine, cosine); + uv.uv = rot * uv.uv; + uv.uv /= scaling; + uv.uv += translation; + return uv; +} + + +vm_coordinates vm_coord_hex( + vm_coordinates uv, + float scale = 1.0f, + float rotation = 45.0f + + //,float2 rot_center=0.5f +) +{ + vm_coordinates uv_return; + float2 uv_ = float2(uv.uv.x, uv.uv.y); + float rot_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float sine = ::math::sin(rot_rad); + float cosine = ::math::cos(rot_rad); + float2x2 rot = float2x2(cosine, -sine, sine, cosine); + + // same as from function get_hex above + float2 s = float2(1.0f, 1.7320508f); + float2 n = uv_ - float2(0.5f, 1.0f); + float4 c = ::math::floor(float4(uv_.x, uv_.y, n.x, n.y)/float4(s.x, s.y, s.x, s.y)) + 0.5f; + float2 h_1 = uv_ - float2(c.x, c.y) * s; + float2 h_2 = uv_ - (float2(c.z, c.w) + 0.5f) * s; + 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); + + float2 id_xy = float2(uv_id.x, uv_id.y); + + //uv_return.uv = float2(id_xy.x*scale+.5f, id_xy.y*scale+.5f); + uv_return.uv = rot*float2(id_xy.x*scale, id_xy.y*scale); + uv_return.uv += 0.5f; + + + // unless we introduce random cell rotations where we need to compensate for this in the rotation + // we can just plain copy the rotation value + uv_return.rotation = uv.rotation + rot_rad; + return uv_return; +} + +// Offsets a set of uv coordinates in either row (u) or column (v) direction +vm_coordinates vm_coord_rowcol_offset( + vm_coordinates uv, + float offset, + bool horizontal_offset = true +) +{ + int index = horizontal_offset ? 0 : 1; + uv.uv[index] += ::math::floor(uv.uv[index ^ 1]) * offset; + return uv; +} + +vm_coordinates vm_coord_grid( + vm_coordinates uv, + float scale = 1.0f, + float rotation = 45.0f +) +{ + float rot_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sine = ::math::sin(rot_rad); + float cosine = ::math::cos(rot_rad); + float2x2 rot = float2x2(cosine, -sine, sine, cosine); + + float2x2 scal = float2x2(scale, 0., 0., scale); + uv.uv = ::math::frac(uv.uv); + uv.uv -= 0.5f; + uv.uv = rot*(scal * uv.uv); + uv.uv = uv.uv + 0.5f; + uv.rotation += rot_rad; + return uv; +} + +::base::texture_return vm_tex_lookup( + uniform texture_2d tex, + vm_coordinates uv = vm_coord(), + uniform vm_mono_select mono_source = mono_a, + float4 scale = float4(1.0f), + + uniform ::tex::wrap_mode wrap_u = ::tex::wrap_repeat, + uniform ::tex::wrap_mode wrap_v = ::tex::wrap_repeat, + uniform float2 crop_u = float2(0.0, 1.0), + uniform float2 crop_v = float2(0.0, 1.0) +) +{ + float mono; + float4 lookup = ::tex::lookup_float4(tex, uv.uv, wrap_u, wrap_v, crop_u, crop_v) * scale; + switch( mono_source ) { + case mono_r: mono = lookup.x; + break; + case mono_g: mono = lookup.y; + break; + case mono_b: mono = lookup.z; + break; + case mono_a: mono = lookup.w; + break; + case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z)); + break; + } + return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono); +} + +// *** SET CUTOUT ENUM NAMES *** +export enum cutout_pattern +[[ + ::anno::description("Cutout Pattern"), + ::anno::hidden() +]] +{ + pattern_circle = 0 + [[ ::anno::display_name("Circle")]], + pattern_hexagon = 1 + [[ ::anno::display_name("Square")]], + pattern_line = 2 + [[ ::anno::display_name("Line") ]], + + pattern_square = 3 + [[ ::anno::display_name("Rectangle")]] +}; + + +float remap(float input, float low, float high) +{ + //return low + input * (high - low); + return ::math::lerp(low, high, input); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + + + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float3 rgb2srgb(float3 val) [[ anno::unused() ]] { + return ::math::pow( ::math::max(val, float3(0.f)), float3(1./2.2) ); +} + + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 + //bool srgb2rgb = false, + //bool rgb2srgb = false +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(transformed_tangent_u * tangent_space_normal.x + + transformed_tangent_v * tangent_space_normal.y + + state::normal()*1.0); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, .5), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} +export material ABS_Soft_Leather( + uniform bool infinite_tiling = false [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + color color_2 = color( 0.012983f, 0.012983f, 0.012983f) [[ + ::anno::description("Choose the color of the leather."), + ::anno::display_name("Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(1) + ]], + float brightness_ao_cavity = 0.2f [[ + ::anno::description("Adjusts the lightness of the cavity."), + ::anno::display_name("Cavity Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float roughness = .6f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float reflectivity = 1.f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + uniform float bump_strength = 0.5f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 2.f), + ::anno::ui_order(5) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(6) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(7) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::preview_scale(3.5f), + ::anno::ui_order(8) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(9) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float radius = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(11) + ]], + uniform bool across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]]) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "black", "soft", "leather", "car", "dashboard", "cloth", "furniture")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = + let { + bool tmp0 = false; + + texture_2d rough_height_ao_tex = texture_2d("./abs_soft_leather_multi_R_rough_G_height_B_ao.jpg", ::tex::gamma_linear); + texture_2d norm_tex = texture_2d("./abs_soft_leather_norm.jpg", ::tex::gamma_linear); + + material_surface tmp1(df::custom_curve_layer(0.0399999991f, 1.f, 5.f, math::pow(histogram_scan_big(nvidia::core_definitions::blend_colors(color(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[1]), color(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[2]), base::color_layer_blend, 0.600000024f, true).mono, 1.f, math::lerp(0.f, 0.550000012f, math::pow(reflectivity, 0.349999994f))), 1.49000001f), df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.269999981f, math::lerp(0.300000012f, 1.f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.269999981f, math::lerp(0.300000012f, 1.f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.269999981f, math::lerp(0.300000012f, 1.f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[0], 0.269999981f, math::lerp(0.300000012f, 1.f, roughness)), color(1.f, 1.f, 1.f), nvidia::core_definitions::blend_colors(color_2, color(histogram_range(0.100000001f, 0.289999992f, float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[2])), base::color_layer_multiply, math::lerp(0.930000007f, 0.149999991f, remap(brightness_ao_cavity, 0.f, 10.f)), true).tint, state::texture_tangent_u(0), df::scatter_reflect), df::weighted_layer(1.f, df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(color_2, color(histogram_range(0.100000001f, 0.289999992f, float3(infinite_tiling ? endless_texture(rough_height_ao_tex, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.627451003f, 0.615685999f, 0.690195978f), 13.f, false) : base::file_texture(rough_height_ao_tex, color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 0.f, int2(0), tex::wrap_repeat, 30.f).tint)[2])), base::color_layer_multiply, math::lerp(0.930000007f, 0.149999991f, remap(brightness_ao_cavity, 0.f, 10.f)), true).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(norm_tex, math::lerp(0.f, 2.f, bump_strength), true, true, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.501960993f, 0.501960993f, 0.972549021f), 13.f) : base::tangent_space_normal_texture(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f, 0.f, int2(0), tex::wrap_repeat, 30.f)), infinite_tiling ? endless_normal(norm_tex, math::lerp(0.f, 2.f, bump_strength), true, true, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), 13.f, float3(0.501960993f, 0.501960993f, 0.972549021f), 13.f) : base::tangent_space_normal_texture(norm_tex, math::lerp(0.f, 2.f, bump_strength), false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.5f, base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), tex::wrap_repeat, tex::wrap_repeat, false, 1.f, 0.f, 0.f, int2(0), tex::wrap_repeat, 30.f)), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? state::rounded_corner_normal(radius, across_materials, 1.f) : state::normal()); + + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + geometry: tmp5); + +export material ABS_Soft_Leather_Brown(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "warm", "brown")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Brown.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.106f, 0.0528f, 0.021f), + brightness_ao_cavity: .3f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Ash(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Ash"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "ash", "gray", "grey", "neutral")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Ash.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.099899f, 0.099899f, 0.099899f), + brightness_ao_cavity: .2f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +export material ABS_Soft_Leather_Bone(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Bone"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "bone", "brown", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Bone.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.599f, 0.511f, 0.431f), + brightness_ao_cavity: .2f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +export material ABS_Soft_Leather_Salmon(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Salmon"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "salmon", "warm", "red")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Salmon.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.632f, 0.216f, 0.184f), + brightness_ao_cavity: .2f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Cognac(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Cognac"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "warm", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "brown", "red", "cognac", "dark")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Cognac.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.231f, 0.0461f, 0.0356f), + brightness_ao_cavity: .2f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Beige(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Beige"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "warm", "brown", "beige")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Beige.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.205079f, 0.132868f, 0.064803f), + brightness_ao_cavity: .2f, + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Orange(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Pop Orange"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "warm", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "orange", "light", "gaudy", "saturated")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Orange.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.659f, 0.114f, 0.022f), + brightness_ao_cavity: .2f, + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Purple(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Pop Purple"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "purple", "violet", "bright", "gaudy")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Purple.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.201f, 0.017f, 0.659f), + brightness_ao_cavity: .1f, + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Grapefruit(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Pop Grapefruit"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "grapefruit", "bright", "gaudy", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Grapefruit.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.646f, 0.0582f, 0.037f), + brightness_ao_cavity: .1f, + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Blue(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Deep Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "blue", "dark", "intense")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Blue.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.021f, 0.037f, 0.32f), + brightness_ao_cavity: .1f, + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Mint(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Deep Mint"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "mint", "green", "dark", "intense")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Mint.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.0161f, 0.122f, 0.0478f), + brightness_ao_cavity: .1f, + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Radish(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("ABS Soft Leather - Deep Radish"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "radish", "red", "dark", "intense", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Radish.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather +( + infinite_tiling: false, + color_2: color(0.16f, 0.0127f, 0.0254f), + brightness_ao_cavity: .1f, + roughness: 0.f, + reflectivity: .25f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +// ----------------- Punched Leather ----------------- +export material ABS_Soft_Leather_Punched( + +// Leather parameters + uniform bool infinite_tiling = false [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + color leather_color = color( 0.012983f, 0.012983f, 0.012983f) [[ + ::anno::description("Choose the color of the leather."), + ::anno::display_name("Leather Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(1) + ]], + float roughness = .6f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float reflectivity = 1.f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + uniform float bump_strength = 0.5f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 2.f), + ::anno::ui_order(4) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(5) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(6) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::preview_scale(3.5f), + ::anno::ui_order(7) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(8) + ]], +// Punching parameters + uniform cutout_pattern shape_select = pattern_circle //select atlas tile here + [[ + ::anno::description("Select a cutout shape."), + ::anno::display_name("Cutout Shape"), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(9) + ]], + float punching_grid_size = 1.0f + [[ + ::anno::description("Scales the size of the punching grid."), + ::anno::display_name("Punching Grid Size"), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(10) + ]], + float cutout_rotation = 45.0f + [[ + ::anno::description("Rotates the cutout shape."), + ::anno::display_name("Cutout Rotation"), + ::anno::hard_range(0.f, 360.0f), + ::anno::soft_range(0.f, 360.0f), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(11) + ]], + float cutout_size = .4f + [[ + ::anno::description("Scales the size of the cutout pattern independently from the base material."), + ::anno::display_name("Cutout Size"), + ::anno::hard_range(0.f, 1.2f), + ::anno::soft_range(0.f, 1.0f), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(12) + ]], + float cutout_roundness = .5f + [[ + ::anno::description("At low values it makes the cutouts sharper. Higher values give the shapes a more rounded look."), + ::anno::display_name("Cutout Roundness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(13) + ]], + float cutout_bump_strength = 1.0f + [[ + ::anno::description("Sets the strength of the bevelled normal around the cutout."), + ::anno::display_name("Cutout Bevel Strength"), + ::anno::soft_range(0.0f, 1.0f), + ::anno::hard_range(0.0f, 2.0f), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(14) + ]], +// Grid Layout parameters + bool hexagonal_grid = true + [[ + ::anno::description("When enabled, the punching will occur on a hexagonal grid, otherwise a square grid."), + ::anno::display_name("Enable Hexagonal Grid"), + ::anno::in_group("Appearance", "Cutout"), + ::anno::ui_order(15) + ]], + float square_grid_offset = 0.0f + [[ + ::anno::description("Offsets each row of the grid by a certain amount. Applies only when hexagonal grid is disabled."), + ::anno::display_name("Square Grid Offset"), + ::anno::in_group("Appearance", "Cutout"), + ::anno::enable_if("hexagonal_grid==false"), + ::anno::ui_order(16) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(17) + ]], + uniform float radius = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::enable_if("enable_round_corners==true"), + ::anno::ui_order(18) + ]], + uniform bool across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::enable_if("enable_round_corners==true"), + ::anno::ui_order(19) + ]] +) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Black Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "design", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "black", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] = let +{ + float brightness_ao_cavity = 0.2f; + bool horizontal_offset = true; + float cutout_bevel_width = 0.7f; + float cutout_bump_strength_2 = cutout_bump_strength * 5.0f; + + material base_mat = ABS_Soft_Leather( + infinite_tiling: infinite_tiling, + color_2: leather_color, + brightness_ao_cavity: brightness_ao_cavity, + roughness: roughness, + reflectivity: reflectivity, + bump_strength: bump_strength, + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + enable_round_corners: enable_round_corners, + radius: radius, + across_materials: across_materials + ); + + // remap range of slider to avoid artifacts in the bevelling + float2 punching_scale = texture_scale * 0.01f * float2(punching_grid_size); + float cutout_roundness_ = cutout_roundness*0.6f+0.4f; + float cutout_size_lin = (1.0f/cutout_size); + texture_2d punching_cutout = texture_2d("./leather_punch_atlas_01.png", ::tex::gamma_linear); + + vm_coordinates uv = vm_coord( + translation: texture_translate, + rotation: texture_rotate, + scaling: punching_scale, + uv_space: uv_space_index + ); + + vm_coordinates punching_uv = hexagonal_grid ? vm_coord_hex( + uv: uv, + scale: cutout_roundness_ * cutout_size_lin, + rotation: cutout_rotation + ) : vm_coord_grid( + uv: vm_coord_rowcol_offset( + uv: uv, + offset: square_grid_offset, + horizontal_offset: horizontal_offset + ), + scale: cutout_roundness_ * cutout_size_lin, + rotation: cutout_rotation + ); + // select the correct subtile from the atlas + float4 crop = tile_select_2x2(shape_select); + + ::base::texture_return lookup = vm_tex_lookup( + tex: punching_cutout, + uv: punching_uv, + mono_source: mono_a, + scale: float4(1.0f), + crop_u: float2(crop.x, crop.y), + crop_v: float2(crop.z, crop.w), + wrap_u: ::tex::wrap_clamp, + wrap_v: ::tex::wrap_clamp + ); + + float low = (1.0 - cutout_roundness_); + float high = (cutout_size_lin * (cutout_bevel_width * 0.2f) * cutout_roundness_) + (1.0 - cutout_roundness_); + // remap x...y to (clamped) 0...1 + float x = ::math::clamp((lookup.mono - low)/(high - low), 0.0, 1.0); + // spherical falloff + float falloff=::math::sqrt(1.0-x*x); + // masking falloff as the center of the cutout is flat + float masked_falloff=falloff<=0.0?1.0:falloff; + + // where base material is still there, use the value of the base material + float cutout= ::math::min(falloff<=0.0?0.0:1.0, base_mat.geometry.cutout_opacity); + + // bring in -.5 ... +.5 range and lerp between lookup and flat normal + float3 remap_norm = ::math::lerp(float3(lookup.tint), float3(0.5, 0.5, 1.0), masked_falloff) - float3(0.5); + float3 t_norm = ::math::normalize(remap_norm * float3(cutout_bump_strength_2, cutout_bump_strength_2, 1.0)); + + float3 rotfix_norm = float3(::math::cos(punching_uv.rotation) * t_norm.x - ::math::sin(punching_uv.rotation) * t_norm.y, + ::math::sin(punching_uv.rotation) * t_norm.x + ::math::cos(punching_uv.rotation) * t_norm.y, + t_norm.z); + + float3 normal = ::state::texture_tangent_u(punching_uv.uv_space_index) * rotfix_norm.x + + ::state::texture_tangent_v(punching_uv.uv_space_index) * rotfix_norm.y + + ::state::normal() * rotfix_norm.z; + + float3 final_normal = ::base::blend_normals( + base_normal: normal, + base_normal_weight: 1.0f, + detail_normal: base_mat.geometry.normal, + detail_normal_weight: 1.0f + ); + +} in material( + surface: material_surface( + scattering: base_mat.surface.scattering + ), + volume: base_mat.volume, + ior: base_mat.ior, + thin_walled: true, + geometry: material_geometry( + displacement: base_mat.geometry.displacement, + normal: final_normal, + cutout_opacity: cutout + ) +); + + +export material ABS_Soft_Leather_Brown_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Brown Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "warm","artifical", "brown", "soft", "leather", "car", "dashboard", "cloth", "furniture")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Brown_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.106f, 0.0528f, 0.021f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +export material ABS_Soft_Leather_Ash_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Ash Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "ash", "gray", "grey", "neutral")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Ash_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.099899f, 0.099899f, 0.099899f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +export material ABS_Soft_Leather_Bone_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Bone Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "bone", "brown", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Bone_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.599f, 0.511f, 0.431f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + + +export material ABS_Soft_Leather_Salmon_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Salmon Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "salmon", "warm", "red")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Salmon_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.632f, 0.216f, 0.184f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Cognac_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Cognac Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "warm", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "brown", "red", "cognac", "dark")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Cognac_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.231f, 0.0461f, 0.0356f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Beige_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Beige Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "warm", "brown", "beige")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Beige_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.205079f, 0.132868f, 0.064803f), + roughness: .75f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Orange_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Pop Orange Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "warm", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "orange", "light", "gaudy", "saturated")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Orange_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.659f, 0.114f, 0.022f), + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .3f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Purple_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Pop Purple Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "purple", "violet", "bright", "gaudy")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Purple_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.201f, 0.017f, 0.659f), + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Pop_Grapefruit_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Pop Grapefruit Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "grapefruit", "bright", "gaudy", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Pop_Grapefruit_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.646f, 0.0582f, 0.037f), + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Blue_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Deep Blue Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "blue", "dark", "intense")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Blue_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.021f, 0.037f, 0.32f), + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Mint_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Deep Mint Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "cold", "mint", "green", "dark", "intense")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Mint_Punched.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.0161f, 0.122f, 0.0478f), + roughness: 0.f, + reflectivity: 1.f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + +export material ABS_Soft_Leather_Deep_Radish_Punched(*) +[[ + ::anno::description(DESCRIPTION_PUNCHED), + ::anno::display_name("ABS Soft Leather - Deep Radish Punched"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "automotive", "punched", "ABS", "artifical", "soft", "leather", "car", "dashboard", "cloth", "furniture", "radish", "red", "dark", "intense", "warm")), + ::anno::thumbnail("./.thumbs/ABS_Soft_Leather.ABS_Soft_Leather_Deep_Radish.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += ABS_Soft_Leather_Punched +( + infinite_tiling: false, + leather_color: color(0.16f, 0.0127f, 0.0254f), + roughness: 0.f, + reflectivity: .25f, + bump_strength: .6f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.f, + uv_space_index: 0, + + shape_select: pattern_circle, + punching_grid_size: 0.7f, + cutout_size: 0.4f, + cutout_roundness: 0.8f, + cutout_bump_strength: 2.0f, + hexagonal_grid: true, + square_grid_offset: 0.0f, + + enable_round_corners: false, + radius: 1.5f, + across_materials: false +); + diff --git a/Assets/Material/material_0366/abs_woven_leather_multi_R_rough_G_grunge_B_ao.jpg b/Assets/Material/material_0366/abs_woven_leather_multi_R_rough_G_grunge_B_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..98b4e03e62e396caddb6a19305059023dfc27792 --- /dev/null +++ b/Assets/Material/material_0366/abs_woven_leather_multi_R_rough_G_grunge_B_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e72f79e33ae80137f4b65ce6f01b84d783e51c9dba0e08323b26190d7897434 +size 6169406 diff --git a/Assets/Material/material_0366/abs_woven_leather_norm.jpg b/Assets/Material/material_0366/abs_woven_leather_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1df6f9fa7fd00a67dcf6a56b3ee8f7e2b92f1e1c --- /dev/null +++ b/Assets/Material/material_0366/abs_woven_leather_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:327e20262e4e0326c682ef3a4688822554127f4096937e247a7e5a037b430c6c +size 4598265 diff --git a/Assets/Material/material_0368/PU_split_leather_back_diff.jpg b/Assets/Material/material_0368/PU_split_leather_back_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1926bb8c0d98084bb3c73ba752193dc9bddbd9e9 --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_back_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:89fc079f588327b25557fa55b1a6a2fa7c4d76208b4805e2639346e9edcc3a0c +size 1166262 diff --git a/Assets/Material/material_0368/PU_split_leather_back_multi_rough_ao_height.jpg b/Assets/Material/material_0368/PU_split_leather_back_multi_rough_ao_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2cf4cc40132a66214fd41589cb252a54a3a4d18f --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_back_multi_rough_ao_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6d4fa184eb439dea0d3362958a810464dbf6f7878b2dadcbf1f412243066603 +size 2794189 diff --git a/Assets/Material/material_0368/PU_split_leather_back_norm.jpg b/Assets/Material/material_0368/PU_split_leather_back_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..84af9a0a6cf52da6ff1c88b81cfa5c11bf9b8652 --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_back_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a7006ff78dcfea93cb9e6b7bf5a4c3676e3db576e52a95103d32aa03655e416 +size 1012661 diff --git a/Assets/Material/material_0368/PU_split_leather_front_diff.jpg b/Assets/Material/material_0368/PU_split_leather_front_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ff719d7ba8bf5d350cb05827096b1e835b21f2df --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_front_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:242a63ea8df4081f60686d668fb938cea6d1d7b76afa7ab100b39ece407bd8b2 +size 1717563 diff --git a/Assets/Material/material_0368/PU_split_leather_front_multi_rough_dirt_height.jpg b/Assets/Material/material_0368/PU_split_leather_front_multi_rough_dirt_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5b4f71eb588e9248ab0d60469898df5bb1fdfb90 --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_front_multi_rough_dirt_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c96885a0b9a039fed184635d7f4bb774f6069544d00fdde16c8cc6b350a46a42 +size 2942742 diff --git a/Assets/Material/material_0368/PU_split_leather_front_norm.jpg b/Assets/Material/material_0368/PU_split_leather_front_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f7fa637858685ae9cc3a8d020a4858b72f6df3af --- /dev/null +++ b/Assets/Material/material_0368/PU_split_leather_front_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea9cc980911f7c310b0b96abca98aa7c6c0d412443fa6a105bbd3cc7c00a917b +size 2133063 diff --git a/Assets/Material/material_0368/leather_punch_atlas_01.png b/Assets/Material/material_0368/leather_punch_atlas_01.png new file mode 100644 index 0000000000000000000000000000000000000000..327339cd61c7bc11e5be2b4990b79b47968cb352 --- /dev/null +++ b/Assets/Material/material_0368/leather_punch_atlas_01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10af36556209f50d6b5b04182df33a977fed9ff959e772284e516332a33daac9 +size 2050660 diff --git a/Assets/Material/material_0368/multi_R_dust_G_grunge_B_leather.jpg b/Assets/Material/material_0368/multi_R_dust_G_grunge_B_leather.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e2a4f70520c14085bbaf3e7d53f552abe08631e9 --- /dev/null +++ b/Assets/Material/material_0368/multi_R_dust_G_grunge_B_leather.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a4b0dba37e43303a3b2b29063c59df23d627c35911f35660cfcc323df2187ba +size 1773032 diff --git a/Assets/Material/material_0369/leather_punch_atlas_01.png b/Assets/Material/material_0369/leather_punch_atlas_01.png new file mode 100644 index 0000000000000000000000000000000000000000..327339cd61c7bc11e5be2b4990b79b47968cb352 --- /dev/null +++ b/Assets/Material/material_0369/leather_punch_atlas_01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10af36556209f50d6b5b04182df33a977fed9ff959e772284e516332a33daac9 +size 2050660 diff --git a/Assets/Material/material_0369/multi_R_dust_G_grunge_B_leather.jpg b/Assets/Material/material_0369/multi_R_dust_G_grunge_B_leather.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e2a4f70520c14085bbaf3e7d53f552abe08631e9 --- /dev/null +++ b/Assets/Material/material_0369/multi_R_dust_G_grunge_B_leather.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a4b0dba37e43303a3b2b29063c59df23d627c35911f35660cfcc323df2187ba +size 1773032 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_back_diff.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_back_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2e4933d9b33b2c274cbf8633b985a5c2e4601bc1 --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_back_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf1388678eb0b17a394abbb16baba49c801071b9d8f255d8082053a873694071 +size 1762431 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_back_multi_rough_ao_height.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_back_multi_rough_ao_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..183f9529d806fd017012f0e8510f33419292c770 --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_back_multi_rough_ao_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:013f00829b6fbbb51c34f355c00b12c9946b6b8203a4ac47b5d7bd98eddc9b70 +size 1747955 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_back_norm.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_back_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a13f5f08ec59e4d0d5e503d11bee3b5f61b86352 --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_back_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1c298388bc2f34be2b875e255874337530a38232ff6636bab3e66c35d465daf +size 1454363 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_front_diff.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_front_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2a6bca4c956c1f4804ed642e21e57114a45215ad --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_front_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85dd78ef0380740d09e60e52ff0ebf7ac9c44c8dcad216a2b96148e2eee2ce03 +size 1669500 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_front_multi_rough_dirt_height.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_front_multi_rough_dirt_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..adb61bb79a1e6553e5a7de9d7fc23057af94ae0e --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_front_multi_rough_dirt_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e73d1c571974fdc728a5dc6796575940321ae5663e6a1152245f512e3bed198 +size 2450995 diff --git a/Assets/Material/material_0369/pigmented_smooth_leather_front_norm.jpg b/Assets/Material/material_0369/pigmented_smooth_leather_front_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c7d3ede5b4980756384d4c2e13cc437d22e2c67c --- /dev/null +++ b/Assets/Material/material_0369/pigmented_smooth_leather_front_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11993fca062cc824eabe047dcfbfc4713292c84da9f3829199ca15846bb545ad +size 1871764 diff --git a/Assets/Material/material_0371/leather_punch_atlas_01.png b/Assets/Material/material_0371/leather_punch_atlas_01.png new file mode 100644 index 0000000000000000000000000000000000000000..327339cd61c7bc11e5be2b4990b79b47968cb352 --- /dev/null +++ b/Assets/Material/material_0371/leather_punch_atlas_01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10af36556209f50d6b5b04182df33a977fed9ff959e772284e516332a33daac9 +size 2050660 diff --git a/Assets/Material/material_0371/multi_R_dust_G_grunge_B_leather.jpg b/Assets/Material/material_0371/multi_R_dust_G_grunge_B_leather.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e2a4f70520c14085bbaf3e7d53f552abe08631e9 --- /dev/null +++ b/Assets/Material/material_0371/multi_R_dust_G_grunge_B_leather.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a4b0dba37e43303a3b2b29063c59df23d627c35911f35660cfcc323df2187ba +size 1773032 diff --git a/Assets/Material/material_0371/semi_aniline_back_diff.jpg b/Assets/Material/material_0371/semi_aniline_back_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0dc1edd562bc987781df88591d6d17f8abede1b2 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_back_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05ee5e54e497d6e9002f0d0d6d93dc5e2f5e5cfc6894f494288c21640f092f73 +size 1456560 diff --git a/Assets/Material/material_0371/semi_aniline_back_multi_rough_ao_height.jpg b/Assets/Material/material_0371/semi_aniline_back_multi_rough_ao_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..173cebf2fadea14e67094e59223db26ab4947391 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_back_multi_rough_ao_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b5ac1cd78c7c86a7ac47baaf4d5abcbb195d35dbbd8ea1c0d7c6e55c5fdaf065 +size 2764178 diff --git a/Assets/Material/material_0371/semi_aniline_back_norm.jpg b/Assets/Material/material_0371/semi_aniline_back_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..78b8dd7fc7a7825373baaaee02bbaf71bab98412 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_back_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06dd75de4ae0aa030d468cadb6e16764ba5ef1eb25b81b7ea8b9e7460554c804 +size 1048220 diff --git a/Assets/Material/material_0371/semi_aniline_front_diff.jpg b/Assets/Material/material_0371/semi_aniline_front_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c09f013d5ae49fefcd67624f971813ac0065cb39 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_front_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c981f0fca1a277a35087164127e27b2d7c1938bbd8f804cffdd22de09eaa230 +size 1138627 diff --git a/Assets/Material/material_0371/semi_aniline_front_multi_rough_ao_height.jpg b/Assets/Material/material_0371/semi_aniline_front_multi_rough_ao_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6f1dce9f97fedcbcd0c13ede18fc359a58b5e5d0 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_front_multi_rough_ao_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73f37761cd405b6b7c8734157d386285ce54c2d2af105180bd32bb174dddf235 +size 1756119 diff --git a/Assets/Material/material_0371/semi_aniline_front_norm.jpg b/Assets/Material/material_0371/semi_aniline_front_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..42021556858634452c7f9139c10d9c1671ac0ef7 --- /dev/null +++ b/Assets/Material/material_0371/semi_aniline_front_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6cb9aa875111f9986c748f593625a5b9216f2d9dd75f43c69752466dd4afcd16 +size 1196011 diff --git a/Assets/Material/material_0377/Aluminum.mdl b/Assets/Material/material_0377/Aluminum.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0a1a6e1b9f97de40878be3420b114e7832ef6511 --- /dev/null +++ b/Assets/Material/material_0377/Aluminum.mdl @@ -0,0 +1,382 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.4; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + + +export material Aluminum( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float roughness = 0.1f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float smudges = 0.5f [[ + ::anno::description("Adds blurrier reflection that follow the intensities of the Roughness texture on top."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float radius = 1.0f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius in mm"), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("When enabled the round corner effect is applied across different materials."), + ::anno::in_group("Round Corners") + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(.45f, .45f)) + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]], + float3 normal = ::state::normal() [[ + ::anno::description("Modify the surface normal."), + ::anno::display_name("Normal"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Aluminum"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Aluminum.Aluminum.png"), + ::anno::key_words(string[]("metal", "pure", "smudged", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "aluminum")) +]] + = + let { + + color normal_reflectivity = color(0.911810895428f,0.914089043421f,0.920152876196f); + color grazing_reflectivity = color(0.99942f, 1.f, 1.f); + + float radius_mm = (radius * ::state::meters_per_scene_unit() ) / 1000.f; + + bool tmp0 = false; + material_surface tmp1( + ::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), + material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5( + float3(0.f), + 1.f, + enable_round_corners ? ::state::rounded_corner_normal(radius_mm, across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Aluminum_Polished(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Aluminum Polished"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Aluminum.Aluminum_Polished.png"), + ::anno::key_words(string[]("metal", "pure", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "aluminum")) +]] += Aluminum( + infinite_tiling: true, + roughness: 0.0f, + smudges: 0.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + +export material Aluminum_Glossy_Fingerprints(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Aluminum Glossy Fingerprints"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Aluminum.Aluminum_Glossy_Fingerprints.png"), + ::anno::key_words(string[]("metal", "pure", "design", "smudged", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "Aluminum")) +]] += Aluminum( + infinite_tiling: true, + roughness: 0.23f, + smudges: 1.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + + + +/* +- Aluminum + 0.911810895428,0.914089043421,0.920152876196 + +- Copper + 0.9654565, 0.6899602, 0.4830392 + +- Chromium + 0.549302, 0.5560554, 0.5542377 + +- Iron + 0.5293683, 0.5132565, 0.4942483 + +- Gold + 1.0,0.722306985258,0.340058756743 + +- Nickel + 0.696691094703,0.640529134605,0.563260231405 + +- Platinum + 0.678533319955,0.639590890417,0.583638675413 + +- Mercury + 0.780978740699,0.779541528985,0.778441417779 + +- Silver + 0.9614253056,0.948983344333,0.918968346466 + +- Titanium + 0.618264052974,0.579396264956,0.542545225681 + +- Tungsten + 0.951001417565,0.815051845356,0.751931718925 + +- Zinc + 0.87467950988,0.868943040106,0.855089634324 + + +*/ diff --git a/Assets/Material/material_0382/Aluminum_Knurling.mdl b/Assets/Material/material_0382/Aluminum_Knurling.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3aaa01db9e7f9c64f2ded1b2420a82b4557c554e --- /dev/null +++ b/Assets/Material/material_0382/Aluminum_Knurling.mdl @@ -0,0 +1,359 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.5; + +import ::df::*; +import ::tex::*; +import ::math::*; +import ::base::*; +import ::state::*; +import ::anno::*; +import ::nvidia::core_definitions::*; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "Metal with a diamond knurling finish"; + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + //TODO: at least also handle sign of z? + //TODO: handle tangent becoming 0 + + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +export material Aluminum_Knurling( + //Appearance + float brightness = float(0.7f) [[ + ::anno::description("Adjusts the brightness of the material."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + float roughness = float(0.5f) [[ + ::anno::description("Higher values lead to a rougher appearance of the material."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + float grooves_dirt = float(0.4f) [[ + ::anno::description("Adds dirt in the grooves of the knurling pattern."), + ::anno::display_name("Grooves Dirt"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + uniform float bump_strength = float(0.8f) [[ + ::anno::description("Adds dirt in the grooves of the knurling pattern."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.0f, 1.0f) + ]], + + // Round Corners + uniform bool enable_round_corners = false [[ + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float roundcorner_radius = 0.01f [[ + ::anno::display_name("Round Corner Radius"), + ::anno::description("Sets the radius of the round corners in millimeters."), + ::anno::soft_range(0.0f, 0.1f), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the rounded corner effect also between other materials."), + ::anno::in_group("Round Corners") + ]], + //Transform + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::soft_range(0.f, 2.f), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + + // Advanced + uniform int uv_space_index = 0 [[ + ::anno::description("uses the selected UV space index."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::soft_range(0, 4) + ]] +) +[[ + ::anno::display_name("Aluminum Knurling"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Aluminum_Knurling.Aluminum_Knurling.png"), + ::anno::key_words(string[]("metal", "aluminum", "aluminium", "knurled", "knurling", "pattern", "design", "bumped")), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials") +]] += let +{ + color metal_tint = color(0.911810895428,0.914089043421,0.920152876196); // Aluminum + + // Texture setup + texture_2d normal_tex = texture_2d("./metal_knurling_norm.jpg", ::tex::gamma_linear); + texture_2d multi_heights_tex = texture_2d("./metal_knurling_multi_heights.jpg", ::tex::gamma_linear); + texture_2d diff_rough_grunge_tex = texture_2d("./metal_knurling_multi_R_diff_G_rough_B_grunge.jpg", ::tex::gamma_linear); + + // Coordinate setup + ::base::texture_coordinate_info uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + // ---------- Diff Rough Grunge Lookup ---------- + + float3 diff_rough_grunge_lookup = float3( + ::base::file_texture( + texture: diff_rough_grunge_tex, + uvw: uvw, + mono_source: ::base::mono_average + ).tint ); + + float3 multi_height_lookup = float3( + ::base::file_texture( + texture: multi_heights_tex, + uvw: uvw, + mono_source: ::base::mono_average + ).tint ); + + float3 norm = ::base::tangent_space_normal_texture( + texture: normal_tex, + factor: bump_strength, + uvw: uvw + ); + + + float remap_rough = histogram_range( + input: diff_rough_grunge_lookup.y, + range: 1.0f, + position: 0.234f + ); + + + float roughness_mapped = remap_rough + (roughness * multi_height_lookup.y); + + float remapped_diff = histogram_range( + input: diff_rough_grunge_lookup.x, + range: 1.0f, + position: (brightness * 0.4f) + 0.4f + ); + + float diff_contribution = ::math::pow(remapped_diff - ((grooves_dirt * 0.5) * multi_height_lookup.x * diff_rough_grunge_lookup.z), 2.67f); + + bsdf ggx_smith_bumped = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_mapped * roughness_mapped, + roughness_v: roughness_mapped * roughness_mapped, + tint: color(diff_contribution), + mode: ::df::scatter_reflect + ), + base: bsdf(), + weight: 1.0f, + normal: norm + ); + + bsdf diff_bsdf = ::df::diffuse_reflection_bsdf( + tint: color(diff_contribution) + ); + + + bsdf final_bsdf = ::df::weighted_layer( + weight: 1.0f - (diff_rough_grunge_lookup.z * multi_height_lookup.x * grooves_dirt), + layer: ::df::directional_factor( + normal_tint: metal_tint, + grazing_tint: color(1.0f), + base: ggx_smith_bumped + ), + base: diff_bsdf + ); + + + // Round Corners + float3 round_normal = enable_round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius * 0.001, + across_materials: across_materials + ) : ::state::normal(); +} +in material ( + + surface: material_surface( + scattering: final_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +export material Aluminum_Knurling_Worn(*) +[[ + ::anno::display_name("Aluminum Knurling - Worn"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Aluminum_Knurling.Aluminum_Knurling_Worn.png"), + ::anno::key_words(string[]("metal", "aluminum", "aluminium", "knurled", "pattern", "knurling", "design", "bumped", "worn")), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials") +]] = Aluminum_Knurling( + brightness: 0.4f, + roughness: 1.0f, + grooves_dirt: 1.0f, + bump_strength: 0.8f, + + enable_round_corners: false, + roundcorner_radius: 1.2f, + across_materials: false, + + texture_translate: 0.0f, + texture_rotate: 0.f, + texture_scale: 1.0f, + + uv_space_index: 0 +); + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assets/Material/material_0384/atlas_02_norm_dist.png b/Assets/Material/material_0384/atlas_02_norm_dist.png new file mode 100644 index 0000000000000000000000000000000000000000..a368ebd9ef175a3e7566594df7f06c1af5f5e27e --- /dev/null +++ b/Assets/Material/material_0384/atlas_02_norm_dist.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:545d952caf139061c8f7c9474fbadd59cc2dedc5616386bbcb2ac71c88add6f0 +size 1576300 diff --git a/Assets/Material/material_0384/sheet_metal_R_rough_G_ao_B_streaks.jpg b/Assets/Material/material_0384/sheet_metal_R_rough_G_ao_B_streaks.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8a919e141894a2242175b13c37dee2571da51ce0 --- /dev/null +++ b/Assets/Material/material_0384/sheet_metal_R_rough_G_ao_B_streaks.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bcc1276b9bf79abb650315d368f57d20a4f7929ca207b4c3fa5fed8b9eb6306 +size 4451500 diff --git a/Assets/Material/material_0384/sheet_metal_multi_rough.jpg b/Assets/Material/material_0384/sheet_metal_multi_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..029d7ad1d517779b532e07cc1c31366c01f36854 --- /dev/null +++ b/Assets/Material/material_0384/sheet_metal_multi_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2309dba2da6ba419f804936bf213270cb62b98a589b9c38bd99ce6bcad861f +size 7088427 diff --git a/Assets/Material/material_0384/sheet_metal_norm.jpg b/Assets/Material/material_0384/sheet_metal_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b954935687b2c9052528646b6e2e2f5136d85a70 --- /dev/null +++ b/Assets/Material/material_0384/sheet_metal_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3145f26a544857dd0163129591cb37d6c7d7934dc59aaa3611030f9f44ecd613 +size 3633863 diff --git a/Assets/Material/material_0397/brass_multi_R_brushing_G_scratches_B_rough.jpg b/Assets/Material/material_0397/brass_multi_R_brushing_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c31b1d7b46b72bdea9ba9b58268ee8a247bb140 --- /dev/null +++ b/Assets/Material/material_0397/brass_multi_R_brushing_G_scratches_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e8b8ee1f8958f0248f78bdddd60a4eb6b27a0963240b4c4002cc27f26893458 +size 7305819 diff --git a/Assets/Material/material_0397/bronze_gradients.png b/Assets/Material/material_0397/bronze_gradients.png new file mode 100644 index 0000000000000000000000000000000000000000..9db414b0d3d5edb8062c8cc2fdb72cb728fa0108 --- /dev/null +++ b/Assets/Material/material_0397/bronze_gradients.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:872b35acb60a7a90bb052da58b76f4e976cdd2c0605955ad6d06fe4ff09d9080 +size 344 diff --git a/Assets/Material/material_0397/brushed_metal_linear_norm.jpg b/Assets/Material/material_0397/brushed_metal_linear_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..275dca55737f9d3ddcbd4569a59ac0faf95b0f0b --- /dev/null +++ b/Assets/Material/material_0397/brushed_metal_linear_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2726352916df008ee9dafb1e19f3dc6f0280e3b59962d318ca3f5ef53155086 +size 5404672 diff --git a/Assets/Material/material_0400/brass_multi_R_noise_G_scratches_B_rough.jpg b/Assets/Material/material_0400/brass_multi_R_noise_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..169a271b0ac5142e72e8d74e46a6c98f7e25982a --- /dev/null +++ b/Assets/Material/material_0400/brass_multi_R_noise_G_scratches_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8b39d527a0632b7d8a0e5601c3f9b085bcbc48955d2dce72f99ea94b2c6b89e +size 10508434 diff --git a/Assets/Material/material_0400/bronze_gradients.png b/Assets/Material/material_0400/bronze_gradients.png new file mode 100644 index 0000000000000000000000000000000000000000..9db414b0d3d5edb8062c8cc2fdb72cb728fa0108 --- /dev/null +++ b/Assets/Material/material_0400/bronze_gradients.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:872b35acb60a7a90bb052da58b76f4e976cdd2c0605955ad6d06fe4ff09d9080 +size 344 diff --git a/Assets/Material/material_0400/metal_knurling_R_rough_G_curvature_B_reflectivity.jpg b/Assets/Material/material_0400/metal_knurling_R_rough_G_curvature_B_reflectivity.jpg new file mode 100644 index 0000000000000000000000000000000000000000..14dba5511e0b8a93ab1e2a50bbdbb673b0f04204 --- /dev/null +++ b/Assets/Material/material_0400/metal_knurling_R_rough_G_curvature_B_reflectivity.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26a37318bc406f7189ff6d49488b1a7cc80c60207443bd644f182d86af235642 +size 1789886 diff --git a/Assets/Material/material_0400/metal_knurling_norm.jpg b/Assets/Material/material_0400/metal_knurling_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9036d8679b5c63892eb665576e748b66afef3088 --- /dev/null +++ b/Assets/Material/material_0400/metal_knurling_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc9e78477fee20785975eb0b93ae5e861e135591998a89d624ce80fd779128f2 +size 1900541 diff --git a/Assets/Material/material_0412/metal_smudges_rough.jpg b/Assets/Material/material_0412/metal_smudges_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..32000971764b8a672817ea01556d39a62461ab7b --- /dev/null +++ b/Assets/Material/material_0412/metal_smudges_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f9e82f8ea8c39d649173c220617eedab68f68a38c749ffe8b7c6c8195ee3254 +size 2901291 diff --git a/Assets/Material/material_0414/Copper_Antique_Brushed_Patinated.mdl b/Assets/Material/material_0414/Copper_Antique_Brushed_Patinated.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fda36bb1b07c7394ee80ff1b7f91a850d7bcfaf7 --- /dev/null +++ b/Assets/Material/material_0414/Copper_Antique_Brushed_Patinated.mdl @@ -0,0 +1,565 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.4; + +import ::df::*; +import ::base::*; +import ::math::*; +import ::state::*; +import ::anno::*; +import ::tex::*; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +float3 contrast_brightness( + float3 input, + float contrast, + float brightness +) +[[ + ::anno::unused() +]] +{ + float3 return_value = contrast > 0.5 ? + float3( ::math::clamp((input.x - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0, + ::math::clamp((input.y - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0, + ::math::clamp((input.z - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0) + : + float3( ::math::clamp((input.x - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0), + ::math::clamp((input.y - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0), + ::math::clamp((input.z - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0)); + + return return_value; +} + +float contrast_brightness( + float input, + float contrast, + float brightness +) +{ + float return_value = contrast > 0.5 ? + float(::math::clamp((input - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0) + : + float(::math::clamp((input - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0)); + + return return_value; +} + + +uniform float4x4 rotation_translation_scale( + uniform float3 rotation = float3(0.) + [[ ::anno::description("Rotation applied to every UVW coordinate.") ]], + uniform float3 translation = float3(0.) + [[ ::anno::description("Offset applied to every UVW coordinate.") ]], + uniform float3 scaling = float3(1.) + [[ ::anno::description("Scale applied to every UVW coordinate.") ]] +) +[[ + ::anno::description("Construct transformation matrix from Euler rotation, translation and scale."), + ::anno::hidden() +]] +{ + float4x4 scale = + float4x4(scaling.x , 0. , 0. , 0., + 0. , scaling.y , 0. , 0., + 0. , 0. , scaling.z , 0., + translation.x, translation.y, translation.z, 1.); + + float3 s = ::math::sin(rotation); + float3 c = ::math::cos(rotation); + float4x4 rotate = + float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, + c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, + -s.y , s.x*c.y , c.x*c.y , 0.0, + 0. , 0 , 0 , 1.); + + return scale*rotate; +} + +// remaps a value that lies between low_1 and high_1 to range between low_2 and high_2 +// This is the general case for range remapping +float remap(float x, float low_1, float high_1, float low_2, float high_2) +{ + return low_2 + ((x - low_1) * (high_2 - low_2))/(high_1 - low_1); +} + + +export material Copper_Antique_Brushed_Patinated ( + float metal_roughness = 0.4f + [[ + ::anno::display_name("Metal Roughness"), + ::anno::soft_range(float(0.0f), float(1.0f)), + ::anno::description("The general roughness of the metal. the roughness of the metal will be affected as the ." + "parameter 'Patina Amount' is increased"), + ::anno::in_group("Appearance") + ]], + uniform float patina_metal_blend = .5f + [[ + ::anno::display_name("Patina Amount"), + ::anno::hard_range(float(0.0), float(1.0)), + ::anno::description("Adjusts how much patina has settled on the copper material ."), + ::anno::in_group("Appearance") + ]], + uniform float patina_metal_blend_softness = .25f + [[ + ::anno::display_name("Patina Transition Softness"), + ::anno::soft_range(float(0.0), float(1.0)), + ::anno::hard_range(float(0.0), float(5.0)), + ::anno::description("Adjusts how soft the fallof between patina and metal is."), + ::anno::in_group("Appearance") + ]], + uniform float corrosion_offset = .25f + [[ + ::anno::display_name("Corrosion Offset"), + ::anno::soft_range(float(0.0), float(1.0)), + ::anno::description("Offsets the roughness of the metal, so that it gets earlier glossy as the patina progresses to settle on the material."), + ::anno::in_group("Appearance") + ]], + float patina_brightness = 0.5f + [[ + ::anno::display_name("Patina Brightness"), + ::anno::soft_range(float(0.0f), float(1.0f)), + ::anno::description("A control to attenuate the brightness of the patina."), + ::anno::in_group("Appearance") + ]], + float smudge_amount = 0.0f + [[ + ::anno::display_name("Metal Smudge"), + ::anno::soft_range(float(0.0f), float(1.0f)), + ::anno::description("Adds glossy smudges on top of the material."), + ::anno::in_group("Appearance") + ]], + uniform float patina_bump_amount = 0.35f + [[ + ::anno::display_name("Patina Bump Amount"), + ::anno::soft_range(float(0.0f), float(1.0f)), + ::anno::description("Specifies the intensity of the patina normal texture."), + ::anno::in_group("Normal") + ]], + uniform float copper_bump_amount = 1.0 + [[ + ::anno::display_name("Copper Bump Amount"), + ::anno::description("Specifies the intensity of the normal texture for the underlying copper."), + ::anno::in_group("Normal") + ]], + + // Adjustments Group + uniform float2 texture_translate = 0.0f + [[ + ::anno::display_name("Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Adjustments") + ]], + uniform float texture_rotate = 0.f + [[ + ::anno::display_name("Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Adjustments") + ]], + uniform float2 texture_scale = 1.0f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Adjustments") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Patinated copper"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Patinated.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] = let { + float reflection_contrast = 0.25; + float patina_brightness_x = patina_brightness * 0.5 + 0.5; + + float patina_metal_blend_x = patina_metal_blend * 0.4; + float patina_metal_blend_softness_x = (patina_metal_blend_softness + 0.001) * 0.12; + float corrosion_offset_x = corrosion_offset * 0.15; + + ::base::texture_coordinate_info uvw = ::base::coordinate_source( + coordinate_system: ::base::texture_coordinate_uvw, + texture_space: 0 + ); + + ::base::texture_coordinate_info transformed_uvw = ::base::transform_coordinate( + transform: rotation_translation_scale( + scaling: float3(1.0f/texture_scale.x, 1.0f/texture_scale.y, 1.0), + rotation: float3(0.0, 0.0, texture_rotate/180.*::math::PI ), + translation: float3(texture_translate.x, texture_translate.y, 0.0) + ), + coordinate: uvw + ); + + ::base::texture_coordinate_info patina_uvw = ::base::transform_coordinate( + transform: rotation_translation_scale( + scaling: float3(1.0f/(texture_scale.x*2.0f), 1.0f/(texture_scale.y*2.0f), 1.0), + rotation: float3(0.0, 0.0, texture_rotate/180.*::math::PI ), + translation: float3(texture_translate.x, texture_translate.y, 0.0) + ), + coordinate: uvw + ); + + // Diffuse Color lookup + color diffuse_color = ::base::file_texture( + texture: texture_2d("./brushed_antique_copper_diff.jpg" , ::tex::gamma_srgb), + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(1.0, 1.0, 1.0), + mono_source: ::base::mono_average, + uvw: transformed_uvw, + clip: false + ).tint; + + // Patina diffuse color + ::base::texture_return patina_diffuse_color = ::base::file_texture( + texture: texture_2d("./copper_patina_diff.jpg" , ::tex::gamma_srgb), + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(1.0, 1.0, 1.0), + mono_source: ::base::mono_average, + uvw: patina_uvw, + clip: false + ); + + // Patina normal + float3 patina_bump = ::base::tangent_space_normal_texture( + texture: texture_2d("./copper_patina_norm.jpg" , ::tex::gamma_linear), + factor: patina_bump_amount, + uvw: transformed_uvw, + flip_tangent_u: false, + flip_tangent_v: false + ); + + color final_diffuse_color = diffuse_color; + + float roughness_lookup = ::math::clamp(contrast_brightness( + ::tex::lookup_float( + tex: texture_2d("./brushed_antique_copper_rough.jpg" , ::tex::gamma_linear), + coord: float2(uvw.position.x, uvw.position.y)), + reflection_contrast, // contrast + metal_roughness // brightness + ) + ::base::file_texture( + texture: texture_2d("./brushed_antique_copper_smudge_map.jpg" , ::tex::gamma_linear), + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(smudge_amount * .5f), + mono_source: ::base::mono_average, + uvw: transformed_uvw, + clip: false + ).mono, 0.0f, 1.0f) + + ::math::clamp(remap(patina_diffuse_color.mono, + patina_metal_blend_x - patina_metal_blend_softness_x - corrosion_offset_x, + patina_metal_blend_x + patina_metal_blend_softness_x + corrosion_offset_x, + 1.0, + 0.0), 0.0, 1.0); + + + // Specular Level lookup + float specular_level = ::base::file_texture( + texture: texture_2d("./brushed_antique_copper_ref.jpg" , ::tex::gamma_linear), + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(1.0, 1.0, 1.0), + mono_source: ::base::mono_average, + uvw: transformed_uvw, + clip: false + ).mono; + + + // Metallic compositing + float metallic = 1.0f; + + + // Patina + bsdf patina_bsdf = ::df::diffuse_reflection_bsdf( + roughness: 0.0f, //assign the user controllable + tint: patina_diffuse_color.tint * patina_brightness_x //values to the bsdf + ); + + + bsdf diffuse_bsdf = ::df::diffuse_reflection_bsdf( + roughness: 0.0f, //assign the user controllable + tint: final_diffuse_color //values to the bsdf + ); + + bsdf ggx_smith_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_lookup*roughness_lookup, + roughness_v: roughness_lookup*roughness_lookup, + tint: color(1.0, 1.0, 1.0), + mode: ::df::scatter_reflect + ); + + + bsdf custom_curve_layer_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.08 * specular_level, + grazing_reflectivity: 1.0, + exponent: 3.0, + weight: 1.0, + layer: ggx_smith_bsdf, + base: diffuse_bsdf + ); + + bsdf directional_factor_bsdf = ::df::directional_factor( + normal_tint: final_diffuse_color, + grazing_tint: color(1.0, 1.0, 1.0), + exponent: 3.0f, + base: ggx_smith_bsdf + ); + + bsdf pre_final_bsdf = ::df::weighted_layer( + base: custom_curve_layer_bsdf, + weight: metallic, + layer: directional_factor_bsdf + ); + + bsdf final_bsdf = ::df::weighted_layer( + base: pre_final_bsdf, + weight: remap(patina_diffuse_color.mono, + patina_metal_blend_x - patina_metal_blend_softness_x, + patina_metal_blend_x + patina_metal_blend_softness_x, + 1.0, + 0.0), + layer: patina_bsdf, + normal: patina_bump + ); + + // Normal lookup + float3 bump = ::base::tangent_space_normal_texture( + texture: texture_2d("./brushed_antique_copper_norm.jpg" , ::tex::gamma_linear), + factor: copper_bump_amount, + uvw: transformed_uvw, + flip_tangent_u: false, + flip_tangent_v: false + ); + + +} in material ( + surface: material_surface( + scattering: final_bsdf + + ), + geometry: material_geometry( + normal: bump + ) +); + + + +export material Copper_Antique_Brushed_Minimal_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Minimal Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Minimal_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.4f, + patina_metal_blend: 0.2f, + patina_metal_blend_softness:0.5f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.35f, + copper_bump_amount: 1.0f + ); + + +export material Copper_Antique_Brushed_Slight_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Slight Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Slight_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.4f, + patina_metal_blend: 0.3f, + patina_metal_blend_softness:0.5f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.35f, + copper_bump_amount: 1.0f + ); + +export material Copper_Antique_Brushed_Slight_Patina_Spots(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Slight Patina Spots"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Slight_Patina_Spots.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.5f, + patina_metal_blend: 0.38f, + patina_metal_blend_softness:0.1f, + corrosion_offset: 0.1f, + patina_brightness: 0.8f, + smudge_amount: 0.0f, + patina_bump_amount: 0.7f, + copper_bump_amount: 1.0f + ); + + +export material Copper_Antique_Brushed_Medium_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Medium Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Medium_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.4f, + patina_metal_blend: 0.4f, + patina_metal_blend_softness:0.5f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.35f, + copper_bump_amount: 1.0f + ); + + +export material Copper_Antique_Brushed_Strong_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Strong Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Strong_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.4f, + patina_metal_blend: 0.5f, + patina_metal_blend_softness:0.6f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.35f, + copper_bump_amount: 1.0f + ); + + +export material Copper_Antique_Brushed_Very_Strong_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Very Strong Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Very_Strong_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.5f, + patina_metal_blend: 0.55f, + patina_metal_blend_softness:0.4f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.35f, + copper_bump_amount: 1.0f + ); + +export material Copper_Antique_Brushed_Pure_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Pure Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Pure_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.5f, + patina_metal_blend: 1.0f, + patina_metal_blend_softness:0.4f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 0.44f, + copper_bump_amount: 1.0f + ); + + + + // --------------------------- + +export material Copper_Antique_Brushed_Crusted_Patina(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Copper - Pure Crusted Patina"), + ::anno::description("A copper material that starts building a patina on top of its surface."), + ::anno::key_words(string[]("design", "metal", "copper", "antique", "corrosion", "oxidized", "aged", "bumped", "brushed", "scratched", "patina", "green", "rust")), + ::anno::thumbnail("./.thumbs/Copper_Antique_Brushed_Patinated.Copper_Antique_Brushed_Crusted_Patina.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Copper_Antique_Brushed_Patinated( + metal_roughness: 0.5f, + patina_metal_blend: 1.0f, + patina_metal_blend_softness:0.4f, + corrosion_offset: 0.2f, + patina_brightness: 0.75f, + smudge_amount: 0.0f, + patina_bump_amount: 1.0f, + copper_bump_amount: 1.0f + ); + + + diff --git a/Assets/Material/material_0415/brushed_metal_linear_R_rough_G_scratchvar_B_impurities.jpg b/Assets/Material/material_0415/brushed_metal_linear_R_rough_G_scratchvar_B_impurities.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fa03f6ba0a9df0a06a1ec9ced0ede8254c2ce3b1 --- /dev/null +++ b/Assets/Material/material_0415/brushed_metal_linear_R_rough_G_scratchvar_B_impurities.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9612c22311f811a75a726f76f789577689c393965ea3c4a63409b9a2b79fed03 +size 6136073 diff --git a/Assets/Material/material_0415/brushed_metal_linear_norm.jpg b/Assets/Material/material_0415/brushed_metal_linear_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..275dca55737f9d3ddcbd4569a59ac0faf95b0f0b --- /dev/null +++ b/Assets/Material/material_0415/brushed_metal_linear_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2726352916df008ee9dafb1e19f3dc6f0280e3b59962d318ca3f5ef53155086 +size 5404672 diff --git a/Assets/Material/material_0419/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg b/Assets/Material/material_0419/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e5130fa5a243fd255a37ff6099a38a6a6e41d52 --- /dev/null +++ b/Assets/Material/material_0419/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51a6eb57877fc78f9da063bc7eedfb417ccde0726015712d400dbe84ea03fa46 +size 3114776 diff --git a/Assets/Material/material_0419/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg b/Assets/Material/material_0419/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..30f1a268fffa7e0b70da8c2e3a04396b75b75e0e --- /dev/null +++ b/Assets/Material/material_0419/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22a432baddf95f05140af2f8fb47d763439f06e84648e89eddc9d9b726d59867 +size 6891717 diff --git a/Assets/Material/material_0419/metal_scratched_scratch_norm.jpg b/Assets/Material/material_0419/metal_scratched_scratch_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b5b09ebf9955e03dfc4ab47f095f7380cd485197 --- /dev/null +++ b/Assets/Material/material_0419/metal_scratched_scratch_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fef50be8c23dabfbd7a799a3434ba6c39122d058140dd9c11cb0c3da1da5b537 +size 3254868 diff --git a/Assets/Material/material_0421/Diamond_Plate_Double_Tear.mdl b/Assets/Material/material_0421/Diamond_Plate_Double_Tear.mdl new file mode 100644 index 0000000000000000000000000000000000000000..6540008dd67290ac664b13c7dec16dec95dab3e8 --- /dev/null +++ b/Assets/Material/material_0421/Diamond_Plate_Double_Tear.mdl @@ -0,0 +1,547 @@ + + +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A diamont metal plate material. The added texture reduces the risk of slipping, " +"making diamond plate a solution for stairs, catwalks, walkways, and ramps in industrial settings"; + + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + + +float contrast_brightness( + float input = 0.5f, + float contrast = 0.5f, + float brightness = 0.5f +) +{ + float return_value = contrast > 0.5 ? + float(math::clamp((input - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0) + : + float(math::clamp((input - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0)); + + return return_value; +} + +float3 transform_internal_to_tangent(float3 n) +[[ + anno::hidden() +]] +{ + return + n.x* float3(state::texture_tangent_u(0).x,state::texture_tangent_v(0).x,state::normal().x)+ + n.y* float3(state::texture_tangent_u(0).y,state::texture_tangent_v(0).y,state::normal().y)+ + n.z* float3(state::texture_tangent_u(0).z,state::texture_tangent_v(0).z,state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +[[ + anno::hidden() +]] +{ + return state::texture_tangent_u(0) * n.x + + state::texture_tangent_v(0) * n.y + + state::normal() * n.z ; +} + +// Returns a normal by adding a detail normal to a global normal. +// If detail blending of two normal maps gives visual artifacts, check if texture_2d are loaded +// correctly with tex::gamma_linear +float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + n = n_t*math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + +struct vm_coordinates{ + float2 uv; + float rotation; + int uv_space_index; + float4 carry; +}; + +enum vm_mono_select +[[ + anno::description("Modes for the creation of a gray-scale value from a color"), + anno::hidden() +]] +{ + mono_r = 0, + mono_g = 1, + mono_b = 2, + mono_a = 3, + mono_average = 4 +}; + +vm_coordinates vm_coord +( + float2 translation = float2(0.0f, 0.0) [[ + ::anno::display_name("Translation"), + ::anno::description("Translates the coordinates.") + ]], + float rotation = 0.0f [[ + ::anno::display_name("Rotation"), + ::anno::description("Rotates the coordinates in degrees.") + ]], + float2 scaling = float2(1.0f, 1.0f) [[ + ::anno::display_name("Scaling"), + ::anno::description("Scales the coordinates.") + ]], + uniform int uv_space = 0 [[ + ::anno::display_name("UV Space"), + ::anno::description("Chose the UV space.") + ]] +) +[[ + ::anno::display_name("vm Transform"), + ::anno::description("Generates coordinates to be used in vm_lookup functions.") +]] +{ + vm_coordinates uv; + ::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space); + uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f; + uv.uv = float2(info.position.x, info.position.y); + float sine = ::math::sin(uv.rotation); + float cosine = ::math::cos(uv.rotation); + float2x2 rot = float2x2(cosine, -sine, sine, cosine); + uv.uv = rot * uv.uv; + uv.uv /= scaling; + uv.uv += translation; + // Translation before or after rotation? + return uv; +} + +vm_coordinates vm_coord_post_scale( + vm_coordinates uv = vm_coord(), + float2 scale = 1.0f +) +{ + uv.uv /= scale; + return uv; +} + +float3 vm_tex_infinite( + uniform texture_2d tex = texture_2d(), + vm_coordinates uv = vm_coord(), + float3 average_color = float3(0.5f, 0.5f, 1.0f), + float patch_size = 1.0, + bool gamma_correct = true, + float gamma = 2.2f +) +{ + float2 uv_in = uv.uv; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * (uv.uv / patch_size); //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V))+int2(800); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0,1)))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1,0)))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1)))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1, 0)))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0, 1)))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0f, 1.0f); + + return gamma_correct? ::math::pow(::math::max(O, float3(0.0f)), gamma) : float3(O); +} + +::base::texture_return vm_tex_lookup( + uniform texture_2d tex, + vm_coordinates uv = vm_coord(), + uniform vm_mono_select mono_source = mono_a, + float4 scale = float4(1.0f)) +{ + float mono; + float4 lookup = ::tex::lookup_float4(tex, uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) * scale; + switch( mono_source ) { + case mono_r: mono = lookup.x; + break; + case mono_g: mono = lookup.y; + break; + case mono_b: mono = lookup.z; + break; + case mono_a: mono = lookup.w; + break; + case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z)); + break; + } + return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono); +} + +float3 vm_tex_normal_lookup( + uniform texture_2d tex, + vm_coordinates uv = vm_coord(), + float strength = 1.0f +) +{ + float rot = uv.rotation; + // Lookup and convert normal texture to -1 ... 1 range + float3 norm = (::tex::lookup_float3(tex, uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) - float3(.5f)) * 2.0f; + norm = ::math::normalize(norm * float3(strength, strength, 1.0)); + // if any rotation happened prior to the lookup, compensate for it + norm = float3(::math::cos(rot) * norm.x - ::math::sin(rot) * norm.y, + ::math::sin(rot) * norm.x + ::math::cos(rot) * norm.y, + norm.z); + return norm.x * ::state::texture_tangent_u(uv.uv_space_index) + + norm.y * ::state::texture_tangent_v(uv.uv_space_index) + + norm.z * ::state::normal(); +} + +export material Diamond_Plate_Double_Tear( + float metal_roughness = 0.27f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Metal Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(0) + ]], + float roughness_variation = 0.05f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non-uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float pattern_shininess = 0.f [[ + ::anno::description("Simulates abrasion of the shape tops by making them more shiny."), + ::anno::display_name("Pattern Shininess"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float dirt_amount = .0f [[ + ::anno::description("The amount of dirt applied to the material."), + ::anno::display_name("Dirt Amount"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float dirt_weight = 0.f [[ + ::anno::description("Makes the dirt transition sharper and more defined."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float dirt_brightness = 0.38f [[ + ::anno::description("Makes the dirt darker or brighter."), + ::anno::display_name("Dirt Brightness"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(6) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform"), + ::anno::ui_order(8) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]]) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 2x - New Shiny"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "reflective", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "new", "shiny", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Double_Tear.Diamond_Plate_Double_Tear.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + + float2 texture_rescale = texture_scale * 0.15f; + bool tmp0 = false; + texture_2d shape_multi_ao_height = texture_2d("./doubletear_shape_multi_R_ao_G_height_B_opacity.png", ::tex::gamma_linear); + texture_2d shape_norm = texture_2d("./doubletear_shape_norm.jpg", ::tex::gamma_linear); + + material_surface tmp1(::df::weighted_layer(contrast_brightness(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.659999967f, 0.5f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y) * (::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y)), ::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y) * (::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y)), color(0.387622833f, 0.387622833f, 0.387622833f), color(0.387622833f, 0.387622833f, 0.387622833f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(vm_tex_lookup(texture_2d("./dirt.jpg", ::tex::gamma_srgb), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 0.5f), mono_average, float4(dirt_brightness * 0.620000005f + 0.0599999987f)).tint, 0.f), bsdf(), add_detail_normal(::math::lerp(vm_tex_normal_lookup(texture_2d("./plate_dirt_norm.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f), ::state::normal(), contrast_brightness(::math::pow(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.229999989f), 0.699999988f, 0.5f)), vm_tex_normal_lookup(shape_norm, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f))), add_detail_normal(::math::lerp(vm_tex_normal_lookup(texture_2d("./plate_dirt_norm.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f), ::state::normal(), contrast_brightness(::math::pow(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.229999989f), 0.699999988f, 0.5f)), vm_tex_normal_lookup(shape_norm, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +// 2 +export material Diamond_Plate_Double_Tear_Glossy(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 2x - Glossy"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "gray", "glossy")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Double_Tear.Diamond_Plate_Double_Tear_Glossy.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Double_Tear ( + metal_roughness: 0.4f, + roughness_variation: 0.47f, + pattern_shininess: 0.0f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.38f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + + +// 3 +export material Diamond_Plate_Double_Tear_Shiny_Tops(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 2x - Shiny Tops"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "shiny", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Double_Tear.Diamond_Plate_Double_Tear_Shiny_Tops.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Double_Tear ( + metal_roughness: 0.4f, + roughness_variation: 0.47f, + pattern_shininess: 0.75f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.38f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + +// 4 +export material Diamond_Plate_Double_Tear_Matte_Aged(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 2x - Matte Aged"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "matte", "aged", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Double_Tear.Diamond_Plate_Double_Tear_Matte_Aged.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Double_Tear ( + metal_roughness: 0.63f, + roughness_variation: 0.72f, + pattern_shininess: 0.0f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + + +// 5 +export material Diamond_Plate_Double_Tear_Dirty_Worn(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 2x - Dirty Worn"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "gray", "worn", "old", "dirty", "decayed")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Double_Tear.Diamond_Plate_Double_Tear_Dirty_Worn.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Double_Tear ( + metal_roughness: 0.38f, + roughness_variation: 0.53f, + pattern_shininess: 0.0f, + dirt_amount: 0.38f, + dirt_weight: 1.0f, + dirt_brightness: 0.4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); \ No newline at end of file diff --git a/Assets/Material/material_0422/Diamond_Plate_Quadruple_Tear.mdl b/Assets/Material/material_0422/Diamond_Plate_Quadruple_Tear.mdl new file mode 100644 index 0000000000000000000000000000000000000000..6b637f6d5e1d1aa59435739d72d0b7d9aae76752 --- /dev/null +++ b/Assets/Material/material_0422/Diamond_Plate_Quadruple_Tear.mdl @@ -0,0 +1,543 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A diamont metal plate material. The added texture reduces the risk of slipping, " +"making diamond plate a solution for stairs, catwalks, walkways, and ramps in industrial settings"; + + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float contrast_brightness( + float input = 0.5f, + float contrast = 0.5f, + float brightness = 0.5f +) +{ + float return_value = contrast > 0.5 ? + float(math::clamp((input - 0.5) * 1/(1.000001 - (contrast - 0.5)*2.0) + 0.5, 0.0, 1.0) + (brightness - 0.5) * 2.0) + : + float(math::clamp((input - 0.5) * contrast * 2.0 + 0.5 + (brightness - 0.5)*2.0, 0.0, 1.0)); + + return return_value; +} + +float3 transform_internal_to_tangent(float3 n) +[[ + anno::hidden() +]] +{ + return + n.x* float3(state::texture_tangent_u(0).x,state::texture_tangent_v(0).x,state::normal().x)+ + n.y* float3(state::texture_tangent_u(0).y,state::texture_tangent_v(0).y,state::normal().y)+ + n.z* float3(state::texture_tangent_u(0).z,state::texture_tangent_v(0).z,state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +[[ + anno::hidden() +]] +{ + return state::texture_tangent_u(0) * n.x + + state::texture_tangent_v(0) * n.y + + state::normal() * n.z ; +} + +// Returns a normal by adding a detail normal to a global normal. +// If detail blending of two normal maps gives visual artifacts, check if texture_2d are loaded +// correctly with tex::gamma_linear +float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + n = n_t*math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + +struct vm_coordinates{ + float2 uv; + float rotation; + int uv_space_index; + float4 carry; +}; + +enum vm_mono_select +[[ + anno::description("Modes for the creation of a gray-scale value from a color."), + anno::hidden() +]] +{ + mono_r = 0, + mono_g = 1, + mono_b = 2, + mono_a = 3, + mono_average = 4 +}; + +vm_coordinates vm_coord +( + float2 translation = float2(0.0f, 0.0) [[ + ::anno::display_name("Translation"), + ::anno::description("Translates the coordinates.") + ]], + float rotation = 0.0f [[ + ::anno::display_name("Rotation"), + ::anno::description("Rotates the coordinates in degrees.") + ]], + float2 scaling = float2(1.0f, 1.0f) [[ + ::anno::display_name("Scaling"), + ::anno::description("Scales the coordinates.") + ]], + uniform int uv_space = 0 [[ + ::anno::display_name("UV Space"), + ::anno::description("Chose the UV space.") + ]] +) +[[ + ::anno::display_name("vm Transform"), + ::anno::description("Generates coordinates to be used in vm_lookup functions.") +]] +{ + vm_coordinates uv; + ::base::texture_coordinate_info info = ::base::coordinate_source( ::base::texture_coordinate_uvw, uv_space); + uv.rotation = (rotation * 3.1415926535897932384626433832f) / 180.f; + uv.uv = float2(info.position.x, info.position.y); + float sine = ::math::sin(uv.rotation); + float cosine = ::math::cos(uv.rotation); + float2x2 rot = float2x2(cosine, -sine, sine, cosine); + uv.uv = rot * uv.uv; + uv.uv /= scaling; + uv.uv += translation; + // Translation before or after rotation? + return uv; +} + +vm_coordinates vm_coord_post_scale( + vm_coordinates uv = vm_coord(), + float2 scale = 1.0f +) +{ + uv.uv /= scale; + return uv; +} + +float3 vm_tex_infinite( + uniform texture_2d tex = texture_2d(), + vm_coordinates uv = vm_coord(), + float3 average_color = float3(0.5f, 0.5f, 1.0f), + float patch_size = 1.0, + bool gamma_correct = true, + float gamma = 2.2f +) +{ + float2 uv_in = uv.uv; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * (uv.uv / patch_size); //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V))+int2(800); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0,1)))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1,0)))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1)))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(1, 0)))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(tex, U-rnd22(I+int2(0, 1)))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0f, 1.0f); + + return gamma_correct? ::math::pow(::math::max(O, float3(0.0f)), gamma) : float3(O); +} + +::base::texture_return vm_tex_lookup( + uniform texture_2d tex, + vm_coordinates uv = vm_coord(), + uniform vm_mono_select mono_source = mono_a, + float4 scale = float4(1.0f)) +{ + float mono; + float4 lookup = ::tex::lookup_float4(tex, uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) * scale; + switch( mono_source ) { + case mono_r: mono = lookup.x; + break; + case mono_g: mono = lookup.y; + break; + case mono_b: mono = lookup.z; + break; + case mono_a: mono = lookup.w; + break; + case mono_average: mono = ::math::average(float3(lookup.x, lookup.y, lookup.z)); + break; + } + return ::base::texture_return(color(lookup.x, lookup.y, lookup.z), mono); +} + +float3 vm_tex_normal_lookup( + uniform texture_2d tex, + vm_coordinates uv = vm_coord(), + float strength = 1.0f +) +{ + float rot = uv.rotation; + // Lookup and convert normal texture to -1 ... 1 range + float3 norm = (::tex::lookup_float3(tex, uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) - float3(.5f)) * 2.0f; + norm = ::math::normalize(norm * float3(strength, strength, 1.0)); + // if any rotation happened prior to the lookup, compensate for it + norm = float3(::math::cos(rot) * norm.x - ::math::sin(rot) * norm.y, + ::math::sin(rot) * norm.x + ::math::cos(rot) * norm.y, + norm.z); + return norm.x * ::state::texture_tangent_u(uv.uv_space_index) + + norm.y * ::state::texture_tangent_v(uv.uv_space_index) + + norm.z * ::state::normal(); +} + +export material Diamond_Plate_Quadruple_Tear( + float metal_roughness = 0.27f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Metal Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(0) + ]], + float roughness_variation = 0.05f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non-uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float pattern_shininess = 0.f [[ + ::anno::description("Simulates abrasion of the shape tops by making them more shiny."), + ::anno::display_name("Pattern Shininess"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float dirt_amount = 0.f [[ + ::anno::description("The amount of dirt applied to the material."), + ::anno::display_name("Dirt Amount"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float dirt_weight = 1.f [[ + ::anno::description("Makes the dirt transition sharper and more defined."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float dirt_brightness = 0.38f [[ + ::anno::description("Amkes the dirt arker or brighter."), + ::anno::display_name("Dirt Brightness"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(6) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + float2 texture_scale = 1.0f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::ui_order(8) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]]) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 4x - New Shiny"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "reflective", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "new", "shiny", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Quadruple_Tear.Diamond_Plate_Quadruple_Tear.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + + float2 texture_rescale = texture_scale * 0.15f; + bool tmp0 = false; + texture_2d shape_multi_ao_height = texture_2d("./fourtear_shape_multi_R_ao_G_height.png", ::tex::gamma_linear); + texture_2d shape_norm = texture_2d("./fourtear_shape_norm.jpg", ::tex::gamma_linear); + + material_surface tmp1(::df::weighted_layer(contrast_brightness(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.659999967f, 0.5f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y) * (::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y)), ::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y) * (::math::lerp(0.639999986f, histogram_range(vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, roughness_variation * 0.400000006f, metal_roughness * 0.629999995f + 0.0500000007f) + roughness_variation * 0.299999982f * ::math::pow(1.f - float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 1.26999998f), ::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f)) * (1.f - pattern_shininess * float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y)), color(0.387622833f, 0.387622833f, 0.387622833f), color(0.387622833f, 0.387622833f, 0.387622833f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(vm_tex_lookup(texture_2d("./dirt.jpg", ::tex::gamma_srgb), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 0.5f), mono_average, float4(dirt_brightness * 0.620000005f + 0.0599999987f)).tint, 0.f), bsdf(), add_detail_normal(::math::lerp(vm_tex_normal_lookup(texture_2d("./plate_dirt_norm.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f), ::state::normal(), contrast_brightness(::math::pow(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.229999989f), 0.699999988f, 0.5f)), vm_tex_normal_lookup(shape_norm, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f))), add_detail_normal(::math::lerp(vm_tex_normal_lookup(texture_2d("./plate_dirt_norm.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f), ::state::normal(), contrast_brightness(::math::pow(::math::clamp(::math::lerp(1.f, histogram_scan_big(vm_tex_infinite(texture_2d("./transition_noise.jpg", ::tex::gamma_linear), vm_coord_post_scale(vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 5.f), float3(0.50999999f), 1.f, true, 2.20000005f).x, 0.620000005f, dirt_amount) + ::math::max(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).y, ::math::pow(float3(vm_tex_lookup(shape_multi_ao_height, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), mono_a, float4(1.f)).tint).x, 0.680000007f) * ::math::pow(1.f - vm_tex_infinite(texture_2d("./plate_dirt.jpg", ::tex::gamma_linear), vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), float3(0.647000015f), 1.f, false, 2.20000005f).x, 0.969999969f)), ::math::pow(dirt_weight, 0.280000001f)), 0.f, 1.f), 0.229999989f), 0.699999988f, 0.5f)), vm_tex_normal_lookup(shape_norm, vm_coord(texture_translate, texture_rotate, texture_rescale, uv_space_index), 1.f))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + +// 2 +export material Diamond_Plate_Quadruple_Tear_Glossy(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 4x - Glossy"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "gray", "glossy")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Quadruple_Tear.Diamond_Plate_Quadruple_Tear_Glossy.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Quadruple_Tear ( + metal_roughness: 0.4f, + roughness_variation: 0.47f, + pattern_shininess: 0.0f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.38f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + + +// 3 +export material Diamond_Plate_Quadruple_Tear_Shiny_Tops(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 4x - Shiny Tops"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "shiny", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Quadruple_Tear.Diamond_Plate_Quadruple_Tear_Shiny_Tops.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Quadruple_Tear ( + metal_roughness: 0.4f, + roughness_variation: 0.47f, + pattern_shininess: 0.75f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.38f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + +// 4 +export material Diamond_Plate_Quadruple_Tear_Matte_Aged(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 4x - Matte Aged"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "matte", "aged", "gray")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Quadruple_Tear.Diamond_Plate_Quadruple_Tear_Matte_Aged.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Quadruple_Tear ( + metal_roughness: 0.63f, + roughness_variation: 0.72f, + pattern_shininess: 0.0f, + dirt_amount: 0.0f, + dirt_weight: 1.0f, + dirt_brightness: 0.4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); + + +// 5 +export material Diamond_Plate_Quadruple_Tear_Dirty_Worn(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Diamond Plate 4x - Dirty Worn"), + ::anno::contributor("Rüdiger Raab"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("metal", "plate", "diamond", "pattern", "safety", "bumped", "embossed", "infinite tiling", "architecture", "naval", "sanitary", "interior", "exterior", "gray", "worn", "old", "dirty", "decayed")), + ::anno::thumbnail("./.thumbs/Diamond_Plate_Quadruple_Tear.Diamond_Plate_Quadruple_Tear_Dirty_Worn.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Diamond_Plate_Quadruple_Tear ( + metal_roughness: 0.38f, + roughness_variation: 0.53f, + pattern_shininess: 0.0f, + dirt_amount: 0.38f, + dirt_weight: 1.0f, + dirt_brightness: 0.4f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false +); \ No newline at end of file diff --git a/Assets/Material/material_0443/Metal_Mesh_Weave_01.mdl b/Assets/Material/material_0443/Metal_Mesh_Weave_01.mdl new file mode 100644 index 0000000000000000000000000000000000000000..80e72d63feb090102b9d45df7827a5f4d5fd9167 --- /dev/null +++ b/Assets/Material/material_0443/Metal_Mesh_Weave_01.mdl @@ -0,0 +1,532 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.4; + +import ::df::*; +import ::base::*; +import ::math::*; +import ::state::*; +import ::anno::*; +import ::tex::*; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +uniform float4x4 rotation_translation_scale( + uniform float3 rotation = float3(0.) + [[ ::anno::description("Rotation applied to every UVW coordinate.") ]], + uniform float3 translation = float3(0.) + [[ ::anno::description("Offset applied to every UVW coordinate.") ]], + uniform float3 scaling = float3(1.) + [[ ::anno::description("Scale applied to every UVW coordinate.") ]] +) +[[ + ::anno::description("Construct transformation matrix from Euler rotation, translation and scale."), + ::anno::hidden() +]] +{ + float4x4 scale = + float4x4(scaling.x , 0. , 0. , 0., + 0. , scaling.y , 0. , 0., + 0. , 0. , scaling.z , 0., + translation.x, translation.y, translation.z, 1.); + + float3 s = ::math::sin(rotation); + float3 c = ::math::cos(rotation); + float4x4 rotate = + float4x4( c.y*c.z , -c.x*s.z + s.x*s.y*c.z , s.x*s.z + c.x*s.y*c.z , 0.0, + c.y*s.z , c.x*c.z + s.x*s.y*s.z , -s.x*c.z + c.x*s.y*s.z , 0.0, + -s.y , s.x*c.y , c.x*c.y , 0.0, + 0. , 0 , 0 , 1.); + + return scale*rotate; +} + +::base::texture_return blend_colors( + color color_1 = color(1.0, 0.0, 0.0), + color color_2 = color(0.0, 1.0, 0.0), + float blend = 0.5 +) +[[ + ::anno::hidden() +]] +{ + return ::base::blend_color_layers( + layers: ::base::color_layer[]( + ::base::color_layer( + layer_color: color_2, + weight: blend, + mode: ::base::color_layer_blend + )), + base: color_1 + ); +} + +::base::texture_return multiply_colors( + color color_1 = color(1.0, 0.0, 0.0), + color color_2 = color(0.0, 1.0, 0.0), + float blend = 0.5 +) +[[ + ::anno::hidden() +]] +{ + return ::base::blend_color_layers( + layers: ::base::color_layer[]( + ::base::color_layer( + layer_color: color_2, + weight: blend, + mode: ::base::color_layer_multiply + )), + base: color_1 + ); +} + +// Returns the normal n in tangent space, given n is in internal space. +float3 transform_internal_to_tangent(float3 n) +[[ + ::anno::hidden() +]] +{ + return + n.x* float3(::state::texture_tangent_u(0).x,::state::texture_tangent_v(0).x,::state::normal().x)+ + n.y* float3(::state::texture_tangent_u(0).y,::state::texture_tangent_v(0).y,::state::normal().y)+ + n.z* float3(::state::texture_tangent_u(0).z,::state::texture_tangent_v(0).z,::state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +{ + return ::state::texture_tangent_u(0) * n.x + + ::state::texture_tangent_v(0) * n.y + + ::state::normal() * n.z ; +} + + +// Returns a normal by adding a detail normal to a global normal. +float3 add_detail_normal(float3 nd = ::state::normal(), float3 n = ::state::normal()) +[[ + ::anno::hidden() +]] +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + + n = n_t*::math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + + +export material Metal_Mesh_Weave_01 ( + color weave_color = color(0.93f,0.93f,0.93f) + [[ + ::anno::display_name("Metal Weave Color"), + ::anno::description("Specifies the base color of the material."), + ::anno::in_group("Appearance") + ]], + color rod_color = color(0.93f,0.93f,0.63f) + [[ + ::anno::display_name("Metal Bar Color"), + ::anno::description("Specifies the base color of the material."), + ::anno::in_group("Appearance") + ]], + float roughness_amount = float(0.6f) + [[ + ::anno::display_name("Brushing Roughness Variation"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::description("The Roughness of the material."), + ::anno::in_group("Appearance") + ]], + float rod_roughness = float(0.0f) + [[ + ::anno::display_name("Metal Bar Roughness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::description("The Roughness of the material."), + ::anno::in_group("Appearance") + ]], + float AO_weight = 0.7f + [[ + ::anno::display_name("AO Weight"), + ::anno::description("The influence of the precalculated ambient occlusion."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + // float metallic = float(1.0) + // [[ + // ::anno::display_name("Metallic"), + // ::anno::soft_range(float(0.0f), float(1.0f)), + // ::anno::description("The metallic amount of the material.") + // ]], + uniform float bump_amount_1 = 1.0f + [[ + ::anno::display_name("Weaving Bump Amount"), + ::anno::description("Specifies the intensity of the normal texture."), + ::anno::in_group("Appearance") + ]], + uniform float bump_amount_2 = 0.5f + [[ + ::anno::display_name("Brushing Bump Amount"), + ::anno::description("Specifies the intensity of the normal texture."), + ::anno::in_group("Appearance") + ]], + + + // Adjustments Group + uniform float2 texture_translate = 0.0f + [[ + ::anno::display_name("Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Adjustments") + ]], + uniform float texture_rotate = 0.f + [[ + ::anno::display_name("Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Adjustments") + ]], + uniform float2 texture_scale = 1.0f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Adjustments") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metalweave 01"), + ::anno::description("A woven brushed metal material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("design", "metal", "mesh", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Metal_Mesh_Weave_01.png"), + ::anno::hidden() +]] = let { + float specular = 0.5; + float metallic = 1.0; + float rod_roughness_mapped = rod_roughness * 0.5; + // Textures + texture_2d weave_colormask_tex = texture_2d("./metalweave_01_colormask.png", ::tex::gamma_srgb); + texture_2d weave_roughness_tex = texture_2d("./metalweave_01_rough2.jpg", ::tex::gamma_linear); + texture_2d weave_normal_tex = texture_2d("./metalweave_01_norm.jpg", ::tex::gamma_linear); + texture_2d brushing_normal_tex = texture_2d("./metalweave_01_brushing_norm.jpg", ::tex::gamma_linear); + texture_2d AO_tex = texture_2d("./metalweave_01_AO.jpg", ::tex::gamma_srgb); + + ::base::texture_coordinate_info uvw = ::base::coordinate_source( + coordinate_system: ::base::texture_coordinate_uvw, + texture_space: 0 + ); + + + ::base::texture_coordinate_info transformed_uvw = ::base::transform_coordinate( + transform: rotation_translation_scale( + scaling: float3(12.f/(texture_scale.x), 12.f/(texture_scale.y), 1.0), + rotation: float3(0.0, 0.0, texture_rotate/180.*::math::PI ), + translation: float3(texture_translate.x, texture_translate.y, 0.0) + ), + coordinate: uvw + ); + + + ::base::texture_coordinate_info transformed_uvw_roughness = ::base::transform_coordinate( + transform: float4x4(0.5 , 0.0 , 0.0, 0.0, + 0.0 , 0.5 , 0.0, 0.0, + 0.0 , 0.0 , 1.0, 0.0, + 0.0 , 0.0 , 0.0, 1.0), + coordinate: transformed_uvw + ); + + + float weave_colormask_lookup = ::base::file_texture( + texture: weave_colormask_tex, + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(1.0, 1.0, 1.0), + mono_source: ::base::mono_average, + uvw: transformed_uvw, + clip: false + ).mono; + + color AO_lookup = ::base::file_texture( + texture: AO_tex, + color_offset: color(0.0, 0.0, 0.0), + color_scale: color(1.0, 1.0, 1.0), + mono_source: ::base::mono_average, + uvw: transformed_uvw, + clip: false + ).tint; + + float weave_roughness = ::base::file_texture( + texture: weave_roughness_tex, + color_offset: color(0.05, 0.05, 0.05), + color_scale: color(roughness_amount), + mono_source: ::base::mono_average, + uvw: transformed_uvw_roughness, + clip: false + ).mono; + + float roughness = ::math::lerp(weave_roughness, rod_roughness_mapped, weave_colormask_lookup); + + color base_color = multiply_colors(blend_colors(weave_color, rod_color, weave_colormask_lookup).tint, + AO_lookup, + AO_weight + ).tint; + + // Metallic Roughness Model + bsdf diffuse_bsdf = ::df::diffuse_reflection_bsdf( + roughness: 0.0f, //assign the user controllable + tint: base_color //values to the bsdf + ); + + bsdf ggx_smith_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: roughness*roughness, + roughness_v: roughness*roughness, + tint: color(1.0, 1.0, 1.0), + mode: ::df::scatter_reflect + ); + + bsdf custom_curve_layer_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.08f * specular, + grazing_reflectivity: 1.0f, + exponent: 3.0f, + weight: 1.0f, + layer: ggx_smith_bsdf, + base: diffuse_bsdf + ); + + bsdf directional_factor_bsdf = ::df::directional_factor( + normal_tint: base_color, + grazing_tint: base_color, + exponent: 3.0f, + base: ggx_smith_bsdf + ); + + bsdf final_bsdf = ::df::weighted_layer( + base: custom_curve_layer_bsdf, + weight: metallic, + layer: directional_factor_bsdf + ); + + // Normal lookup + float3 the_normal = ::base::tangent_space_normal_texture( + texture: weave_normal_tex, + factor: bump_amount_1, + uvw: transformed_uvw, + flip_tangent_u: false, + flip_tangent_v: false + ); + + // Brushing lookup + float3 brushing_normal = ::math::lerp(::base::tangent_space_normal_texture( + texture: brushing_normal_tex, + factor: bump_amount_2, + uvw: transformed_uvw, + flip_tangent_u: false, + flip_tangent_v: false), + ::state::normal(), + weave_colormask_lookup); + + + float3 final_normal = add_detail_normal(the_normal, brushing_normal); + +} in material ( + surface: material_surface( + scattering: final_bsdf + ), + geometry: material_geometry( + normal: final_normal + ) +); + + + +// 1 Steel Brass +export material Woven_Metal_01_Steel_Brass(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Steel Brass"), + ::anno::description("Brushed woven metal bands forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Steel_Brass.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.566810f, 0.566810f, 0.566810f), + rod_color: color(0.645555f, 0.344026f, 0.084642f), + roughness_amount: 1.0f, + rod_roughness: 0.0f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); + + +// 2 Pure Steel +export material Woven_Metal_01_Pure_Steel(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Pure Steel"), + ::anno::description("Brushed metal bands woven around metal rods forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "steel", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Pure_Steel.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.566810f, 0.566810f, 0.566810f), + rod_color: color(0.566810f, 0.566810f, 0.566810f), + roughness_amount: 1.0f, + rod_roughness: 0.0f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); + + +// 3 Golden Steel +export material Woven_Metal_01_Golden_Steel(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Golden Steel"), + ::anno::description("Brushed metal bands woven around metal rods forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "steel", "gold", "golden", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Golden_Steel.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.585973f, 0.420508f, 0.116576f), + rod_color: color(0.592438f), + roughness_amount: 1.0f, + rod_roughness: 0.0f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); + + +// 4 Warm Golden Steel +export material Woven_Metal_01_Warmgolden_Steel(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Warm Golden Steel"), + ::anno::description("Brushed metal bands woven around metal rods forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "gold", "steel", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Warmgolden_Steel.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.737205f, 0.436813f, 0.127530f), + rod_color: color(0.592438f), + roughness_amount: 1.0f, + rod_roughness: 0.0f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); + + +// 5 Copper Steel +export material Woven_Metal_01_Copper_Steel(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Copper Steel"), + ::anno::description("Brushed metal bands woven around metal rods forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "copper", "steel", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Copper_Steel.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.812241f, 0.302125f, 0.136099f), + rod_color: color(0.592438f), + roughness_amount: 1.0f, + rod_roughness: 0.0f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); + + +// 6 Faint Copper +export material Woven_Metal_01_Faint_Copper(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Metal Weave 01 - Faint Copper"), + ::anno::description("Brushed metal bands woven around metal rods forming a metal sheet."), + ::anno::key_words(string[]("design", "metal", "mesh", "copper", "steel", "brushed", "weave", "woven", "decorative", "fancy", "bumped", "new", "multicolor")), + ::anno::thumbnail("./.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Faint_Copper.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Metal_Mesh_Weave_01( + weave_color: color(0.781751f, 0.547994f, 0.388910f), + rod_color: color(0.592438f), + roughness_amount: 1.0f, + rod_roughness: 0.85f, + AO_weight: 0.7f, + bump_amount_1: 1.0f, + bump_amount_2: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f +); diff --git a/Assets/Material/material_0446/Metal_Cast.mdl b/Assets/Material/material_0446/Metal_Cast.mdl new file mode 100644 index 0000000000000000000000000000000000000000..091e8bc70b7901044dc551c7b49bdffb585afb31 --- /dev/null +++ b/Assets/Material/material_0446/Metal_Cast.mdl @@ -0,0 +1,901 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +float overlay(float base, float layer, float weight) +{ + return base + (1.0f - base) * layer * weight; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation); + float c = ::math::cos(rotation); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + + +float3 normalmap_normal( + uniform texture_2d texture, + float factor = 1.0, + ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info() +) +{ + float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal() * (lookup.z + (1.0 - factor))); +} + +export material Metal_Cast( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float roughness = 0.129999995f [[ + ::anno::description("Higher values lead to blurrier reflections and make the material appear rough."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float roughness_variation = 0.f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float metalness = 0.f [[ + ::anno::description("Makes the material more reflective."), + ::anno::display_name("Metalness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + color metal_tint = color(1.f, 1.f, 1.f) [[ + ::anno::description("Change the color of the reflection of the metal with this control."), + ::anno::display_name("Metal Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float smudges = 0.099999994f [[ + ::anno::description("Adds smudges on top of the material."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float bump_strength = 1.f [[ + ::anno::description("Adjusts the bumpiness of the surface."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 2.f), + ::anno::ui_order(6) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(8) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.4f, 0.4f)), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(13) + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Metal"), + ::anno::description("A generic material with a cast metal bump. The appearance can be blended between metallic and dielectric behavior to simulate painted metal as well."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "template", "generic", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior")), + ::anno::hidden() +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::weighted_layer(0.0149999997f, ::df::microfacet_ggx_smith_bsdf(0.560000002f, 0.560000002f, color(1.f, 1.f, 1.f), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(metalness, ::df::color_custom_curve_layer(nvidia::core_definitions::blend_colors(metal_tint, color(0.577580988f, 0.577580988f, 0.577580988f), ::base::color_layer_multiply, 1.f, true).tint, color(1.f, 1.f, 1.f), 3.f, color(1.f, 1.f, 1.f), ::df::microfacet_ggx_smith_bsdf(overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges) * overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges), overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges) * overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges), color(1.f, 1.f, 1.f), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), infinite_tiling ? endless_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.5f, 0.5f, 0.991999984f), 8.f) : normalmap_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), ::df::color_custom_curve_layer(color(0.0100229997f, 0.0100229997f, 0.0100229997f), color(1.f, 1.f, 1.f), 3.f, color(1.f, 1.f, 1.f), ::df::microfacet_ggx_smith_bsdf(overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges) * overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges), overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges) * overlay(histogram_range(float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).x, roughness_variation, roughness * 0.600000024f + 0.0799999982f), float3(infinite_tiling ? ::base::file_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.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, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint : endless_texture(texture_2d("./cast_metal_multi_R_rough_G_smudges.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.414000005f, 0.109999999f, 0.5f), 8.f, false)).y, smudges), color(1.f, 1.f, 1.f), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(metal_tint, color(0.507079005f, 0.507079005f, 0.507079005f), ::base::color_layer_multiply, 1.f, true).tint, 0.f), infinite_tiling ? endless_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.5f, 0.5f, 0.991999984f), 8.f) : normalmap_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), ::state::normal()), infinite_tiling ? endless_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.5f, 0.5f, 0.991999984f), 8.f) : normalmap_normal(texture_2d("./cast_metal_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + +// Material above serves as template and is supposed to remain hidden +// 1 +export material Iron_Cast( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float roughness = 0.33f [[ + ::anno::description("Higher values lead to blurrier reflections and make the material appear rough."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float roughness_variation = 0.67f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + color metal_tint = color(0.019f) [[ + ::anno::description("Change the color of the reflection of the metal with this control."), + ::anno::display_name("Metal Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float smudges = 0.17f [[ + ::anno::description("Adds smudges on top of the material."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float bump_strength = 1.f [[ + ::anno::description("Adjusts the bumpiness of the surface."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 2.f), + ::anno::ui_order(6) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(8) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.4f, 0.4f)), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(13) + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Iron - Black"), + ::anno::description("A cast iron material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Iron_Cast.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "iron", "design", "kitchen", "construction", "architecture", "interior", "exterior", "black", "dark", "neutral")) +]] = Metal_Cast( + infinite_tiling: infinite_tiling, + roughness: roughness, + roughness_variation: roughness_variation, + metalness: 1.0, + metal_tint: metal_tint, + smudges: smudges, + bump_strength: bump_strength, + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + roundcorners_enable: roundcorners_enable, + roundcorners_radius_mm: roundcorners_radius_mm, + roundcorners_across_materials: roundcorners_across_materials, + uv_space_index: uv_space_index +); + +// 2 +export material Iron_Cast_Black_Matte(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Iron - Black Matte"), + ::anno::description("A cast iron material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Iron_Cast_Black_Matte.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "iron", "design", "kitchen", "construction", "architecture", "interior", "exterior", "black", "dark", "neutral")) +]] = Iron_Cast +( + infinite_tiling: true, + roughness: .84f, + roughness_variation: 1.0f, + metal_tint: color(0.019f), + smudges: .45f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + +// 3 +export material Stainless_Steel_Cast_Shiny(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Stainless Steel - Shiny"), + ::anno::description("A cast stainless steel material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Stainless_Steel_Cast_Shiny.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "steel", "stainless", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "reflective")) +]] = Iron_Cast +( + infinite_tiling: true, + roughness: 0.27f, + roughness_variation: 0.51f, + metal_tint: color(0.679542f), + smudges: .2f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 4 +export material Stainless_Steel_Cast_Rough(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Stainless Steel - Rough"), + ::anno::description("A cast stainless steel material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Stainless_Steel_Cast_Rough.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "steel", "stainless", "design", "kitchen", "construction", "architecture", "interior", "exterior", "rough", "matte", "gray", "matte")) +]] = Iron_Cast +( + infinite_tiling: true, + roughness: 0.74f, + roughness_variation: 0.4f, + metal_tint: color(0.679542f), + smudges: .30f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 5 +export material Aluminum_Cast_Shiny(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Aluminum - Shiny"), + ::anno::description("A cast aluminum material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Aluminum_Cast_Shiny.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "aluminum", "design", "kitchen", "construction", "architecture", "interior", "exterior", "rough", "reflective", "shiny")) +]] = Iron_Cast +( + infinite_tiling: true, + roughness: 0.51f, + roughness_variation: 0.51f, + metal_tint: color(0.514918f, 0.571125f, 0.623960f), + smudges: .0f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 6 +export material Aluminum_Cast_Rough(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Cast Aluminum - Rough"), + ::anno::description("A cast aluminum material."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Aluminum_Cast_Rough.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "aluminum", "design", "kitchen", "construction", "architecture", "interior", "exterior", "rough", "matte", "gray")) +]] = Iron_Cast +( + infinite_tiling: true, + roughness: 0.91f, + roughness_variation: 0.51f, + metal_tint: color(0.514918f, 0.571125f, 0.623960f), + smudges: .0f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + +// 7 +// Cast Metal with a diffuse dielectic paint layer +export material Metal_Cast_Painted( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float roughness = 0.25f [[ + ::anno::description("Higher values lead to blurrier reflections and make the material appear rough."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float roughness_variation = 0.67f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + color metal_tint = color(0.029557f, 0.135633f, 0.491021f) [[ + ::anno::description("Changes the color of the paint."), + ::anno::display_name("Paint Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float smudges = 0.17f [[ + ::anno::description("Adds smudges on top of the material."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float bump_strength = 1.f [[ + ::anno::description("Adjusts the bumpiness of the surface."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 2.f), + ::anno::ui_order(6) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(8) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.4f, 0.4f)), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(13) + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - Blue"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "blue", "cool", "saturated")) +]] = Metal_Cast( + infinite_tiling: infinite_tiling, + roughness: roughness, + roughness_variation: roughness_variation, + metalness: 0.0f, + metal_tint: metal_tint, + smudges: smudges, + bump_strength: bump_strength, + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + roundcorners_enable: roundcorners_enable, + roundcorners_radius_mm: roundcorners_radius_mm, + roundcorners_across_materials: roundcorners_across_materials, + uv_space_index: uv_space_index +); + +// 8 Red +export material Metal_Cast_Painted_Red(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - Red"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted_Red.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "red", "warm", "saturated")) +]] = Metal_Cast_Painted +( + infinite_tiling: true, + roughness: .25f, + roughness_variation: .67f, + metal_tint: color(0.491021f, 0.029557f, 0.029557f), + smudges: .17f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 9 Gray +export material Metal_Cast_Painted_Gray(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - Gray"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted_Gray.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "gray", "neutral")) +]] = Metal_Cast_Painted +( + infinite_tiling: true, + roughness: .25f, + roughness_variation: .67f, + metal_tint: color(0.332452f, 0.332452f, 0.332452f), + smudges: .17f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 10 Antique White +export material Metal_Cast_Painted_Antique_White(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - Antique White"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted_Antique_White.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "antique", "white", "light")) +]] = Metal_Cast_Painted +( + infinite_tiling: true, + roughness: .25f, + roughness_variation: .67f, + metal_tint: color(0.799103f, 0.708376f, 0.539479f), + smudges: .17f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 11 White +export material Metal_Cast_Painted_White(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - White"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted_White.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "white", "light")) +]] = Metal_Cast_Painted +( + infinite_tiling: true, + roughness: .25f, + roughness_variation: .67f, + metal_tint: color(0.693872f, 0.693872f, 0.693872f), + smudges: .17f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 12 Petrol +export material Metal_Cast_Painted_Petrol(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Painted Cast Metal - Petrol"), + ::anno::description("A painted cast material. The metal itself is underneath the paint layer, therefore it is a 'generic' metal."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Metal_Cast.Metal_Cast_Painted_Petrol.png"), + ::anno::key_words(string[]("metal", "cast", "bumped", "painted", "design", "kitchen", "construction", "architecture", "interior", "exterior", "shiny", "petrol")) +]] = Metal_Cast_Painted +( + infinite_tiling: true, + roughness: .25f, + roughness_variation: .67f, + metal_tint: color(0.144128f, 0.212231f, 0.223228f), + smudges: .17f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + + + + + diff --git a/Assets/Material/material_0447/Nickel.mdl b/Assets/Material/material_0447/Nickel.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f78706b0c844dddc44c4e3d33594dbefd5bdbda6 --- /dev/null +++ b/Assets/Material/material_0447/Nickel.mdl @@ -0,0 +1,379 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + + +export material Nickel( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float roughness = 0.1f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float smudges = 0.5f [[ + ::anno::description("Adds blurrier reflection that follow the intensities of the Roughness texture on top."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float radius = 0.03f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("When enabled the round corner effect is applied across different materials."), + ::anno::in_group("Round Corners") + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(.45f, .45f)) + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]], + float3 normal = ::state::normal() [[ + ::anno::description("Modify the surface normal."), + ::anno::display_name("Normal"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Nickel"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Nickel.Nickel.png"), + ::anno::key_words(string[]("metal", "pure", "smudged", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "nickel")) +]] + = + let { + + color normal_reflectivity = color(0.696691094703f,0.640529134605f,0.563260231405f); // Nickel + color grazing_reflectivity = color(0.99942f, 1.f, 1.f); + + bool tmp0 = false; + material_surface tmp1( + ::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), + material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5( + float3(0.f), + 1.f, + enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + + +export material Nickel_Polished(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Nickel Polished"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Nickel.Nickel_Polished.png"), + ::anno::key_words(string[]("metal", "pure", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "nickel")) +]] += Nickel( + infinite_tiling: true, + roughness: 0.0f, + smudges: 0.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + +export material Nickel_Glossy_Fingerprints(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Nickel Glossy Fingerprints"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Nickel.Nickel_Glossy_Fingerprints.png"), + ::anno::key_words(string[]("metal", "pure", "design", "smudged", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "nickel")) +]] += Nickel( + infinite_tiling: true, + roughness: 0.23f, + smudges: 1.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + +/* +- Aluminum + 0.911810895428,0.914089043421,0.920152876196 + +- Copper + 0.9654565, 0.6899602, 0.4830392 + +- Chromium + 0.549302, 0.5560554, 0.5542377 + +- Iron + 0.5293683, 0.5132565, 0.4942483 + +- Gold + 1.0,0.722306985258,0.340058756743 + +- Nickel + 0.696691094703,0.640529134605,0.563260231405 + +- Platinum + 0.678533319955,0.639590890417,0.583638675413 + +- Mercury + 0.780978740699,0.779541528985,0.778441417779 + +- Silver + 0.9614253056,0.948983344333,0.918968346466 + +- Titanium + 0.618264052974,0.579396264956,0.542545225681 + +- Tungsten + 0.951001417565,0.815051845356,0.751931718925 + +- Zinc + 0.87467950988,0.868943040106,0.855089634324 + + +*/ diff --git a/Assets/Material/material_0452/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg b/Assets/Material/material_0452/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1e5130fa5a243fd255a37ff6099a38a6a6e41d52 --- /dev/null +++ b/Assets/Material/material_0452/metal_scratched_R_diff_G_scratchvar_B_dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51a6eb57877fc78f9da063bc7eedfb417ccde0726015712d400dbe84ea03fa46 +size 3114776 diff --git a/Assets/Material/material_0452/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg b/Assets/Material/material_0452/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..30f1a268fffa7e0b70da8c2e3a04396b75b75e0e --- /dev/null +++ b/Assets/Material/material_0452/metal_scratched_R_scratch1_G_scratch2_B_scratch3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:22a432baddf95f05140af2f8fb47d763439f06e84648e89eddc9d9b726d59867 +size 6891717 diff --git a/Assets/Material/material_0452/metal_scratched_scratch_norm.jpg b/Assets/Material/material_0452/metal_scratched_scratch_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b5b09ebf9955e03dfc4ab47f095f7380cd485197 --- /dev/null +++ b/Assets/Material/material_0452/metal_scratched_scratch_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fef50be8c23dabfbd7a799a3434ba6c39122d058140dd9c11cb0c3da1da5b537 +size 3254868 diff --git a/Assets/Material/material_0457/Platinum_Brushed.mdl b/Assets/Material/material_0457/Platinum_Brushed.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b9f10e2b312114b0bdafe0eeed3effcad3afb55f --- /dev/null +++ b/Assets/Material/material_0457/Platinum_Brushed.mdl @@ -0,0 +1,301 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; +import ::anno::*; +import ::base::*; +import ::math::*; +import ::state::*; +import ::std::*; +import ::tex::*; +import ::df::*; +import ::nvidia::core_definitions::*; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "Brushed metal material with adjustable settings for the brushing"; + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +export material Platinum_Brushed( + float brush_width = 1.0f [[ + ::anno::display_name("Roughness Width"), + ::anno::description("Widens the anisotropic metal reflections." + "the metal brushing"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + float brush_height_blur = 0.75f [[ + ::anno::display_name("Roughness Height"), + ::anno::description("Increases the anisotropy of the brushed metal, blurring the reflections."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + float scratch_variation_amount = 1.f [[ + ::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."), + ::anno::display_name("Scratch Variation Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + float scratch_reflection_variation = 0.4f [[ + ::anno::description("Attenuates the reflection of the brushed metal which will also make the material appear darker."), + ::anno::display_name("Scratch Reflection Variation"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + float scratches_bump = 0.65f [[ + ::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."), + ::anno::display_name("Scratches Bump Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + uniform bool enable_round_corners = false [[ + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float roundcorner_radius = 0.01f [[ + ::anno::display_name("Round Corner Radius"), + ::anno::description("Adjusts the radius of the round corner effect."), + ::anno::soft_range(0.0f, 0.1f), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the rounded corner effect also between other materials."), + ::anno::in_group("Round Corners") + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::display_name("Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.75f, 0.75f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Use selected UV space for material."), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Brushed Platinum - Strong Brushing"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Brushed.Platinum_Brushed.png"), + ::anno::key_words(string[]("aec", "metal", "platinum", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral")) +]] + = + let { + color normal_reflectivity = color(0.678533319955f, 0.639590890417f, 0.583638675413f); // Platinum + color grazing_reflectivity = color(0.99942f, 1.f, 1.f); + + bool tmp0 = false; + material_surface tmp1( + ::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)), + material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Platinum_Brushed_Light_Brushing(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Brushed Platinum - Light Brushing"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Brushed.Platinum_Brushed_Light_Brushing.png"), + ::anno::key_words(string[]("aec", "metal", "platinum", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral")) +]] + = Platinum_Brushed ( + brush_width: 0.225f, + brush_height_blur: 0.035f, + scratch_variation_amount: 1.0f, + scratch_reflection_variation: 0.4f, + scratches_bump: 0.2f, + enable_round_corners: false, + roundcorner_radius: 0.01f, + across_materials: false, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + + +export material Platinum_Brushed_Medium_Light_Brushing(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Brushed Platinum - Medium Light Brushing"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Brushed.Platinum_Brushed_Medium_Light_Brushing.png"), + ::anno::key_words(string[]("aec", "metal", "platinum", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral")) +]] += Platinum_Brushed ( + brush_width: 0.361f, + brush_height_blur: 0.204f, + scratch_variation_amount: 1.0f, + scratch_reflection_variation: 0.559f, + scratches_bump: 0.35f, + enable_round_corners: false, + roundcorner_radius: 0.01f, + across_materials: false, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + + +export material Platinum_Brushed_Medium_Brushing(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Brushed Platinum - Medium Brushing"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Brushed.Platinum_Brushed_Medium_Brushing.png"), + ::anno::key_words(string[]("aec", "metal", "platinum", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral")) +]] += Platinum_Brushed ( + brush_width: 0.665f, + brush_height_blur: 0.471f, + scratch_variation_amount: 1.0f, + scratch_reflection_variation: 0.621f, + scratches_bump: 0.5f, + enable_round_corners: false, + roundcorner_radius: 0.01f, + across_materials: false, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + +export material Platinum_Brushed_Very_Strong_Brushing(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Brushed Platinum - Very Strong Brushing"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Brushed.Platinum_Brushed_Very_Strong_Brushing.png"), + ::anno::key_words(string[]("aec", "metal", "platinum", "brushed", "kitchen", "design", "modern", "reflective", "shiny", "architecture", "sanitary", "new", "gray", "neutral")) +]] += Platinum_Brushed ( + brush_width: 1.0f, + brush_height_blur: 1.0f, + scratch_variation_amount: 1.0f, + scratch_reflection_variation: 0.824f, + scratches_bump: 1.0f, + enable_round_corners: false, + roundcorner_radius: 0.01f, + across_materials: false, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + uv_space_index: 0 +); + + + + diff --git a/Assets/Material/material_0460/Platinum_Knurling.mdl b/Assets/Material/material_0460/Platinum_Knurling.mdl new file mode 100644 index 0000000000000000000000000000000000000000..69910c38fb0e28b397c6370f0c5da420a40ace67 --- /dev/null +++ b/Assets/Material/material_0460/Platinum_Knurling.mdl @@ -0,0 +1,359 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.5; + +import ::df::*; +import ::tex::*; +import ::math::*; +import ::base::*; +import ::state::*; +import ::anno::*; +import ::nvidia::core_definitions::*; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "Metal with a diamond knurling finish"; + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + //TODO: at least also handle sign of z? + //TODO: handle tangent becoming 0 + + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +export material Platinum_Knurling( + //Appearance + float brightness = float(0.7f) [[ + ::anno::description("Adjusts the brightness of the material."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + float roughness = float(0.5f) [[ + ::anno::description("Higher values lead to a rougher appearance of the material."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + float grooves_dirt = float(0.4f) [[ + ::anno::description("Adds dirt in the grooves of the knurling pattern."), + ::anno::display_name("Grooves Dirt"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + uniform float bump_strength = float(0.8f) [[ + ::anno::description("Adds dirt in the grooves of the knurling pattern."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.0f, 1.0f) + ]], + + // Round Corners + uniform bool enable_round_corners = false [[ + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float roundcorner_radius = 0.01f [[ + ::anno::display_name("Round Corner Radius"), + ::anno::description("Sets the radius of the round corners in millimeters."), + ::anno::soft_range(0.0f, 0.1f), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the rounded corner effect also between other materials."), + ::anno::in_group("Round Corners") + ]], + //Transform + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.35f, .35f)), + ::anno::soft_range(0.f, 2.f) + ]], + + // Advanced + uniform int uv_space_index = 0 [[ + ::anno::description("Uses the selected UV space index."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::soft_range(0, 4) + ]] +) +[[ + ::anno::display_name("Metal Knurling Platinum"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Knurling.Platinum_Knurling.png"), + ::anno::key_words(string[]("metal", "platinum", "knurled", "knurling", "pattern", "design", "bumped")), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials") +]] += let +{ + color metal_tint = color(0.678533319955f, 0.639590890417f, 0.583638675413f); // Platinum + + // Texture setup + texture_2d normal_tex = texture_2d("./metal_knurling_norm.jpg", ::tex::gamma_linear); + texture_2d multi_heights_tex = texture_2d("./metal_knurling_multi_heights.jpg", ::tex::gamma_linear); + texture_2d diff_rough_grunge_tex = texture_2d("./metal_knurling_multi_R_diff_G_rough_B_grunge.jpg", ::tex::gamma_linear); + + // Coordinate setup + ::base::texture_coordinate_info uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + // ---------- Diff Rough Grunge Lookup ---------- + + float3 diff_rough_grunge_lookup = float3( + ::base::file_texture( + texture: diff_rough_grunge_tex, + uvw: uvw, + mono_source: ::base::mono_average + ).tint ); + + float3 multi_height_lookup = float3( + ::base::file_texture( + texture: multi_heights_tex, + uvw: uvw, + mono_source: ::base::mono_average + ).tint ); + + float3 norm = ::base::tangent_space_normal_texture( + texture: normal_tex, + factor: bump_strength, + uvw: uvw + ); + + + float remap_rough = histogram_range( + input: diff_rough_grunge_lookup.y, + range: 1.0f, + position: 0.234f + ); + + + float roughness_mapped = remap_rough + (roughness * multi_height_lookup.y); + + float remapped_diff = histogram_range( + input: diff_rough_grunge_lookup.x, + range: 1.0f, + position: (brightness * 0.4f) + 0.4f + ); + + float diff_contribution = ::math::pow(remapped_diff - ((grooves_dirt * 0.5) * multi_height_lookup.x * diff_rough_grunge_lookup.z), 2.67f); + + bsdf ggx_smith_bumped = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: roughness_mapped * roughness_mapped, + roughness_v: roughness_mapped * roughness_mapped, + tint: color(diff_contribution), + mode: ::df::scatter_reflect + ), + base: bsdf(), + weight: 1.0f, + normal: norm + ); + + bsdf diff_bsdf = ::df::diffuse_reflection_bsdf( + tint: color(diff_contribution) + ); + + + bsdf final_bsdf = ::df::weighted_layer( + weight: 1.0f - (diff_rough_grunge_lookup.z * multi_height_lookup.x * grooves_dirt), + layer: ::df::directional_factor( + normal_tint: metal_tint, + grazing_tint: color(1.0f), + base: ggx_smith_bumped + ), + base: diff_bsdf + ); + + + // Round Corners + float3 round_normal = enable_round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius * 0.001, + across_materials: across_materials + ) : ::state::normal(); +} +in material ( + + surface: material_surface( + scattering: final_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +export material Platinum_Knurling_Worn(*) +[[ + ::anno::display_name("Metal Knurling - Platinum Worn"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Platinum_Knurling.Platinum_Knurling_Worn.png"), + ::anno::key_words(string[]("metal", "platinum", "knurled", "pattern", "knurling", "design", "bumped", "worn")), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials") +]] = Platinum_Knurling( + brightness: 0.4f, + roughness: 1.0f, + grooves_dirt: 1.0f, + bump_strength: 0.8f, + + enable_round_corners: false, + roundcorner_radius: 1.2f, + across_materials: false, + + texture_translate: 0.0f, + texture_rotate: 0.f, + texture_scale: 1.0f, + + uv_space_index: 0 +); + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Assets/Material/material_0463/circle_shape_multi_R_ao_G_height_B_opacity.jpg b/Assets/Material/material_0463/circle_shape_multi_R_ao_G_height_B_opacity.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c82c835830d3f54a0d90a6adcf5ea8a188687849 --- /dev/null +++ b/Assets/Material/material_0463/circle_shape_multi_R_ao_G_height_B_opacity.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09ff9a0b5655ea5f90e9963842586eac99e63467b9c75928cf41642dc8893f2e +size 597489 diff --git a/Assets/Material/material_0463/circle_shape_norm.jpg b/Assets/Material/material_0463/circle_shape_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d6193533ba54963631357909cd8c5495bda9ecc4 --- /dev/null +++ b/Assets/Material/material_0463/circle_shape_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0291ada78c4515ee833631b89f1d89a88e80027017028becd811a1c3f680a0d +size 584188 diff --git a/Assets/Material/material_0463/dirt.jpg b/Assets/Material/material_0463/dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dfa1cad226bd98acb2ab7356e22fa6ced3f91e07 --- /dev/null +++ b/Assets/Material/material_0463/dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc93abf156f84219d14c99e1cabe5a7702cac42ff54162c0b04a8d20fa34c7a2 +size 792158 diff --git a/Assets/Material/material_0463/plate_dirt.jpg b/Assets/Material/material_0463/plate_dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c8f5d82fac4fbfa184871c14467c6be8cf8e1479 --- /dev/null +++ b/Assets/Material/material_0463/plate_dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2595c00b94b5dc35ffab1c4618a31513049a154f03b8a30bb07a0301f867241a +size 3542758 diff --git a/Assets/Material/material_0463/plate_dirt_norm.jpg b/Assets/Material/material_0463/plate_dirt_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0f2ba9ffa0449e6f07e9caa19427c4f8b509816c --- /dev/null +++ b/Assets/Material/material_0463/plate_dirt_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b78c6dfdc8da22e89cf8384708aa8b7993b8f773bf1cb995f934aed11bc7ba4 +size 1191931 diff --git a/Assets/Material/material_0463/transition_noise.jpg b/Assets/Material/material_0463/transition_noise.jpg new file mode 100644 index 0000000000000000000000000000000000000000..205df4d9d7661dabe3a3553883d877add9796821 --- /dev/null +++ b/Assets/Material/material_0463/transition_noise.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5c7c90981c464b1f8442bb962a268611bb3266592b79443d847a99633981c41 +size 334039 diff --git a/Assets/Material/material_0468/metal_knurling_multi_R_diff_G_rough_B_grunge.jpg b/Assets/Material/material_0468/metal_knurling_multi_R_diff_G_rough_B_grunge.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f773c9cafdd2fa71939326f23ba94520cda6be24 --- /dev/null +++ b/Assets/Material/material_0468/metal_knurling_multi_R_diff_G_rough_B_grunge.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:827f0cf47b4356493fba016b6e9ddbcc6bfab0224b99a4e6a9c6ab69e24189a9 +size 5944332 diff --git a/Assets/Material/material_0468/metal_knurling_multi_heights.jpg b/Assets/Material/material_0468/metal_knurling_multi_heights.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3090c2e09a72cf7551ca2608f3c7be2a475b07c8 --- /dev/null +++ b/Assets/Material/material_0468/metal_knurling_multi_heights.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b4d7b7feb8921eed2081b4eb60a08bbce49aab76ac17f74cc564eeb7c7a4c11 +size 2076774 diff --git a/Assets/Material/material_0468/metal_knurling_norm.jpg b/Assets/Material/material_0468/metal_knurling_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9036d8679b5c63892eb665576e748b66afef3088 --- /dev/null +++ b/Assets/Material/material_0468/metal_knurling_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc9e78477fee20785975eb0b93ae5e861e135591998a89d624ce80fd779128f2 +size 1900541 diff --git a/Assets/Material/material_0472/Stainless_Steel.mdl b/Assets/Material/material_0472/Stainless_Steel.mdl new file mode 100644 index 0000000000000000000000000000000000000000..ae5b0df632422957bfae7d0d78a6657f6e14289b --- /dev/null +++ b/Assets/Material/material_0472/Stainless_Steel.mdl @@ -0,0 +1,612 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = +"A stainless steel material with adjustable roughness and controls to add secondary effects \n" +"such as stains, smudges and mechanical damage"; + + +::base::texture_coordinate_info vmat_transform_post_scale( + ::base::texture_coordinate_info uvw, + float2 scale = 1.0f +) +{ + return ::base::texture_coordinate_info( + position: float3(uvw.position.x / scale.x, + uvw.position.y / scale.y, + uvw.position.z), + tangent_u: uvw.tangent_u, + tangent_v: uvw.tangent_v + ); +} + +float3 normalmap_normal( + uniform texture_2d texture, + float factor = 1.0, + ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info() +) +{ + float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + state::normal() * (lookup.z + (1.0 - factor))); +} + +float overlay(float base, float layer, float weight) +{ + return base + (1.0f - base) * layer * weight; +} + +// Returns the normal n in tangent space, given n is in internal space. +float3 transform_internal_to_tangent(float3 n) +[[ + anno::hidden() +]] +{ + return + n.x* float3(state::texture_tangent_u(0).x,state::texture_tangent_v(0).x,state::normal().x)+ + n.y* float3(state::texture_tangent_u(0).y,state::texture_tangent_v(0).y,state::normal().y)+ + n.z* float3(state::texture_tangent_u(0).z,state::texture_tangent_v(0).z,state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +[[ + anno::hidden() +]] +{ + return state::texture_tangent_u(0) * n.x + + state::texture_tangent_v(0) * n.y + + state::normal() * n.z ; +} + + + +// Returns a normal by adding a detail normal to a global normal. +// If detail blending of two normal maps gives visual artifacts, check if texture_2d are loaded +// correctly with tex::gamma_linear +float3 add_detail_normal(float3 nd = state::normal(), float3 n = state::normal()) +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + n = n_t*math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + + + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation); + float c = ::math::cos(rotation); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + + +export material Stainless_Steel( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float roughness = 0.f [[ + ::anno::description("Higher values lead to blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float roughness_variation = 0.21f [[ + ::anno::description("Adds variation to the roughness following the shape of the milling bump map."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float cloudiness = 0.3f [[ + ::anno::description("Adds a cloudy reflection to the metal material."), + ::anno::display_name("Cloudiness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float brightness = 0.5f [[ + ::anno::description("Low values make the metal darker and add slight variation to the brightness while a high value gives it a bright uniform look."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float milling_bump_strength = 0.0f [[ + ::anno::description("Adds milled grooves on the metal."), + ::anno::display_name("Milling Bump Strength"), + ::anno::in_group("Appearance", "Bump"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float dents_bump_strength = 0.01f [[ + ::anno::description("Adds dents and bumps."), + ::anno::display_name("Dents Bump Strength"), + ::anno::in_group("Appearance", "Bump"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(6) + ]], + float dents_scale = 1.f [[ + ::anno::description("Scales the size of the dents pattern on the material."), + ::anno::display_name("Dents Scale"), + ::anno::in_group("Appearance", "Bump"), + ::anno::ui_order(7) + ]], + float smudges_1_weight = 0.f [[ + ::anno::description("Adds smudges on the material which impact the reflectivity."), + ::anno::display_name("Smudges Weight"), + ::anno::in_group("Appearance", "Imperfections"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(8) + ]], + float smudges_2_weight = 0.f [[ + ::anno::description("Adds imperfections that resemble stains on the material which impact the reflectivity."), + ::anno::display_name("Stains Weight"), + ::anno::in_group("Appearance", "Imperfections"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(9) + ]], + float smudges_falloff = .45f [[ + ::anno::description("Controls the falloff of the smudges and stains on the surface. Low values make the smudges wide and soft while high values make them small."), + ::anno::display_name("Smudges Falloff"), + ::anno::in_group("Appearance", "Imperfections"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(10) + ]], + float smudges_scale = 1.f [[ + ::anno::description("Scales the smudges relative to the overal scale of the material."), + ::anno::display_name("Smudges and Stains Scale"), + ::anno::in_group("Appearance", "Imperfections"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(11) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(12) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(13) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.70f, 0.70f)), + ::anno::ui_order(14) + ]], + uniform bool roundcorners_enable = false [[ + ::anno::description("Enables the round corner effect. Comes at a slight performance cost as additional raytracing calls are rquired to evaluate the round corner effect."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(15) + ]], + uniform float roundcorners_radius_mm = 0.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(16) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(17) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::hard_range(0, 10), + ::anno::ui_order(18) + ]]) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel.Stainless_Steel.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "new", "shiny", "smooth", "reflective", "plain", "gray")) +]] + = + let { + bool tmp0 = false; + float2 texture_rescale = texture_scale * 0.55f; + + material_surface tmp1(::df::custom_curve_layer(0.799999952f, 1.f, 3.0999999f, 1.f, ::df::weighted_layer(cloudiness * 0.330000013f, ::df::microfacet_ggx_smith_bsdf(0.159999996f, 0.159999996f, color(brightness * 0.300000012f + 0.600000024f), color(brightness * 0.300000012f + 0.600000024f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(0.799999952f, ::df::microfacet_ggx_smith_bsdf(overlay((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), overlay(smudges_1_weight * ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).x, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).y, smudges_2_weight), 0.429999977f), overlay((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), overlay(smudges_1_weight * ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).x, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).y, smudges_2_weight), 0.429999977f), color(brightness * 0.300000012f + 0.600000024f), color(brightness * 0.300000012f + 0.600000024f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), add_detail_normal(infinite_tiling ? endless_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale)), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale))), infinite_tiling ? endless_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f)))), add_detail_normal(infinite_tiling ? endless_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale)), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale))), infinite_tiling ? endless_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f)))), ::df::tint(color(0.f, 0.f, 0.f), ::df::weighted_layer(cloudiness * 0.330000013f, ::df::microfacet_ggx_smith_bsdf(0.159999996f, 0.159999996f, color(brightness * 0.300000012f + 0.600000024f), color(brightness * 0.300000012f + 0.600000024f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(0.799999952f, ::df::microfacet_ggx_smith_bsdf(overlay((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), overlay(smudges_1_weight * ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).x, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).y, smudges_2_weight), 0.429999977f), overlay((histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.430000007f, roughness_variation), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(infinite_tiling ? endless_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 9.13999939f, float3(0.430000007f, 0.552999973f, 0.0460000001f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.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_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), overlay(smudges_1_weight * ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).x, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), 9.13999939f, float3(0.0599999987f, 0.0500000007f, 0.f), 8.38000011f, false) : ::base::file_texture(texture_2d("./stainless_smudges.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(smudges_scale)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint), smudges_falloff + 1.f).y, smudges_2_weight), 0.429999977f), color(brightness * 0.300000012f + 0.600000024f), color(brightness * 0.300000012f + 0.600000024f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), add_detail_normal(infinite_tiling ? endless_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale)), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale))), infinite_tiling ? endless_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f)))), add_detail_normal(infinite_tiling ? endless_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale)), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale))), infinite_tiling ? endless_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, false, false, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f), 9.13999939f, float3(0.5f, 0.5f, 0.999000013f), 8.38000011f) : normalmap_normal(texture_2d("./stainless_norm.jpg", ::tex::gamma_linear), milling_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_rescale, ::base::texture_coordinate_uvw, uv_space_index), 0.5f))))), ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + hair_bsdf tmp6 = hair_bsdf(); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5, + hair: tmp6); + + +// ----------------------- Stainless Steel Presets ----------------------- +// 2 Shiny Worn +export material Stainless_Steel_Shiny_Worn(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel - Shiny Worn"), + ::anno::description("Shiny stainless steel with signs of mechanical wear"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel.Stainless_Steel_Shiny_Worn.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "dented", "worn", "shiny", "reflective", "plain", "gray")) +]] = Stainless_Steel( + infinite_tiling: true, + roughness: 0.0f, + roughness_variation: 0.21f, + cloudiness: 0.3f, + brightness: 0.5f, + milling_bump_strength: 0.0f, + dents_bump_strength: 0.9f, + dents_scale: 1.00f, + smudges_1_weight: 0.0f, + smudges_2_weight: 0.0f, + smudges_falloff: 0.45f, + smudges_scale: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +// 3 Shiny Smudged +export material Stainless_Steel_Shiny_Smudged(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel - Shiny Smudged"), + ::anno::description("Shiny stainless steel with signs of mechanical wear. Material offers optional controls \n" + "to add secondary effects such as stains, smudges and mechanical damage"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel.Stainless_Steel_Shiny_Smudged.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "smudged", "dirty", "shiny", "smooth", "reflective", "plain", "gray")) +]] = Stainless_Steel( + infinite_tiling: true, + roughness: 0.0f, + roughness_variation: 0.25f, + cloudiness: 0.3f, + brightness: 0.5f, + milling_bump_strength: 0.0f, + dents_bump_strength: 0.0f, + dents_scale: 1.0f, + smudges_1_weight: 0.7f, + smudges_2_weight: 0.58f, + smudges_falloff: 0.45f, + smudges_scale: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + +// 4 Glossy +export material Stainless_Steel_Glossy(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel - Glossy"), + ::anno::description("Glossy stainless steel with optional controls for secondary effects \n" +"such as stains, smudges and mechanical damage"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel.Stainless_Steel_Glossy.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "smudged", "dirty", "glossy", "smooth", "reflective", "plain", "gray")) +]] = Stainless_Steel( + infinite_tiling: true, + roughness: 0.44f, + roughness_variation: 0.05f, + cloudiness: 0.44f, + brightness: 0.5f, + milling_bump_strength: 0.24f, + dents_bump_strength: 0.0f, + dents_scale: 1.0f, + smudges_1_weight: 0.0f, + smudges_2_weight: 0.0f, + smudges_falloff: 0.45f, + smudges_scale: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + +// 5 Matte +export material Stainless_Steel_Matte(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel - Matte"), + ::anno::description("Matte stainless steel with optional controls for secondary effects \n" +"such as stains, smudges and mechanical damage"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel.Stainless_Steel_Matte.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "smudged", "dirty", "matte", "smooth", "reflective", "plain", "gray")) +]] = Stainless_Steel( + infinite_tiling: true, + roughness: 1.00f, + roughness_variation: 0.0f, + cloudiness: 1.0f, + brightness: 0.5f, + milling_bump_strength: 0.4f, + dents_bump_strength: 0.0f, + dents_scale: 1.0f, + smudges_1_weight: 0.0f, + smudges_2_weight: 0.0f, + smudges_falloff: 0.45f, + smudges_scale: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); diff --git a/Assets/Material/material_0474/atlas_02_norm_dist.png b/Assets/Material/material_0474/atlas_02_norm_dist.png new file mode 100644 index 0000000000000000000000000000000000000000..a368ebd9ef175a3e7566594df7f06c1af5f5e27e --- /dev/null +++ b/Assets/Material/material_0474/atlas_02_norm_dist.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:545d952caf139061c8f7c9474fbadd59cc2dedc5616386bbcb2ac71c88add6f0 +size 1576300 diff --git a/Assets/Material/material_0474/stainless_brushed_multi_R_impurities_G_rough_B_dents.jpg b/Assets/Material/material_0474/stainless_brushed_multi_R_impurities_G_rough_B_dents.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e0da910d9df48d5987b14386f6c490700c119197 --- /dev/null +++ b/Assets/Material/material_0474/stainless_brushed_multi_R_impurities_G_rough_B_dents.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1dd0876e9c89ae300b4d8838b3ddcb5f0eb3006f97d3dac0b9023eb52df7c9c5 +size 3045027 diff --git a/Assets/Material/material_0474/stainless_brushed_norm.jpg b/Assets/Material/material_0474/stainless_brushed_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..68d90861c27fbffe6aa660f21d7935e2fb23f1d2 --- /dev/null +++ b/Assets/Material/material_0474/stainless_brushed_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81099d9d4775db344922f1e2c52fa977841799145ee809e08d91ca7a209317b2 +size 3323602 diff --git a/Assets/Material/material_0474/stainless_brushed_smudges.jpg b/Assets/Material/material_0474/stainless_brushed_smudges.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e36f0b26d565b2cc625b7b05898df6ad4e55c157 --- /dev/null +++ b/Assets/Material/material_0474/stainless_brushed_smudges.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0a0323d350c75d91dc20db6ee2a6e8a7e2e78b0f8b475726e61817efa7b6f25 +size 2232876 diff --git a/Assets/Material/material_0474/stainless_damages_norm.jpg b/Assets/Material/material_0474/stainless_damages_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c4198ec085fd890f9f37d14e7bd4bc007a6f490 --- /dev/null +++ b/Assets/Material/material_0474/stainless_damages_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32762c1356d4c87a57b94198d4daa97ada2bd4ad6059979aab308a4de60c2d76 +size 964428 diff --git a/Assets/Material/material_0475/Stainless_Steel_Milled.mdl b/Assets/Material/material_0475/Stainless_Steel_Milled.mdl new file mode 100644 index 0000000000000000000000000000000000000000..79f651b7dd6ac718267d879cca7c41c9fd708f04 --- /dev/null +++ b/Assets/Material/material_0475/Stainless_Steel_Milled.mdl @@ -0,0 +1,327 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = +"A stainless steel material with adjustable roughness and controls to add secondary effects \n" +"such as stains, smudges and mechanical damage"; + +::base::texture_coordinate_info vmat_transform_post_scale( + ::base::texture_coordinate_info uvw, + float2 scale = 1.0f +) +{ + return ::base::texture_coordinate_info( + position: float3(uvw.position.x / scale.x, + uvw.position.y / scale.y, + uvw.position.z), + tangent_u: uvw.tangent_u, + tangent_v: uvw.tangent_v + ); +} + +float3 normalmap_normal( + uniform texture_2d texture, + float factor = 1.0, + ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info() +) +{ + float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - float3(0.5)) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal() * (lookup.z + (1.0 - factor))); +} + + +// Returns the normal n in tangent space, given n is in internal space. +float3 transform_internal_to_tangent(float3 n) +[[ + ::anno::hidden() +]] +{ + return + n.x* float3(::state::texture_tangent_u(0).x,::state::texture_tangent_v(0).x,::state::normal().x)+ + n.y* float3(::state::texture_tangent_u(0).y,::state::texture_tangent_v(0).y,::state::normal().y)+ + n.z* float3(::state::texture_tangent_u(0).z,::state::texture_tangent_v(0).z,::state::normal().z); +} + +// Returns the normal n in internal space, given n is in tangent space. +float3 transform_tangent_to_internal(float3 n) +[[ + ::anno::hidden() +]] +{ + return ::state::texture_tangent_u(0) * n.x + + ::state::texture_tangent_v(0) * n.y + + ::state::normal() * n.z ; +} + + + +// Returns a normal by adding a detail normal to a global normal. +// If detail blending of two normal maps gives visual artifacts, check if texture_2d are loaded +// correctly with ::tex::gamma_linear +float3 add_detail_normal(float3 nd = ::state::normal(), float3 n = ::state::normal()) +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + n = n_t*::math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation); + float c = ::math::cos(rotation); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + + +export material Stainless_Steel_Milled( + float roughness = 0.67f [[ + ::anno::description("Higher values lead to blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float cloudiness = 0.89f [[ + ::anno::description("Adds a cloudy reflection to the metal material."), + ::anno::display_name("Cloudiness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float brightness = .6f [[ + ::anno::description("Low values make the metal darker and add slight variation to the brightness while a high value gives it a bright uniform look."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float milling_bump_strength = 1.f [[ + ::anno::description("Adds milled grooves on the metal."), + ::anno::display_name("Milling Bump Strength"), + ::anno::in_group("Appearance", "Bump"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float dents_bump_strength = 0.0f [[ + ::anno::description("Adds dents and bumps."), + ::anno::display_name("Dents Bump Strength"), + ::anno::in_group("Appearance", "Bump"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float dents_scale = 0.52f [[ + ::anno::description("Larger numbers increase the size of the dents."), + ::anno::display_name("Dents Scale"), + ::anno::in_group("Appearance", "Bump"), + ::anno::ui_order(6) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(8) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.33f, 0.33f)), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = true [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 0.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::hard_range(0, 10), + ::anno::ui_order(13) + ]]) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel Milled - New"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel_Milled.Stainless_Steel_Milled.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "new", "shiny", "milled", "reflective", "gray")) +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.799999952f, 1.f, 3.0999999f, 1.f, ::df::weighted_layer(cloudiness * 0.330000013f, ::df::microfacet_ggx_smith_bsdf(0.159999996f, 0.159999996f, color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(0.799999952f, ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), add_detail_normal(normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f))), normalmap_normal(texture_2d("./stainless_milled_norm.jpg", ::tex::gamma_linear), (milling_bump_strength * 0.850000024f + 0.150000006f) * histogram_scan_big(1.f - float3(::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z, 0.189999998f, dents_bump_strength * 0.75999999f), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f)))), add_detail_normal(normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f))), normalmap_normal(texture_2d("./stainless_milled_norm.jpg", ::tex::gamma_linear), (milling_bump_strength * 0.850000024f + 0.150000006f) * histogram_scan_big(1.f - float3(::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z, 0.189999998f, dents_bump_strength * 0.75999999f), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f)))), ::df::tint(color(0.f, 0.f, 0.f), ::df::weighted_layer(cloudiness * 0.330000013f, ::df::microfacet_ggx_smith_bsdf(0.159999996f, 0.159999996f, color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(0.799999952f, ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength) * (histogram_range(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y, ::math::lerp(0.f, 0.870000005f, roughness), ::math::lerp(0.0299999993f, 0.349999994f, roughness)) - float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z * ::math::lerp(0.0299999993f, 0.349999994f, roughness) * dents_bump_strength), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), color((brightness * 0.300000012f + 0.600000024f) * ::math::lerp(1.f, ::math::pow(float3(::base::file_texture(texture_2d("./stainless_milled_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, 1.40999997f), milling_bump_strength * 0.850000024f + 0.150000006f)), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), add_detail_normal(normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f))), normalmap_normal(texture_2d("./stainless_milled_norm.jpg", ::tex::gamma_linear), (milling_bump_strength * 0.850000024f + 0.150000006f) * histogram_scan_big(1.f - float3(::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z, 0.189999998f, dents_bump_strength * 0.75999999f), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f)))), add_detail_normal(normalmap_normal(texture_2d("./stainless_damages_norm.jpg", ::tex::gamma_linear), dents_bump_strength, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f))), normalmap_normal(texture_2d("./stainless_milled_norm.jpg", ::tex::gamma_linear), (milling_bump_strength * 0.850000024f + 0.150000006f) * histogram_scan_big(1.f - float3(::base::file_texture(texture_2d("./stainless_multi_R_diff_G_rough_B_dents.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), float2(dents_scale * 4.f)), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).z, 0.189999998f, dents_bump_strength * 0.75999999f), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.349999994f, ::base::texture_coordinate_uvw, uv_space_index), 0.200000003f))))), ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + hair_bsdf tmp6 = hair_bsdf(); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5, + hair: tmp6); + + + +export material Stainless_Steel_Milled_Worn(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Rüdiger Raab"), + ::anno::contributor("Maik Rohland"), + ::anno::display_name("Stainless Steel Milled - Worn"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stainless_Steel_Milled.Stainless_Steel_Milled_Worn.png"), + ::anno::key_words(string[]("metal", "steel", "stainless", "design", "kitchen", "sanitary", "construction", "automotive", "architecture", "interior", "exterior", "new", "shiny", "milled", "reflective", "gray")) +]] = Stainless_Steel_Milled( + roughness: 0.67f, + cloudiness: 0.89f, + brightness: 0.6f, + milling_bump_strength: 1.0f, + dents_bump_strength: 1.0f, + dents_scale: 0.52f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + + diff --git a/Assets/Material/material_0481/Titanium.mdl b/Assets/Material/material_0481/Titanium.mdl new file mode 100644 index 0000000000000000000000000000000000000000..45f350a83335c0b3dfc958196fd9da7e36dda05c --- /dev/null +++ b/Assets/Material/material_0481/Titanium.mdl @@ -0,0 +1,378 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + + +export material Titanium( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float roughness = 0.1f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float smudges = 0.5f [[ + ::anno::description("Adds blurrier reflection that follow the intensities of the Roughness texture on top."), + ::anno::display_name("Smudges"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float radius = 0.03f [[ + ::anno::description("Radius of the rounded corners."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners") + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("When enabled the round corner effect is applied across different materials."), + ::anno::in_group("Round Corners") + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(.45f, .45f)) + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]], + float3 normal = ::state::normal() [[ + ::anno::description("Modify the surface normal."), + ::anno::display_name("Normal"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Titanium"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Titanium.Titanium.png"), + ::anno::key_words(string[]("metal", "pure", "smudged", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "titanium")) +]] + = + let { + + color normal_reflectivity = color(0.618264052974f, 0.579396264956f, 0.542545225681f); // Titanium + color grazing_reflectivity = color(0.99942f, 1.f, 1.f); + + bool tmp0 = false; + material_surface tmp1( + ::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), + material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5( + float3(0.f), + 1.f, + enable_round_corners ? ::state::rounded_corner_normal(radius, across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Titanium_Polished(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Titanium Polished"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Titanium.Titanium_Polished.png"), + ::anno::key_words(string[]("metal", "pure", "design", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "titanium")) +]] += Titanium( + infinite_tiling: true, + roughness: 0.0f, + smudges: 0.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + +export material Titanium_Glossy_Fingerprints(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Titanium Glossy Fingerprints"), + ::anno::description("Pure metal material with optional smudges."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Titanium.Titanium_Glossy_Fingerprints.png"), + ::anno::key_words(string[]("metal", "pure", "design", "smudged", "reflective", "infinite tiling", "smooth", "conductor", "new", "polished", "titanium")) +]] += Titanium( + infinite_tiling: true, + roughness: 0.23f, + smudges: 1.0f, + enable_round_corners: false, + radius: 0.03f, + across_materials: false, + texture_translate: float2(0.0f, 0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + normal: ::state::normal() +); + + + +/* +- Aluminum + 0.911810895428,0.914089043421,0.920152876196 + +- Copper + 0.9654565, 0.6899602, 0.4830392 + +- Chromium + 0.549302, 0.5560554, 0.5542377 + +- Iron + 0.5293683, 0.5132565, 0.4942483 + +- Gold + 1.0,0.722306985258,0.340058756743 + +- Nickel + 0.696691094703,0.640529134605,0.563260231405 + +- Platinum + 0.678533319955,0.639590890417,0.583638675413 + +- Mercury + 0.780978740699,0.779541528985,0.778441417779 + +- Silver + 0.9614253056,0.948983344333,0.918968346466 + +- Titanium + 0.618264052974,0.579396264956,0.542545225681 + +- Tungsten + 0.951001417565,0.815051845356,0.751931718925 + +- Zinc + 0.87467950988,0.868943040106,0.855089634324 + + +*/ diff --git a/Assets/Material/material_0498/Zinc_Galvanizing.mdl b/Assets/Material/material_0498/Zinc_Galvanizing.mdl new file mode 100644 index 0000000000000000000000000000000000000000..c60483f76edf17f4b941e7719f5947b06ee55f7c --- /dev/null +++ b/Assets/Material/material_0498/Zinc_Galvanizing.mdl @@ -0,0 +1,494 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; + +import ::anno::*; +import ::base::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::df::*; +import ::nvidia::core_definitions::*; +import ::nvidia::core_definitions::dimension; + +const string DESCRIPTION = "Zinc material with optional oxidation effect"; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + + float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 + //bool srgb2rgb = false, + //bool rgb2srgb = false +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); + //return ::state::normal(); +} + + color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + + float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0, 0.0), + float rotation = 0.0, // rotation in degrees + float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +export material Zinc_Galvanizing( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float zinc_roughness = 0.39f [[ + ::anno::description("The roughness of the zinc crystals."), + ::anno::display_name("Zinc Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float oxidation_amount = 0.08f [[ + ::anno::description("Controls the amount of oxidation on the material."), + ::anno::display_name("Oxidation Amount"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float oxide_roughness = 0.79f [[ + ::anno::description("Controls the roughness of the oxidation on the material. Only visible if Oxidation Amount is greater than 0."), + ::anno::display_name("Oxide Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + float dirt_spots_weight = 0.18f [[ + ::anno::description("Adds dirty spots to the material."), + ::anno::display_name("Dirt Spots Weight"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + float leak_dirt_weight = 0.03f [[ + ::anno::description("Adds leaky dirt to the material."), + ::anno::display_name("Leak Dirt Weight"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + uniform float bump_strength = 0.28f [[ + ::anno::description("The Strength of the bump map."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(6) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(8) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.7f, 0.7f)), + ::anno::ui_order(9) + ]], + uniform bool roundcorners_enable = false [[ + ::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."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(11) + ]], + uniform bool roundcorners_across_materials = true [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Transform"), + ::anno::ui_order(13) + ]]) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Zinc Galvanizing - New Shiny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("metal", "zinc", "infinite", "tiling", "construction", "architecture", "galvanized", "coated", "new", "metallic", "shiny", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::thumbnail("./.thumbs/Zinc_Galvanizing.Zinc_Galvanizing.png") +]] + = + let { + material_surface tmp1(::df::weighted_layer(::math::max(::math::pow(dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x, 1.18999994f), ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.379999995f)), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(color(0.f, 0.f, 0.f), nvidia::core_definitions::blend_colors(color(0.212230995f, 0.186502993f, 0.166861996f), color(0.266355991f, 0.240462005f, 0.225070998f), ::base::color_layer_blend, histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).x, 0.469999999f, 0.170000002f)).tint, ::base::color_layer_blend, ::math::max(::math::pow(dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x, 1.18999994f), ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.379999995f))).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./zinc_galvanized_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.25f, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.5f, 0.5f, 0.996999979f), 3.f) : nvidia::core_definitions::normalmap_texture(texture_2d("./zinc_galvanized_normal.jpg", ::tex::gamma_linear), 1.f / texture_scale * 4.f, texture_translate, texture_rotate, false, bump_strength, uv_space_index)), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf((dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x + ::math::lerp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).y, 0.419999987f, zinc_roughness * 0.400000006f + 0.400000006f), ::math::lerp(::math::clamp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).x, 1.f, oxide_roughness * 0.219999999f + 0.600000024f), 0.f, 1.f), float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).z, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), oxidation_amount) + ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)) * (dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x + ::math::lerp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).y, 0.419999987f, zinc_roughness * 0.400000006f + 0.400000006f), ::math::lerp(::math::clamp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).x, 1.f, oxide_roughness * 0.219999999f + 0.600000024f), 0.f, 1.f), float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).z, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), oxidation_amount) + ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), (dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x + ::math::lerp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).z, 0.419999987f, zinc_roughness * 0.400000006f + 0.400000006f), ::math::lerp(::math::clamp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).x, 1.f, oxide_roughness * 0.219999999f + 0.600000024f), 0.f, 1.f), float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).z, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), oxidation_amount) + ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)) * (dirt_spots_weight * float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).x + ::math::lerp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.153999999f, 0.501999974f, 0.493999988f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_dirt_G_urough_B_vrough.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).z, 0.419999987f, zinc_roughness * 0.400000006f + 0.400000006f), ::math::lerp(::math::clamp(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).x, 1.f, oxide_roughness * 0.219999999f + 0.600000024f), 0.f, 1.f), float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).z, ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), oxidation_amount) + ::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.379000008f, 0.689999998f, 0.750999987f), 3.f, false) : ::base::file_texture(texture_2d("./zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.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).y, 0.729999959f) * (leak_dirt_weight * 0.25f)), color(0.450940013f, 0.512027025f, 0.590619028f), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), infinite_tiling ? endless_normal(texture_2d("./zinc_galvanized_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.25f, ::base::texture_coordinate_uvw, uv_space_index), 2.72000003f, float3(0.5f, 0.5f, 0.996999979f), 3.f) : nvidia::core_definitions::normalmap_texture(texture_2d("./zinc_galvanized_normal.jpg", ::tex::gamma_linear), 1.f / texture_scale * 4.f, texture_translate, texture_rotate, false, bump_strength, uv_space_index)), ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5(float3(0.f), 1.f, roundcorners_enable ? ::state::rounded_corner_normal(0.f, roundcorners_across_materials, roundcorners_radius_mm) : ::state::normal()); + } in + material( + thin_walled: false, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Zinc_Rough_Crystals(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Zinc Galvanizing - Rough Crystals"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("metal", "zinc", "infinite", "tiling", "construction", "architecture", "galvanized", "coated", "metallic", "rough", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::thumbnail("./.thumbs/Zinc_Galvanizing.Zinc_Rough_Crystals.png") +]] = Zinc_Galvanizing ( + infinite_tiling: true, + zinc_roughness: 0.83f, + oxidation_amount: 0.08f, + oxide_roughness: 0.79f, + dirt_spots_weight: 0.18f, + leak_dirt_weight: 0.03f, + bump_strength: 0.28, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.8f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + +export material Zinc_Rough_Medium_Oxidized(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Zinc Galvanizing - Medium Oxidized"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("metal", "zinc", "infinite", "tiling", "construction", "architecture", "galvanized", "oxidized", "aged", "old", "coated", "dirty", "metallic", "rough", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::thumbnail("./.thumbs/Zinc_Galvanizing.Zinc_Rough_Medium_Oxidized.png") +]] = Zinc_Galvanizing ( + infinite_tiling: true, + zinc_roughness: 0.83f, + oxidation_amount: 0.08f, + oxide_roughness: 0.79f, + dirt_spots_weight: 0.18f, + leak_dirt_weight: 0.03f, + bump_strength: 0.28, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.8f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + +export material Zinc_Rough_Heavy_Shiny_Oxidized(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Zinc Galvanizing - Heavy Shiny Oxidized"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("metal", "zinc", "infinite", "tiling", "construction", "architecture", "galvanized", "oxidized", "aged", "old", "coated", "dirty", "metallic", "rough", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::thumbnail("./.thumbs/Zinc_Galvanizing.Zinc_Rough_Heavy_Shiny_Oxidized.png") +]] = Zinc_Galvanizing ( + infinite_tiling: true, + zinc_roughness: 0.29f, + oxidation_amount: 0.82f, + oxide_roughness: 0.21f, + dirt_spots_weight: 0.59f, + leak_dirt_weight: 0.57f, + bump_strength: 0.56, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.8f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +export material Zinc_Dirty_Rough_Oxidized(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Zinc Galvanizing - Dirty Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("metal", "zinc", "infinite", "tiling", "construction", "architecture", "galvanized", "oxidized", "aged", "worn", "old", "coated", "dirty", "metallic", "rough", "gray")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::thumbnail("./.thumbs/Zinc_Galvanizing.Zinc_Dirty_Rough_Oxidized.png") +]] = Zinc_Galvanizing ( + infinite_tiling: true, + zinc_roughness: 0.29f, + oxidation_amount: 0.82f, + oxide_roughness: 0.72f, + dirt_spots_weight: 0.86f, + leak_dirt_weight: 0.73f, + bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + roundcorners_enable: false, + roundcorners_radius_mm: 0.8f, + roundcorners_across_materials: false, + uv_space_index: 0 +); \ No newline at end of file diff --git a/Assets/Material/material_0502/atlas_02_norm_dist.png b/Assets/Material/material_0502/atlas_02_norm_dist.png new file mode 100644 index 0000000000000000000000000000000000000000..a368ebd9ef175a3e7566594df7f06c1af5f5e27e --- /dev/null +++ b/Assets/Material/material_0502/atlas_02_norm_dist.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:545d952caf139061c8f7c9474fbadd59cc2dedc5616386bbcb2ac71c88add6f0 +size 1576300 diff --git a/Assets/Material/material_0502/sheet_metal_R_rough_G_ao_B_streaks.jpg b/Assets/Material/material_0502/sheet_metal_R_rough_G_ao_B_streaks.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8a919e141894a2242175b13c37dee2571da51ce0 --- /dev/null +++ b/Assets/Material/material_0502/sheet_metal_R_rough_G_ao_B_streaks.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bcc1276b9bf79abb650315d368f57d20a4f7929ca207b4c3fa5fed8b9eb6306 +size 4451500 diff --git a/Assets/Material/material_0502/sheet_metal_multi_rough.jpg b/Assets/Material/material_0502/sheet_metal_multi_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..029d7ad1d517779b532e07cc1c31366c01f36854 --- /dev/null +++ b/Assets/Material/material_0502/sheet_metal_multi_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e2309dba2da6ba419f804936bf213270cb62b98a589b9c38bd99ce6bcad861f +size 7088427 diff --git a/Assets/Material/material_0502/sheet_metal_norm.jpg b/Assets/Material/material_0502/sheet_metal_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b954935687b2c9052528646b6e2e2f5136d85a70 --- /dev/null +++ b/Assets/Material/material_0502/sheet_metal_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3145f26a544857dd0163129591cb37d6c7d7934dc59aaa3611030f9f44ecd613 +size 3633863 diff --git a/Assets/Material/material_0513/Carpaint_Solid.mdl b/Assets/Material/material_0513/Carpaint_Solid.mdl new file mode 100644 index 0000000000000000000000000000000000000000..50f38d2a66c38937bc5190b1cab2cf6b6aa2b905 --- /dev/null +++ b/Assets/Material/material_0513/Carpaint_Solid.mdl @@ -0,0 +1,1112 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.6; +import ::df::*; +import ::math::*; +import ::anno::*; +import ::state::*; +import ::base::*; +import ::tex::*; +import ::nvidia::core_definitions::dimension; +import ::nvidia::core_definitions::blend_colors; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info transform_coordinate_2( + float4x4 transform + [[ ::anno::description("A transformation to be applied to the source coordinates. rotation_translation_scale() is a suggested means to compute the transformation matrix.") ]], + ::base::texture_coordinate_info coordinate = ::base::texture_coordinate_info() + [[ ::anno::description("Coordinate, typically sourced from coordinate_source or coordinate_projection.") ]] +) [[ + ::anno::description("Transform a texture coordinate by a matrix.") , + ::anno::noinline() + ]] +{ + // Version 2 + float4 r_position = transform * float4(coordinate.position.x,coordinate.position.y,coordinate.position.z,1); + //Try aproximating it for the case that the rotation is only aroud z and assuming the texture layout is nice and z is ~constant. + //just pretend there is no other rotation happening + //get rid of scaling and translation. Then extract fields where sin and cos would be in a simple 2d transform around z. + float4 u = transform[0]; + float3 ru = ::math::normalize(float3(u.x,u.y,u.z)); + float cos = ru.x; + float sin = -ru.y; + + return ::base::texture_coordinate_info( + float3(r_position.x,r_position.y,r_position.z), + ::math::normalize(cos * coordinate.tangent_u - sin * coordinate.tangent_v), + ::math::normalize(cos * coordinate.tangent_v + sin * coordinate.tangent_u)); +} + +// Takes the standard input that every material has. It combines a couple of +// functions in one convenience function. +::base::texture_coordinate_info vmat_transform( + float2 translation = float2(0.0f, 0.0f), + float rotation = 0.0f, // rotation in degrees + float2 scaling = float2(1.0f, 1.0f), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float4x4 scale = + float4x4(1.0f /scaling.x, 0.f , 0.f , 0.f, + 0.f , 1.0f /scaling.y , 0.f , 0.f, + 0.f , 0.f , 1.0f, 0.f, + translation.x , translation.y , 0.0f, 1.f); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0f , 0.0f, + s , c , 0.0f , 0.0f, + 0.0f, 0.0f , 1.0f , 0.0f, + 0.f , 0.0f , 0.0f , 1.f); + + return transform_coordinate_2(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + + + +float histogram_range(float input, float range = 1.0f, float position = 0.5f) +{ + float low = ::math::clamp(1.0f - ::math::min(((1.0f - position) + range * 0.5f), (1.0f - position) * 2), 0.0f, 1.0f); + float high = ::math::clamp(::math::min((position + range * 0.5f ), position * 2.0f), 0.0f, 1.0f); + return ::math::lerp(low, high, input); +} + +// +// flake noise utilities +// +int hash(int seed, int i) +{ + return (i ^ seed) * 1075385539; +} +int rnd_init(int3 pos) +{ + return hash(hash(hash(0, pos.x), pos.y), pos.z); +} + +int rnd_next(int seed) { + // xorshift32 using signed int + seed ^= seed << 13; + seed ^= seed >>> 17; + seed ^= seed << 5; + return seed; +} + +float rnd_value(int seed) +{ + //return ::math::abs(float(seed) * 4.6566fe-10f); + return ::math::abs(float(seed) * 0.00000000046566f); +} + +// apply random rotation (using "Fast Random Rotation Matrices" by James Arvo) +float3 rotate_pos(float3 pos, float3 xi) +{ + float theta = ::math::PI * 2.0f * xi.x; + float phi = ::math::PI * 2.0f * xi.y; + float z = xi.z * 2.0f; + + float r = ::math::sqrt(z); + float[2] sp_cp = ::math::sincos(phi); + float Vx = sp_cp[0] * r; + float Vy = sp_cp[1] * r; + float Vz = ::math::sqrt(2.0f - z); + + float[2] st_ct = ::math::sincos(theta); + float Sx = Vx * st_ct[1] - Vy * st_ct[0]; + float Sy = Vx * st_ct[0] + Vy * st_ct[1]; + + float3x3 M( + Vx * Sx - st_ct[1], Vx * Sy - st_ct[0], Vx * Vz, + Vy * Sx + st_ct[0], Vy * Sy - st_ct[1], Vy * Vz, + Vz * Sx, Vz * Sy, 1.0f - z); + + return M * pos; +} + +struct flake_noise_value { + // flake priority (in [0..1], 0: no flake, flakes with higher priority shadow flakes "below" them) + float priority; + // Stores values from the functions (once normal, another time the color) + // current pseudo random number generator seed + int rnd_seed; + float4 carrier; +}; + +// flake noise function with controllable regularity, flake size, and probability +flake_noise_value flake_noise( + float3 pos, + float jitter_scale = 1.0f, + float flake_diameter = 0.75f, + float flake_probability = 1.0f) +{ + float3 base_pos = ::math::floor(pos); + int3 base_pos_i = int3(base_pos); + + // limit the flake size to the allowed maximum (such that looking at all neighbors is sufficient) + flake_diameter = ::math::min(flake_diameter, (1.5f - 0.5f * jitter_scale) / ::math::sqrt(3.0f)); + + flake_noise_value val(0.0f, 0, float4(0.0f)); + + for (int i = -1; i < 2; ++i) { + for (int j = -1; j < 2; ++j) { + for (int k = -1; k < 2; ++k) { + + int seed = rnd_init(base_pos_i + int3(i, j, k)); + + seed = rnd_next(seed); + if (rnd_value(seed) > flake_probability) + continue; + + seed = rnd_next(seed); + float priority = rnd_value(seed); + if (priority < val.priority) + continue; + + float3 flake_pos = base_pos + float3(i, j, k) + float3(0.5f); + + if (jitter_scale > 0.0f) { + seed = rnd_next(seed); + flake_pos.x += (rnd_value(seed) - 0.5f) * jitter_scale; + seed = rnd_next(seed); + flake_pos.y += (rnd_value(seed) - 0.5f) * jitter_scale; + seed = rnd_next(seed); + flake_pos.z += (rnd_value(seed) - 0.5f) * jitter_scale; + } + + float3 p = pos - flake_pos; + if (::math::dot(p, p) >= flake_diameter * flake_diameter * 4.0f) + continue; + + float3 xi_rot; + seed = rnd_next(seed); + xi_rot.x = rnd_value(seed); + seed = rnd_next(seed); + xi_rot.y = rnd_value(seed); + seed = rnd_next(seed); + xi_rot.z = rnd_value(seed); + p = rotate_pos(p, xi_rot); + + if (::math::abs(p.x) <= flake_diameter && + ::math::abs(p.y) <= flake_diameter && + ::math::abs(p.z) <= flake_diameter) + { + val.priority = priority; + val.rnd_seed = seed; + } + } + } + } + + return val; +} + +// create a flake normal by importance sampling the Beckmann distribution with given roughness +flake_noise_value flake_normal( + flake_noise_value val, + float spread) +{ + if (val.priority <= 0.0f) + { + val.carrier = float4(::state::normal().x, ::state::normal().y, ::state::normal().z, 1.0f); + return val; + } + + int seed = rnd_next(val.rnd_seed); + float xi0 = rnd_value(seed); + seed = rnd_next(seed); + float xi1 = rnd_value(seed); + + float phi = ::math::PI * 2.0f * xi0; + + float roughness = spread * spread; + + float tantheta = ::math::sqrt(-roughness * roughness * ::math::log(1.0f - xi1)); + float sintheta = tantheta / ::math::sqrt(1.0f + tantheta * tantheta); + float costheta = ::math::sqrt(1.0f - sintheta * sintheta); + + float[2] scphi = ::math::sincos(phi); + + val.rnd_seed = seed; + + float3 normal = ::state::texture_tangent_u(0) * scphi[1] * sintheta + + ::state::texture_tangent_v(0) * scphi[0] * sintheta + + ::state::normal() * costheta; + + val.carrier = float4(normal.x, normal.y, normal.z, 1.0f); + + + return val; +} + + +export material Carpaint_Solid( + color base_color = color(0.002125f, 0.051269f, 0.046665f) [[ + ::anno::description("Sets the base color of the carpaint."), + ::anno::display_name("Base"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + float ground_coat_influence = 0.9f [[ + ::anno::description("The ground coat layer is a metallic base layer over which the base color coat, the flakes and the clearcoat are applied. Use the parameter 'Ground Coat Brightness' to adjust its brightness."), + ::anno::display_name("Base Coat Influence"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + float ground_coat_brightness = 0.24f [[ + ::anno::description("Adjusts the brightness of the metallic ground coat over which the base color coat, the flakes and the clearcoat are applied. Only has an effect, if the Ground Coat Influence is greater than 0.0."), + ::anno::display_name("Base Coat Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + float edge_darkening = 0.96f [[ + ::anno::description("The amount how much colors fade to darker color when looking at the carpaint at grazing angles. Low values make the carpaint look more flat."), + ::anno::display_name("Edge Darkening"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + color flakes_tint = color(0.016807f, 0.171441f, 0.417885f) [[ + ::anno::description("The color of the flakes."), + ::anno::display_name("Flakes Tint"), + ::anno::in_group("Flakes"), + ::anno::ui_order(4) + ]], + uniform float flakes_density = 0.29f [[ + ::anno::description("Adjusts the density of the flakes. Lower number means less flake particles being applied."), + ::anno::display_name("Flakes Density"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float spread = 0.12f [[ + ::anno::description("The amount how much flakes are pointing to random directions. It is strongly discouraged using a value of 0.0 as the flakes will be oriented exactly as the surface normal, which will result in an unnatural look. Higher values lead to a more scintillating look of the flakes."), + ::anno::display_name("Flakes Spread"), + ::anno::enable_if("flakes_density > 0.0f"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(6) + ]], + float flakes_roughness = 0.46f [[ + ::anno::description("The roughness of the flakes itself. Higher values smoothen out the look of the flakes. Depending on the flakes being used in carpaints, use low values for a sparkling flake effect while mica flakes tend to have a higher roughness, leading to a smoother more pearlescent look on the final carpaint."), + ::anno::display_name("Flakes Roughness"), + ::anno::enable_if("flakes_density > 0.0f"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(7) + ]], + float flakes_size = 0.1f [[ + ::anno::description("Size of the metal flakes in millimeters."), + ::anno::display_name("Flakes Size (mm)"), + ::anno::enable_if("flakes_density > 0.0f"), + ::anno::soft_range(0.f, 1.f), + ::anno::in_group("Flakes"), + ::anno::ui_order(8) + ]], + float candy_flip = 0.f [[ + ::anno::description("Changes the tint of the coating to fade towards the flake color to produce a candy paint effect."), + ::anno::display_name("Candy Coating"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(9) + ]], + float flake_layer_visibility = 0.f [[ + ::anno::description("Adjusts how much the flakes contribute to the final look. Lowering the value makes the flakes appear more transparent. At value of 0.0 no flakes are not rendered at all."), + ::anno::display_name("Flakes Visibility"), + ::anno::enable_if("flakes_density > 0.0f"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(10) + ]], + uniform texture_2d roughness_texture = texture_2d("./smudges_scratches_A_rough.jpg", ::tex::gamma_linear) [[ + ::anno::description("Texture to use for adding variation to the roughness on the clearcoat."), + ::anno::display_name("Roughness Texture"), + ::anno::in_group("Clearcoat"), + ::anno::ui_order(11) + ]], + float clearcoat_rough = 0.f [[ + ::anno::description("The roughness of the clearcoat."), + ::anno::display_name("Clearcoat Roughness"), + ::anno::in_group("Clearcoat"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(12) + ]], + float roughness_variation = 0.f [[ + ::anno::description("The amount of variation to apply to the roughness. This parameter only has an effect when the clearcoat roughness is not zero or one."), + ::anno::display_name("Clearcoat Roughness Variation"), + ::anno::in_group("Clearcoat"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(13) + ]], + float clearcoat_ior = 1.600f [[ + ::anno::description("The index of refraction for the clearcoat layer."), + ::anno::display_name("Clearcoat Index of Refraction"), + ::anno::in_group("Clearcoat"), + ::anno::soft_range(1.f, 3.f), + ::anno::hard_range(1.f, 5.f), + ::anno::ui_order(14) + ]], + float clearcoat_visibility = 1.f [[ + ::anno::description("While the full value is the correct physical behavior of the clearcoat, lowering the value to reduce the amount of reflection for artistic purposes."), + ::anno::display_name("Clearcoat Visibility"), + ::anno::in_group("Clearcoat"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(15) + ]], + uniform float orange_peel_strength = 0.f [[ + ::anno::description("Strength of the bump mapping effect."), + ::anno::display_name("Coat Orange Peel Strength"), + ::anno::in_group("Clearcoat"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(16) + ]], + uniform float orange_peel_size = 1.f [[ + ::anno::description("Size of the biggest feature of the pattern."), + ::anno::display_name("Coat Orange Peel Size"), + ::anno::soft_range(0.f, 1.f), + ::anno::in_group("Clearcoat"), + ::anno::ui_order(17) + ]], + float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(18) + ]], + float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(0.f, 360.f), + ::anno::ui_order(19) + ]], + float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::ui_order(20) + ]], + uniform bool roundcorners_enable = false [[ + ::anno::description("Enables the round corneer effect. Comes at a slight performance cost as additional raytracing calls are required to evaluate the round corner effect."), + ::anno::display_name("Enable Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(22) + ]], + uniform float roundcorners_radius_mm = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::display_name("Round Corner Radius (mm)"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::ui_order(23) + ]], + uniform bool roundcorners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(27) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Use selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::ui_order(28) + ]] + + +) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Carpaint_Solid.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + bool tmp0 = false; + // Tried Scaling factors for flakes to fit 1mm size both in Substance Designer and (Iray for) Rhino + // Rhino scaling factor: 1492.537313432835 + // Substance Designer Scaling factor: 1158.6829010512 + float flakes_size_m = (1492.537313432835f/flakes_size); // Flake scaling adjustment, so that flake size is in mm + float flake_layer_visibility_m = 1.0f - flake_layer_visibility; + + ::base::texture_coordinate_info coord_info = ::base::coordinate_source(::base::texture_coordinate_object, 0); + + float scale_trans = ::state::transform_scale(::state::coordinate_object, ::state::coordinate_world, 1.0f); + + float3 source_coord = coord_info.position * ::state::meters_per_scene_unit() * scale_trans; + + ::base::texture_coordinate_info transformed_coord = ::base::transform_coordinate( + ::base::rotation_translation_scale(float3(0.0f), float3(0.0f), float3(scale_trans)), + coord_info + ); + + material_surface tmp1(::df::fresnel_layer(clearcoat_ior, clearcoat_visibility, ::df::simple_glossy_bsdf(histogram_range(::base::file_texture(roughness_texture, 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, roughness_variation, clearcoat_rough) * histogram_range(::base::file_texture(roughness_texture, 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, roughness_variation, clearcoat_rough), histogram_range(::base::file_texture(roughness_texture, 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, roughness_variation, clearcoat_rough) * histogram_range(::base::file_texture(roughness_texture, 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, roughness_variation, clearcoat_rough), nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), flakes_tint, ::base::color_layer_blend, candy_flip).tint, nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), flakes_tint, ::base::color_layer_blend, candy_flip).tint, ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::directional_factor(color(1.f, 1.f, 1.f), color(1.f - edge_darkening), 1.f, flakes_density > 0.f ? ::df::weighted_layer(::math::lerp(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density).priority > 0.001f ? 1.0f : 0.0f , 0.f, flake_layer_visibility_m), ::df::microfacet_ggx_smith_bsdf(flakes_roughness * 0.340000004f, flakes_roughness * 0.340000004f, flakes_tint, color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::directional_factor(base_color, color(1.f - edge_darkening), 1.f, ::df::weighted_layer(ground_coat_influence * 0.5f, ::df::microfacet_ggx_vcavities_bsdf(0.40959999f, 0.40959999f, color(ground_coat_brightness * 0.949999988f + 0.0500000007f), color(ground_coat_brightness * 0.949999988f + 0.0500000007f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(base_color, 0.f), ::state::normal())), float3(flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.x, flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.y, flake_normal(flake_noise(source_coord * flakes_size_m, 0.5f, 1.f, flakes_density * flakes_density ), spread).carrier.z)) : ::df::directional_factor(base_color, color(1.f - edge_darkening), 1.f, ::df::weighted_layer(ground_coat_influence * 0.5f, ::df::microfacet_ggx_vcavities_bsdf(0.40959999f, 0.40959999f, color(ground_coat_brightness * 0.949999988f + 0.0500000007f), color(ground_coat_brightness * 0.949999988f + 0.0500000007f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::diffuse_reflection_bsdf(base_color, 0.f), ::state::normal()))), orange_peel_strength > 0.f ? ::base::perlin_noise_bump_texture(transformed_coord, orange_peel_strength, orange_peel_size, false, false, 0.f, 2, false, false, float3(0.f), 1.f, 0.f, 1.f, ::state::normal()) : ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + 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()); + hair_bsdf tmp6 = hair_bsdf(); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5, + hair: tmp6); + + +// ------------------- 2 (Plain White) ------------------- +export material White(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - White"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "white", "light", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.White.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.768151f, 0.768151f, 0.768151f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.56f, + flakes_tint: color(0.552011f, 0.552011f, 0.552011f), + flakes_density: 0.0f, + spread: 0.47f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.34f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 3 (vintage White) ------------------- +export material Vintage_White(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Vintage White"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "vintage", "white", "light", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_White.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.672443f, 0.630757f, 0.502886f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.28f, + flakes_tint: color(0.603827f, 0.665387f, 0.693872f), + flakes_density: 0.0f, + spread: 0.41f, + flakes_roughness: 0.32f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.34f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.06f, + orange_peel_size: 0.01f +); + + +// ------------------- 4 (Black) ------------------- +export material Black(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Black"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "black", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Black.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.006049f, 0.006049f, 0.006049f), + ground_coat_influence: 0.97f, + ground_coat_brightness: 0.17f, + edge_darkening: 0.57f, + flakes_tint: color(0.552011f, 0.552011f, 0.552011f), + flakes_density: 0.0f, + spread: 0.47f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 5 (Black Matte) ------------------- +export material Black_Matte(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Black Matte"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "black", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Black_Matte.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.006995f, 0.006995f, 0.006995f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.577580f, 0.577580f, 0.577580f), + flakes_density: 0.12f, + spread: 0.39f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.48f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 6 ------------------- +export material Agent_Gray(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Agent Gray"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "gray", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Agent_Gray.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.234551f, 0.254152f, 0.234551f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.644480f, 0.701102f, 0.644480f), + flakes_density: 0.2f, + spread: 0.25f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 7 (Agent Gray Matte)------------------- +export material Agent_Gray_Matte(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Agent Gray Matte"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "matte", "gray", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Agent_Gray_Matte.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.234551f, 0.254152f, 0.234551f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.644480f, 0.701102f, 0.644480f), + flakes_density: 0.21f, + spread: 0.25f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.4f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 8 (Blood Red)------------------- +export material Blood_Red(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Blood Red"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Blood_Red.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.462077f, 0.022174f, 0.015209f), + ground_coat_influence: 0.03f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.56f, + flakes_tint: color(0.552011f, 0.552011f, 0.552011f), + flakes_density: 0.0f, + spread: 0.47f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 9 (Tarreri Red)------------------- +export material Tarreri_Red(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Tarreri Red"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Tarreri_Red.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.672443f, 0.038204f, 0.026241f), + ground_coat_influence: 0.03f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.56f, + flakes_tint: color(0.672443f, 0.095307f, 0.078187f), + flakes_density: 0.0f, + spread: 0.47f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 10 (Dark Decent Red)------------------- +export material Dark_Decent_Red(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Dark Decent Red"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "red", "warm", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Dark_Decent_Red.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.135633f, 0.012983f, 0.027321f), + ground_coat_influence: 0.19f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.1f, + flakes_tint: color(0.135633f, 0.012983f, 0.027321f), + flakes_density: 0.0f, + spread: 0.38f, + flakes_roughness: 0.18f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 11 (Vintage Maroon)------------------- +export material Vintage_Maroon(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Vintage Maroon"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "dark", "brown", "red")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_Maroon.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.283149f, 0.054480f, 0.063010f), + ground_coat_influence: 0.19f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.1f, + flakes_tint: color(0.283149f, 0.054480f, 0.063010f), + flakes_density: 0.0f, + spread: 0.38f, + flakes_roughness: 0.3f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 12 ------------------- +export material Orange(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Orange"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "orange", "warm", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Orange.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.623960f, 0.262251f, 0.022174f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.017642f, 0.262251f, 0.623960f), + flakes_density: 0.59f, + spread: 0.25f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 13 (Brown Matte) ------------------- +export material Brown_Matte(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Brown Matte"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "brown", "matte")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Brown_Matte.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.300544f, 0.250158f, 0.187821f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.300544f, 0.250158f, 0.187821f), + flakes_density: 0.0f, + spread: 0.39f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.5f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 14 (Bumblebee) ------------------- +export material Bumblebee(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Bumblebee"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "yellow", "warm", "light", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Bumblebee.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.775822f, 0.564712f, 0.030713f), + ground_coat_influence: 0.09f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.1f, + flakes_tint: color(1.000000f, 0.479320f, 0.095307f), + flakes_density: 0.0f, + spread: 0.54f, + flakes_roughness: 0.37f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 15 (Wasp) ------------------- +export material Wasp(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Wasp"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "yellow", "warm", "light", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Wasp.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.701102f, 0.603827f, 0.022174f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.5f, + edge_darkening: 0.12f, + flakes_tint: color(1.000000f, 0.479320f, 0.076185f), + flakes_density: 0.0f, + spread: 0.54f, + flakes_roughness: 0.37f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + +// ------------------- 16 (Feline Dark Green)------------------- +export material Feline_Dark_Green(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Feline Dark Green"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "green", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Feline_Dark_Green.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.010330f, 0.099899f, 0.043735f), + ground_coat_influence: 0.19f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.1f, + flakes_tint: color(0.010330f, 0.099899f, 0.043735f), + flakes_density: 0.0f, + spread: 0.38f, + flakes_roughness: 0.3f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.05f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 17 (Hunting Green Matte) ------------------- +export material Hunting_Green_Matte(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Hunting Green Matte"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "green", "dark", "matte")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Hunting_Green_Matte.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.162029f, 0.187821f, 0.114435f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.0f, + flakes_tint: color(0.318547f, 0.456411f, 0.127438f), + flakes_density: 0.0f, + spread: 0.3f, + flakes_roughness: 0.5f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.4f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- 18 (Vintage Sky Blue) ------------------- +export material Vintage_Sky_Blue(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Vintage Sky Blue"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "light", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Vintage_Sky_Blue.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.318547f, 0.564712f, 0.603827f), + ground_coat_influence: 0.06f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.0f, + flakes_tint: color(0.603827f, 127.338437f, 0.693872f), + flakes_density: 0.0f, + spread: 0.41f, + flakes_roughness: 0.32f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.34f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.06f, + orange_peel_size: 0.01f +); + + +// ------------------- 19 (Blue)------------------- +export material Blue(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Blue"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "cool", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Blue.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.012983f, 0.296138f, 0.462077f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.0f, + flakes_tint: color(0.012983f, 0.234551f, 0.665387f), + flakes_density: 0.5f, + spread: 0.47f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + + +// ------------------- 20 (Dark Decent Blue) ------------------- +export material Dark_Decent_Blue(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Solid - Dark Decent Blue"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "blue", "cool", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Solid.Dark_Decent_Blue.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Solid( + base_color: color(0.013702f, 0.046665f, 0.147027f), + ground_coat_influence: 0.19f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.1f, + flakes_tint: color(0.012983f, 0.234551f, 0.665387f), + flakes_density: 0.5f, + spread: 0.25f, + flakes_roughness: 0.34f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.0f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.36f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); \ No newline at end of file diff --git a/Assets/Material/material_0518/Cardboard_Low_Quality.mdl b/Assets/Material/material_0518/Cardboard_Low_Quality.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4f0a61659d5ac9c6b50acfd3b25ea90aca8f7086 --- /dev/null +++ b/Assets/Material/material_0518/Cardboard_Low_Quality.mdl @@ -0,0 +1,469 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. * + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA’s Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + +const string DESCRIPTION = "A paper material for cardboards"; + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, .5), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 normalmap_normal( + uniform texture_2d texture, + float factor = 1.0, + ::base::texture_coordinate_info uvw = ::base::texture_coordinate_info() +) +{ + float3 lookup = (::tex::lookup_float3(texture, float2(uvw.position.x, uvw.position.y)) - 0.5) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal()); +} + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float3 transform_internal_to_tangent(float3 n) +[[ + ::anno::hidden() +]] +{ + return + n.x* float3(::state::texture_tangent_u(0).x,::state::texture_tangent_v(0).x,::state::normal().x)+ + n.y* float3(::state::texture_tangent_u(0).y,::state::texture_tangent_v(0).y,::state::normal().y)+ + n.z* float3(::state::texture_tangent_u(0).z,::state::texture_tangent_v(0).z,::state::normal().z); +} + +float3 transform_tangent_to_internal(float3 n) +[[ + ::anno::hidden() +]] +{ + return ::state::texture_tangent_u(0) * n.x + + ::state::texture_tangent_v(0) * n.y + + ::state::normal() * n.z ; +} + +float3 add_detail_normal(float3 nd = ::state::normal(), float3 n = ::state::normal()) +{ + // http://blog.selfshadow.com/publications/blending-in-detail/ + float3 n_t = transform_internal_to_tangent(n); + float3 nd_t = transform_internal_to_tangent(nd); + + n_t=n_t + float3(0.,0.,1.); + nd_t = nd_t * float3(-1.,-1.,1.); + n = n_t*::math::dot(n_t, nd_t)/n_t.z - nd_t; + return ::math::normalize(transform_tangent_to_internal(n)); +} + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + +export material Cardboard_Low_Quality( + uniform float diffuse_brightness = 1.f [[ + ::anno::description("Adjusts the lightness of the material."), + ::anno::display_name("Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(0) + ]], + uniform float reflection_roughness = 1.f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections on the material."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(1) + ]], + uniform float reflection_variation = 0.f [[ + ::anno::description("Amount of variation applied to the roughness, higher numbers lead to non uniform reflections of the material."), + ::anno::display_name("Reflection Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + uniform float dirt = 0.f [[ + ::anno::description("Adds a layer of dirt on the cardboard."), + ::anno::display_name("Dirt Amount"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(3) + ]], + uniform float corrugation_strength = 0.f [[ + ::anno::description("Adjusts the strength of the corrugation effect."), + ::anno::display_name("Corrugation Strength"), + ::anno::in_group("Appearance", "Corrugation"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + uniform float corrugation_variation = 0.f [[ + ::anno::description("Breaks up the corrugation by attenuating it at random places."), + ::anno::display_name("Corrugation Variation"), + ::anno::in_group("Appearance", "Corrugation"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Translate"), + ::anno::in_group("Transform"), + ::anno::ui_order(6) + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Rotate"), + ::anno::in_group("Transform"), + ::anno::ui_order(7) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::anno::in_group("Transform"), + ::nvidia::core_definitions::dimension(float2(0.3f,0.3f)), + ::anno::ui_order(8) + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Use selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::ui_order(9) + ]], + uniform bool enable_round_corners = false [[ + ::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."), + ::anno::display_name("Round Corners"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(10) + ]], + uniform float radius = 1.5f [[ + ::anno::description("Radius of the rounded corners in millimeters (mm)."), + ::anno::display_name("Radius mm"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(11) + ]], + uniform bool across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners"), + ::anno::ui_order(12) + ]]) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Cardboard Low Quality"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "paper", "box", "brown", "yellow", "package", "delivery", "cardboard", "quality", "low", "cheap", "parcel")), + ::anno::thumbnail("./.thumbs/Cardboard_Low_Quality.Cardboard_Low_Quality.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), ::base::file_texture(texture_2d("./cardboard_norm2_ao.jpg", ::tex::gamma_srgb), 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, ::base::color_layer_blend, float3(endless_texture(texture_2d("./cardboard_normal_var.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.494118005f), 16.f, true))[0]).mono, ::df::microfacet_ggx_smith_bsdf((::math::lerp(reflection_variation * 0.199999988f, 0.189999998f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[2]) + histogram_range(float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[0], 0.310000002f, ::math::lerp(0.669999957f, 0.899999976f, reflection_roughness)) - ::math::lerp(::math::lerp(0.f, -1.f, dirt), 0.109999999f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[1])) * (::math::lerp(reflection_variation * 0.199999988f, 0.189999998f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[2]) + histogram_range(float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[0], 0.310000002f, ::math::lerp(0.669999957f, 0.899999976f, reflection_roughness)) - ::math::lerp(::math::lerp(0.f, -1.f, dirt), 0.109999999f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[1])), (::math::lerp(reflection_variation * 0.199999988f, 0.189999998f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[2]) + histogram_range(float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[0], 0.310000002f, ::math::lerp(0.669999957f, 0.899999976f, reflection_roughness)) - ::math::lerp(::math::lerp(0.f, -1.f, dirt), 0.109999999f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[1])) * (::math::lerp(reflection_variation * 0.199999988f, 0.189999998f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[2]) + histogram_range(float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[0], 0.310000002f, ::math::lerp(0.669999957f, 0.899999976f, reflection_roughness)) - ::math::lerp(::math::lerp(0.f, -1.f, dirt), 0.109999999f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[1])), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(color(::math::lerp(1.f, float3(endless_texture(texture_2d("./lq_simple_cardboard_multi.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.f, float3(0.533333004f, 0.823529005f, 0.36470601f), 8.f, false))[1], ::math::lerp(0.f, 1.5f, dirt))) * ::base::file_texture(texture_2d("./lq_simple_cardboard_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(diffuse_brightness), ::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.f, ""), bsdf(), add_detail_normal(normalmap_normal(texture_2d("./lq_simple_cardboard_norm.jpg", ::tex::gamma_linear), 0.217000008f, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)), normalmap_normal(texture_2d("./cardboard_norm_2.jpg", ::tex::gamma_linear), ::math::clamp((float3(endless_texture(texture_2d("./cardboard_normal_var.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.494118005f), 16.f, true))[0] - 0.5f) * (corrugation_strength * 3.f * corrugation_variation) + corrugation_strength, 0.f, 10.f), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)))), add_detail_normal(normalmap_normal(texture_2d("./lq_simple_cardboard_norm.jpg", ::tex::gamma_linear), 0.217000008f, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)), normalmap_normal(texture_2d("./cardboard_norm_2.jpg", ::tex::gamma_linear), ::math::clamp((float3(endless_texture(texture_2d("./cardboard_normal_var.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.f, float3(0.494118005f), 16.f, true))[0] - 0.5f) * (corrugation_strength * 3.f * corrugation_variation) + corrugation_strength, 0.f, 10.f), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + material_geometry tmp5(float3(0.f), 1.f, enable_round_corners ? ::state::rounded_corner_normal(radius * 0.00499999989f, across_materials, 1.f) : ::state::normal()); + + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + geometry: tmp5); + +export material Cardboard_Low_Quality_Dirt(*) +[[ + ::anno::display_name("Cardboard Low Quality Dirt"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "paper", "box", "brown", "package", "delivery", "cardboard", "quality", "low", "cheap", "used", "parcel", "aged", "dirty")), + ::anno::thumbnail("./.thumbs/Cardboard_Low_Quality.Cardboard_Low_Quality_Dirt.png"), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Cardboard_Low_Quality +( + diffuse_brightness: 0.5f, + reflection_roughness: 0.5f, + reflection_variation: 1.f, + dirt: 0.6f, + corrugation_strength: 0.5f, + corrugation_variation: 1.f, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: true +); + +export material Cardboard_Low_Quality_Corrugation(*) +[[ + ::anno::display_name("Cardboard Low Quality Corrugation"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "paper", "box", "brown", "corrugation", "package", "delivery", "cardboard", "quality", "low", "cheap", "used", "parcel", "aged")), + ::anno::thumbnail("./.thumbs/Cardboard_Low_Quality.Cardboard_Low_Quality_Corrugation.png"), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Cardboard_Low_Quality +( + diffuse_brightness: 1.f, + reflection_roughness: 0.f, + reflection_variation: 1.f, + dirt: 0.f, + corrugation_strength: 1.f, + corrugation_variation: 0.f, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: true +); + +export material Cardboard_Low_Quality_Used(*) +[[ + ::anno::display_name("Cardboard Low Quality Used"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "paper", "box", "brown", "corrugation", "package", "delivery", "cardboard", "quality", "low", "cheap", "used", "parcel", "aged")), + ::anno::thumbnail("./.thumbs/Cardboard_Low_Quality.Cardboard_Low_Quality_Used.png"), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Cardboard_Low_Quality +( + diffuse_brightness: 0.8f, + reflection_roughness: 0.3f, + reflection_variation: 0.f, + dirt: 0.4f, + corrugation_strength: 1.f, + corrugation_variation: 0.6f, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: true +); + +export material Cardboard_Low_Quality_Burnt(*) +[[ + ::anno::display_name("Cardboard Low Quality Burnt"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("dielectric", "paper", "box", "black", "brown", "corrugation", "package", "delivery", "cardboard", "quality", "low", "cheap", "used", "parcel", "aged", "burnt")), + ::anno::thumbnail("./.thumbs/Cardboard_Low_Quality.Cardboard_Low_Quality_Burnt.png"), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] += Cardboard_Low_Quality +( + diffuse_brightness: 0.15f, + reflection_roughness: 0.f, + reflection_variation: 0.f, + dirt: 0.4f, + corrugation_strength: 1.f, + corrugation_variation: 1.f, + texture_translate: 0.f, + texture_rotate: 0.f, + texture_scale: 1.f, + uv_space_index: 0, + enable_round_corners: false, + radius: 1.5f, + across_materials: true +); \ No newline at end of file diff --git a/Assets/Material/material_0527/mold_01_norm.jpg b/Assets/Material/material_0527/mold_01_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7b0b248d14f19be0a07802f5686f164e233d617f --- /dev/null +++ b/Assets/Material/material_0527/mold_01_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c2d221c1bf168d64e3f04ad01176045badfc3d61b9e1ca5705e6905656482fb +size 1618840 diff --git a/Assets/Material/material_0527/mold_01_rough.jpg b/Assets/Material/material_0527/mold_01_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e5290767bbd7ed6b03da5eae67a13c47bc28b8bd --- /dev/null +++ b/Assets/Material/material_0527/mold_01_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b22f315a9388f67d4672b23c75211ded945cd78d9db3f33554bedfc110136e13 +size 2121591 diff --git a/Assets/Material/material_0527/mold_45_norm.jpg b/Assets/Material/material_0527/mold_45_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4598dbcfc2e58c9b91c62dc16fe244f071f01cfd --- /dev/null +++ b/Assets/Material/material_0527/mold_45_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5810970a0ffe29ce5ad6217c2801446a1284c133a9b453674f22dffd22b1238 +size 2582378 diff --git a/Assets/Material/material_0527/mold_45_r_rough_g_ao.jpg b/Assets/Material/material_0527/mold_45_r_rough_g_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2a08acf59a9af89c6986a3328b8689ed1adac8b3 --- /dev/null +++ b/Assets/Material/material_0527/mold_45_r_rough_g_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2a0c03045182f9ad1a5ebe172b100d4fd05917fa2d8915c86cbec0d36fe15e3 +size 3582391 diff --git a/Assets/Material/material_0553/terrazzo_diff.jpg b/Assets/Material/material_0553/terrazzo_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f50f3f3468775de0d6725c2b8baf4ee0efa33161 --- /dev/null +++ b/Assets/Material/material_0553/terrazzo_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42d4cec71cf55938dd4a38b2689fffcd6ec222a6c17a28fb954fbf5964f71961 +size 3473291 diff --git a/Assets/Material/material_0553/terrazzo_multi.jpg b/Assets/Material/material_0553/terrazzo_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..08b65f450f5344b068bb99251ce50cc07c193f3f --- /dev/null +++ b/Assets/Material/material_0553/terrazzo_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d76f53c4f71647020c2dad1c590af61f75fdf7ac844d8719ea53c8ebb9fc1ef +size 3942743 diff --git a/Assets/Material/material_0553/terrazzo_norm.jpg b/Assets/Material/material_0553/terrazzo_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..836544f5b1ecd283cdb51d30b1c6691b06c9bb70 --- /dev/null +++ b/Assets/Material/material_0553/terrazzo_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9534ff9a94f0b552850a3303b94cff2ec0bc08ddbfe2a8944481bcc8d122dc6 +size 4382846 diff --git a/Assets/Material/material_0556/OSB_Wood.mdl b/Assets/Material/material_0556/OSB_Wood.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4761a312dfa2531b1ffd0e4e4f00d9f2b2722299 --- /dev/null +++ b/Assets/Material/material_0556/OSB_Wood.mdl @@ -0,0 +1,387 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float remap(float input, float low_1, float high_1, float low_2, float high_2) +{ + return low_2 + ((input - low_1) * (high_2 - low_2))/(high_1 - low_1); +} + +float histogram_scan(float input, float width, float position) +{ + float low = ::math::clamp(1.0f - position * 2.0, 0.0f ,1.0f); + float high = ::math::clamp(position > 0.5f ? 1.0 : 2.0f - 2 * position, 0.0f, 1.0f); + //float center = (low + high)/2.0f); + float offset = ((high - low) / 2.0) * width; + low += offset; + high -= offset; + return ::math::clamp( + remap(input, + low, + high, + 0.0, + 1.0), + 0.0, + 1.0); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + + + +export material OSB_Wood( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + color wood_tint = color(0.5f, 0.5f, 0.5f) [[ + ::anno::description("Allows to adjusts the tint of the wood."), + ::anno::display_name("Wood Tint"), + ::anno::in_group("Appearance") + ]], + // float diffuse_brightness = 0.f [[ + // ::anno::description("Adjusts the lightness of the material."), + // ::anno::display_name("Brightness"), + // ::anno::in_group("Appearance"), + // ::anno::hard_range(0.f, 1.f) + // ]], + float roughness = 0.81f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 1.f [[ + ::anno::description("Adjusts the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 3.f), + ::anno::soft_range(0.f, 1.f) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(-360.f, 360.f) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform") + ]], + uniform bool round_corners_enable = false [[ + ::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."), + ::anno::display_name("Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float round_corners_radius_mm = 2.5f [[ + ::anno::description("Radius of the rounded corners in mm."), + ::anno::display_name("Radius"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool round_corners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::description("OSB wood is composited from compressed wood strands, suitable for load-bearing constructions."), + ::anno::in_group("Wood"), + ::anno::display_name("OSB Wood - Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/OSB_Wood.OSB_Wood.png"), + ::anno::key_words(string[]("wood", "OSB", "board", "particle", "construction", "wall", "interior", "exterior", "bumped", "rough", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] + = + let { + float diffuse_brightness = 0.f; + + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.0299999993f, 1.f, 5.f, histogram_scan(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.719999969f, 0.209999993f), ::df::microfacet_ggx_smith_bsdf(::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)) * ::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), ::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)) * ::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), 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(infinite_tiling ? endless_texture(texture_2d("./osb_wood_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.728999972f, 0.481999993f, 0.282000005f), 4.73999977f, true) : ::base::file_texture(texture_2d("./osb_wood_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, diffuse_brightness * -0.300000012f + 0.300000012f).tint, wood_tint, ::base::color_layer_overlay, 1.f).tint, 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_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)), infinite_tiling ? endless_normal(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_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)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5(float3(0.f), 1.f, round_corners_enable ? ::state::rounded_corner_normal(round_corners_radius_mm * 0.001f, round_corners_across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material OSB_Wood_Shiny(*) +[[ + ::anno::description("OSB wood is composited from compressed wood strands, suitable for load-bearing constructions."), + ::anno::in_group("Wood"), + ::anno::display_name("OSB Wood - Shiny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/OSB_Wood.OSB_Wood_Shiny.png"), + ::anno::key_words(string[]("wood", "OSB", "board", "particle", "construction", "wall", "interior", "exterior", "bumped", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = OSB_Wood +( + infinite_tiling: false, + wood_tint: color(0.5f, 0.5f, 0.5f), + roughness: 0.15f, + wood_bump_strength: 1.0f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + round_corners_enable: false, + round_corners_radius_mm: 2.5f, + round_corners_across_materials: false, + uv_space_index: 0 +); diff --git a/Assets/Material/material_0557/OSB_Wood_Splattered.mdl b/Assets/Material/material_0557/OSB_Wood_Splattered.mdl new file mode 100644 index 0000000000000000000000000000000000000000..81ddd5b99a8a7adb8bacc22c7d7f26c50e91a97f --- /dev/null +++ b/Assets/Material/material_0557/OSB_Wood_Splattered.mdl @@ -0,0 +1,423 @@ +/****************************************************************************** + * Copyright 2024 NVIDIA Corporation. All rights reserved. + ****************************************************************************** + +Permission is hereby granted by NVIDIA Corporation ("NVIDIA"), free of charge, +to any person obtaining a copy of the sample definition code that uses our +Material Definition Language (the "MDL Materials"), to reproduce and distribute +the MDL Materials, including without limitation the rights to use, copy, merge, +publish, distribute, and sell modified and unmodified copies of the MDL +Materials, and to permit persons to whom the MDL Materials is furnished to do +so, in all cases solely for use with NVIDIA's Material Definition Language, +subject to the following further conditions: + +1. The above copyright notices, this list of conditions, and the disclaimer +that follows shall be retained in all copies of one or more of the MDL +Materials, including in any software with which the MDL Materials are bundled, +redistributed, and/or sold, and included either as stand-alone text files, +human-readable headers or in the appropriate machine-readable metadata fields +within text or binary files as long as those fields can be easily viewed by the +user, as applicable. +2. The name of NVIDIA shall not be used to promote, endorse or advertise any +Modified Version without specific prior written permission, except a) to comply + with the notice requirements otherwise contained herein; or b) to acknowledge +the contribution(s) of NVIDIA. + +THE MDL MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, +TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA CORPORATION BE LIABLE FOR +ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, +INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF +CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE +THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS. +*/ + +mdl 1.5; + +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +import ::tex::*; +import ::nvidia::core_definitions::blend_colors; +import ::nvidia::core_definitions::dimension; + + +const string COPYRIGHT = +" Copyright 2024 NVIDIA Corporation. All rights reserved.\n" +" MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT,\n" +" WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR,\n" +" THE MDL MATERIALS ARE PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\n" +" EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF\n" +" MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF\n" +" COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL NVIDIA\n" +" CORPORATION BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY\n" +" GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN\n" +" AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR\n" +" INABILITY TO USE THE MDL MATERIALS OR FROM OTHER DEALINGS IN THE MDL MATERIALS.\n"; + + +::base::texture_coordinate_info vmat_transform( + uniform float2 translation = float2(0.0, 0.0), + uniform float rotation = 0.0, + uniform float2 scaling = float2(1.0, 1.0), + uniform ::base::texture_coordinate_system system = ::base::texture_coordinate_uvw, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + + float4x4 scale = + float4x4(1.0 /scaling.x, 0. , 0. , 0., + 0. , 1.0 /scaling.y , 0. , 0., + 0. , 0. , 1.0, 0., + translation.x , translation.y , 0.0, 1.); + + float s = ::math::sin(rotation_rad); + float c = ::math::cos(rotation_rad); + float4x4 rotate = + float4x4( c , -s , 0.0 , 0.0, + s , c , 0.0 , 0.0, + 0.0, 0.0 , 1.0 , 0.0, + 0. , 0.0 , 0.0 , 1.); + + return ::base::transform_coordinate(scale*rotate, ::base::coordinate_source(system, uv_space)); +} + +float remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan(float input, float width, float position) +{ + float low = ::math::clamp(1.0f - position * 2.0, 0.0f ,1.0f); + float high = ::math::clamp(position > 0.5f ? 1.0 : 2.0f - 2 * position, 0.0f, 1.0f); + //float center = (low + high)/2.0f); + float offset = ((high - low) / 2.0) * width; + low += offset; + high -= offset; + return ::math::clamp( + remap_xy_to_0_1(input, + low, + high), + 0.0, + 1.0); +} + + +float histogram_scan_big(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(-width, 1.0, position), + ::math::lerp(0.0, 1.0 + width, position)), + 0.0, + 1.0); +} + + +float histogram_range(float input, float range, float position) +{ + float low = ::math::clamp(1.0 - ::math::min(((1.0 - position) + range * 0.5), (1.0 - position) * 2), 0.0, 1.0); + float high = ::math::clamp(::math::min((position + range * 0.5 ), position * 2.0), 0.0, 1.0); + return ::math::lerp(low, high, input); +} + + + +float uint2float(int x) +{ + return float(x & 0x7FFFFFFF) + (x < 0 ? 2147483648.0 : 0.0); +} + +int lowbias32(int x) +{ + x ^= x >>> 16; + x *= 0x7feb352d; + x ^= x >>> 15; + x *= 0x846ca68b; + x ^= x >>> 16; + return x; +} + +float2 rnd22(int2 p) { + float2 ret_val = float2( + uint2float(lowbias32(p[0] + lowbias32(p[1]))) / 4294967296.f, + uint2float(lowbias32(p[0] + 32000 + lowbias32(p[1]))) / 4294967296.f + ); + return ret_val; +} + +float3 srgb2rgb(float3 val) +{ + return ::math::pow(::math::max(val, float3(0.0f)), 2.2); +} + +float2x2 invert_2x2(float2x2 M) +{ + float det = M[0][0]*M[1][1] - M[0][1]*M[1][0]; + //https://www.chilimath.com/lessons/advanced-algebra/inverse-of-a-2x2-matrix/ + return (1.0 / det) * float2x2(M[1][1], -M[0][1], -M[1][0], M[0][0]); +} + +float3 nonrepeat_lookup( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5), + float patch_size = 8.0 +) +{ + + float2 uv_in = float2(uvw.position[0], uvw.position[1]) * texture_scale; + float Z = patch_size; // patch scale inside example texture + float CON = 1.0f; + + float3 O = float3(0.f); + float2x2 M0 = float2x2(1.f,0.f, 0.5f, ::math::sqrt(3.f)/2.f); + float2x2 M = invert_2x2(M0); // transform matrix <-> tilted space + + float2 U = uv_in; + float2 V = M * uv_in; //pre-tilted hexa coordinates + int2 I = int2(::math::floor(V)); // hexa-tile id + + // The mean color needs to be determined in Photoshop then to make the + // average color work out, take the float value and calculate the apropriate + // mean value as (value^(1/2.2)) + + float3 m = average_color; + + float3 F = float3(::math::frac(V)[0], ::math::frac(V)[1], 0.f), W; + F[2] = 1.0 - F[0] - F[1]; // local hexa coordinates + + if( F[2] > 0.f ) + + O = (W[0] = F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I))) - m*float(CON)) + + (W[1] = F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0,1)))) - m*float(CON)) + + (W[2] = F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1,0)))) - m*float(CON)); + else + O = (W[0] = -F[2]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1)))) - m*float(CON)) + + (W[1] = 1.f - F[1]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(1, 0)))) - m*float(CON)) + + (W[2] = 1.f - F[0]) * (( ::tex::lookup_float3(texture, U/Z-rnd22(I+int2(0, 1)))) - m*float(CON)); + O = m + O/::math::length(W); + O = ::math::clamp( (O), 0.0, 1.0); + + return float3(O); +} + +color endless_texture( + uniform texture_2d texture = texture_2d(), + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 10.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0, + bool gamma_correct_lookup = true +) +{ + return gamma_correct_lookup ? color(srgb2rgb( + nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )) + ) : color(nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + )); +} + +float3 endless_normal( + uniform texture_2d texture = texture_2d(), + float factor = 1.0, + bool flip_tangent_u = false, + bool flip_tangent_v = false, + ::base::texture_coordinate_info uvw = ::base::coordinate_source(), + float texture_scale = 1.0, + float3 average_color = float3(0.5, 0.5, 1.0), + float patch_size = 8.0 +) +{ + float3 transformed_tangent_u = flip_tangent_u ? uvw.tangent_u : - uvw.tangent_u; + float3 transformed_tangent_v = flip_tangent_v ? uvw.tangent_v : - uvw.tangent_v; + + if (flip_tangent_u) + transformed_tangent_u=-transformed_tangent_u; + if (flip_tangent_v) + transformed_tangent_v=-transformed_tangent_v; + + // normalized Lookup + float3 tangent_space_normal = + (nonrepeat_lookup ( + texture: texture, + uvw: uvw, + texture_scale: texture_scale, + average_color: average_color, + patch_size: patch_size + ) - 0.5) * (2.0 * factor); + + return ::math::normalize(uvw.tangent_u * tangent_space_normal.x + + uvw.tangent_v * tangent_space_normal.y + + ::state::normal()*1.0); +} + + +export material OSB_Wood_Splattered( + uniform bool infinite_tiling = true [[ + ::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."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + color wood_tint = color(0.5f, 0.5f, 0.5f) [[ + ::anno::description("Allows to adjusts the tint of the wood."), + ::anno::display_name("Wood Tint"), + ::anno::in_group("Appearance") + ]], + // float wood_brightness = 0.54f [[ + // ::anno::description("Adjusts the lightness of the material."), + // ::anno::display_name("Brightness"), + // ::anno::in_group("Appearance"), + // ::anno::hard_range(0.f, 1.f) + // ]], + float roughness = 0.27f [[ + ::anno::description("Adjusts the roughness of the surface. Higher values lead to blurrier reflections."), + ::anno::display_name("Roughness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 1.f [[ + ::anno::description("Adjusts the strength of the bump for the wood."), + ::anno::display_name("Wood Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::soft_range(0.f, 1.f), + ::anno::hard_range(0.f, 3.f) + ]], + float splatter_amount = 0.55f [[ + ::anno::description("Controls the amount of cement splatters on the osb wood."), + ::anno::display_name("Splatter Amount"), + ::anno::in_group("Appearance", "Splatter"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float splatter_bump_strength = 1.f [[ + ::anno::description("Adjusts the strength of the bump of the splattered cement."), + ::anno::display_name("Splatter Bump Strength"), + ::anno::in_group("Appearance", "Splatter"), + ::anno::hard_range(0.f, 3.f), + ::anno::soft_range(0.f, 1.f) + ]], + float splatter_layer_opacity = 1.f [[ + ::anno::description("Adjusts the transparency of the splatter layer."), + ::anno::display_name("Splatter Transparency"), + ::anno::in_group("Appearance", "Splatter"), + ::anno::hard_range(0.f, 1.f) + ]], + float splatter_brightness = 0.5f [[ + ::anno::description("Adjusts the brightness of the splattered concrete."), + ::anno::display_name("Splatter Brightness"), + ::anno::in_group("Appearance", "Splatter"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float2 texture_translate = 0.f [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Texture Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::display_name("Texture Rotate"), + ::anno::in_group("Transform"), + ::anno::soft_range(-360.f, 360.f) + ]], + uniform float2 texture_scale = 1.f [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Texture Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform") + ]], + uniform bool round_corners_enable = false [[ + ::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."), + ::anno::display_name("Round Corners"), + ::anno::in_group("Round Corners") + ]], + uniform float round_corners_radius_mm = 2.5f [[ + ::anno::description("Radius of the rounded corners in mm."), + ::anno::display_name("Radius"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool round_corners_across_materials = false [[ + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::display_name("Across Materials"), + ::anno::in_group("Round Corners") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Uses selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::description("An OSB Wood material with splattered cement on top. OSB wood is composited from compressed wood strands, suitable for load-bearing constructions."), + ::anno::in_group("Wood"), + ::anno::display_name("OSB Wood Splattered"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/OSB_Wood_Splattered.OSB_Wood_Splattered.png"), + ::anno::key_words(string[]("wood", "OSB", "board", "infinite tiling", "particle", "construction", "wall", "interior", "exterior", "bumped", "dirty", "dirt", "splatter", "worn", "old", "rough", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] + = + let { + float wood_brightness = 0.54f; + + material_surface tmp1(::df::custom_curve_layer(0.03f, 1.f, 5.f, histogram_scan(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.62f, 0.89f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.719999969f, 0.209999993f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), 0.789999962f, ::math::lerp(::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity), histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), 0.25f)) * ::math::lerp(::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), 0.789999962f, ::math::lerp(::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity), histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), 0.25f)), ::math::lerp(::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), 0.789999962f, ::math::lerp(::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity), histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), 0.25f)) * ::math::lerp(::math::min(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, roughness * 0.300000012f + 0.400000006f), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.620000005f, 0.898000002f, 0.f), 4.73999977f, false) : ::base::file_texture(texture_2d("./osb_wood_R_rough_G_ao_B_rough.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], roughness * 0.0599999987f + 0.200000003f, roughness * 0.270000011f + 0.430000007f)), 0.789999962f, ::math::lerp(::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity), histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), 0.25f)), 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(nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./osb_wood_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.728999972f, 0.481999993f, 0.282000005f), 4.73999977f, true) : ::base::file_texture(texture_2d("./osb_wood_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, ::base::file_texture(texture_2d("./concrete_diff.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), ::math::lerp(color(0.74841398f, 0.74841398f, 0.74841398f), color(splatter_brightness * 0.699999988f + 0.300000012f), ::math::max(0.199999988f, ::math::pow(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 1.36000001f))), ::base::mono_alpha, vmat_transform(0.f, 0.f, texture_scale * 0.5f, ::base::texture_coordinate_uvw, 0), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, ::base::color_layer_blend, ::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity)).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, wood_brightness * -0.300000012f + 0.300000012f).tint, wood_tint, ::base::color_layer_overlay, 1.f).tint, 0.f, ""), bsdf(), ::math::normalize(::math::lerp(infinite_tiling ? endless_normal(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_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), infinite_tiling ? endless_normal(texture_2d("./splatter_splatter_norm.jpg", ::tex::gamma_linear), splatter_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./splatter_splatter_norm.jpg", ::tex::gamma_linear), splatter_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), ::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity)))), ::math::normalize(::math::lerp(infinite_tiling ? endless_normal(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./osb_wood_norm.jpg", ::tex::gamma_linear), wood_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), infinite_tiling ? endless_normal(texture_2d("./splatter_splatter_norm.jpg", ::tex::gamma_linear), splatter_bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.486000001f, 0.501999974f, 0.987999976f), 4.73999977f) : ::base::tangent_space_normal_texture(texture_2d("./splatter_splatter_norm.jpg", ::tex::gamma_linear), splatter_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), ::math::lerp(0.f, histogram_scan_big(infinite_tiling ? float3(endless_texture(texture_2d("./splatter_splatter_mask.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 4.73999977f, float3(0.172999993f), 4.73999977f, true))[0] : ::base::file_texture(texture_2d("./splatter_splatter_mask.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, 0.159999996f, ::math::lerp(0.810000002f, 0.150000006f, splatter_amount)), splatter_layer_opacity)))), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + material_surface tmp2 = material_surface(scattering: bsdf(), emission: material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); + color tmp3 = color(1.f, 1.f, 1.f); + 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)); + material_geometry tmp5(float3(0.f), 1.f, round_corners_enable ? ::state::rounded_corner_normal(round_corners_radius_mm * 0.00100000005f, round_corners_across_materials, 1.f) : ::state::normal()); + } in + material( + thin_walled: false, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + +export material OSB_Wood_Splattered_Dense(*) +[[ + ::anno::description("An OSB Wood material with splattered cement on top. OSB wood is composited from compressed wood strands, suitable for load-bearing constructions."), + ::anno::in_group("Wood"), + ::anno::display_name("OSB Wood Dense Splattered"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/OSB_Wood_Splattered.OSB_Wood_Splattered_Dense.png"), + ::anno::key_words(string[]("wood", "OSB", "board", "infinite tiling", "particle", "construction", "wall", "interior", "exterior", "bumped", "dirty", "dirt", "splatter", "worn", "old", "rough", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = OSB_Wood_Splattered +( + infinite_tiling: true, + wood_tint: color(0.5f, 0.5f, 0.5f), + roughness: 0.7f, + wood_bump_strength: 1.0f, + splatter_amount: 1.0f, + splatter_bump_strength: 1.0f, + splatter_layer_opacity: 1.0f, + splatter_brightness: 0.5f, + texture_translate: 0.0f, + texture_rotate: 0.0f, + texture_scale: 1.0f, + round_corners_enable: false, + round_corners_radius_mm: 2.5f, + round_corners_across_materials: false, + uv_space_index: 0 +); diff --git a/Assets/Material/material_0564/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ad3bdab1fb785e59aefdd3de8d2953c0723103f0 --- /dev/null +++ b/Assets/Material/material_0564/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72708e20c100534f06761e90010e339b21807c03ab5339fdc0f6c70298aa34b2 +size 5190594 diff --git a/Assets/Material/material_0564/brickbond_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/brickbond_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..b9c77ea1bd762da262faa40a889232f0a59c40ca --- /dev/null +++ b/Assets/Material/material_0564/brickbond_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fd00d71ac34a2bc3ae995a93f3b3b4bef47c4a9b672ed5eec66c1a8af8b8894 +size 61671 diff --git a/Assets/Material/material_0564/brickbond_norm.png b/Assets/Material/material_0564/brickbond_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..b3b8fbdfb97ce7d9a520725e29f292116abcec83 --- /dev/null +++ b/Assets/Material/material_0564/brickbond_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f065ec0cc3be3632cd9855942e0022e651ea2704c5eb4b3c93914679eaac46 +size 5097857 diff --git a/Assets/Material/material_0564/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c9e10385cc3fcfe5232fef409e7d8ec79706026 --- /dev/null +++ b/Assets/Material/material_0564/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e0cabf2d39d63984f8dc6b45304b1d6dce0fa7b462ba5cda17a564c63c13ba2 +size 5192773 diff --git a/Assets/Material/material_0564/chantilly_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/chantilly_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..b10d7021e2e61d1677a33323a1afd01630d95735 --- /dev/null +++ b/Assets/Material/material_0564/chantilly_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eac1bf2d9fefaba86c8160cdc1413206682c7eee1b92ae78e790ac7fcf49dd8 +size 165856 diff --git a/Assets/Material/material_0564/chantilly_norm.png b/Assets/Material/material_0564/chantilly_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..4d47924ff6d6d5646d66d403b0eb22e384f9fdf9 --- /dev/null +++ b/Assets/Material/material_0564/chantilly_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a49b4ddd3eb9d1aca27491dc5a46ee821f26adebc8c50a5d7c04d8cf8d4d7bb4 +size 5219533 diff --git a/Assets/Material/material_0564/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..abfbf377deb53b57b2dc852c55741787d83beb97 --- /dev/null +++ b/Assets/Material/material_0564/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a7cded4f69a5bf02630fbd6e68d177d6ca31f73dcafe5125efdf3ed77d8f235 +size 5561847 diff --git a/Assets/Material/material_0564/chevron_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/chevron_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..773f17e791b8ec3ef817652f35d2d10e057043b3 --- /dev/null +++ b/Assets/Material/material_0564/chevron_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8672aa9e976b6f1f4414269e05b09eef306c75d8ac8e711f8daa2b617213c3f +size 253093 diff --git a/Assets/Material/material_0564/chevron_norm.png b/Assets/Material/material_0564/chevron_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..385c806fdb22cf9d6593ee94e08264c0ddde5cc9 --- /dev/null +++ b/Assets/Material/material_0564/chevron_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efcf37cdd9bd301b9e3513f3df53cbc9f0e74ca6ec7db8d2be6047ae893b6257 +size 7660298 diff --git a/Assets/Material/material_0564/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ff0b3c61a7b7a7cb2f930c42b5a175bfc6b5e3d3 --- /dev/null +++ b/Assets/Material/material_0564/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7903a3bf94df642d678feec55c7798a16fd18bb8e3f50dff1873b4ebc7068400 +size 5282713 diff --git a/Assets/Material/material_0564/cubes_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/cubes_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..e9b891846cced81c763a667e9f0b53f0a50dae2c --- /dev/null +++ b/Assets/Material/material_0564/cubes_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bdd0f5580f45c8112000f0ce338d0bf95cf9a91cf3851adddcff2ee7c42a53b +size 188376 diff --git a/Assets/Material/material_0564/cubes_norm.png b/Assets/Material/material_0564/cubes_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..70bb7bc477f08e2e561d70a5f72146e2657a11c3 --- /dev/null +++ b/Assets/Material/material_0564/cubes_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc8219f0ac1573a4871777d26a773bccd4084e850f88e30a4b03fd1cec0f07be +size 5932734 diff --git a/Assets/Material/material_0564/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8d7d76fa63452c6ab7b1e19064fa018a3cf3147 --- /dev/null +++ b/Assets/Material/material_0564/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec63497a0ed3753608d8904a91abbad0bff232d1fa51ab5d2f7598a2e53f1481 +size 5507965 diff --git a/Assets/Material/material_0564/diagonal_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/diagonal_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..83aebabfc747811ac2f5ff7ffefb115bfbeedc8c --- /dev/null +++ b/Assets/Material/material_0564/diagonal_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95db350abe05f308e61f9e8ee81e8bfd926ae4a44105248b03dd2120fd2a551f +size 278035 diff --git a/Assets/Material/material_0564/diagonal_norm.png b/Assets/Material/material_0564/diagonal_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..6640e26b29201fa290745b428753d432bb16f62c --- /dev/null +++ b/Assets/Material/material_0564/diagonal_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0708f89b7dc534c9681783946bb01386a49d4d16afb417e16ac27b16f06e9c92 +size 7421414 diff --git a/Assets/Material/material_0564/fineline_diff.jpg b/Assets/Material/material_0564/fineline_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..85a3f40a54e61241477b9fc189b95324bb98e108 --- /dev/null +++ b/Assets/Material/material_0564/fineline_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f485d03362d1f853e73c617005e44e800608cb3616a71c8c7fd92e565ba605 +size 2216725 diff --git a/Assets/Material/material_0564/fineline_norm.jpg b/Assets/Material/material_0564/fineline_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..346760da63b06237f4a98113d345e1e4c98995c7 --- /dev/null +++ b/Assets/Material/material_0564/fineline_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:991f65d02adcb3c0b1fa285531dd478bfda2480bbc07009e7f1f44fb06c49bdb +size 2748933 diff --git a/Assets/Material/material_0564/fineline_rough_detail.jpg b/Assets/Material/material_0564/fineline_rough_detail.jpg new file mode 100644 index 0000000000000000000000000000000000000000..eefd0e57bd8306968af0828a793c5d5b134e8407 --- /dev/null +++ b/Assets/Material/material_0564/fineline_rough_detail.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:882f61d1a41796829c3b8f919ec316331d7444b79f21341140ef567ecda71b2e +size 2583516 diff --git a/Assets/Material/material_0564/fineline_rough_grain.jpg b/Assets/Material/material_0564/fineline_rough_grain.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5a5e19e752cc1667dc300e4c3e7faae924d32d94 --- /dev/null +++ b/Assets/Material/material_0564/fineline_rough_grain.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:534d2005cb09b2eb8c9ab730ead8483ac838aa204c3cf250650184ab70a0c038 +size 1592267 diff --git a/Assets/Material/material_0564/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..62938629e22adf7a02b8a96ac79c91b0c16505b7 --- /dev/null +++ b/Assets/Material/material_0564/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6d1d4db4b5d09f95f27e90fb17dbe60b8f4a9ab266d98bcd4ee9b0506480962 +size 5509842 diff --git a/Assets/Material/material_0564/herringbone_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/herringbone_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..9da42b1d90046303db83b56490ece5d77ec19fad --- /dev/null +++ b/Assets/Material/material_0564/herringbone_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9c4f7944ddcb9e6c919e4f2f044ab1efe9660042a568f142365e08a424194fd +size 304083 diff --git a/Assets/Material/material_0564/herringbone_norm.png b/Assets/Material/material_0564/herringbone_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..fe1e06b00f4907fa3ca58f72302e1313ca119a0e --- /dev/null +++ b/Assets/Material/material_0564/herringbone_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7b5c153686bfdfe25af7ed9820b2ae2bbd9b73986d51e85f326d7bde2d67b58 +size 7592872 diff --git a/Assets/Material/material_0564/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4b6635bc11e70d3106387b23632b2aac688d9308 --- /dev/null +++ b/Assets/Material/material_0564/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6b9fb4c15e1ad3fe24783be2897c00447f3374433fd923e7a42bf4920fcf8ba +size 5345943 diff --git a/Assets/Material/material_0564/mosaic_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/mosaic_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..04285efb57eeddeed4dfd1fe290603ac21391143 --- /dev/null +++ b/Assets/Material/material_0564/mosaic_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c4f6877c6be7b39bb705ee1a53c65691e23de2f66d5be524bac2b0890d7859a +size 74735 diff --git a/Assets/Material/material_0564/mosaic_norm.png b/Assets/Material/material_0564/mosaic_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..199139c62fc98e5b0f2f312999dd6b99bd559a7e --- /dev/null +++ b/Assets/Material/material_0564/mosaic_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdf922e6866e7e39fd4aa23e7f82374c1fcd5f1b65c17ffde7aa18eba457d8ec +size 5988778 diff --git a/Assets/Material/material_0564/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..67654b48ce206cea96b3b23e7ca1d1cca4be897a --- /dev/null +++ b/Assets/Material/material_0564/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:361f1c0bcd09e62fdce1fade132a4129e660efe17f3c610ecbff83a6c72a2b09 +size 5339370 diff --git a/Assets/Material/material_0564/stackbond_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/stackbond_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..4ff3286575d0f7120afe4d07ec970ff5c8926a36 --- /dev/null +++ b/Assets/Material/material_0564/stackbond_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0d4cdde31299ff9b1c3a7ef65eb7b29a2c7c1e881f33f70131c37493a9b4f1 +size 622237 diff --git a/Assets/Material/material_0564/stackbond_norm.png b/Assets/Material/material_0564/stackbond_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..5a1afb0ab7194b8c49fcffe9e749ae5f078de9f7 --- /dev/null +++ b/Assets/Material/material_0564/stackbond_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:083c1c77a805a98d962d9c3d9066b8121c9513cb8bca941d2f1a20a7d012459e +size 5205492 diff --git a/Assets/Material/material_0564/tiles_wood_R_rough_G_dents_B_spots.jpg b/Assets/Material/material_0564/tiles_wood_R_rough_G_dents_B_spots.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d9abc424636350e1ba6a86dfc77219b09e7c22a2 --- /dev/null +++ b/Assets/Material/material_0564/tiles_wood_R_rough_G_dents_B_spots.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73f07f9f0053a64f77123e0c2c6b7c04fb13c6c3845fbdb73a899c13e1416ad0 +size 5318464 diff --git a/Assets/Material/material_0564/tiles_wood_orangepeel_norm.jpg b/Assets/Material/material_0564/tiles_wood_orangepeel_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..965e21ba6fb80d237eef71127af86e8557b0d380 --- /dev/null +++ b/Assets/Material/material_0564/tiles_wood_orangepeel_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14b18dba2a5e4978a8d14cb1efd17e3a7a8c7ad5e5b3438ddc7d025c6453fbfe +size 583443 diff --git a/Assets/Material/material_0564/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7024f5c4212213abf1633c4ceaadf5ea3b657ff7 --- /dev/null +++ b/Assets/Material/material_0564/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bf177cbb47fb36b44923ad36bad818f405604b6e1113119314f4e8291800cf1 +size 5489803 diff --git a/Assets/Material/material_0564/versailles_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/versailles_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..db046898ed8faa01f4cd8d7862e18a29acd1aa75 --- /dev/null +++ b/Assets/Material/material_0564/versailles_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb6e5627e4bd516c16a2e14ee94b05e2e527697a7d7139dd87bdc79ac3f175e8 +size 164987 diff --git a/Assets/Material/material_0564/versailles_norm.png b/Assets/Material/material_0564/versailles_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..9edb45008853deab30294c2047db733b30ac9f44 --- /dev/null +++ b/Assets/Material/material_0564/versailles_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd57efebab075c03b8f290d7c47651eee8650d04c650d0ca3fdd33b1e662d006 +size 6678546 diff --git a/Assets/Material/material_0564/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0564/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..68ac4d4a21a6a069173137e1fa9887167c8887b8 --- /dev/null +++ b/Assets/Material/material_0564/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fbe05e89f160fb283e17f621a33844ecc6b3abd555b43e94a1ff8f3b9d8a336 +size 5342612 diff --git a/Assets/Material/material_0564/woodstrip_R_id_G_offs_B_rotation.png b/Assets/Material/material_0564/woodstrip_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..d9dd9b1f3cd4464d0b6aac87418df0cebc48a3e4 --- /dev/null +++ b/Assets/Material/material_0564/woodstrip_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f57463c41a8cb21a1b69253d37c0d33b808d367f789765b2290d8fbff3e18c73 +size 525457 diff --git a/Assets/Material/material_0564/woodstrip_norm.png b/Assets/Material/material_0564/woodstrip_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..9f50dbae9dc24eb37e799490aa1961f69c78093f --- /dev/null +++ b/Assets/Material/material_0564/woodstrip_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff6c49a20fca5088736b8fa0cc2612a2f8225466824189af7f96df818481511a +size 5122769 diff --git a/Assets/Material/material_0572/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ad3bdab1fb785e59aefdd3de8d2953c0723103f0 --- /dev/null +++ b/Assets/Material/material_0572/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72708e20c100534f06761e90010e339b21807c03ab5339fdc0f6c70298aa34b2 +size 5190594 diff --git a/Assets/Material/material_0572/brickbond_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/brickbond_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..b9c77ea1bd762da262faa40a889232f0a59c40ca --- /dev/null +++ b/Assets/Material/material_0572/brickbond_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fd00d71ac34a2bc3ae995a93f3b3b4bef47c4a9b672ed5eec66c1a8af8b8894 +size 61671 diff --git a/Assets/Material/material_0572/brickbond_norm.png b/Assets/Material/material_0572/brickbond_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..b3b8fbdfb97ce7d9a520725e29f292116abcec83 --- /dev/null +++ b/Assets/Material/material_0572/brickbond_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36f065ec0cc3be3632cd9855942e0022e651ea2704c5eb4b3c93914679eaac46 +size 5097857 diff --git a/Assets/Material/material_0572/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c9e10385cc3fcfe5232fef409e7d8ec79706026 --- /dev/null +++ b/Assets/Material/material_0572/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e0cabf2d39d63984f8dc6b45304b1d6dce0fa7b462ba5cda17a564c63c13ba2 +size 5192773 diff --git a/Assets/Material/material_0572/chantilly_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/chantilly_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..b10d7021e2e61d1677a33323a1afd01630d95735 --- /dev/null +++ b/Assets/Material/material_0572/chantilly_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3eac1bf2d9fefaba86c8160cdc1413206682c7eee1b92ae78e790ac7fcf49dd8 +size 165856 diff --git a/Assets/Material/material_0572/chantilly_norm.png b/Assets/Material/material_0572/chantilly_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..4d47924ff6d6d5646d66d403b0eb22e384f9fdf9 --- /dev/null +++ b/Assets/Material/material_0572/chantilly_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a49b4ddd3eb9d1aca27491dc5a46ee821f26adebc8c50a5d7c04d8cf8d4d7bb4 +size 5219533 diff --git a/Assets/Material/material_0572/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..abfbf377deb53b57b2dc852c55741787d83beb97 --- /dev/null +++ b/Assets/Material/material_0572/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a7cded4f69a5bf02630fbd6e68d177d6ca31f73dcafe5125efdf3ed77d8f235 +size 5561847 diff --git a/Assets/Material/material_0572/chevron_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/chevron_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..773f17e791b8ec3ef817652f35d2d10e057043b3 --- /dev/null +++ b/Assets/Material/material_0572/chevron_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8672aa9e976b6f1f4414269e05b09eef306c75d8ac8e711f8daa2b617213c3f +size 253093 diff --git a/Assets/Material/material_0572/chevron_norm.png b/Assets/Material/material_0572/chevron_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..385c806fdb22cf9d6593ee94e08264c0ddde5cc9 --- /dev/null +++ b/Assets/Material/material_0572/chevron_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:efcf37cdd9bd301b9e3513f3df53cbc9f0e74ca6ec7db8d2be6047ae893b6257 +size 7660298 diff --git a/Assets/Material/material_0572/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ff0b3c61a7b7a7cb2f930c42b5a175bfc6b5e3d3 --- /dev/null +++ b/Assets/Material/material_0572/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7903a3bf94df642d678feec55c7798a16fd18bb8e3f50dff1873b4ebc7068400 +size 5282713 diff --git a/Assets/Material/material_0572/cubes_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/cubes_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..e9b891846cced81c763a667e9f0b53f0a50dae2c --- /dev/null +++ b/Assets/Material/material_0572/cubes_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bdd0f5580f45c8112000f0ce338d0bf95cf9a91cf3851adddcff2ee7c42a53b +size 188376 diff --git a/Assets/Material/material_0572/cubes_norm.png b/Assets/Material/material_0572/cubes_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..70bb7bc477f08e2e561d70a5f72146e2657a11c3 --- /dev/null +++ b/Assets/Material/material_0572/cubes_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc8219f0ac1573a4871777d26a773bccd4084e850f88e30a4b03fd1cec0f07be +size 5932734 diff --git a/Assets/Material/material_0572/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8d7d76fa63452c6ab7b1e19064fa018a3cf3147 --- /dev/null +++ b/Assets/Material/material_0572/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec63497a0ed3753608d8904a91abbad0bff232d1fa51ab5d2f7598a2e53f1481 +size 5507965 diff --git a/Assets/Material/material_0572/diagonal_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/diagonal_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..83aebabfc747811ac2f5ff7ffefb115bfbeedc8c --- /dev/null +++ b/Assets/Material/material_0572/diagonal_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95db350abe05f308e61f9e8ee81e8bfd926ae4a44105248b03dd2120fd2a551f +size 278035 diff --git a/Assets/Material/material_0572/diagonal_norm.png b/Assets/Material/material_0572/diagonal_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..6640e26b29201fa290745b428753d432bb16f62c --- /dev/null +++ b/Assets/Material/material_0572/diagonal_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0708f89b7dc534c9681783946bb01386a49d4d16afb417e16ac27b16f06e9c92 +size 7421414 diff --git a/Assets/Material/material_0572/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..62938629e22adf7a02b8a96ac79c91b0c16505b7 --- /dev/null +++ b/Assets/Material/material_0572/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6d1d4db4b5d09f95f27e90fb17dbe60b8f4a9ab266d98bcd4ee9b0506480962 +size 5509842 diff --git a/Assets/Material/material_0572/herringbone_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/herringbone_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..9da42b1d90046303db83b56490ece5d77ec19fad --- /dev/null +++ b/Assets/Material/material_0572/herringbone_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9c4f7944ddcb9e6c919e4f2f044ab1efe9660042a568f142365e08a424194fd +size 304083 diff --git a/Assets/Material/material_0572/herringbone_norm.png b/Assets/Material/material_0572/herringbone_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..fe1e06b00f4907fa3ca58f72302e1313ca119a0e --- /dev/null +++ b/Assets/Material/material_0572/herringbone_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7b5c153686bfdfe25af7ed9820b2ae2bbd9b73986d51e85f326d7bde2d67b58 +size 7592872 diff --git a/Assets/Material/material_0572/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4b6635bc11e70d3106387b23632b2aac688d9308 --- /dev/null +++ b/Assets/Material/material_0572/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6b9fb4c15e1ad3fe24783be2897c00447f3374433fd923e7a42bf4920fcf8ba +size 5345943 diff --git a/Assets/Material/material_0572/mosaic_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/mosaic_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..04285efb57eeddeed4dfd1fe290603ac21391143 --- /dev/null +++ b/Assets/Material/material_0572/mosaic_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1c4f6877c6be7b39bb705ee1a53c65691e23de2f66d5be524bac2b0890d7859a +size 74735 diff --git a/Assets/Material/material_0572/mosaic_norm.png b/Assets/Material/material_0572/mosaic_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..199139c62fc98e5b0f2f312999dd6b99bd559a7e --- /dev/null +++ b/Assets/Material/material_0572/mosaic_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdf922e6866e7e39fd4aa23e7f82374c1fcd5f1b65c17ffde7aa18eba457d8ec +size 5988778 diff --git a/Assets/Material/material_0572/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..67654b48ce206cea96b3b23e7ca1d1cca4be897a --- /dev/null +++ b/Assets/Material/material_0572/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:361f1c0bcd09e62fdce1fade132a4129e660efe17f3c610ecbff83a6c72a2b09 +size 5339370 diff --git a/Assets/Material/material_0572/stackbond_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/stackbond_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..4ff3286575d0f7120afe4d07ec970ff5c8926a36 --- /dev/null +++ b/Assets/Material/material_0572/stackbond_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb0d4cdde31299ff9b1c3a7ef65eb7b29a2c7c1e881f33f70131c37493a9b4f1 +size 622237 diff --git a/Assets/Material/material_0572/stackbond_norm.png b/Assets/Material/material_0572/stackbond_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..5a1afb0ab7194b8c49fcffe9e749ae5f078de9f7 --- /dev/null +++ b/Assets/Material/material_0572/stackbond_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:083c1c77a805a98d962d9c3d9066b8121c9513cb8bca941d2f1a20a7d012459e +size 5205492 diff --git a/Assets/Material/material_0572/tiles_wood_R_rough_G_dents_B_spots.jpg b/Assets/Material/material_0572/tiles_wood_R_rough_G_dents_B_spots.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d9abc424636350e1ba6a86dfc77219b09e7c22a2 --- /dev/null +++ b/Assets/Material/material_0572/tiles_wood_R_rough_G_dents_B_spots.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73f07f9f0053a64f77123e0c2c6b7c04fb13c6c3845fbdb73a899c13e1416ad0 +size 5318464 diff --git a/Assets/Material/material_0572/tiles_wood_orangepeel_norm.jpg b/Assets/Material/material_0572/tiles_wood_orangepeel_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..965e21ba6fb80d237eef71127af86e8557b0d380 --- /dev/null +++ b/Assets/Material/material_0572/tiles_wood_orangepeel_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14b18dba2a5e4978a8d14cb1efd17e3a7a8c7ad5e5b3438ddc7d025c6453fbfe +size 583443 diff --git a/Assets/Material/material_0572/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7024f5c4212213abf1633c4ceaadf5ea3b657ff7 --- /dev/null +++ b/Assets/Material/material_0572/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bf177cbb47fb36b44923ad36bad818f405604b6e1113119314f4e8291800cf1 +size 5489803 diff --git a/Assets/Material/material_0572/versailles_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/versailles_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..db046898ed8faa01f4cd8d7862e18a29acd1aa75 --- /dev/null +++ b/Assets/Material/material_0572/versailles_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb6e5627e4bd516c16a2e14ee94b05e2e527697a7d7139dd87bdc79ac3f175e8 +size 164987 diff --git a/Assets/Material/material_0572/versailles_norm.png b/Assets/Material/material_0572/versailles_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..9edb45008853deab30294c2047db733b30ac9f44 --- /dev/null +++ b/Assets/Material/material_0572/versailles_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd57efebab075c03b8f290d7c47651eee8650d04c650d0ca3fdd33b1e662d006 +size 6678546 diff --git a/Assets/Material/material_0572/wood_walnut_diff.jpg b/Assets/Material/material_0572/wood_walnut_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..efb354884daa4f28a13dbf0a90aee9caa88fb9e6 --- /dev/null +++ b/Assets/Material/material_0572/wood_walnut_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bb9e156a6e4ddb37efcb06b89240e72d4021ed7bc1e7a95b9c5fe5eb91b9504 +size 3337031 diff --git a/Assets/Material/material_0572/wood_walnut_norm.jpg b/Assets/Material/material_0572/wood_walnut_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c2fc672098d0a818296ba4716c4f08d24d0a335d --- /dev/null +++ b/Assets/Material/material_0572/wood_walnut_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c14acb9b962cef5b02c59832a38d12e5e14c5d358c51cb7a2f584ef10ed110dc +size 4247942 diff --git a/Assets/Material/material_0572/wood_walnut_rough_detail.jpg b/Assets/Material/material_0572/wood_walnut_rough_detail.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a46f134b025e0cf7cec1bcbf1071c818cf4adadc --- /dev/null +++ b/Assets/Material/material_0572/wood_walnut_rough_detail.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:558741787fa471b53627d612c6683a12781114f633542869f7b02522442c382f +size 2973831 diff --git a/Assets/Material/material_0572/wood_walnut_rough_grain.jpg b/Assets/Material/material_0572/wood_walnut_rough_grain.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ce46d2f33d33892fa11d5094033571e529d1dd36 --- /dev/null +++ b/Assets/Material/material_0572/wood_walnut_rough_grain.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b379d6c66dae3927088771406411b37c5a12f28d58ff84ef247cfe7652c6ed6 +size 2695681 diff --git a/Assets/Material/material_0572/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg b/Assets/Material/material_0572/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..68ac4d4a21a6a069173137e1fa9887167c8887b8 --- /dev/null +++ b/Assets/Material/material_0572/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5fbe05e89f160fb283e17f621a33844ecc6b3abd555b43e94a1ff8f3b9d8a336 +size 5342612 diff --git a/Assets/Material/material_0572/woodstrip_R_id_G_offs_B_rotation.png b/Assets/Material/material_0572/woodstrip_R_id_G_offs_B_rotation.png new file mode 100644 index 0000000000000000000000000000000000000000..d9dd9b1f3cd4464d0b6aac87418df0cebc48a3e4 --- /dev/null +++ b/Assets/Material/material_0572/woodstrip_R_id_G_offs_B_rotation.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f57463c41a8cb21a1b69253d37c0d33b808d367f789765b2290d8fbff3e18c73 +size 525457 diff --git a/Assets/Material/material_0572/woodstrip_norm.png b/Assets/Material/material_0572/woodstrip_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..9f50dbae9dc24eb37e799490aa1961f69c78093f --- /dev/null +++ b/Assets/Material/material_0572/woodstrip_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff6c49a20fca5088736b8fa0cc2612a2f8225466824189af7f96df818481511a +size 5122769