File size: 44,622 Bytes
42a9155 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 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("./textures/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 = float2(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 = float2(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
); |