diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2e7b069f265e879882958df085a4bb3f05939020 --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond.mdl @@ -0,0 +1,2601 @@ +/****************************************************************************** + * 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 = float2(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 + //I = int2((I.x), (I.y)); // 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_Generator( + + // Ceramic textures + // *** MAPS *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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) + ]], + color tiles_color_diamond = color(0.246201f, 0.434154f, 0.479320f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(10) + ]], + float tiles_diamond_texture_amount = 0.0f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(11) + ]], + 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(12) + ]], + 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(13) + ]], + + 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(14) + ]], + 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(15) + ]], + + 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(16) + ]], + 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(17) + ]], + 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(18) + ]], + 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(19) + ]], + + 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(20) + ]], + 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(21) + ]], + 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("Appearance"), + ::anno::ui_order(22) + ]], + 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(23) + ]], + 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(24) + ]], + 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(25) + ]], + 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(26) + ]], + 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(27) + ]], + + // 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + 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), + ::anno::ui_order(31) + ]], + 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), + ::anno::ui_order(32) + ]], + + 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), + ::anno::ui_order(33) + ]], + 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), + ::anno::ui_order(34) + ]], + 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), + ::anno::ui_order(35) + ]], + 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 = float2(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 = float2(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 - Penny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Glazed_Diamond.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= float2(0.666666666666f, 0.6666666666666f); + 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 + + ); + + // Optimization for the texture tex_lin_tiles_id_offset_color_tex: + // We just need a fraction of the texture since it is repeating and + // can make it consume 16 times less memory + float2 tile_id_uv = float2(base_uv.position.x, base_uv.position.y)*4.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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) + ); + + + float3 R_frough_G_thickness_B_drops = nonrepeat_lookup( + texture: tex_tiles_multi_R_rough_G_thickness_B_drops, + uvw: base_uv, + average_color: float3(0.499f, 0.365f, 0.015f), + texture_scale: texture_scale * .3f, + 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 + + // Diamond Tiles Color + ::base::color_layer layer_1 = ::base::color_layer( + layer_color: tiles_color_diamond, + weight: tiles_ids.z, + mode: ::base::color_layer_blend + ); + ::base::color_layer layer_2 = ::base::color_layer( + layer_color: tiles_color_2, + weight: R_noise1_G_noise2_B_craquelure.x * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 3 + ::base::color_layer layer_3 = ::base::color_layer( + layer_color: tiles_color_3, + weight: R_noise1_G_noise2_B_craquelure.y * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 4 + ::base::color_layer layer_4 = ::base::color_layer( + layer_color: color(0.0f), + weight: R_noise1_G_noise2_B_craquelure.y * (tiles_ids.z) * tiles_diamond_texture_amount, + mode: ::base::color_layer_overlay + ); + // Varying brightness + ::base::color_layer layer_5 = ::base::color_layer( + layer_color: color(rnd6), + weight: tiles_random_brightness, + mode: ::base::color_layer_overlay + ); + // Varying glazing thickness + ::base::color_layer layer_6 = ::base::color_layer( + layer_color: ceramic_color, + weight: R_frough_G_thickness_B_drops.y * glazing_varying_thickness_weight * .15f, + mode: ::base::color_layer_blend + ); + // Edge Fade + ::base::color_layer layer_7 = ::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_8 = ::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, layer_7, layer_8 + ); + + 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_frough_G_thickness_B_drops.x, tiles_roughness_range, tiles_roughness); + glazing_roughness += R_frough_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_frough_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_Diamond( + + // 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::anno::ui_order(3) + ]], + color tiles_color_diamond = color(0.586f, 0.759f, 0.774f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float tiles_diamond_texture_amount = 0.2f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amound"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(5) + ]], + float tiles_random_brightness = 0.015f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(6) + ]], + float tiles_roughness = 0.039f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(7) + ]], + 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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(8) + ]], + float tiles_random_slope_orientation = 0.04f + [[ + ::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("Appearance"), + ::anno::ui_order(9) + ]], + 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("Appearance"), + ::anno::ui_order(10) + ]], + 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("Appearance"), + ::anno::ui_order(11) + ]], + 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("Appearance"), + ::anno::ui_order(12) + ]], + float glazing_craquelure_weight = 0.05f + [[ + ::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("Appearance"), + ::anno::ui_order(13) + ]], + float drops_amount = 0.05f + [[ + ::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(14) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(15) + ]], + float grout_height = 0.05f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(16) + ]], + 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("Appearance"), + ::anno::ui_order(17) + ]], + 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("Appearance", "Dirt"), + ::anno::ui_order(18) + ]], + float dirt_weight = 0.0f + [[ + ::anno::description("The weight of the dirt layer."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(19) + ]], + + 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(20) + ]], + + uniform 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(21) + ]], + 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(22) + ]], + uniform float2 texture_scale = float2(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(23) + ]], + + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Globally rotates the texture lookup for the tiles textures."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(24) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Randomly rotates the textures for the tiles."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(25) + ]], + 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(26) + ]], + 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(27) + ]], + + 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + + 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(31) + ]], + 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(32) + ]], + 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(33) + ]], + 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(34) + ]], + 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(35) + ]] + +) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Glazed_Diamond.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/diamond_R_id_G_offs_B_color.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/diamond_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/diamond_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./textures/diamond_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_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_color_diamond: tiles_color_diamond, + tiles_diamond_texture_amount: tiles_diamond_texture_amount, + 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_Diamond_Dark_Blue_New_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Dark_Blue_Varied_New(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 1, + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + 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.07f, + glazing_edgefade_randomness: 0.77f, + glazing_craquelure_weight: 0.7f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Antique_White(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_White_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.597202f), + tiles_color_3: color(0.623960f, 0.623960f, 0.623960f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.71f, + glazing_orange_peel_bump: 0.2f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.20f, + drops_amount: 0.23f, + grout_brightness: 0.11f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + + + + +export material Ceramic_Tiles_Diamond_Black(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Black_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.38f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Black_Matte_Rough(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.35f, + tiles_roughness_range: 0.13f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.50f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Graphite(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Graphite"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Graphite.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Graphite_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Graphite Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Graphite_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "gray", "graphite", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.78f, + 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.09f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Graphite_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Graphite Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Graphite_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.1f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Diamond_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Diamond_Green_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "matte", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.701f, 0.73f, 0.612f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.37f, + tiles_roughness_range: 0.11f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 1, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.79f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Vintage_Green_Bathroom(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Vintage Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Vintage_Green_Bathroom.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "antique", "old", "matte", "green", "multicolor", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 9, + tiles_color_1: color(0.012286f, 0.361307f, 0.130136f), + tiles_color_2: color(0.488f, 0.431f, 0.0478f), + tiles_color_3: color(0.003347f, 0.034340f, 0.003035f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.63f, + tiles_roughness: 0.1f, + tiles_roughness_range: 0.21f, + tiles_random_slope_orientation: 0.3f, + glazing_orange_peel_bump: 0.09f, + glazing_edgefade_weight: 0.29f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.6f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Diamond_Mint(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "mint", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.04f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Mint_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "mint", "green", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.48f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Lime_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Lime_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "lime", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.309469f, 0.361307f, 0.015996f), + tiles_color_2: color(0.304987f, 0.356400f, 0.016807f), + tiles_color_3: color(0.300544f, 0.351533f, 0.017642f), + tiles_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.56f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Yellow(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Yellow_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.361307f, 0.023153f), + tiles_color_2: color(0.584078f, 0.356400f, 0.023153f), + tiles_color_3: color(0.577580f, 0.351533f, 0.024158f), + tiles_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.49f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + + + +export material Ceramic_Tiles_Diamond_Petrol(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 13, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Diamond_Petrol_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 14, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Diamond_Sky(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Sky"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Sky.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "sky", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + tiles_random_seed: 0, + tiles_color_1: color(0.130136f, 0.644480f, 0.693872f), + tiles_color_2: color(0.135633f, 0.491021f, 0.644480f), + tiles_color_3: color(0.023153f, 0.135633f, 0.212231f), + tiles_color_diamond: color(0.774f, 0.759f, 0.708f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.05f, + tiles_roughness_range: 0.02f, + tiles_random_slope_orientation: 0.23f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.19f, + glazing_edgefade_randomness: 0.34f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.40f, + grout_brightness: 0.71f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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_Diamond_Red(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.10f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.09f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Diamond_Red_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Diamond Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond.Ceramic_Tiles_Diamond_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + + + \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond_Offset.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond_Offset.mdl new file mode 100644 index 0000000000000000000000000000000000000000..98303579bb3777f711615d358c4ede31902e543b --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Diamond_Offset.mdl @@ -0,0 +1,2547 @@ +/****************************************************************************** + * 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 = float2(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 + //I = int2((I.x), (I.y)); // 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_Generator( + + // Ceramic textures + // *** MAPS *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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) + ]], + color tiles_color_diamond = color(0.246201f, 0.434154f, 0.479320f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(10) + ]], + float tiles_diamond_texture_amount = 0.0f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(11) + ]], + 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(12) + ]], + 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(13) + ]], + + 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(14) + ]], + 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(15) + ]], + + 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(16) + ]], + 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(17) + ]], + 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(18) + ]], + 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(19) + ]], + + 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(20) + ]], + 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(21) + ]], + 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("Appearance"), + ::anno::ui_order(22) + ]], + 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(23) + ]], + 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(24) + ]], + 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(25) + ]], + 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(26) + ]], + 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(27) + ]], + + // 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + 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), + ::anno::ui_order(31) + ]], + 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), + ::anno::ui_order(32) + ]], + + 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), + ::anno::ui_order(33) + ]], + 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), + ::anno::ui_order(34) + ]], + 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), + ::anno::ui_order(35) + ]], + 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 = float2(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 = float2(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 Master material. This material should be hidden as it has all of its " + "parameters exposed. This material is only useful for hardcore-fans of fine grained tweaking and not necessary " + "if the user uses the tiles materials that are derived from it."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Ceramic Tiles - Penny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Glazed_Diamond.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "round")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= float2(0.666666666666f, 0.6666666666666f); + 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 + + ); + + // Optimization for the texture tex_lin_tiles_id_offset_color_tex: + // We just need a fraction of the texture since it is repeating and + // can make it consume 4 times less memory + float2 tile_id_uv = float2(base_uv.position.x, base_uv.position.y)*2.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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) + ); + + + float3 R_frough_G_thickness_B_drops = nonrepeat_lookup( + texture: tex_tiles_multi_R_rough_G_thickness_B_drops, + uvw: base_uv, + average_color: float3(0.499f, 0.365f, 0.015f), + texture_scale: texture_scale * .3f, + 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 + + // Diamond Tiles Color + ::base::color_layer layer_1 = ::base::color_layer( + layer_color: tiles_color_diamond, + weight: tiles_ids.z, + mode: ::base::color_layer_blend + ); + ::base::color_layer layer_2 = ::base::color_layer( + layer_color: tiles_color_2, + weight: R_noise1_G_noise2_B_craquelure.x * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 3 + ::base::color_layer layer_3 = ::base::color_layer( + layer_color: tiles_color_3, + weight: R_noise1_G_noise2_B_craquelure.y * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 4 + ::base::color_layer layer_4 = ::base::color_layer( + layer_color: color(0.0f), + weight: R_noise1_G_noise2_B_craquelure.y * (tiles_ids.z) * tiles_diamond_texture_amount, + mode: ::base::color_layer_overlay + ); + // Varying brightness + ::base::color_layer layer_5 = ::base::color_layer( + layer_color: color(rnd6), + weight: tiles_random_brightness, + mode: ::base::color_layer_overlay + ); + // Varying glazing thickness + ::base::color_layer layer_6 = ::base::color_layer( + layer_color: ceramic_color, + weight: R_frough_G_thickness_B_drops.y * glazing_varying_thickness_weight * .15f, + mode: ::base::color_layer_blend + ); + // Edge Fade + ::base::color_layer layer_7 = ::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_8 = ::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, layer_7, layer_8 + ); + + 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_frough_G_thickness_B_drops.x, tiles_roughness_range, tiles_roughness); + glazing_roughness += R_frough_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_frough_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_Diamond_Offset( + + // 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::anno::ui_order(3) + ]], + color tiles_color_diamond = color(0.586f, 0.759f, 0.774f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float tiles_diamond_texture_amount = 0.2f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amound"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(5) + ]], + float tiles_random_brightness = 0.015f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(6) + ]], + float tiles_roughness = 0.039f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(7) + ]], + 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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(8) + ]], + float tiles_random_slope_orientation = 0.04f + [[ + ::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("Appearance"), + ::anno::ui_order(9) + ]], + 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("Appearance"), + ::anno::ui_order(10) + ]], + 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("Appearance"), + ::anno::ui_order(11) + ]], + 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("Appearance"), + ::anno::ui_order(12) + ]], + float glazing_craquelure_weight = 0.05f + [[ + ::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("Appearance"), + ::anno::ui_order(13) + ]], + float drops_amount = 0.05f + [[ + ::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(14) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(15) + ]], + float grout_height = 0.05f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(16) + ]], + 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("Appearance"), + ::anno::ui_order(17) + ]], + 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("Appearance", "Dirt"), + ::anno::ui_order(18) + ]], + float dirt_weight = 0.0f + [[ + ::anno::description("The weight of the dirt layer."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(19) + ]], + + 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(20) + ]], + + uniform 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(21) + ]], + 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(22) + ]], + uniform float2 texture_scale = float2(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(23) + ]], + + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Globally rotates the texture lookup for the tiles textures."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(24) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Randomly rotates the textures for the tiles."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(25) + ]], + 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(26) + ]], + 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(27) + ]], + + 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + + 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(31) + ]], + 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(32) + ]], + 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(33) + ]], + 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(34) + ]], + 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(35) + ]] + +) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Glazed_Diamond_Offset.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/diamond_alternated_R_id_G_offs_B_color.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/diamond_alternated_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/diamond_alternated_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./textures/diamond_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_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_color_diamond: tiles_color_diamond, + tiles_diamond_texture_amount: tiles_diamond_texture_amount, + 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_Offset_Diamond_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 Offset Diamond Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_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 Offset Diamond Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 1, + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + 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.07f, + glazing_edgefade_randomness: 0.77f, + glazing_craquelure_weight: 0.7f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_Antique_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "round", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.597202f), + tiles_color_3: color(0.623960f, 0.623960f, 0.623960f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.71f, + glazing_orange_peel_bump: 0.2f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.20f, + drops_amount: 0.23f, + grout_brightness: 0.11f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Antique_White_Dirty(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Antique_White_Dirty.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "round", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.38f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_Graphite(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Graphite"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Graphite.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Graphite_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Graphite Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Graphite_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "gray", "graphite", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.78f, + 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.09f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Graphite_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Graphite Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Graphite_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.1f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Offset_Diamond_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Offset_Diamond_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "round", "matte", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.701f, 0.73f, 0.612f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.37f, + tiles_roughness_range: 0.11f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 1, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.79f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Vintage_Green_Bathroom(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Vintage Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Vintage_Green_Bathroom.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "round", "antique", "old", "matte", "green", "multicolor", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 9, + tiles_color_1: color(0.012286f, 0.361307f, 0.130136f), + tiles_color_2: color(0.488f, 0.431f, 0.0478f), + tiles_color_3: color(0.003347f, 0.034340f, 0.003035f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.63f, + tiles_roughness: 0.1f, + tiles_roughness_range: 0.21f, + tiles_random_slope_orientation: 0.3f, + glazing_orange_peel_bump: 0.09f, + glazing_edgefade_weight: 0.29f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.6f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Offset_Diamond_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "mint", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.04f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "mint", "green", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.48f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "lime", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.309469f, 0.361307f, 0.015996f), + tiles_color_2: color(0.304987f, 0.356400f, 0.016807f), + tiles_color_3: color(0.300544f, 0.351533f, 0.017642f), + tiles_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.56f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.361307f, 0.023153f), + tiles_color_2: color(0.584078f, 0.356400f, 0.023153f), + tiles_color_3: color(0.577580f, 0.351533f, 0.024158f), + tiles_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.49f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + + + +export material Ceramic_Tiles_Offset_Diamond_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 13, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Offset_Diamond_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 14, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Offset_Diamond_Sky(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Sky"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Sky.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "blue", "sky", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + tiles_random_seed: 0, + tiles_color_1: color(0.130136f, 0.644480f, 0.693872f), + tiles_color_2: color(0.135633f, 0.491021f, 0.644480f), + tiles_color_3: color(0.023153f, 0.135633f, 0.212231f), + tiles_color_diamond: color(0.774f, 0.759f, 0.708f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.05f, + tiles_roughness_range: 0.02f, + tiles_random_slope_orientation: 0.23f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.19f, + glazing_edgefade_randomness: 0.34f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.40f, + grout_brightness: 0.71f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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_Offset_Diamond_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.10f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.09f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Offset_Diamond_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Offset Diamond Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Diamond_Offset.Ceramic_Tiles_Offset_Diamond_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "diamond", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Diamond_Offset( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + + + \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Mosaic_Shifted.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Mosaic_Shifted.mdl new file mode 100644 index 0000000000000000000000000000000000000000..be594421304f648a306142008f0fbafbacf29984 --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Mosaic_Shifted.mdl @@ -0,0 +1,2638 @@ +/****************************************************************************** + * 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 = float2(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 *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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 = float2(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 = float2(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_Mosaic_Shifted.Ceramic_Tiles_Glazed_Mosaic_Shifted.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= 1.0f/3.0f; + 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); + +// --------------------------- 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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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*2.f, + patch_size: 2.0f, + 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_Mosaic_Shifted( + +// Main Tweaks + uniform bool sharp_corners = false + [[ + ::anno::description("Uses sharp tile corners."), + ::anno::display_name("Enable Sharp Corners"), + ::anno::in_group("Appearance"), + ::anno::ui_order(0) + ]], + 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance", "Dirt"), + ::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("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform 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(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 = float2(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 Shifted Mosaic Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Glazed_Mosaic_Shifted.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/mosaic_shifted_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = sharp_corners ? texture_2d("./textures/mosaic_shifted_sharp_norm.jpg", ::tex::gamma_linear) : + texture_2d("./textures/mosaic_shifted_round_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = sharp_corners ? texture_2d("./textures/mosaic_shifted_sharp_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear) : + texture_2d("./textures/mosaic_shifted_round_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/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("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/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_Mosaic_Shifted_Dark_Blue_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Blue_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_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 Shifted Mosaic Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 1, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Dark_Green_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Dark Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Green_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Dark_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Dark Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_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 Shifted Mosaic Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Green_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 2, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_White_Worn_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - White Worn"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_White_Worn_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "worn", "aged", "old", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Antique_White(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Antique_White_Dirty.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Black_Matte_Rough(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Dark_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Dark Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Dark_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Dark Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Dark_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Gray_Matte_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Gray Matte Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Gray_Matte_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "matte", "gray", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 3, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "mint", "green")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "mint", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 4, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "lime", "green", "random", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 6, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 7, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + tiles_random_seed: 9, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Mosaic_Shifted_Brown(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Shifted Mosaic Tiles - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Mosaic_Shifted.Ceramic_Tiles_Mosaic_Shifted_Brown.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "mosaic", "offset", "new", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Mosaic_Shifted( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Paseo.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Paseo.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b6fa5ff8b8224cb6cdae49824416ef343f9ef0ac --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Paseo.mdl @@ -0,0 +1,2588 @@ +/****************************************************************************** + * 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 = float2(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 *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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 = float2(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 = float2(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_Paseo.Ceramic_Tiles_Glazed_Square_Brick.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= 4.0f/7.0f; + 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 + + ); + + ::base::texture_coordinate_info normal_uv = ::base::texture_coordinate_info( + position: base_uv.position * float3(2.0f, 4.0f, 1.0f), + 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)*float2(2.0f, 4.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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 * 0.6, + 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: normal_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_Paseo( + +// 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance", "Dirt"), + ::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("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform 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(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 = float2(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 Paseo Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Glazed_Paseo.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "blue", "dark", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/paseo_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/paseo_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/paseo_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/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("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/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_Paseo_Dark_Blue_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Blue_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_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 Paseo Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 1, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Dark_Green_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Dark Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Green_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Dark_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Dark Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_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 Paseo Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Green_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 2, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_White_Worn_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - White Worn"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_White_Worn_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "worn", "aged", "old", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_White_Worn_Matte_Dirty(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - White Worn Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_White_Worn_Matte_Dirty.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "worn", "aged", "old", "dirty", "matte", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 19, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.8f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Black_Matte_Rough(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.50f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Dark_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Dark Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Dark_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Dark Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Dark_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Gray_Matte_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Gray Matte Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Gray_Matte_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "matte", "gray", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 3, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "mint", "green")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "mint", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 4, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "lime", "green", "random", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 6, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 7, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + tiles_random_seed: 9, + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Paseo_Brown(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Paseo Tiles - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Paseo.Ceramic_Tiles_Paseo_Brown.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "paseo", "offset", "new", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Paseo( + 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.04f, + 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.5f, + grout_scale: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Penny.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Penny.mdl new file mode 100644 index 0000000000000000000000000000000000000000..2ce290398ee416a39507be7f4e6d60401e8b7395 --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Penny.mdl @@ -0,0 +1,2398 @@ +/****************************************************************************** + * 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 = float2(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_Penny_Generator( + + // Ceramic textures + // *** MAPS *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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::enable_if("glazing_edgefade_weight > 0.0f"), + ::anno::in_group("Appearance"), + ::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(1, 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 = float2(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 = float2(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("UV Space Index"), + ::anno::in_group("Advanced"), + ::anno::ui_order(10) + ]] +) +[[ + ::anno::description("Glazed Ceramic Tiles Master material. This material should be hidden as it has all of its " + "parameters exposed. This material is only useful for hardcore-fans of fine grained tweaking and not necessary " + "if the user uses the tiles materials that are derived from it."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Ceramic Tiles - Penny"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Glazed_Penny.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= float2(0.5f, 0.42f); + 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 + + ); +// --------------------------- 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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(base_uv.position.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(base_uv.position.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(base_uv.position.x) - offset_x), int(::math::floor(base_uv.position.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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_Penny( + +// 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(6) + ]], + float tiles_random_slope_orientation = 0.1f + [[ + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::anno::ui_order(10) + ]], + float glazing_craquelure_weight = 0.7f + [[ + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance", "Dirt"), + ::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("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform 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(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 = float2(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 Penny Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Dark_Blue_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/penny_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/penny_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/penny_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/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("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_Penny_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_Penny_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 Penny Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.38f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_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 Penny Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.07f, + glazing_edgefade_randomness: 0.77f, + glazing_craquelure_weight: 0.7f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_Antique_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.603827f, 0.533276f, 0.473531f), + tiles_color_2: color(0.274677f, 0.246201f, 0.223228f), + tiles_color_3: color(0.617207f, 0.617207f, 0.496933f), + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.17f, + glazing_edgefade_randomness: 0.50f, + glazing_craquelure_weight: 0.66f, + drops_amount: 0.40f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.597202f), + tiles_color_3: color(0.623960f, 0.623960f, 0.623960f), + tiles_random_brightness: 0.02f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.71f, + glazing_orange_peel_bump: 0.2f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.20f, + drops_amount: 0.23f, + grout_brightness: 0.11f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.2f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.38f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_Graphite(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Graphite"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Graphite.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.1f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Graphite_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Graphite Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Graphite_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "gray", "graphite", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.78f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Graphite_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Graphite Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Graphite_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "matte", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.1f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.22f, + 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.14f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Penny_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_random_brightness: 0.12f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Penny_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "matte", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_random_brightness: 0.12f, + tiles_roughness: 0.37f, + tiles_roughness_range: 0.36f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_random_brightness: 0.79f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Vintage_Green_Bathroom(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Vintage Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Vintage_Green_Bathroom.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "antique", "old", "matte", "green", "multicolor", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 9, + tiles_color_1: color(0.012286f, 0.361307f, 0.130136f), + tiles_color_2: color(0.381326f, 0.122139f, 0.046665f), + tiles_color_3: color(0.003347f, 0.034340f, 0.003035f), + tiles_random_brightness: 0.63f, + tiles_roughness: 0.1f, + tiles_roughness_range: 0.21f, + tiles_random_slope_orientation: 0.3f, + glazing_orange_peel_bump: 0.09f, + glazing_edgefade_weight: 0.29f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.6f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Penny_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "mint", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_random_brightness: 0.04f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "mint", "green", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_random_brightness: 0.48f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "lime", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.309469f, 0.361307f, 0.015996f), + tiles_color_2: color(0.304987f, 0.356400f, 0.016807f), + tiles_color_3: color(0.300544f, 0.351533f, 0.017642f), + tiles_random_brightness: 0.56f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.361307f, 0.023153f), + tiles_color_2: color(0.584078f, 0.356400f, 0.023153f), + tiles_color_3: color(0.577580f, 0.351533f, 0.024158f), + tiles_random_brightness: 0.49f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + + + +export material Ceramic_Tiles_Penny_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 13, + 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.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Penny_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 14, + 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.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Penny_Sky(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Sky"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Sky.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "blue", "sky", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + tiles_random_seed: 0, + tiles_color_1: color(0.130136f, 0.644480f, 0.693872f), + tiles_color_2: color(0.135633f, 0.491021f, 0.644480f), + tiles_color_3: color(0.023153f, 0.135633f, 0.212231f), + tiles_random_brightness: 0.03f, + tiles_roughness: 0.05f, + tiles_roughness_range: 0.02f, + tiles_random_slope_orientation: 0.23f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.19f, + glazing_edgefade_randomness: 0.34f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.40f, + grout_brightness: 0.71f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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_Penny_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Penny_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Penny Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Penny.Ceramic_Tiles_Penny_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "penny", "round", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Penny( + 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.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + + + \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Pinwheel.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Pinwheel.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4d3151688fadc1f72db5cff0822ac78443f9b8ba --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Pinwheel.mdl @@ -0,0 +1,2593 @@ +/****************************************************************************** + * 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 = float2(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 + //I = int2((I.x), (I.y)); // 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_Generator( + + // Ceramic textures + // *** MAPS *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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) + ]], + color tiles_color_diamond = color(0.246201f, 0.434154f, 0.479320f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(10) + ]], + float tiles_diamond_texture_amount = 0.0f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(11) + ]], + 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(12) + ]], + 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(13) + ]], + + 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(14) + ]], + 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(15) + ]], + + 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(16) + ]], + 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(17) + ]], + 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(18) + ]], + 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(19) + ]], + + 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(20) + ]], + 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(21) + ]], + 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("Appearance"), + ::anno::ui_order(22) + ]], + 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(23) + ]], + 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(24) + ]], + 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(25) + ]], + 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(26) + ]], + 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(27) + ]], + + // 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + 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), + ::anno::ui_order(31) + ]], + 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), + ::anno::ui_order(32) + ]], + + 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), + ::anno::ui_order(33) + ]], + 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), + ::anno::ui_order(34) + ]], + 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), + ::anno::ui_order(35) + ]], + 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 = float2(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 = float2(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"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Glazed_Pinwheel.png"), + ::anno::key_words(string[]("generator", "tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= 0.5; + 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 + + ); + +// --------------------------- 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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(base_uv.position.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(base_uv.position.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(base_uv.position.x) - offset_x), int(::math::floor(base_uv.position.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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) + ); + + + float3 R_frough_G_thickness_B_drops = nonrepeat_lookup( + texture: tex_tiles_multi_R_rough_G_thickness_B_drops, + uvw: base_uv, + average_color: float3(0.499f, 0.365f, 0.015f), + texture_scale: texture_scale * .3f, + 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 + + // Diamond Tiles Color + ::base::color_layer layer_1 = ::base::color_layer( + layer_color: tiles_color_diamond, + weight: tiles_ids.z, + mode: ::base::color_layer_blend + ); + ::base::color_layer layer_2 = ::base::color_layer( + layer_color: tiles_color_2, + weight: R_noise1_G_noise2_B_craquelure.x * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 3 + ::base::color_layer layer_3 = ::base::color_layer( + layer_color: tiles_color_3, + weight: R_noise1_G_noise2_B_craquelure.y * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 4 + ::base::color_layer layer_4 = ::base::color_layer( + layer_color: color(0.0f), + weight: R_noise1_G_noise2_B_craquelure.y * (tiles_ids.z) * tiles_diamond_texture_amount, + mode: ::base::color_layer_overlay + ); + // Varying brightness + ::base::color_layer layer_5 = ::base::color_layer( + layer_color: color(rnd6), + weight: tiles_random_brightness, + mode: ::base::color_layer_overlay + ); + // Varying glazing thickness + ::base::color_layer layer_6 = ::base::color_layer( + layer_color: ceramic_color, + weight: R_frough_G_thickness_B_drops.y * glazing_varying_thickness_weight * .15f, + mode: ::base::color_layer_blend + ); + // Edge Fade + ::base::color_layer layer_7 = ::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_8 = ::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, layer_7, layer_8 + ); + + 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_frough_G_thickness_B_drops.x, tiles_roughness_range, tiles_roughness); + glazing_roughness += R_frough_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_frough_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_Pinwheel( + + // 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::anno::ui_order(3) + ]], + color tiles_color_diamond = color(0.586f, 0.759f, 0.774f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float tiles_diamond_texture_amount = 0.2f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amound"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(5) + ]], + float tiles_random_brightness = 0.015f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(6) + ]], + float tiles_roughness = 0.039f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(7) + ]], + 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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(8) + ]], + float tiles_random_slope_orientation = 0.04f + [[ + ::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("Appearance"), + ::anno::ui_order(9) + ]], + 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("Appearance"), + ::anno::ui_order(10) + ]], + 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("Appearance"), + ::anno::ui_order(11) + ]], + 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("Appearance"), + ::anno::ui_order(12) + ]], + float glazing_craquelure_weight = 0.05f + [[ + ::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("Appearance"), + ::anno::ui_order(13) + ]], + float drops_amount = 0.05f + [[ + ::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(14) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(15) + ]], + float grout_height = 0.05f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(16) + ]], + 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("Appearance"), + ::anno::ui_order(17) + ]], + 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("Appearance", "Dirt"), + ::anno::ui_order(18) + ]], + float dirt_weight = 0.0f + [[ + ::anno::description("The weight of the dirt layer."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(19) + ]], + + 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(20) + ]], + + uniform 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(21) + ]], + 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(22) + ]], + uniform float2 texture_scale = float2(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(23) + ]], + + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Globally rotates the texture lookup for the tiles textures."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(24) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Randomly rotates the textures for the tiles."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(25) + ]], + 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(26) + ]], + 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(27) + ]], + + 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + + 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(31) + ]], + 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(32) + ]], + 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(33) + ]], + 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(34) + ]], + 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(35) + ]] + +) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Glazed_Pinwheel.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/pinwheel_R_id_G_offs_B_color.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/pinwheel_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/pinwheel_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./textures/diamond_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_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_color_diamond: tiles_color_diamond, + tiles_diamond_texture_amount: tiles_diamond_texture_amount, + 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_Pinwheel_Dark_Blue_New_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Dark_Blue_Varied_New(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 1, + 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_color_diamond: color(0.774f, 0.73f, 0.592f), + tiles_diamond_texture_amount: 0.2f, + 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.07f, + glazing_edgefade_randomness: 0.77f, + glazing_craquelure_weight: 0.7f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Antique_White(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_White_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.597202f), + tiles_color_3: color(0.623960f, 0.623960f, 0.623960f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.71f, + glazing_orange_peel_bump: 0.2f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.20f, + drops_amount: 0.23f, + grout_brightness: 0.11f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.6f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Black(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Black_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.38f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Black_Matte_Rough(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.73f, 0.68f, 0.567f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.35f, + tiles_roughness_range: 0.13f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.50f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Graphite(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Graphite"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Graphite.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + 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.14f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Graphite_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Graphite Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Graphite_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "gray", "graphite", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.78f, + 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.09f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Graphite_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Graphite Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Graphite_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "matte", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.723f, 0.715f, 0.673f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.1f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.1f, + 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.14f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Pinwheel_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Pinwheel_Green_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "matte", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.701f, 0.73f, 0.612f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.37f, + tiles_roughness_range: 0.11f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.45f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 1, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_diamond: color(0.73f, 0.673f, 0.243f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.79f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Vintage_Green_Bathroom(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Vintage Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Vintage_Green_Bathroom.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "antique", "old", "matte", "green", "multicolor", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 9, + tiles_color_1: color(0.012286f, 0.361307f, 0.130136f), + tiles_color_2: color(0.488f, 0.431f, 0.0478f), + tiles_color_3: color(0.003347f, 0.034340f, 0.003035f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.63f, + tiles_roughness: 0.1f, + tiles_roughness_range: 0.21f, + tiles_random_slope_orientation: 0.3f, + glazing_orange_peel_bump: 0.09f, + glazing_edgefade_weight: 0.29f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.6f, + grout_brightness: 0.70f, + grout_height: 0.40f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Pinwheel_Mint(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "mint", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.04f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Mint_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "mint", "green", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.48f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Lime_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Lime_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "lime", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.309469f, 0.361307f, 0.015996f), + tiles_color_2: color(0.304987f, 0.356400f, 0.016807f), + tiles_color_3: color(0.300544f, 0.351533f, 0.017642f), + tiles_color_diamond: color(0.0415f, 0.0892f, 0.0265f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.56f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Yellow(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Yellow_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.361307f, 0.023153f), + tiles_color_2: color(0.584078f, 0.356400f, 0.023153f), + tiles_color_3: color(0.577580f, 0.351533f, 0.024158f), + tiles_color_diamond: color(0.0824f, 0.0781f, 0.0697f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.49f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + + + +export material Ceramic_Tiles_Pinwheel_Petrol(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 13, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Pinwheel_Petrol_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 14, + 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_color_diamond: color(0.272f, 0.415f, 0.415f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Pinwheel_Sky(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Sky"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Sky.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "blue", "sky", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + tiles_random_seed: 0, + tiles_color_1: color(0.130136f, 0.644480f, 0.693872f), + tiles_color_2: color(0.135633f, 0.491021f, 0.644480f), + tiles_color_3: color(0.023153f, 0.135633f, 0.212231f), + tiles_color_diamond: color(0.774f, 0.759f, 0.708f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.05f, + tiles_roughness_range: 0.02f, + tiles_random_slope_orientation: 0.23f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.19f, + glazing_edgefade_randomness: 0.34f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.40f, + grout_brightness: 0.71f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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_Pinwheel_Red(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.10f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.09f, + grout_brightness: 0.09f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Pinwheel_Red_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Pinwheel Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Pinwheel.Ceramic_Tiles_Pinwheel_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "pinwheel", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Pinwheel( + 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_color_diamond: color(0.036889f, 0.035601f, 0.023153f), + tiles_diamond_texture_amount: 0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + grout_brightness: 0.09f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + + + \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Square.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Square.mdl new file mode 100644 index 0000000000000000000000000000000000000000..82c9eb9d45e0b297c189599d24bea7086b2b2177 --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/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 = float2(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 = float2(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 = float2(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 = float2(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 = float2(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("./textures/square_tiles_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/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("./textures/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("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Square_Brick.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Square_Brick.mdl new file mode 100644 index 0000000000000000000000000000000000000000..eeed0d1e4fa13f94d464f5c40d606f0ade8621bf --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Square_Brick.mdl @@ -0,0 +1,2532 @@ +/****************************************************************************** + * 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 = float2(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 *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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 = float2(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 = float2(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_Brick.Ceramic_Tiles_Glazed_Square_Brick.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset")), + ::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)*3.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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*.6f, + 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_Brick( + +// 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance", "Dirt"), + ::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("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform 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(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 = float2(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 Brick Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Glazed_Square_Brick.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/squarebricktiles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/squarebricktiles_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/squarebricktiles_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/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("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/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_Brick_Dark_Blue_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Blue_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 1, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Dark Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Green_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Dark_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Dark Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Green_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 2, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - White Worn"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_White_Worn_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "worn", "aged", "old", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Dark_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Dark Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Dark Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Dark_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Gray Matte Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Gray_Matte_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "matte", "gray", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 3, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "mint", "green")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "mint", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 4, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_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 Brick Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "lime", "green", "random", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 6, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 7, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + tiles_random_seed: 9, + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Brick_Brown(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Square Brick Tiles - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Square_Brick.Ceramic_Tiles_Square_Brick_Brown.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "square", "offset", "new", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Square_Brick( + 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.04f, + 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: 1.00f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Subway.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Subway.mdl new file mode 100644 index 0000000000000000000000000000000000000000..34ff5cc952ce87ae3f2bdc17bd4063d5ebbfe457 --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Subway.mdl @@ -0,0 +1,2485 @@ +/****************************************************************************** + * 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 = float2(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 *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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 = float2(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 = float2(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_Subway.Ceramic_Tiles_Glazed_Square_Brick.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "square", "offset")), + ::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)*6.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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*0.25f, + 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(R_noise1_G_noise2_B_craquelure.z), + //layer_color: color(::math::pow(R_noise1_G_noise2_B_craquelure.z, glazing_craquelure_pow)), + 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_Subway( + +// 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("Appearance"), + ::anno::ui_order(0) + ]], + color tiles_color_1 = color(0.603827f, 0.533276f, 0.473531f) + [[ + ::anno::description("Mixing color 1 for the ceramic tiles."), + ::anno::display_name("Tiles Color 1"), + ::anno::in_group("Appearance"), + ::anno::ui_order(1) + ]], + color tiles_color_2 = color(0.496933f, 0.445201f, 0.401978f) + [[ + ::anno::description("Mixing color 2 for the ceramic tiles."), + ::anno::display_name("Tiles Color 2"), + ::anno::in_group("Appearance"), + ::anno::ui_order(2) + ]], + color tiles_color_3 = color(0.571125f, 0.539479f, 0.462077f) + [[ + ::anno::description("Mixing color 3 for the tiles."), + ::anno::display_name("Tiles Color 3"), + ::anno::in_group("Appearance"), + ::anno::ui_order(3) + ]], + float tiles_random_brightness = 0.02f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles Random Brightness"), + ::anno::in_group("Appearance"), + ::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("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(5) + ]], + float tiles_roughness_range = 0.008f + [[ + ::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(6) + ]], + float tiles_random_slope_orientation = 0.1f + [[ + ::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("Appearance"), + ::anno::ui_order(7) + ]], + uniform float glazing_orange_peel_bump = 0.4f + [[ + ::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("Appearance"), + ::anno::ui_order(8) + ]], + float glazing_edgefade_weight = 0.17f + [[ + ::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("Appearance"), + ::anno::ui_order(9) + ]], + float glazing_edgefade_randomness = 0.5f + [[ + ::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("Appearance"), + ::anno::ui_order(10) + ]], + float glazing_craquelure_weight = 0.5f + [[ + ::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("Appearance"), + ::anno::ui_order(11) + ]], + float drops_amount = 0.2f + [[ + ::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(12) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(13) + ]], + float grout_height = 0.01f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(14) + ]], + uniform float grout_scale = 0.5f + [[ + ::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("Appearance"), + ::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("Appearance", "Dirt"), + ::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("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(18) + ]], + + uniform 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(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 = float2(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 = 0.360f // 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.3f + [[ + ::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.03f + [[ + ::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("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Glazed_Subway.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "architecture", "diamond", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/subway_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/subway_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/subway_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/tiles2_multi_R_noise1_G_noise2_B_craquelure.png", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./textures/tiles_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/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_Subway_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Antique_White_Dirty.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "architecture", "diamond", "old", "antique", "dirty", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 12, + 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.35f, + tiles_roughness_range: 0.8f, + tiles_random_slope_orientation: 0.1f, + glazing_orange_peel_bump: 1.00f, + glazing_edgefade_weight: 0.17f, + glazing_edgefade_randomness: 0.50f, + glazing_craquelure_weight: 0.66f, + drops_amount: 0.20f, + grout_brightness: 0.50f, + 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.8f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 0.75f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Dark_Green_New(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Dark Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Dark_Green_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Dark_Green_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Dark Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Dark_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "green", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_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 Subway Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Dark_Green_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 2, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_White(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_White_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Subway_White_Worn_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - White Worn"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_White_Worn_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "square", "offset", "worn", "aged", "old", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 + ); + +export material Ceramic_Tiles_Subway_Black(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 + ); + + +export material Ceramic_Tiles_Subway_Black_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Black_Matte_Rough(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Dark_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Dark Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Dark_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Dark_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Dark Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Dark_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "gray", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Gray(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Gray"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Gray.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Gray_Matte(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Gray Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Gray_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "gray", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Gray_Matte_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Gray Matte Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Gray_Matte_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "matte", "gray", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 3, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Mint(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "mint", "green")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Mint_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "mint", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 4, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Lime_Green(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Lime_Green_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "lime", "green", "random", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Yellow(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.1f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Yellow_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 6, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.1f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Petrol(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Petrol_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 7, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Subway_Red(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Subway_Red_Varied(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 9, + 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.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 + ); + + +export material Ceramic_Tiles_Subway_Cappucino(*) +[[ + ::anno::description("Glazed ceramic tiles material with tweakable tile color, grout and glazing."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Subway Tiles - Cappucino"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Subway.Ceramic_Tiles_Subway_Cappucino.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "wall", "interior", "architecture", "rectangular", "offset", "new", "shiny", "brown")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Subway( + tiles_random_seed: 0, + tiles_color_1: color(0.465f, 0.344f, 0.272f), + tiles_color_2: color(0.437f, 0.334f, 0.267f), + tiles_color_3: color(0.494f, 0.384f, 0.298f), + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.04f, + 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.01f, + grout_scale: 0.30f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 0.00f, + tiles_scale: 0.50f, + 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.02f, + grout_bump_strength: 1.0f, + ao_amount: 0.3f, + uv_space_index: 0 + ); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Versailles.mdl b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Versailles.mdl new file mode 100644 index 0000000000000000000000000000000000000000..cdf9da5b87759cbc73a427a0a015d402d718e62e --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/Ceramic_Tiles_Glazed_Versailles.mdl @@ -0,0 +1,2595 @@ +/****************************************************************************** + * 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 = float2(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 + //I = int2((I.x), (I.y)); // 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_Generator( + + // Ceramic textures + // *** MAPS *** + // *** Special multimaps for tiles *** // + uniform texture_2d tex_lin_tiles_id_offset_color_tex // R - Random ID per tile + = texture_2d() [[ // G - Offset (for the tiling algorithm to work) + ::anno::description("Tiles texture that contains the tile ids," // B - Height texture for each tile for compositing the grout + " the offsets and the rotation for the tiles."), + ::anno::display_name("Tiles ID Offset Rotation Texture"), + ::anno::in_group("Textures"), + ::anno::ui_order(0) + ]], + 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) + ]], + color tiles_color_little_tile = color(0.246201f, 0.434154f, 0.479320f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(10) + ]], + float tiles_little_tile_texture_amount = 0.0f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amount"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(11) + ]], + 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(12) + ]], + 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(13) + ]], + + 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(14) + ]], + 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(15) + ]], + + 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(16) + ]], + 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(17) + ]], + 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(18) + ]], + 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(19) + ]], + + 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(20) + ]], + 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(21) + ]], + 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("Appearance"), + ::anno::ui_order(22) + ]], + 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(23) + ]], + 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(24) + ]], + 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(25) + ]], + 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(26) + ]], + 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(27) + ]], + + // 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + 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), + ::anno::ui_order(31) + ]], + 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), + ::anno::ui_order(32) + ]], + + 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), + ::anno::ui_order(33) + ]], + 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), + ::anno::ui_order(34) + ]], + 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), + ::anno::ui_order(35) + ]], + 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 = float2(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 = float2(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"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Glazed_Versailles.png"), + ::anno::key_words(string[]("generator", "tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture")), + ::anno::hidden(), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] +{ + texture_scale *= 0.5; + 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) * 2.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; + int offset_x, offset_y; + + // the rand tiles texture must be sampled exactly, so texel lookup is the function we will be using here + int2 texel_coord = int2(int(::math::frac(tile_id_uv.x) * ::tex::width(tex_lin_tiles_id_offset_color_tex)), + int(::math::frac(tile_id_uv.y) * ::tex::height(tex_lin_tiles_id_offset_color_tex))); + float3 tiles_ids = ::tex::texel_float3(tex_lin_tiles_id_offset_color_tex, texel_coord); + + int rand_id = int(tiles_ids.x * 254.f); // Random tile ID's are stored in R-channel., 255 produces visual errors sometimes. 254 seems to work + // We are assuming 8bit values and generate integers from 0-255 + float offset_id = tiles_ids.y; // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(tile_id_uv.x) - offset_x), int(::math::floor(tile_id_uv.y) - offset_y)); + + rand_val_1 = lowbias32(tiles_random_seed + rand_id + 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) + ); + + + float3 R_frough_G_thickness_B_drops = nonrepeat_lookup( + texture: tex_tiles_multi_R_rough_G_thickness_B_drops, + uvw: base_uv, + average_color: float3(0.499f, 0.365f, 0.015f), + texture_scale: texture_scale * .3f, + 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 + + // Diamond Tiles Color + ::base::color_layer layer_1 = ::base::color_layer( + layer_color: tiles_color_little_tile, + weight: tiles_ids.z, + mode: ::base::color_layer_blend + ); + ::base::color_layer layer_2 = ::base::color_layer( + layer_color: tiles_color_2, + weight: R_noise1_G_noise2_B_craquelure.x * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 3 + ::base::color_layer layer_3 = ::base::color_layer( + layer_color: tiles_color_3, + weight: R_noise1_G_noise2_B_craquelure.y * (1.0f - tiles_ids.z), + mode: ::base::color_layer_blend + ); + // Color 4 + ::base::color_layer layer_4 = ::base::color_layer( + layer_color: color(0.0f), + weight: R_noise1_G_noise2_B_craquelure.y * (tiles_ids.z) * tiles_little_tile_texture_amount, + mode: ::base::color_layer_overlay + ); + // Varying brightness + ::base::color_layer layer_5 = ::base::color_layer( + layer_color: color(rnd6), + weight: tiles_random_brightness, + mode: ::base::color_layer_overlay + ); + // Varying glazing thickness + ::base::color_layer layer_6 = ::base::color_layer( + layer_color: ceramic_color, + weight: R_frough_G_thickness_B_drops.y * glazing_varying_thickness_weight * .15f, + mode: ::base::color_layer_blend + ); + // Edge Fade + ::base::color_layer layer_7 = ::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_8 = ::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, layer_7, layer_8 + ); + + 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_frough_G_thickness_B_drops.x, tiles_roughness_range, tiles_roughness); + glazing_roughness += R_frough_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_frough_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_Versailles( + + // 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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::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("Appearance"), + ::anno::ui_order(3) + ]], + color tiles_color_little_tile = color(0.586f, 0.759f, 0.774f) + [[ + ::anno::description("Color for the diamond."), + ::anno::display_name("Diamond Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(4) + ]], + float tiles_little_tile_texture_amount = 0.2f + [[ + ::anno::description("The amount of dark texture to be applied to the diamond."), + ::anno::display_name("Diamond Texture Amound"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance"), + ::anno::ui_order(5) + ]], + float tiles_random_brightness = 0.015f + [[ + ::anno::description("Randomly modifies the brightness of the tiles."), + ::anno::display_name("Tiles random brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::ui_order(6) + ]], + float tiles_roughness = 0.039f + [[ + ::anno::description("The basic roughness of the tiles."), + ::anno::display_name("Tiles Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(7) + ]], + 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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance"), + ::anno::ui_order(8) + ]], + float tiles_random_slope_orientation = 0.04f + [[ + ::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("Appearance"), + ::anno::ui_order(9) + ]], + 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("Appearance"), + ::anno::ui_order(10) + ]], + 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("Appearance"), + ::anno::ui_order(11) + ]], + 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("Appearance"), + ::anno::ui_order(12) + ]], + float glazing_craquelure_weight = 0.05f + [[ + ::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("Appearance"), + ::anno::ui_order(13) + ]], + float drops_amount = 0.05f + [[ + ::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(14) + ]], + float grout_brightness = 0.7f + [[ + ::anno::description("Adjusts the brightness of the grout."), + ::anno::display_name("Grout Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(15) + ]], + float grout_height = 0.05f + [[ + ::anno::description("The height of the grout."), + ::anno::display_name("Grout Height"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(16) + ]], + 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("Appearance"), + ::anno::ui_order(17) + ]], + 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("Appearance", "Dirt"), + ::anno::ui_order(18) + ]], + float dirt_weight = 0.0f + [[ + ::anno::description("The weight of the dirt layer."), + ::anno::display_name("Dirt Weight"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::soft_range(0.f, 1.f), + ::anno::ui_order(19) + ]], + + 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(20) + ]], + + uniform 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(21) + ]], + 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(22) + ]], + uniform float2 texture_scale = float2(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(23) + ]], + + + float tiles_rotate = 0.0f // global rotation of texture in the tiles + [[ + ::anno::description("Globally rotates the texture lookup for the tiles textures."), + ::anno::display_name("Tiles Texture Rotate"), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(24) + ]], + float tiles_random_rotation = 1.0f // random rotation amount in degrees + [[ + ::anno::description("Randomly rotates the textures for the tiles."), + ::anno::display_name("Tiles Random Rotation"), + ::anno::soft_range(0.f, 360.f), + ::anno::in_group("Advanced", "Tiles"), + ::anno::ui_order(25) + ]], + 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(26) + ]], + 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(27) + ]], + + 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(28) + ]], + 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(29) + ]], + 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(30) + ]], + + 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(31) + ]], + 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(32) + ]], + 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(33) + ]], + 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(34) + ]], + 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(35) + ]] + +) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Dark Blue"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Glazed_Versailles.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "blue", "dark", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = +let { + texture_2d tex_lin_tiles_id_offset_color_tex = texture_2d("./textures/versailles2_R_id_G_offs_B_color.png", ::tex::gamma_linear); + texture_2d tex_lin_tiles_norm = texture_2d("./textures/versailles2_norm.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_height_G_edgefade_B_ao = texture_2d("./textures/versailles2_multi_R_height_G_edgefade_B_ao.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_noise1_G_noise2_B_craquelure = texture_2d("./textures/diamond_multi_R_noise1_G_noise2_B_craquelure.jpg", ::tex::gamma_linear); + texture_2d tex_tiles_multi_R_rough_G_thickness_B_drops = texture_2d("./textures/diamond_multi_R_rough_G_thickness_B_drops.jpg", ::tex::gamma_linear); + texture_2d tex_srgb_grout_diffuse_tex = texture_2d("./textures/mortar_diff.jpg", ::tex::gamma_srgb); + texture_2d tex_lin_grout_normal = texture_2d("./textures/mortar_norm.jpg", ::tex::gamma_linear); + + + ceramic_tiles_return ret = Ceramic_Tiles_Glazed_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_color_little_tile: tiles_color_little_tile, + tiles_little_tile_texture_amount: tiles_little_tile_texture_amount, + 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_Versailles_Dark_Blue_New_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Dark Blue Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Dark_Blue_New_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "matte", "blue", "dark", "cool", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.774f, 0.73f, 0.592f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Dark_Blue_Varied_New(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Dark Blue Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Dark_Blue_Varied_New.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "blue", "dark", "cool", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 1, + 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_color_little_tile: color(0.774f, 0.73f, 0.592f), + tiles_little_tile_texture_amount:0.2f, + 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.07f, + glazing_edgefade_randomness: 0.77f, + glazing_craquelure_weight: 0.7f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Antique_White(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Antique White"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "old", "antique", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_White_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - White Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_White_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "matte", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.651406f, 0.651406f, 0.651406f), + tiles_color_2: color(0.651406f, 0.651406f, 0.597202f), + tiles_color_3: color(0.623960f, 0.623960f, 0.623960f), + tiles_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.07f, + tiles_random_slope_orientation: 0.71f, + glazing_orange_peel_bump: 0.2f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.20f, + drops_amount: 0.23f, + grout_brightness: 0.11f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Antique_White_Dirty(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Antique White Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Antique_White.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "worn", "old", "antique", "matte", "dirty", "white", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.6f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Black(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Black"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Black.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.73f, 0.68f, 0.567f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Black_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Black Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Black_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.73f, 0.68f, 0.567f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.38f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Black_Matte_Rough(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Black Matte Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Black_Matte_Rough.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "rough", "bumped", "matte", "black", "dark", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.73f, 0.68f, 0.567f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.35f, + tiles_roughness_range: 0.13f, + tiles_random_slope_orientation: 0.20f, + glazing_orange_peel_bump: 0.50f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.15f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Graphite(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Graphite"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Graphite.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.723f, 0.715f, 0.673f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.1f, + 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.14f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Graphite_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Graphite Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Graphite_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "gray", "graphite", "neutral", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.78f, + 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.09f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Graphite_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Graphite Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Graphite_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "matte", "gray", "graphite", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.723f, 0.715f, 0.673f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.1f, + tiles_roughness: 0.32f, + tiles_roughness_range: 0.1f, + 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.14f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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: 1.0f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Versailles_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_little_tile: color(0.73f, 0.673f, 0.243f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Versailles_Green_Matte(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Green Matte"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Green_Matte.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "matte", "green", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_little_tile: color(0.701f, 0.73f, 0.612f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.12f, + tiles_roughness: 0.37f, + tiles_roughness_range: 0.11f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.45f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Dark Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "matte", "green", "dark", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 1, + tiles_color_1: color(0.099899f, 0.246201f, 0.008568f), + tiles_color_2: color(0.155926f, 0.242281f, 0.049707f), + tiles_color_3: color(0.012286f, 0.084376f, 0.033105f), + tiles_color_little_tile: color(0.73f, 0.673f, 0.243f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.79f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.11f, + glazing_edgefade_weight: 0.07f, + glazing_edgefade_randomness: 0.71f, + glazing_craquelure_weight: 1.00f, + drops_amount: 0.00f, + grout_brightness: 0.48f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Vintage_Green_Bathroom(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Vintage Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Vintage_Green_Bathroom.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "antique", "old", "matte", "green", "multicolor", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 9, + tiles_color_1: color(0.012286f, 0.361307f, 0.130136f), + tiles_color_2: color(0.488f, 0.431f, 0.0478f), + tiles_color_3: color(0.003347f, 0.034340f, 0.003035f), + tiles_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.63f, + tiles_roughness: 0.1f, + tiles_roughness_range: 0.21f, + tiles_random_slope_orientation: 0.3f, + glazing_orange_peel_bump: 0.09f, + glazing_edgefade_weight: 0.29f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.6f, + grout_brightness: 0.70f, + grout_height: 0.40f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(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_Versailles_Mint(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Mint Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Mint.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "mint", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.04f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Mint_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Mint Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Mint_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "mint", "green", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.208637f, 0.309469f, 0.130136f), + tiles_color_2: color(0.205079f, 0.304987f, 0.130136f), + tiles_color_3: color(0.201556f, 0.300544f, 0.124772f), + tiles_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.48f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.05f, + 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.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Lime_Green(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Lime Green"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Lime_Green.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "lime", "green", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.0415f, 0.0892f, 0.0265f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Lime_Green_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Lime Green Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Lime_Green_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "lime", "green", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.309469f, 0.361307f, 0.015996f), + tiles_color_2: color(0.304987f, 0.356400f, 0.016807f), + tiles_color_3: color(0.300544f, 0.351533f, 0.017642f), + tiles_color_little_tile: color(0.0415f, 0.0892f, 0.0265f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.56f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.12f, + glazing_edgefade_randomness: 0.37f, + glazing_craquelure_weight: 0.32f, + drops_amount: 0.22f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Yellow(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Yellow"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Yellow.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "yellow", "warm", "saturated", "light")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.0824f, 0.0781f, 0.0697f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.02f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Yellow_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Yellow Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Yellow_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "yellow", "warm", "saturated", "light", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.590619f, 0.361307f, 0.023153f), + tiles_color_2: color(0.584078f, 0.356400f, 0.023153f), + tiles_color_3: color(0.577580f, 0.351533f, 0.024158f), + tiles_color_little_tile: color(0.0824f, 0.0781f, 0.0697f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.49f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.11f, + glazing_edgefade_randomness: 0.48f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.20f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.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.85f, + uv_space_index: 0 +); + + + + +export material Ceramic_Tiles_Versailles_Petrol(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Petrol"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Petrol.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "petrol", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 13, + 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_color_little_tile: color(0.272f, 0.415f, 0.415f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + +export material Ceramic_Tiles_Versailles_Petrol_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Petrol Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Petrol_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "petrol", "cool", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 14, + 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_color_little_tile: color(0.272f, 0.415f, 0.415f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.008f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.04f, + glazing_edgefade_weight: 0.1f, + glazing_edgefade_randomness: 0.46f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.00f, + grout_brightness: 0.70f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + +export material Ceramic_Tiles_Versailles_Sky(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Sky"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Sky.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "blue", "sky", "cool")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + tiles_random_seed: 0, + tiles_color_1: color(0.130136f, 0.644480f, 0.693872f), + tiles_color_2: color(0.135633f, 0.491021f, 0.644480f), + tiles_color_3: color(0.023153f, 0.135633f, 0.212231f), + tiles_color_little_tile: color(0.774f, 0.759f, 0.708f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.03f, + tiles_roughness: 0.05f, + tiles_roughness_range: 0.02f, + tiles_random_slope_orientation: 0.23f, + glazing_orange_peel_bump: 0.15f, + glazing_edgefade_weight: 0.19f, + glazing_edgefade_randomness: 0.34f, + glazing_craquelure_weight: 0.42f, + drops_amount: 0.40f, + grout_brightness: 0.71f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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_Versailles_Red(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Red.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "red", "warm", "saturated")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.015f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.10f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.09f, + grout_brightness: 0.09f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + +export material Ceramic_Tiles_Versailles_Red_Varied(*) +[[ + ::anno::description("A glazed ceramic tiles material with interspersed diamond tiles. Offers controls for roughnes, grout, dirt, drop deposits and more."), + ::anno::in_group("Tiles"), + ::anno::display_name("Glazed Versailles Tiles - Red Varied"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Ceramic_Tiles_Glazed_Versailles.Ceramic_Tiles_Versailles_Red_Varied.png"), + ::anno::key_words(string[]("tiles", "tiled", "ceramic", "glazed", "bathroom", "sanitary", "kitchen", "floor", "wall", "interior", "exterior", "architecture", "versailles", "new", "shiny", "red", "warm", "saturated", "random")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Ceramic_Tiles_Glazed_Versailles( + 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_color_little_tile: color(0.036889f, 0.035601f, 0.023153f), + tiles_little_tile_texture_amount:0.2f, + tiles_random_brightness: 0.6f, + tiles_roughness: 0.039f, + tiles_roughness_range: 0.003f, + tiles_random_slope_orientation: 0.2f, + glazing_orange_peel_bump: 0.03f, + glazing_edgefade_weight: 0.00f, + glazing_edgefade_randomness: 0.00f, + glazing_craquelure_weight: 0.00f, + drops_amount: 0.19f, + grout_brightness: 0.09f, + grout_height: 0.40f, + grout_scale: 0.52f, + tiles_bump_strength: 1.00f, + dirt_color: color(0.0582f, 0.037f, 0.0265f), + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.00f, + texture_scale: float2(1.00f), + tiles_rotate: 0.00f, + tiles_random_rotation: 360.00f, + 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: 0.85f, + uv_space_index: 0 +); + + + + + \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Ceramic/Grog_Fired_Clay.mdl b/code/third_party/vMaterials_2/Ceramic/Grog_Fired_Clay.mdl new file mode 100644 index 0000000000000000000000000000000000000000..1672f229a903dfe08e1104c22e6b0abf8530ff6d --- /dev/null +++ b/code/third_party/vMaterials_2/Ceramic/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 = float2(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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(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: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..ba939f307c7adb7a5978fa9c2e7aa1501a622ab7 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b081d09649c71489d71b1f2964041298c633aec17bb7edf3f1ef35b0d9232fc0 +size 89599 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber.png new file mode 100644 index 0000000000000000000000000000000000000000..ba939f307c7adb7a5978fa9c2e7aa1501a622ab7 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b081d09649c71489d71b1f2964041298c633aec17bb7edf3f1ef35b0d9232fc0 +size 89599 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized.png new file mode 100644 index 0000000000000000000000000000000000000000..de8f3cd1f4bd35f08d29dfba33d1188f32efa50a --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44a2c82cdb4f9949bbc638c7b9687faf5f1102a8fd89c0e90d41d400213fbba5 +size 94096 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized_Coated.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized_Coated.png new file mode 100644 index 0000000000000000000000000000000000000000..6e6a2bd8f5a1e5626df85dce3ce2a2de3000a00e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Aluminized_Coated.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:190765794909650892cb3d55f941a383c8dae22861f3666b3dd8545df16606e4 +size 92844 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Dusty_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Dusty_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..380e484535aa12d7512001ad3a790b6c5af29d3e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Dusty_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5518a86201a2588d71dc934ab1c63c2a1488ee7a66e716977e58695644424461 +size 87454 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..5290fb8f1c40249f15808810cb69325a17a29c6d --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3129466a6683ff2b1d3ef2407978a45b8a7cb360b4af6b8a6fe9a8a73718e09d +size 85340 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Uncoated.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Uncoated.png new file mode 100644 index 0000000000000000000000000000000000000000..321ae1b0d84e9abd86df01e34d6f235fe444733e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Matte_Uncoated.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10599e0f8a35507e90c24e31e9365585ed4740e6b2307f91756e22e664f91a14 +size 84554 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Shiny_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Shiny_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..8505f93a6fd4e7b85483d65478ce09df7603dcf3 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Shiny_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9aab62be36ad7f1e61a26cb2933e62af3361d8c521851d555c020c5446f6a182 +size 87920 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Worn_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Worn_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..7cad82fdf5ee5b5bedcd6ee4a8cb83e3da85b1c2 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Carbon_Fiber.mdl@Carbon_Fiber_Worn_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f0ae513df311e7c1725a91e814b7b0c5be34efa558cdf7baba484f31292b863 +size 88921 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..bfbbc27c6c2b79c4788cebd532638445ee134223 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0392d02f12220bbd03c577b19851cfe0681e0e395b4579d03c5a76e244697d93 +size 124154 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass.png new file mode 100644 index 0000000000000000000000000000000000000000..bfbbc27c6c2b79c4788cebd532638445ee134223 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0392d02f12220bbd03c577b19851cfe0681e0e395b4579d03c5a76e244697d93 +size 124154 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Blueish.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Blueish.png new file mode 100644 index 0000000000000000000000000000000000000000..f500058fb479edd34bca86c2bc7c49b9600e5243 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Blueish.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:82968bd26276fdea08c1cce1ba38eecf8ac97d3d4725e27e47bc964d9edef0cf +size 124793 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Flat_Weave.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Flat_Weave.png new file mode 100644 index 0000000000000000000000000000000000000000..728cc495b5e79b8f7414bda63b7f1adea55e5d1a --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Flat_Weave.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ec0d7b850cebfc03022c52e7df031d21f41cd28725e400036cd155901d74ebd +size 118426 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Shiny.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..2926a6738f80776f1d2edde7e818b82db13c79bd --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa13b529850103d183b37d61d26ed0c055ddb9101704b654b87a04000508e41f +size 126598 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Yellowish.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Yellowish.png new file mode 100644 index 0000000000000000000000000000000000000000..ae3b84c5ecf35cb4ea5af7646969be09cee7ad0b --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass.mdl@Fiberglass_Yellowish.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44493f59bc56901a5519fec126973ef479411cfd1a8532113a11ad4523323000 +size 128648 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..2477b8671e4fbfdb57d61955e80e88ea736197c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dae6ed1107b01478aec77ec2114daeef4283b5890db2be5db2a3d7bde48a8dc7 +size 136470 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Bumpy_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Bumpy_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..cd7c442892e6b060e530af8043315c3cc11da631 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Bumpy_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5f47abf31a56b671a52c65d0c5b16463b781e20dd2ad6511069f74945e37f90 +size 129750 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..2477b8671e4fbfdb57d61955e80e88ea736197c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dae6ed1107b01478aec77ec2114daeef4283b5890db2be5db2a3d7bde48a8dc7 +size 136470 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Torn_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Torn_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..dde9b984eafe7d8090cfe84eeb97dfa5391175a1 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Torn_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f7f032328dac0d207a5e52095ab686cceae03db4824a97197a39164349611ee +size 130159 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Warped_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Warped_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..f83a672cadd9ce82b71c141386e22fd4a43ad6f3 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/256x256/Fiberglass_Imperfections.mdl@Fiberglass_Warped_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7f0b0dfe14c1b4ee88e342c0fb6f4fa5a273f6c226f984008a1f76345f71934 +size 130147 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber.png new file mode 100644 index 0000000000000000000000000000000000000000..62f49b00a8f71456c40e6ae47522cbcf7ea3fe34 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51e63ddc6f0754c023dec0c6b95dc6643684a8b0288b92aac90c364309adc89f +size 91418 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized.png new file mode 100644 index 0000000000000000000000000000000000000000..bc94b02d17de71fd52486f13bec2b93f4cc2b1c8 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f149d406edbdd44b5b202f958503b111d5382064d8ee8349723b6a3269280bd +size 96572 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized_Coated.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized_Coated.png new file mode 100644 index 0000000000000000000000000000000000000000..b96c59e8f43083280036a526d9f3db962be7f486 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Aluminized_Coated.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:137c1f91d8b965f78bff35af5cb25440f6c0ae8a84935c9615abdb6fdf1e8738 +size 96505 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Dusty_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Dusty_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..40834ee82cc1517871376ab07e872ea00ffcf799 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Dusty_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32380878f9c45ed4f6e67c833559c4b9a651d87658432f0c1942190e23f127bb +size 91204 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..62ad19c673463ced4439cc201524955d0b5f6732 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4ca9dde1146bd7e45a2b264f5829966474e4a813846946be854406e1cd66a67 +size 90295 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Uncoated.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Uncoated.png new file mode 100644 index 0000000000000000000000000000000000000000..189096de126d3695dc8265aab51c675c1d089dd4 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Matte_Uncoated.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4464e32f54967818a63728b2e96b722b759c1ce37853cc1aae7e1ab8119d60a4 +size 88815 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Shiny_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Shiny_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..14b49af9adcd2f458e06eea87746c44e6068bf70 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Shiny_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:affd5cf2737f18d3afb4152f34a855538cbe14fc6b12512a77d3012dd1782d3c +size 91588 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Worn_Coating.png b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Worn_Coating.png new file mode 100644 index 0000000000000000000000000000000000000000..b7bca9c9b1fd9a505cc053dd8cd8ed23fc159d7d --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Carbon_Fiber.Carbon_Fiber_Worn_Coating.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f48485ee4deb553e4d87aa18ece2fbf03545bb5668bdf7c8da178d78d83befe +size 91476 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass.png new file mode 100644 index 0000000000000000000000000000000000000000..1f88d413a6efc35b902bd42c60e6116d5033f8ab --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2298c48c4301915f07c2681b9c3647ae2e9dbf3a86ebb6d36dfc28fe1309921e +size 112791 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Blueish.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Blueish.png new file mode 100644 index 0000000000000000000000000000000000000000..17c20ccad16c931843e11144ca91143a3c7811d2 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Blueish.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3195c6525ca32bfa92eaee1a74983c216a0861b60d5f9388776f03f4596af7c +size 113289 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Flat_Weave.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Flat_Weave.png new file mode 100644 index 0000000000000000000000000000000000000000..c40726a7ddc438b5e37217639d5bf06a8f146ce8 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Flat_Weave.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92c36f0c424d1e78890b9aab5e208ddc026277a3d4922b8ff59f59de8c0a3c84 +size 110897 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Shiny.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..b31e4e38314b0ad071bc79ee9129a769423f71a8 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:502d2a5031464ef5a0131600e7ea211b28a129832d71420348828ba82571b3e0 +size 115325 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Yellowish.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Yellowish.png new file mode 100644 index 0000000000000000000000000000000000000000..9b511a97563b094b9334472cd16a5120d44da13e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass.Fiberglass_Yellowish.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba029a3babe71246f8dc2ae2401e8d85a2f3afc1693f099d0142143cd1840971 +size 116346 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Bumpy_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Bumpy_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..f5c964297dbe38e20fe2f2c3c98752ae82a65b9b --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Bumpy_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dcf54a2913f8769173f7c665a36e03cbd3c3647572e465b3774b205b80a3424 +size 103373 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..d0c8de8b8a6bbfd3eebb990145f66f5abb5cdb75 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a13d14a75bdbd3412d77f593f3bf3273052c30fd84b2c17a243d9c465364341 +size 104407 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Torn_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Torn_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..24ac81a7e6d621ba02d44881048b3cdabb005021 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Torn_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e14d726d06a6e6f6e8ca37293f5b5bdd260e316c96cb73d300b9f70b3871bfd +size 103352 diff --git a/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Warped_Imperfections.png b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Warped_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..96338d80ef321b126bfd9363c5ca543f1fe630a6 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/.thumbs/Fiberglass_Imperfections.Fiberglass_Warped_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad02093175471d85397ac4a004c43ab24675ed933533a7105d20d813ac8511d9 +size 103456 diff --git a/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_fibers_norm.jpg b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_fibers_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..05a7f229349ea6b18da46a23fbaef350ae2e1a58 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_fibers_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f51228a9279f1f33e2c9b3fe170f64dcb00a791c56b6381299a1e7b4cca97318 +size 2873884 diff --git a/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_multi_R_rough_G_cutout_B_patternA.jpg b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_multi_R_rough_G_cutout_B_patternA.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5c8a76434926c294231d99baaabed6e3f9d32e19 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_multi_R_rough_G_cutout_B_patternA.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73113466118219fca0277e2e6824ee2538de0d0b09d88457f63894d8aa0ec5f4 +size 2360404 diff --git a/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_weaving_norm.png b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_weaving_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..0260ea6c04c663e362da5002a990ee120d580572 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/carbon_fiber_weaving_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1455c730d548d17f286dcce4004028cdc2e55d7603f45e0dffa7c6d95a734604 +size 59261 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_blue_noise_placement_512x512.png b/code/third_party/vMaterials_2/Composite/textures/fiber_blue_noise_placement_512x512.png new file mode 100644 index 0000000000000000000000000000000000000000..1cbebe83037078d5f4c1a072a234332f4878905d --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_blue_noise_placement_512x512.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:520346b7d4c42be387f330344940aeaff8ab11dc439a067553cb008691aa490c +size 577772 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_bump.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_bump.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a8058ad9e287c240d48fe65930bb9889dd9c346c --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_bump.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e72db5fe645411f30fe42c56de9032145fafacae638806a935d775f8fd0b73c +size 1604007 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_kernel.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_kernel.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5f08dc41a4f01b25aa4bfde0d515f1c107c21838 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_kernel.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f2437c94fc0c3c8ea508bb6f7eb85f171eef6beb260261bc4c977bbb8f19c0b +size 37107 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_multi_R_rough_G_ao_B_mask.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_multi_R_rough_G_ao_B_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6bb1a887fbd83a873a5611940e9b3279618a2a24 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_multi_R_rough_G_ao_B_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8e7e6087bd55395a05dc0e19ead060795b90af36e543723f80edfef0db748d69 +size 2144968 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_norm.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ad681730cb752c393bd0d890aedbc3d6280e36df --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5290b296ea9a23f188df64d750f07b064881499636ff51ae28d67fb530597f59 +size 1089437 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_tears.png b/code/third_party/vMaterials_2/Composite/textures/fiber_tears.png new file mode 100644 index 0000000000000000000000000000000000000000..18fe3b9d817c44ffa1671dda407845330096b76e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_tears.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af40eaad90f604503220128c98e3899cb81d5f0eeb3629d261938bf7b96e29d2 +size 42222 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_warp_direction_noise.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_warp_direction_noise.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1f22887c95373115f52068678a18e89ac99a8401 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_warp_direction_noise.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1808a5c55204632277f47ded2e22c7c80fb6173e97a4c860bf0bff931ecea780 +size 74934 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiber_waves_norm.jpg b/code/third_party/vMaterials_2/Composite/textures/fiber_waves_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7a4d8d74abd25a3060ad105ca32fe6d412a3ea0e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiber_waves_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd3b9bfa29aa4015c98a08fffcab61502fd5fd9c62eaef46c9ec0d792dcaa04f +size 243234 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiberglass_bump.jpg b/code/third_party/vMaterials_2/Composite/textures/fiberglass_bump.jpg new file mode 100644 index 0000000000000000000000000000000000000000..72d859bdc874d98c2d4dd36277cda0148d18272b --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiberglass_bump.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dd020c82258b16ed5493db8fa1f5f4b6f36bd9dd1c9e4166393a253137cb006 +size 1294683 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiberglass_multi_R_rough_G_ao_B_mask.jpg b/code/third_party/vMaterials_2/Composite/textures/fiberglass_multi_R_rough_G_ao_B_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5f5763b93239db72c27eb4663ec9bbdb7f0a49c9 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiberglass_multi_R_rough_G_ao_B_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ab555b1650af1ade6e9f84c9544e4541218b212f13522183dc6f14d9bfc2537 +size 1300931 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiberglass_norm.jpg b/code/third_party/vMaterials_2/Composite/textures/fiberglass_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1b85f91c0970061ddbed7d50a2ab58268e2383b7 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiberglass_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fc077ca9787ec3b3de986f6e229b8f1e9af0e2eec4140751d5f1787bd6b9628 +size 1180124 diff --git a/code/third_party/vMaterials_2/Composite/textures/fiberglass_warps.jpg b/code/third_party/vMaterials_2/Composite/textures/fiberglass_warps.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1d220fc425c9e1730298b51582db62ea07cd0e83 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/fiberglass_warps.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cbfe84d63836ebf4ff0c02ad1c575cd8a270ae53bab41626106b3d245acdd11 +size 202217 diff --git a/code/third_party/vMaterials_2/Composite/textures/generic_surface_rough.jpg b/code/third_party/vMaterials_2/Composite/textures/generic_surface_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fb01664ac1ccb57ddaaa2d628581be09ed12af44 --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/generic_surface_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7e5f3e086d87ccbff43a2f2b5c33e8d6aace3b594d43ab00d6303a16ba8af64 +size 2071242 diff --git a/code/third_party/vMaterials_2/Composite/textures/surface_damages_multi_R_rough_B_rough2.jpg b/code/third_party/vMaterials_2/Composite/textures/surface_damages_multi_R_rough_B_rough2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5861f635ce1444849e2ab83e5cec87318420a69e --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/surface_damages_multi_R_rough_B_rough2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2049f6d34df7de036e9cc180aba9a9fc26ba5ed6c9b6bdf368cda074fe0abbb +size 4094197 diff --git a/code/third_party/vMaterials_2/Composite/textures/surface_damages_norm.jpg b/code/third_party/vMaterials_2/Composite/textures/surface_damages_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8b6c070c43f53346c12ed30f13dd2544134290c --- /dev/null +++ b/code/third_party/vMaterials_2/Composite/textures/surface_damages_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21c306362e3ae2305fa96315288406044797634739e39e861a7c65fea26580ad +size 1307147 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..82ac23c4d7ce724eb5fec25d87bd08acd650dbb0 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8d6b88bb8b9ec3ef4d04280e8a2de14969ada315f3c455513465a5078c59683 +size 92134 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl@Alexandrite.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl@Alexandrite.png new file mode 100644 index 0000000000000000000000000000000000000000..82ac23c4d7ce724eb5fec25d87bd08acd650dbb0 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Alexandrite.mdl@Alexandrite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8d6b88bb8b9ec3ef4d04280e8a2de14969ada315f3c455513465a5078c59683 +size 92134 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..fc47b4c794a34d9e22baf3fc5524768bd4f7ef7b --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e93d4122eef5781a6b1c38fbf4fddd37a0708eefed55f8995d887a57c1d3c520 +size 102350 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl@Amethyst.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl@Amethyst.png new file mode 100644 index 0000000000000000000000000000000000000000..fc47b4c794a34d9e22baf3fc5524768bd4f7ef7b --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Amethyst.mdl@Amethyst.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e93d4122eef5781a6b1c38fbf4fddd37a0708eefed55f8995d887a57c1d3c520 +size 102350 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..d882bcf89dc29db0fa334e4cd64732c3f5836d70 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef5ec0a4736dafe320ae1942e99e75d15296c0dd67f73d3830c69c65bef02e6b +size 99742 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl@Ametrine.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl@Ametrine.png new file mode 100644 index 0000000000000000000000000000000000000000..d882bcf89dc29db0fa334e4cd64732c3f5836d70 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ametrine.mdl@Ametrine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ef5ec0a4736dafe320ae1942e99e75d15296c0dd67f73d3830c69c65bef02e6b +size 99742 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..f84fb67b940cdd7115a8382eead3961230cbc382 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06a0d35ee06fd3eb0f2dec0f825bc9014c3c0901b94701aff18c5621b69b50e8 +size 95829 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl@Aquamarine.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl@Aquamarine.png new file mode 100644 index 0000000000000000000000000000000000000000..f84fb67b940cdd7115a8382eead3961230cbc382 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Aquamarine.mdl@Aquamarine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06a0d35ee06fd3eb0f2dec0f825bc9014c3c0901b94701aff18c5621b69b50e8 +size 95829 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..effcdf9b4c57e070a88fcba4b9d3a6850d759a29 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1814966806e50d9f0fe68d2f03c99f9baaf995bca87a56ee7d357cb51ed0884 +size 114025 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl@Citrine.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl@Citrine.png new file mode 100644 index 0000000000000000000000000000000000000000..effcdf9b4c57e070a88fcba4b9d3a6850d759a29 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Citrine.mdl@Citrine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1814966806e50d9f0fe68d2f03c99f9baaf995bca87a56ee7d357cb51ed0884 +size 114025 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..bc4216d541461ec956127f12b2ffc0273f2c9ce6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8860f2d86543221e717187b9530a4586f144295d0ca9c56dc09e6b69e276e9ad +size 120276 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl@Diamond.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl@Diamond.png new file mode 100644 index 0000000000000000000000000000000000000000..bc4216d541461ec956127f12b2ffc0273f2c9ce6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Diamond.mdl@Diamond.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8860f2d86543221e717187b9530a4586f144295d0ca9c56dc09e6b69e276e9ad +size 120276 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..52f34428b153173070430db9839de279855997f1 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd2497bf6722631b82211b69abc7f83e4618acf71b63e614e4c229535c40c15e +size 90400 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl@Emerald.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl@Emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..52f34428b153173070430db9839de279855997f1 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Emerald.mdl@Emerald.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bd2497bf6722631b82211b69abc7f83e4618acf71b63e614e4c229535c40c15e +size 90400 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..09025be14c8618bd202701e811f16532ad9a493f --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17a18110ac74b7b233e957bb5116ce88644c2eb414de431cfffd12eb2243b8fe +size 93656 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl@Garnet.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl@Garnet.png new file mode 100644 index 0000000000000000000000000000000000000000..09025be14c8618bd202701e811f16532ad9a493f --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Garnet.mdl@Garnet.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17a18110ac74b7b233e957bb5116ce88644c2eb414de431cfffd12eb2243b8fe +size 93656 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..b5465494066c075a3ad46df08fb02573470834ad --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92fceb019e0d9516393ece58f2e4690154883a03eb593bafe33e8f4c5efeb301 +size 92834 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl@Iolite.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl@Iolite.png new file mode 100644 index 0000000000000000000000000000000000000000..b5465494066c075a3ad46df08fb02573470834ad --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Iolite.mdl@Iolite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:92fceb019e0d9516393ece58f2e4690154883a03eb593bafe33e8f4c5efeb301 +size 92834 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..6e754bced6dd2d43f8c6d1921fc2e2a8c6a4d25b --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:805e831648b18ad23c6557e2927a5630d8b4c40c36585847331bbd40d6e4620b +size 101342 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl@Jade.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl@Jade.png new file mode 100644 index 0000000000000000000000000000000000000000..6e754bced6dd2d43f8c6d1921fc2e2a8c6a4d25b --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Jade.mdl@Jade.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:805e831648b18ad23c6557e2927a5630d8b4c40c36585847331bbd40d6e4620b +size 101342 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..86e7bd3d3e8c7e8a75940d870a4ce4b6ef2408ee --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bab5239298605e54b37e97b4b6e04ef223f6e76bc3ee170e9e55eac7e86b3d4 +size 98414 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl@Morganite.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl@Morganite.png new file mode 100644 index 0000000000000000000000000000000000000000..86e7bd3d3e8c7e8a75940d870a4ce4b6ef2408ee --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Morganite.mdl@Morganite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bab5239298605e54b37e97b4b6e04ef223f6e76bc3ee170e9e55eac7e86b3d4 +size 98414 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..0c08134b6ec326eca2f50013dca24e47f7d752a7 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:317a2fc2e90cc6825726eb623a46d5b3f60b11186eb07e47a58da64d0d0ba601 +size 80292 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl@Onyx.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl@Onyx.png new file mode 100644 index 0000000000000000000000000000000000000000..0c08134b6ec326eca2f50013dca24e47f7d752a7 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Onyx.mdl@Onyx.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:317a2fc2e90cc6825726eb623a46d5b3f60b11186eb07e47a58da64d0d0ba601 +size 80292 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..3fa8e7c5c07319e47bedbe93544855a30f04ff28 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9a85629e8452877c7945fbd680913064227653e3f496e42083e80e285ff26f3 +size 73713 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl@Pearl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl@Pearl.png new file mode 100644 index 0000000000000000000000000000000000000000..3fa8e7c5c07319e47bedbe93544855a30f04ff28 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Pearl.mdl@Pearl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9a85629e8452877c7945fbd680913064227653e3f496e42083e80e285ff26f3 +size 73713 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..60c0b3bd7339250fb9dc616dbbe95b6e53ca2b39 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8cb969b3d36b8c617f3d62a9d991df52b71a23a286dd27c8fbcdcdd6921124c +size 93391 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl@Peridot.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl@Peridot.png new file mode 100644 index 0000000000000000000000000000000000000000..60c0b3bd7339250fb9dc616dbbe95b6e53ca2b39 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Peridot.mdl@Peridot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8cb969b3d36b8c617f3d62a9d991df52b71a23a286dd27c8fbcdcdd6921124c +size 93391 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..c49edcfe0733f878d1689607cb05a654082fbf07 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68ce855bb4296527b246157c7714091f387c32a08c3f784d035b44fbc8d7ca00 +size 106063 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl@Ruby.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl@Ruby.png new file mode 100644 index 0000000000000000000000000000000000000000..c49edcfe0733f878d1689607cb05a654082fbf07 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Ruby.mdl@Ruby.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68ce855bb4296527b246157c7714091f387c32a08c3f784d035b44fbc8d7ca00 +size 106063 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..504ac35584e5418aa24cdd3a1b7780f9897bb2a6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e3e03b57aa95d8b3ab2710fd5485cc6bd22e4f652dfc3ae0c163ec067d8185a +size 107001 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl@Sapphire.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl@Sapphire.png new file mode 100644 index 0000000000000000000000000000000000000000..504ac35584e5418aa24cdd3a1b7780f9897bb2a6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Sapphire.mdl@Sapphire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e3e03b57aa95d8b3ab2710fd5485cc6bd22e4f652dfc3ae0c163ec067d8185a +size 107001 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..dc3025b2a59c56e42eb974cf61829a534c30547f --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:628ddce5b8785a985df8f42c1193e7e84ed3655732b5e7f1c068e9e92f7a37d8 +size 83943 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl@Tanzanite.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl@Tanzanite.png new file mode 100644 index 0000000000000000000000000000000000000000..dc3025b2a59c56e42eb974cf61829a534c30547f --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tanzanite.mdl@Tanzanite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:628ddce5b8785a985df8f42c1193e7e84ed3655732b5e7f1c068e9e92f7a37d8 +size 83943 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..3df84371250c941014452f3a6ef227e4869b14f1 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61fb26129811e271980ead3238f3af18101e3664ffa5053352e06112ef1d24b7 +size 105832 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl@Topaz.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl@Topaz.png new file mode 100644 index 0000000000000000000000000000000000000000..3df84371250c941014452f3a6ef227e4869b14f1 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Topaz.mdl@Topaz.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61fb26129811e271980ead3238f3af18101e3664ffa5053352e06112ef1d24b7 +size 105832 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..aa28cd99fe39f77c4b17c21e1e54b4d105f56cbc --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2613e56d183f4fac9cd5c7b2a108b26c279fe144957fe80757a09de07caba1d +size 102714 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl@Tourmaline.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl@Tourmaline.png new file mode 100644 index 0000000000000000000000000000000000000000..aa28cd99fe39f77c4b17c21e1e54b4d105f56cbc --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Tourmaline.mdl@Tourmaline.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2613e56d183f4fac9cd5c7b2a108b26c279fe144957fe80757a09de07caba1d +size 102714 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..9c72254d56023316a67219e86988078e55d19ed8 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:641ed7aa2cda927347ac74e6019718b5606a8dc257ab19956af7ab81d59348d2 +size 111004 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise.png new file mode 100644 index 0000000000000000000000000000000000000000..9c72254d56023316a67219e86988078e55d19ed8 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:641ed7aa2cda927347ac74e6019718b5606a8dc257ab19956af7ab81d59348d2 +size 111004 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Apple_Green.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Apple_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..2751bed896468d795ae4808907ac982526e4d1a3 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Apple_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f88080e32271e452564d377a2f5876d37f3666d788937ff0ac7657c3c67c235 +size 113516 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Blueish_Green.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Blueish_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..3a2c1d4b5a41d0f4586f8507b383537763d8a516 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Blueish_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed48d361d9bd1cfb543ff85945a6b2bd26e10c29636dbe610ce95dd4846a4f19 +size 114931 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Mineral.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Mineral.png new file mode 100644 index 0000000000000000000000000000000000000000..e7d54d4fe0f6a54354ced59ee679f362118ec5a7 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Turquoise.mdl@Turquoise_Mineral.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2a0b0b77a736728ef2ac1da6889891a27cdb08ce0e1034ca04d36034a997bb6 +size 106011 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..3c1cc7e135ea3ac29a50e6b775d5d8d213dd64c6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1584eb1040e1c25b65a2e686dceb2430ad016b53c1284c73ab77bda01753582 +size 120970 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl@Zircon.png b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl@Zircon.png new file mode 100644 index 0000000000000000000000000000000000000000..3c1cc7e135ea3ac29a50e6b775d5d8d213dd64c6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/256x256/Zircon.mdl@Zircon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1584eb1040e1c25b65a2e686dceb2430ad016b53c1284c73ab77bda01753582 +size 120970 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Alexandrite.Alexandrite.png b/code/third_party/vMaterials_2/Gems/.thumbs/Alexandrite.Alexandrite.png new file mode 100644 index 0000000000000000000000000000000000000000..a4141415b31923057674319f35ec2b8b095c7df5 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Alexandrite.Alexandrite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31ad59e82cbce17636a27705db99caf120a69a09ef6a8c3926e9bad5c7759e0e +size 117358 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Amethyst.Amethyst.png b/code/third_party/vMaterials_2/Gems/.thumbs/Amethyst.Amethyst.png new file mode 100644 index 0000000000000000000000000000000000000000..a9f6bdf597d5a39599590708f1fc76c083cf0bab --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Amethyst.Amethyst.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2017b45992eed8f28764b33641b78f27acb3f6d7e11c63ba8db7547524b5bae +size 110697 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Ametrine.Ametrine.png b/code/third_party/vMaterials_2/Gems/.thumbs/Ametrine.Ametrine.png new file mode 100644 index 0000000000000000000000000000000000000000..d8280ae3d5b71ae047134234a7ab7e960e34eab5 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Ametrine.Ametrine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8f4c32eb5b9311626587d8f070564f3d8f2729989ab8a8dbfaaecc8d3285af7 +size 117830 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Aquamarine.Aquamarine.png b/code/third_party/vMaterials_2/Gems/.thumbs/Aquamarine.Aquamarine.png new file mode 100644 index 0000000000000000000000000000000000000000..b3bd980ef31b5e93f527c246a8fd65a5a5d027fb --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Aquamarine.Aquamarine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d99fcc77c884b0209ebe4a713e02b96fe5890631399d10c58860173dbe581c55 +size 111572 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Citrine.Citrine.png b/code/third_party/vMaterials_2/Gems/.thumbs/Citrine.Citrine.png new file mode 100644 index 0000000000000000000000000000000000000000..89d1c5bbb08883e7a3465668aa34c1d82f6dde0f --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Citrine.Citrine.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2480e99fbaf63a5efc3870f08b030cb8e1e358ae9d924dd1515ac37312c03a93 +size 130594 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Diamond.Diamond.png b/code/third_party/vMaterials_2/Gems/.thumbs/Diamond.Diamond.png new file mode 100644 index 0000000000000000000000000000000000000000..41dcb279e9949d625e297bec8d55aa5efe6f26e8 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Diamond.Diamond.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1aaa2be2578c341a99bcd35db22a36362ffa6ba94673da453acd7e570147ab8f +size 141903 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Emerald.Emerald.png b/code/third_party/vMaterials_2/Gems/.thumbs/Emerald.Emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..aa011ec4f2c0e6dafd827b19c66ed2aa45216fed --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Emerald.Emerald.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14fd855948552f64670b8cdf260494aa9e7119ba58cfd7e42f2df19e44f7a998 +size 102755 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Garnet.Garnet.png b/code/third_party/vMaterials_2/Gems/.thumbs/Garnet.Garnet.png new file mode 100644 index 0000000000000000000000000000000000000000..81856affa74f3a37f0b63ab5554d3fdb3f9f7fe8 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Garnet.Garnet.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:605a3e5a15df3266d1efeac0ffb7ec9c9212732e12bb140a843042c1dd90ec8b +size 93487 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Iolite.Iolite.png b/code/third_party/vMaterials_2/Gems/.thumbs/Iolite.Iolite.png new file mode 100644 index 0000000000000000000000000000000000000000..462dd0eeba84c122df4e972d0061aaf9c2d5d943 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Iolite.Iolite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ca64b5b4fe2f17bf6f1137097e5600a1e49514ff897fb2e88d3cf867e2653d0 +size 106705 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Jade.Jade.png b/code/third_party/vMaterials_2/Gems/.thumbs/Jade.Jade.png new file mode 100644 index 0000000000000000000000000000000000000000..0e33d48341f79c830567106811c5e8a1d200f904 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Jade.Jade.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1e5b4f4a874f9941ca22feb42bd82cefbccac787e502db2a5ffcb113dccc88b +size 106873 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Morganite.Morganite.png b/code/third_party/vMaterials_2/Gems/.thumbs/Morganite.Morganite.png new file mode 100644 index 0000000000000000000000000000000000000000..272b99ccf66b3e04e180ff84c82aaa8159000d6c --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Morganite.Morganite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c62a4e30f8ec028c025f3c2f027b7f08867e88e305e14091a50ed8385e2ede3 +size 114678 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Onyx.Onyx.png b/code/third_party/vMaterials_2/Gems/.thumbs/Onyx.Onyx.png new file mode 100644 index 0000000000000000000000000000000000000000..1a3fda6d5d00c0414507abcb9e41211d70c5415a --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Onyx.Onyx.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85c191dc8c38aa7319ec9fb4a612409b2601ac5b6aeb0db2f1d9170c908c7480 +size 87113 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Pearl.Pearl.png b/code/third_party/vMaterials_2/Gems/.thumbs/Pearl.Pearl.png new file mode 100644 index 0000000000000000000000000000000000000000..850b8cc0b0433132ee0216199c4fb89454aeebd8 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Pearl.Pearl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:14bc60bb007c07545f35bf52c4b5dec3ca7d4f34c7b645644f5bf8a8583df1b2 +size 87572 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Peridot.Peridot.png b/code/third_party/vMaterials_2/Gems/.thumbs/Peridot.Peridot.png new file mode 100644 index 0000000000000000000000000000000000000000..fb447b56f097a9e65f5ae3065bc62f58795b367e --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Peridot.Peridot.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b90d9abc0aed5682dcb5ab4fea4c2b2bc30d9bcdf78dcd30c0fec7af6cb0c0e6 +size 109228 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Ruby.Ruby.png b/code/third_party/vMaterials_2/Gems/.thumbs/Ruby.Ruby.png new file mode 100644 index 0000000000000000000000000000000000000000..86f9e0d203816df1ced12be9d3a7166db22f1876 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Ruby.Ruby.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20f8c9c73e2badaa2b1f3e8b8e05350bb6017f3cb46ae05ce5c456be9bc03a64 +size 114667 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Sapphire.Sapphire.png b/code/third_party/vMaterials_2/Gems/.thumbs/Sapphire.Sapphire.png new file mode 100644 index 0000000000000000000000000000000000000000..426930dcfb9958557c3df3fd9a1740ee1da914f9 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Sapphire.Sapphire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eea7a21793851f6e93adf129a8c033edc3e124b3f5935ae7eb63c8e9b3bc63d3 +size 121224 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Tanzanite.Tanzanite.png b/code/third_party/vMaterials_2/Gems/.thumbs/Tanzanite.Tanzanite.png new file mode 100644 index 0000000000000000000000000000000000000000..cdf567e3c5b34476298f41d91e743b5ea4ffd1ec --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Tanzanite.Tanzanite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57115fe9bc058e62deb52814c2113b4046bee4e0c8130769dad9db20f3a510aa +size 94012 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Topaz.Topaz.png b/code/third_party/vMaterials_2/Gems/.thumbs/Topaz.Topaz.png new file mode 100644 index 0000000000000000000000000000000000000000..1031ca9d55049c17df8ffc42628cd090743633a9 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Topaz.Topaz.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77ed445d6713b237c448b6ef991ccd2bc44eb5f1ae4d291240849659b8acaa78 +size 118916 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Tourmaline.Tourmaline.png b/code/third_party/vMaterials_2/Gems/.thumbs/Tourmaline.Tourmaline.png new file mode 100644 index 0000000000000000000000000000000000000000..36409a05b9ab62c47d4bd920394d4e06bf221679 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Tourmaline.Tourmaline.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:309abf4aa3ed445369b3c675e47b17cff3cb9e4d19979cba4551b03d5bc58b2e +size 113411 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise.png b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise.png new file mode 100644 index 0000000000000000000000000000000000000000..b8931cf7b81bbb1e4f41c939908f809d143c5a2c --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a7f40277f985e515c0c9ab4dec2ae6a833b1a71ca4f320506e5dbb8fb931d4a +size 115732 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Apple_Green.png b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Apple_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..62e349e68b189e665ec63e6181c5e5cc6353ae1e --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Apple_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d022cc864a18dc5f0c94b4d51418d2e84c3fd2aed0c482a34ebd01b4219aee59 +size 123734 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Blueish_Green.png b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Blueish_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..31858c8e6f93659bd8935a0843ee6750da35b869 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Blueish_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15b42eefb4e31e6849aef38b6fa8389e8d876c123e9beb5e60b85d916f23f942 +size 122274 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Mineral.png b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Mineral.png new file mode 100644 index 0000000000000000000000000000000000000000..e00c95bff597a21cfe52123ade3972a1e8322407 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Turquoise.Turquoise_Mineral.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d2e2db4261940d5232afac4a2d818b98ea8098b1740570074a2f63cdf2a42aff +size 113639 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/XZircon.Zircon.png b/code/third_party/vMaterials_2/Gems/.thumbs/XZircon.Zircon.png new file mode 100644 index 0000000000000000000000000000000000000000..0d60d07b5c44ada4c9cada4180b8701be63a3204 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/XZircon.Zircon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5524d9583a4af8ba411ccc25ed6581a605c791584190439b9c7e254a8c2151fa +size 139659 diff --git a/code/third_party/vMaterials_2/Gems/.thumbs/Zircon.Zircon.png b/code/third_party/vMaterials_2/Gems/.thumbs/Zircon.Zircon.png new file mode 100644 index 0000000000000000000000000000000000000000..5476934ccce9f4a20485cd53de92077c9c234dab --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/.thumbs/Zircon.Zircon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bfc7951543dfaf7517754d976c6e5612d2ea433dabda26d3953ae4b17e807f8 +size 141390 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_breakup_noise.png b/code/third_party/vMaterials_2/Gems/textures/turquoise_breakup_noise.png new file mode 100644 index 0000000000000000000000000000000000000000..66d43646238aae84b4f1b441bdd067ff5d8cad38 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_breakup_noise.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:06d7734a1194d0644952b880c870c92c1e2b39d66ff6098236904d02fd1fb2fc +size 160299 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_crack_msk.png b/code/third_party/vMaterials_2/Gems/textures/turquoise_crack_msk.png new file mode 100644 index 0000000000000000000000000000000000000000..49115ab9fe7eb55bd1a8e80f6938d43be14a418d --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_crack_msk.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f2923df5c0a2ad77a4090037328a44c6f2aad10683279ef6c0df023b0b8511e +size 74724 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_cracks_norm2.jpg b/code/third_party/vMaterials_2/Gems/textures/turquoise_cracks_norm2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1ad03c3a14ea689513abc8005d97b69a9b7fc3d7 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_cracks_norm2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fff1fe33e9377d5792a5accea605e3fc41afd9e357166aaa97680483664f1869 +size 1167073 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_diffuse.jpg b/code/third_party/vMaterials_2/Gems/textures/turquoise_diffuse.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2fa961f38f5b59b47306ade7a48e4bcbb4d2cafb --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_diffuse.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f58c4da23aa568cbb92ac61c6c050cb72219f83af67ee27ed5c66a9941993fd3 +size 1556109 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_multi_rough.jpg b/code/third_party/vMaterials_2/Gems/textures/turquoise_multi_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..640b5d3aee861e0dddd0940da686c7a7a358364c --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_multi_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87486ce0f647f5afccc2916e4da88af7f92608bc9b8acb343130f31af7e026aa +size 5554124 diff --git a/code/third_party/vMaterials_2/Gems/textures/turquoise_veins.jpg b/code/third_party/vMaterials_2/Gems/textures/turquoise_veins.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c7b1d56bc8d56d098cf04142ec6f1254e9e8baf6 --- /dev/null +++ b/code/third_party/vMaterials_2/Gems/textures/turquoise_veins.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc79bf045c4faf9e6a24726f0bb15b72be8020586d3f50f9f3f318070bb54e73 +size 762480 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..92e7c0e937503111d2f11ff5dec4400736961ce6 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e12562885825c0379c2f6467f15365eeedd2c6dc5e035f3f2e315947624e46d +size 129615 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Blue_Ocean_Perlinwaves.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Blue_Ocean_Perlinwaves.png new file mode 100644 index 0000000000000000000000000000000000000000..92e7c0e937503111d2f11ff5dec4400736961ce6 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Blue_Ocean_Perlinwaves.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e12562885825c0379c2f6467f15365eeedd2c6dc5e035f3f2e315947624e46d +size 129615 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Blue_Reef.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Blue_Reef.png new file mode 100644 index 0000000000000000000000000000000000000000..74b3f704a53170a0cb845f5691c15f0eef27a678 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Blue_Reef.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:50bf7aa95ef1ff079942113640bb68972e100a09e9594037e91aab9f6dc14e8b +size 123979 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Green_Reef.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Green_Reef.png new file mode 100644 index 0000000000000000000000000000000000000000..b1698116744d1a0a54aa7b12a2d18a57c1356cbb --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Green_Reef.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3477aeba2c6ecf19fe8af426cc9a4e288246c9569288490a990a6d045b0b28ce +size 123424 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Light_Blue.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Light_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..7fc26ceb7e4976176bd1850dca5240058e887f86 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Ocean_Light_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d5a1b75fd5f4e94baebf6a30f0abf6a1f396a95db547d50726ec8bbd3419bd0 +size 138204 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Blue.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..9e97ce9b746cff7dab2e85dedb2885cc4e1a5aa0 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b7da559080df58556334ed714e612f0a375e5655db3b2e4853ae69957793ff3 +size 104407 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Green.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..9eb77a27220d171e5aa4423030f4145c78c42f74 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Blue_Ocean_Perlinwaves.mdl@Water_Pool_Clear_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f9d1924be215c2f083f17007ea13c2a4fe07a4110d7487d1ff9043cb11fa04eb +size 103552 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..a11115eb5f35e78518d8c7cc794ba090f3c2994a --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1b7389979d9d0c9a121ba8a216e91c93c6a9d6055fc2814dfda59aebda002de +size 122127 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Med.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Med.png new file mode 100644 index 0000000000000000000000000000000000000000..6f4c210967699b00bcd6d83c7361464ecaa9b0e0 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Med.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:667ee60f07f2df638131be960f37a71a1fe93f6533db591fca252bb4568e4d57 +size 116396 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Min.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Min.png new file mode 100644 index 0000000000000000000000000000000000000000..279546ef4d3253bb95bfe24f6f1e80dccabf46d7 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlin_Green_Lake_Min.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31566743e285ff01716a06de611b52b267b78e27f8d456386c097783d66d6ea8 +size 131983 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves.png new file mode 100644 index 0000000000000000000000000000000000000000..a11115eb5f35e78518d8c7cc794ba090f3c2994a --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1b7389979d9d0c9a121ba8a216e91c93c6a9d6055fc2814dfda59aebda002de +size 122127 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Clear_Broth.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Clear_Broth.png new file mode 100644 index 0000000000000000000000000000000000000000..389ce4583a88c92806f3d13b37f4489c7d36ad49 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Clear_Broth.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0230304a867aa5552ac8cd24a825f877046a059dbf5e23ea69a90dad1f70c7de +size 130298 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth.png new file mode 100644 index 0000000000000000000000000000000000000000..ded2fd030e1a12f4015b73fd93c0e5514befa179 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ee38f126aeb0828bb5fedcc99fe486cb564ef5eb1054b0da994164604181a62 +size 108800 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth_Dense.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth_Dense.png new file mode 100644 index 0000000000000000000000000000000000000000..9380b8c74cebedcfd925c3efee18335f5afb2a27 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Dirty_Broth_Dense.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9da857d58d196b5b494337340c498c3048d22bd156766ef54a0629291fff978 +size 104443 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png new file mode 100644 index 0000000000000000000000000000000000000000..07fcaa274c2adedf6df35db20875ee589d3d45b0 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7aa68f7761f426f05370c055f6bc97e804a77c563801bd7be210567638a9620d +size 106663 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Pond.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Pond.png new file mode 100644 index 0000000000000000000000000000000000000000..874900b5be1ac687735dd433e7cbf937a3c28f4a --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Pond.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bda813d3bfd35b559d2e4bb38cda98356f64c0a69791282700221ef8af2067f +size 128150 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Swamp.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Swamp.png new file mode 100644 index 0000000000000000000000000000000000000000..62843811dc6414bdd57ebc72e033f5c15437315f --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Green_Swamp.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a6ddf156a658d26ce47603fa1b8f07c9868c84bbecb6e05e470031f9736ad8e6 +size 116173 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Rusty_Lake.png b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Rusty_Lake.png new file mode 100644 index 0000000000000000000000000000000000000000..a86f19857cde83383f427a1ecf54c2f54008f1f4 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/256x256/Water_Murky_Perlinwaves.mdl@Water_Murky_Perlinwaves_Rusty_Lake.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:561ba4b52c11a5c11e2fdf9b8c8442f3ec3bb042b196a5904f2bf5c4fd1c573c +size 108391 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Blue_Ocean_Perlinwaves.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Blue_Ocean_Perlinwaves.png new file mode 100644 index 0000000000000000000000000000000000000000..3fc263b0bf93bf8ba5d2159a6363ae71b3025071 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Blue_Ocean_Perlinwaves.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f27a0fe49c23235d26110ae961ce768c68a6687515c81d5e6d9e35df0f43670d +size 133685 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Blue_Reef.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Blue_Reef.png new file mode 100644 index 0000000000000000000000000000000000000000..a6a9c49244af01df7927f378925c8cc0790e9654 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Blue_Reef.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04de86cffbe8f293129dbec7f471d2ef509b9c88f5fb5f9e27dea9bff4857bed +size 132554 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Green_Reef.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Green_Reef.png new file mode 100644 index 0000000000000000000000000000000000000000..e2be5550d28385392711ddba4c918f48dea5132a --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Green_Reef.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:283d1999de2af5bdc211888b66208bd1e3a0dc85589f7dc4e00a7af28b0a583b +size 133210 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Light_Blue.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Light_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..a69a50f889116be09266ea7ebea9632c47c62521 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Ocean_Light_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f5e08b454d5fadf09fa5a7accf581bac52ba9f18313918520f14c96bcacc6f0 +size 132852 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Blue.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..c0a392be116a8e308a4d8d35a9c3d7bdcb931d6e --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2eb113ecd65598e932449ae74a140684b457217f54d04d7dfb93710dd94a9528 +size 132987 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Green.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..b490408e4e3269d8866156765bf18c6b5d76970a --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Blue_Ocean_Perlinwaves.Water_Pool_Clear_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:060f9e50e2d99acc919bcba61dca6603e2d8feee3e887adada3790dd84e51255 +size 134282 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Med.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Med.png new file mode 100644 index 0000000000000000000000000000000000000000..f11727336d8b5099a00fcdd9de729ddb32e99b93 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Med.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0be797e1a16ff822949275b241de11b799fb949ce8cef3be78574a334aaa0db6 +size 127579 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Min.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Min.png new file mode 100644 index 0000000000000000000000000000000000000000..a6861f37a827d65b262f41902e4edd9e09165c6f --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlin_Green_Lake_Min.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc8d0a5c6eb8f90c7d93e9b58cc3bba8ce6384c8351243f018a2bdf45cf44cf6 +size 130120 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves.png new file mode 100644 index 0000000000000000000000000000000000000000..24d1a2e4a5449b6153430a9b3550291e32ade0d2 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b8083e620ba94276087cc829038d9f525ce55b12506c0e4bbae1035a3f0b578 +size 130183 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Clear_Broth.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Clear_Broth.png new file mode 100644 index 0000000000000000000000000000000000000000..8c187d75c4cda3c8cbefa4cd2bcccae7047f27e6 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Clear_Broth.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d6040c3668af88d46614561003bba72cd0b19537b768537307efff10f8186a7 +size 132068 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth.png new file mode 100644 index 0000000000000000000000000000000000000000..451fccaf3568c1be2600c65e59d8d30d7fd9c54d --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4592e5f1699b568d7c305d72c0ab049caf2aa58e69b7c530fbeac981959a76ef +size 125245 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth_Dense.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth_Dense.png new file mode 100644 index 0000000000000000000000000000000000000000..7ad6cd61aca270c855a3f0d03a76dcefcdaec99b --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Dirty_Broth_Dense.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1bf8fdb19b959175902ffa2b3d736bc3889a1837074034a9e1158dde594cffd +size 122964 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png new file mode 100644 index 0000000000000000000000000000000000000000..c4ccae06adacbf95773e3595f39674ab3a010a5c --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Lake_Heavy_Scattering.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abe4735139f2855a22130dfe14468893fa5e2f96a29b92f271d7bf3c48818cc5 +size 124755 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Pond.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Pond.png new file mode 100644 index 0000000000000000000000000000000000000000..ea9a963e480f07183f8bd17a6ba8a1d0a9b80bd7 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Pond.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:808b7b52e2df5c34094b21ca2592ba395fd3e7104142c9d0c22f14f3a2bcf054 +size 132393 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Swamp.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Swamp.png new file mode 100644 index 0000000000000000000000000000000000000000..20986ab1a35f094257a09b25b13eecfd1f4ae642 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Green_Swamp.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:155a1eeb2f0647e8e59ebc5aa0ed2f3b58bce7e2b26bffb66aa974075555a4f5 +size 130803 diff --git a/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Rusty_Lake.png b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Rusty_Lake.png new file mode 100644 index 0000000000000000000000000000000000000000..102d7cc50964bfce8d678d6fa875047331603054 --- /dev/null +++ b/code/third_party/vMaterials_2/Liquids/.thumbs/Water_Murky_Perlinwaves.Water_Murky_Perlinwaves_Rusty_Lake.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:905407b8066249b4b8ca6d9ae6dd5fced016d6805d725e1999aeac5dde27fadd +size 127086 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..78857494e51e6c3691b197cd9ec0c510d6c46e71 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c46ed4d5a1c8c203e57e6a7123a7b66b67847832b5746af92dc8c25eed7d4fbe +size 99545 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Metal_Mesh_Weave_01.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Metal_Mesh_Weave_01.png new file mode 100644 index 0000000000000000000000000000000000000000..78857494e51e6c3691b197cd9ec0c510d6c46e71 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Metal_Mesh_Weave_01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c46ed4d5a1c8c203e57e6a7123a7b66b67847832b5746af92dc8c25eed7d4fbe +size 99545 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Copper_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Copper_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..66a3c6536f507d03d4c4f25005b24c43a9ccae97 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Copper_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f82cd26c7faf4b2f1b94ee15a0dd5631295556782ee53159806ca8e21fdedc4 +size 104142 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Faint_Copper.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Faint_Copper.png new file mode 100644 index 0000000000000000000000000000000000000000..0ae94a940d875b7c68bbc4c664244cd269489f54 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Faint_Copper.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e38c7c8bc6320aadff8db5db9624a3ea79b8f62a0337e13a1e8696aef3582f4 +size 102647 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Golden_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Golden_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..ab950cbe762a8b7df670c562e06dc486ac1cbaed --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Golden_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e83043476b7ecce57735af3a5e1a2ee7f5f3f4921188d33a3467f252dceceb8e +size 102977 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Pure_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Pure_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..f6e9becd516a79f797550d801ee7e1ee3b2671fc --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Pure_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a81819bbc0178eb856e8463e18be8d4d2b676c0640d3c9aa4af7d517d3d60198 +size 99538 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Steel_Brass.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Steel_Brass.png new file mode 100644 index 0000000000000000000000000000000000000000..f3f4bc2da51154194489a21915ad8b83c2ac4755 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Steel_Brass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f875055e170d7f1f53e76590e71dc0ca9986565d03944725994530f475ac556a +size 101587 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Warmgolden_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Warmgolden_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..affe3b333792baf8835624860d302a4b6b68906c --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_01.mdl@Woven_Metal_01_Warmgolden_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d235490179c110a204c72fb678aac5bdc9e1556a7316f8cb284eb5af0dff9d6 +size 104034 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..33a6505cd66ad9d348d205cc0d555033521c9336 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25e3a8aabde4f8a2487b8c0fa732644039a01eda4775ad0e44f25af21c47a257 +size 93092 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Metal_Mesh_Weave_02.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Metal_Mesh_Weave_02.png new file mode 100644 index 0000000000000000000000000000000000000000..33a6505cd66ad9d348d205cc0d555033521c9336 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Metal_Mesh_Weave_02.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25e3a8aabde4f8a2487b8c0fa732644039a01eda4775ad0e44f25af21c47a257 +size 93092 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..d171d006c9d978cbc17b841a095fed851b841c2b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d27caa53a6b8cd7522efb167924d4b04e7ee4184f9da428b689906221491dec3 +size 96889 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..049d25643da872c52e351dacd8dfc51c3190b398 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Brass_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:15d1014021831fc6a15144e9ba7d2661cadba7ee206deefc8bdf05ec2cbead95 +size 97926 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..404fa4151dc1276f64e82829b10c93ee9da6c40e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cbd6d882d6613a5d325a9642adf6fdda336218a9ae1d3c96b8941d68f65a0d0 +size 97286 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..1f180981c68fe8142cf8813f2b7be02c679cbd23 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Copper_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a7c48dd8f088b6fc4a1ac3177787ac660a1f6ecde97d86f46317e464b7249dc +size 98465 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..a7d2770360c93d8ec486fbf655eeaa0847628580 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69046ba5d3ef40f6dd882f3110c4a19976c8fd83ff634f4a2f43d770ea801bbe +size 98753 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Matte.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..c5c27023c055028e52d8407fffddc48a3db65dd0 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Gold_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b9163fc7ab01125544443341336e464e005ef070ff8ebe9487cc6955a481bb5 +size 99157 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Brass.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Brass.png new file mode 100644 index 0000000000000000000000000000000000000000..2b694685a6584f824229671e2fa908a01021f250 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Brass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd2b13b54489baafdb59ad86fccaa146284e29d991ad88018757f8daf50e195b +size 94626 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..0c18a5d5ee9abe033f37e1c88b7f05ecc4476b76 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_02.mdl@Woven_Metal_02_Steel_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f8ddf92780a4fedccd97b5cb993a91673678a5a0754efbcfd6f32db5fcea1fe +size 93577 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..a7329fc090c7f646bc8a0733181c8eae47a724bf --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5051c37432f5c32da2fb205f41e8ac434fe0064843a98d1399fecb939d678b30 +size 98381 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Metal_Mesh_Weave_03.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Metal_Mesh_Weave_03.png new file mode 100644 index 0000000000000000000000000000000000000000..a7329fc090c7f646bc8a0733181c8eae47a724bf --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Metal_Mesh_Weave_03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5051c37432f5c32da2fb205f41e8ac434fe0064843a98d1399fecb939d678b30 +size 98381 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..174a105a7d1e1cfed14cc88896b0d1b53df19b3b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f441f8ed4b55ed1925d2bc3f522a2857a2238a9174b71847683b2e11c7e0e0a +size 98913 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..f4c3f0d5b1412443a81dc063dfe73244a58d4f1a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb68234936516ab7294413becb12e1f7eeeb67354893a5f950689ffea32e88b8 +size 102433 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..5682b682a00eb2b2d4c2466eca5eeea00b8bb73e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Brass_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6b7a4dd890b3fac5137a7ff6f3634ef7f35f517166a8a1ba6b1967bb47407b3 +size 102480 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..96a55a23735e7236a8430ae4dc137d7f7a95643a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3b1f0c01e1f5215df4abaef743b8de07ef9ed84cae42ff12f0192de9f4ac0aa0 +size 99682 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..745ea50c60a19ea9c4709a534313e1ec8ef7dd01 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:091077c28ebd719177717f8e33ea0ba53a29fe965fa87e47e85b97be868964db +size 103258 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..2db50a87f948621e7bdfe2677a194aa879db8cea --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Copper_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2697931a9b1f3ca887f8d760092cc49b3101ee97da685d1fd0fba26e503fac06 +size 103579 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..c4dd63d8ace2fe12e6de33c2b9200453ee286e1b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba8ed425db6e453c5f63551a82e3ee9e17b3078e45b91f95481865228de819ab +size 97383 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..0ff695ce5d01615a1ac3895daffa6c021327d62d --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a645b685af71a02280e937afd70444b12dc1206c6a5499c00d91b9b3a7410b9 +size 98138 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..b87c0d4da077babaddd97990ce4b32c8ee0fb0e8 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/256x256/Metal_Mesh_Weave_03.mdl@Woven_Metal_03_Steel_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb87d4150ec380dfd6e953ac2bef5020494e36dff6e06aefc168ba9f86497f77 +size 99508 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Metal_Mesh_Weave_01.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Metal_Mesh_Weave_01.png new file mode 100644 index 0000000000000000000000000000000000000000..40d5244272af57c7d420beb861c58a6fa6db4310 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Metal_Mesh_Weave_01.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:add8109f0b0764b3c3aa0d97166154281dde4be206d9d280930aa95108e3a0d9 +size 96616 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Copper_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Copper_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..79ffd9361eaad401a11ad1f2c8e13339d1bb96c3 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Copper_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cb63a09c0de49972959cb6b517c40a788723ed00b04f2f17b6221c8babce93f +size 104529 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Faint_Copper.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Faint_Copper.png new file mode 100644 index 0000000000000000000000000000000000000000..8b7c372f6540a2d9e01a978a8d00fb21f7401c84 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Faint_Copper.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90b38b015360ef9e8f806163a6dc861e198f555cdace96340393ad517b991e44 +size 106993 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Golden_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Golden_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..af40a6f45adcc53447510507eb60419deb1b2bbf --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Golden_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b57fe484ac6e72c6490f8542c354d4d3f404d7d4742373f515c51bdff82b993a +size 103596 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Pure_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Pure_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..fc0719748f0e06c58e834694c7776f121a4892cb --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Pure_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26fd383307a67858ccf954c8d83c3feb3fd3c54b6bf0a196f4d5e4713b7aec7e +size 105885 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Steel_Brass.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Steel_Brass.png new file mode 100644 index 0000000000000000000000000000000000000000..78cb8f62eb8ea6c00c1d252b0e8eedbb364d522a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Steel_Brass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:677765a0e5d8a725c12ae0ac7b57f6427190ec4456bd1af9bb9a6a13177d5fe1 +size 106385 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Warmgolden_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Warmgolden_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..ff310e5302d6ecf485048cb05f2be0d65acabfa9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_01.Woven_Metal_01_Warmgolden_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c71837f302f47a78a5b09667fa6eabebf2490b7b0bf4e984ae297974f2fbd6f1 +size 104842 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Metal_Mesh_Weave_02.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Metal_Mesh_Weave_02.png new file mode 100644 index 0000000000000000000000000000000000000000..3fadd1e952c656e24ba230d81a41b5fcde68bb10 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Metal_Mesh_Weave_02.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70b29958c2a9c8e9e9830fa9822b7996f5a627664232c39346aa4f98b8fcd6bb +size 95086 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..7a287aa5e3ca3e0a61f87b52b8e28c8e443ce299 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13237cc4f8fa348cbf78d4e9467e9799b4c6614ffcbe26f5fa4060f078d08805 +size 103649 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..398911ade85f9f7dc5bcb826704c1b99817876ac --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Brass_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8c649b02efa9004f7144955bf3997d3c6bc3c86651f4d28575a393edc04b14e +size 104252 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..800fbd5c60ad5d597ff9c070dc5b8e0b7389e795 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40476c1e394f4411f4617ce03bfbe88f53b453625f76c71de2564e2d0c6edcaf +size 103218 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Steel.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Steel.png new file mode 100644 index 0000000000000000000000000000000000000000..a8922ae73a1ef69c108f74d79e2212389de77002 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Copper_Steel.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d6fc9e213a7f964ecc76cbb415be89b477cabf308987a45f5dd8e9572255643 +size 102680 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..4942c79bdd663b5c6c11047939032aded0b141c6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed730d62338ca4a56fc041680016b6154c584947f61567e96a6712bf53aa1084 +size 104990 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Matte.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..23323234b89c08c6c8c7c736a368938034515d21 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Gold_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7ea7e27828ec4dba5c13bec3c511d784e1b5686bd8fa65d45cb5eb940c3cc13 +size 102987 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Brass.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Brass.png new file mode 100644 index 0000000000000000000000000000000000000000..0b2d8313ff913f34edb797659a79f721111d341f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Brass.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bcfe56d8612a4b357e4acfe6012ffa6fa3973def19e1885da1dc3db8aeda254 +size 102053 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Pure.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Pure.png new file mode 100644 index 0000000000000000000000000000000000000000..785056ecb6a84c2d88dc87a27b17032df6787367 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_02.Woven_Metal_02_Steel_Pure.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a855ac494f4f75ce72e7ee5e240b43f6f7bf19a4ad6ab5fc1584563e327287ce +size 101768 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Metal_Mesh_Weave_03.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Metal_Mesh_Weave_03.png new file mode 100644 index 0000000000000000000000000000000000000000..ed61a45cf228668181796b8efd2a202958d1504f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Metal_Mesh_Weave_03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c03ded490daff49229a28ec3e6b81722a58f618eb617d21ce5069ff903e5bf2 +size 112756 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..a31b63b919a8c1e0c86ea5f264549576a0a6f69e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d51d99caf4bca6d489cc4a3bca8aab96bdd7fd68a8c9c747a831f2a368fce08 +size 109633 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..3f00d3759f454d85586f70c70f87fdc79d8cacc7 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb4ddfe2f288e8b8f660c921cae1e91639ab6f3bf85f19acbdc8740de4be535a +size 112414 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..096581554d2d56c8e7a06c9140e72d729faca0e4 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Brass_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d5ea4799c10b08d7a98f9073652d8745fe5a88ecd9720b353d9ae54c81126aa +size 111244 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..d0047791d7b034609abd2331861ad784b6a0e46a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:409f865159bc77b6077efb9c053ef7dd023242f71a7b5c8cd0fc94e8703a2098 +size 109031 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..7e46a014c51183b5f990904ae391aa794efc63aa --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8470f0c92e4c979b544d0cd21710958b3f6a69ea2055572ca1ac8f3c53083f6c +size 111872 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..cbfd87f89a94a598d8b31302a4c4263ab75353c4 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Copper_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83147c637f53ba3f916021fd0638c80995dec14ce6c09b92c848a32cef324644 +size 110539 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Glossy.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Glossy.png new file mode 100644 index 0000000000000000000000000000000000000000..cf8ff45f7efd6457291920bf2c0f852e233147ad --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Glossy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e6a4092aca0beb5acde15ad8d951db096910a6222b2a8f37f054e120551a8d8 +size 111520 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Polished.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..1047cc9d1fda6fb80702af3bf2634eea8a614aa8 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4cef7792630754ef91409b8c6c8fb75bea531a425dabb393974e1cb797049e8 +size 113818 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Worn.png b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..954c660e1c3c32bc534b9ed2d03df12f9e56cd63 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/.thumbs/Metal_Mesh_Weave_03.Woven_Metal_03_Steel_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7619509c5e027330487fb3e3a037b1e9d593daf17733dbac5fd95e626a39117 +size 112670 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_AO.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_AO.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fd773045611f3b5abe7804067d61fc103603a166 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_AO.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c2a9b41cb7868e6c87ec177c2b6bb59c4c8244203895a60288b98230537c745 +size 34416 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_brushing_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_brushing_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b6aa2466225c6a319adc35eb0e94d5313a375fc9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_brushing_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27cd76518e31928b1717eadb3e3efc4a3614b990b21d39b8b10e5e02c4860329 +size 3660848 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_colormask.png b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_colormask.png new file mode 100644 index 0000000000000000000000000000000000000000..4a4023d86b2747566725e540b7bde69cd959c834 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_colormask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6692d4463f85f1e2ebd70c3e651ee75fc7917ea475240ba2afa6d47aee9325b +size 9194 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6893296c8c64f30dfcd16984b4e7526d6be40d8d --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8032fa341d9de1f3fdf0cd9a57e5afb16073d8125d0045db0452698d0f29aa74 +size 104683 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_rough2.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_rough2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2d4f2555e9e3d0882e701c09a1283caf93d15c3f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_01_rough2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b04b233bf00151a72e4a5c6382c8fb8e2a266097062dd668f9a189340a816b87 +size 452632 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_AO.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_AO.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3c1aaae71a2363ef05bae9642e8cfef346930af9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_AO.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33a0f8d661cde7458eca0bbfa177ab7c5c98bf3ad8e2976cc23653175f6a0e7a +size 386339 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_color_mask.png b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_color_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..c5be50af8218243410752553569a6ce40424df62 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_color_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:20ccf073159bc9f9640dd9ef7790168dd24d6202e45eae66a3fc4be309cf780a +size 4212 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_metalcolor_mask.png b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_metalcolor_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..8348d1f0e1533154278711a8c3380a82b3998c29 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_metalcolor_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41ae4b6a26b05581f71d724e6b355095448110f77425369996fd68b5831ed886 +size 669924 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..433dc5453ebebb8b81a1fb9aa4cd0908f92f5abb --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:54c49201f9047e520f9bd31f2a52d2b173c1d652751b9a3af1edbbd6c68053c1 +size 937997 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_rough.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9334daf046c20ff400ad8131bd0b88179a28d166 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_02_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e0fd7799dd4a4947638707674bbe805ea9b539e6bf0587ae228b2ce1cb448aa +size 819354 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_AO.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_AO.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9991bf416978aebe65d616781b42d023378fbf1b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_AO.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae55840b61564eb926f1355c05c2e6750ac5d047484faf8ff15c45f6fbec318c +size 394535 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_color_mask.png b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_color_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..17ab486e4b4d56ba4943c1ab50f07b8be50a741a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_color_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:307e02b87c7cf81b0f05f223b3e6c81bb93d06b851d887e2fa5dfb01190a49d9 +size 2198 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9ac97e77601efbc84d5d945ed8612223393aa70a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff862bc6859b0854eecc72c402cd5d9975af6b034796cd3376b3e5787ab7463c +size 607086 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_scratches_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_scratches_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0af3dbfadfc783d2c6345cc3e4aaa78f30b3d6dd --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_detail_scratches_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2abff067df8109e3b1cb12631b4df6b9259be8b0ce68666836af7a792d70e90f +size 298665 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_metal.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_metal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ae74a413b565125e6037d348b55742cbb2a1ef81 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_metal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e86cdf5e8dccd1f4bb4d7aaffbc21ea51ba140c848ddac8549e97bf98214929a +size 711344 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_norm.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2f575fcbfefe08b74ab3a042a2c4b501bfab88ad --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a0f3460be4d7f3a8cf5e68583e993591a465f53993bd2b4fae6e1bd4bafafb3 +size 197435 diff --git a/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_rough.jpg b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c78f4760e962a8e264c6d83e1c41b3a0a977144e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/Mesh/textures/metalweave_03_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96557914625b8ce449059aa3542ac4ca69b64e82b3c253202aac04bf63aceddd +size 3441599 diff --git a/code/third_party/vMaterials_2/Metal/textures/aging_copper_gradient.png b/code/third_party/vMaterials_2/Metal/textures/aging_copper_gradient.png new file mode 100644 index 0000000000000000000000000000000000000000..5be3ae53e46f72854b488a6ff1a430e09af9ab8a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/aging_copper_gradient.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24a99bf2c4899628f401757ade7b89d98f558ce5e13a754ae6bbf3b1bad2e892 +size 5775 diff --git a/code/third_party/vMaterials_2/Metal/textures/aging_copper_haze_weight.png b/code/third_party/vMaterials_2/Metal/textures/aging_copper_haze_weight.png new file mode 100644 index 0000000000000000000000000000000000000000..3fcf784f0ff0f8a697c5889cbd9904a7795a2133 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/aging_copper_haze_weight.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:942708865b5f0ae7cb752aee3cbacf55a82aed739a57550016d815940131ab6d +size 4792 diff --git a/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg b/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..db5c9b3415954a504caa9486285924092b9e7308 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7a9a2eed10d12e50f7148ad6c7ab1294ab5f94a6c50c031c20953b432a4fcbd9 +size 4679540 diff --git a/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg b/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c0f436c85cb49b5bdcca6cc2b7b04a8b54f2efb --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0faa70a6007c0b243335e69a3a3ffac9353763e754c75b60a2a2bf6de861d6ea +size 3505179 diff --git a/code/third_party/vMaterials_2/Metal/textures/aging_copper_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/aging_copper_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..47e22843934d9f643523065406d7ee33f27dd080 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/aging_copper_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:599d02d9e8812a6bca4eb9c4c61b109f8be5b34e41fe36e17e76a5c4458502e5 +size 5484772 diff --git a/code/third_party/vMaterials_2/Metal/textures/analum_multi_smudges.jpg b/code/third_party/vMaterials_2/Metal/textures/analum_multi_smudges.jpg new file mode 100644 index 0000000000000000000000000000000000000000..758a2f423b3c6d01ed614dd33a9b1a87a0806458 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/analum_multi_smudges.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e07bd775d3ceaa7011f8011522ce05194c7d02b20f0e40cae2fdd30f75a27342 +size 3385374 diff --git a/code/third_party/vMaterials_2/Metal/textures/analum_scratches_dist.png b/code/third_party/vMaterials_2/Metal/textures/analum_scratches_dist.png new file mode 100644 index 0000000000000000000000000000000000000000..e070ae66b347939be3f04c277ee4f7d8ebf18ea6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/analum_scratches_dist.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de7f288c4d400a5254df0935b8ce2e9194329b8f6c8182ec5d05bf2548b685ff +size 341253 diff --git a/code/third_party/vMaterials_2/Metal/textures/analum_scratches_norm.png b/code/third_party/vMaterials_2/Metal/textures/analum_scratches_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..2249a2d05503d794a4f9b634a9cb876032a3af88 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/analum_scratches_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:259b79db6c708f1a8fd26105513d8ea5b846d4641c379e463cfafa9b5e89bea0 +size 431691 diff --git a/code/third_party/vMaterials_2/Metal/textures/analum_worn_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/analum_worn_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..19cdac47c21644f509eca1057703eb2260052f73 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/analum_worn_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2620fa2ff5bdd7881358977620ccc4a4930bc99ea7088db8905713eb5e962518 +size 323702 diff --git a/code/third_party/vMaterials_2/Metal/textures/atlas_02_norm_dist.png b/code/third_party/vMaterials_2/Metal/textures/atlas_02_norm_dist.png new file mode 100644 index 0000000000000000000000000000000000000000..a368ebd9ef175a3e7566594df7f06c1af5f5e27e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/blued_steel_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/blued_steel_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..54098c9c222a47f3d79aaaed20ccc2f05c4eb167 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/blued_steel_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c9cd81db90988be5fbc6597983490f5abb164fc3c65e7da3a721a72b8dcc4a91 +size 2510845 diff --git a/code/third_party/vMaterials_2/Metal/textures/blued_steel_multi_R_rough_G_smudge_B_scratch.jpg b/code/third_party/vMaterials_2/Metal/textures/blued_steel_multi_R_rough_G_smudge_B_scratch.jpg new file mode 100644 index 0000000000000000000000000000000000000000..55090bf8b00fb12e4f2217ad84a4d9fc39531eab --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/blued_steel_multi_R_rough_G_smudge_B_scratch.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33891a495413227a5dba84c83895681a5c5e3ddce99d83094559755fdbfef312 +size 3679326 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_antique_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_antique_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b06780ccbf497c48ff96acc2448710f97a6198cb --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_antique_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8e4bb2afd45599ad867944fc458147b49dd20d57271242439d5251c4e7f0964 +size 2030923 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_antique_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_antique_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8e475f28d9554cd6f62814d84df22bef737773b6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_antique_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1eda7e0e25d82efa1f3a6e627ce74b4bf085661483d9341c5704c6640faec48f +size 1281923 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_gradients_yellow_gold_red.png b/code/third_party/vMaterials_2/Metal/textures/brass_gradients_yellow_gold_red.png new file mode 100644 index 0000000000000000000000000000000000000000..d2284d8dced0e95612b370d75d70ce3633cf0b6a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_gradients_yellow_gold_red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4ad026bc24f01f7e6ca1b22707a00a3234e61024b06e737b09af97aa9f186f7 +size 334 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_hammered_multi_R_pit_G_ao_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_hammered_multi_R_pit_G_ao_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..68a33ff0c9ac6e8b95886e44a482c1384e1ed594 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_hammered_multi_R_pit_G_ao_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90e1b87b66d9db6f593b094aaaee8fdc4b7934c25e9938a2eff1503e0cd5a29d +size 5691375 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_brushing_G_scratches_B_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_brushing_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c31b1d7b46b72bdea9ba9b58268ee8a247bb140 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_grad_G_scratches_B_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_grad_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d8a28f2b6dd228c987c76624d15fa6a82bc215a9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_grad_G_scratches_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0dde5d8e4e5a0bd46cbd9a16f98afff97a4ac712be378d278f0f0842ba17a7d7 +size 5255631 diff --git a/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_noise_G_scratches_B_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_multi_R_noise_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..169a271b0ac5142e72e8d74e46a6c98f7e25982a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/brass_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/brass_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..69068bf0421593c0fd8000cb4fce6d9ea769b6d2 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brass_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fbaa8145d22398ed84372e743b6845def2f22343ba54cfb44c80eebc530c177f +size 862195 diff --git a/code/third_party/vMaterials_2/Metal/textures/bronze_antique_bronze_antique_multi_R_dirt_G_scratches_B_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/bronze_antique_bronze_antique_multi_R_dirt_G_scratches_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..3a14665242a78739ffc68a7993eac2887a7a4e36 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/bronze_antique_bronze_antique_multi_R_dirt_G_scratches_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e117ea9c98136c25c879cdb85aa1bdbaebbd65b4bfdf38f4579e87a56e1013e +size 5897504 diff --git a/code/third_party/vMaterials_2/Metal/textures/bronze_antique_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/bronze_antique_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c3ac5db1a56a62292aa2b0c446178dd98b83e3da --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/bronze_antique_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:300b9152540cc2c5586c45f8b511a2e689f58129fed647fb98bba57d0ad1e884 +size 2033096 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..21ec256ab777f96537328873f5f8414d2d7d7d68 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:035ec48340ce3fd8ae874e27a78b3e4d4fd7557548329b7cb95f71dc1ce46042 +size 1418954 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e1b2a35c2fe5c50f2e38de6dd892486013f8f09e --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5eb975e5ce99488cc1c08b191c3bcfdd628ec515f92e076d566f93eb380e8498 +size 824545 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_patina_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_patina_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..23217b4ab0f9c77199f256f690758f13f9db2449 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_patina_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:60367385b9f0e024cc097bcdd9bb5448e44729b7a1167711e5e76637dd51abbd +size 404974 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_ref.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_ref.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d1895cc10045fc8b4c09335a22c269b049d5e902 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_ref.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ffc3e3481ddca4b928bb72e46073ad420c9621dfe1559239d4dc1828dc0e061 +size 719606 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9c5b86492cb797703266a0f400d0c2e163e9d2a1 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cecc34507ac09074a99b7c66f577d2265bb742481b51b7aad74d8d2e3cf8c7d9 +size 2729601 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_smudge_map.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_smudge_map.jpg new file mode 100644 index 0000000000000000000000000000000000000000..336c0a0e5ca3bd3cc321b0ceb28c69df985bb994 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_smudge_map.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:113cb9e348a5561efaf6c5a672dbdf0a370be99cf20b7543dc51eaabef5af83e +size 3096394 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_spots_mask.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_spots_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..46f80a5392240c2f70068ffe66080016fcaab86d --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/brushed_antique_copper_spots_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:464d0a105c6d1f910776e61174b24bf0ff15298ddd9f1c1ce097023b45a7d9a2 +size 636412 diff --git a/code/third_party/vMaterials_2/Metal/textures/brushed_metal_linear_R_rough_G_scratchvar_B_impurities.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_metal_linear_R_rough_G_scratchvar_B_impurities.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fa03f6ba0a9df0a06a1ec9ced0ede8254c2ce3b1 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/brushed_metal_linear_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/brushed_metal_linear_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..275dca55737f9d3ddcbd4569a59ac0faf95b0f0b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/carbon_steel_ao.jpg b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..84fe18a517355ad8f9c622be424e38b168fc3217 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:424730ed2269a77071342c2f36b5df7145d9245728565766582552c9f2935bbe +size 3192900 diff --git a/code/third_party/vMaterials_2/Metal/textures/carbon_steel_multi.jpg b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6dd24239b27482d97eb3292812fb150b5e179dd9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73ea2fec4f10ccc4add48cab993cb5c57b197d82d210556429944ef9319092b4 +size 3527961 diff --git a/code/third_party/vMaterials_2/Metal/textures/carbon_steel_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..aea9aa9dc3c6599ffc0d8d99c21527a601fc8f9f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/carbon_steel_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a4678770024f5092e440d144f7d8f8719e1c76cde1be49829bd2efb3260c2cc +size 3387620 diff --git a/code/third_party/vMaterials_2/Metal/textures/cast_metal_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/cast_metal_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8391834c400d9f466bbe717e957af59dad0d837c --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cast_metal_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94163d8d256f3df1bd1452e7ec18ae3bd8e8008cf67bb8c9a85a767cbfc158cf +size 2449107 diff --git a/code/third_party/vMaterials_2/Metal/textures/circdiam_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/circdiam_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..22895d9218ba90a11a974d894482b18139ab38b1 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/circdiam_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:954cf478f2e315ffa01ede4087091be8100b3f791293de374ae05ef3c644d287 +size 315240 diff --git a/code/third_party/vMaterials_2/Metal/textures/circle_shape_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/circle_shape_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d6193533ba54963631357909cd8c5495bda9ecc4 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/circle_shape_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0291ada78c4515ee833631b89f1d89a88e80027017028becd811a1c3f680a0d +size 584188 diff --git a/code/third_party/vMaterials_2/Metal/textures/copper_patina_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/copper_patina_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8abb2d04db9d886fd2e0cab7b6b6e45afe350645 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/copper_patina_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c59bcb37b4618f759dfe0e61b75a976555a3b23e626f6112a39319a5c419c48 +size 5627717 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_metal_albedo.jpg b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_metal_albedo.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1f726e27cefa569a337738bf5a55bc99b4b7f007 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_metal_albedo.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8652cb23736cb21d4fe354c286c19aec6e6526d85fc9b442c07edb28236b3e0e +size 1729606 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_norm.png b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_norm.png new file mode 100644 index 0000000000000000000000000000000000000000..173b7af8e98185233ac52bc12255f6dd7adddd64 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_bare_norm.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5999da32537267ca295d0955ff5db6bf97c537d2359124ddf18de74f36a5d94 +size 758753 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_chaotic_paint_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_chaotic_paint_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c0857f8d556a605bf0a1ed076337fa8737f3393a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_chaotic_paint_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:079d7b63f49b9f04d350bfe2ba7322be3fed0acf17532a51c0687ac8c51df7ce +size 2234857 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_crackedpaint_multi.jpg b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_crackedpaint_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7574731dfc5d340c946951e39e0a34922cf9e70f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_crackedpaint_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c180e1d87e64a87d41c16cd5292e696790efcc4a4b0f635e0a36326ba0850f3 +size 7157220 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_damage_multi_R_mask_G_trans1_B_trans2.png b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_damage_multi_R_mask_G_trans1_B_trans2.png new file mode 100644 index 0000000000000000000000000000000000000000..ba6e69180a4a62f5b55425829d9bbb6bb2407747 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_damage_multi_R_mask_G_trans1_B_trans2.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df975a2f3148bdb79d782cf13918e196877f56fb28fc71cd49c7f759463fb7cb +size 902327 diff --git a/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6ecb111e259bacfc12959a92b0f99f8ea805a6c9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/cracked_paint_surface_met_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad8d4364f7a5bc208b358c34152ae1ea4713f283197b493dbc9d7d72deddfeab +size 1023125 diff --git a/code/third_party/vMaterials_2/Metal/textures/dirt.jpg b/code/third_party/vMaterials_2/Metal/textures/dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..dfa1cad226bd98acb2ab7356e22fa6ced3f91e07 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc93abf156f84219d14c99e1cabe5a7702cac42ff54162c0b04a8d20fa34c7a2 +size 792158 diff --git a/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_multi_R_ao_G_height_B_opacity.png b/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_multi_R_ao_G_height_B_opacity.png new file mode 100644 index 0000000000000000000000000000000000000000..783f8270508055f7ac7c4627057b92cd494307c4 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_multi_R_ao_G_height_B_opacity.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62647120aec22dac38090ad6cbae5aae76fb10278b9934fdeb8e9a8af2e7a93f +size 1421832 diff --git a/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f722d75e478fae52f7dba009fac0a6037c281916 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/doubletear_shape_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bd49d705b7d1a0ba8bf2082a1565587f4d1899565b06c62e0b4598650152a73 +size 780381 diff --git a/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_multi_R_ao_G_height_B_opacity.jpg b/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_multi_R_ao_G_height_B_opacity.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c6c5bc5ce7c578a884b2fd9a07d2b6e823c9cc6b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_multi_R_ao_G_height_B_opacity.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b7167307b6412e66a0c0de8c4f03d5ff71030ecd13ef5f1044e128a2854bd0c +size 989895 diff --git a/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2633c3764a412d21390a21dbe7543b06ca0cc0f6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/fivetear_shape_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b49c89c011877a6a48008de843a509e37e9f18b1d0726b379cf06aebe37b1d0a +size 1032704 diff --git a/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_rough1_G_rough2_G_ao.jpg b/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_rough1_G_rough2_G_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f047154bf35933d4ec1f18630fe38599b04c2b94 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_rough1_G_rough2_G_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55a628de7403efe305b5e70acbf5eaf12366aad291afecf2fc54dccff59682a6 +size 2459224 diff --git a/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_smudge_G_splotch.jpg b/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_smudge_G_splotch.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f92b64abbb24690bcc04572354688510bd672192 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/foil_crumpled_R_smudge_G_splotch.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34dd8ce54677e42047cff5291f95c32ae926954f519e69d74a27dff5f4d7ab0d +size 6000999 diff --git a/code/third_party/vMaterials_2/Metal/textures/fourtear_shape_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/fourtear_shape_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0622f94d3d6b33677047676c8e6a61416098fcdd --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/fourtear_shape_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86847938c63eb0f6e7298a7a96b5e629b19110f3146d5914cc5e650f066a0fa6 +size 696231 diff --git a/code/third_party/vMaterials_2/Metal/textures/hammered_multi_R_pit_G_ao_B_hammer.jpg b/code/third_party/vMaterials_2/Metal/textures/hammered_multi_R_pit_G_ao_B_hammer.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f7a8dbefc7467a4f1dc41dc4d8881e82a9337eb0 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/hammered_multi_R_pit_G_ao_B_hammer.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1fb0ee77664fdefbafb111ea2600cbc7054753a7ef7e836a6d16186f7adf35a +size 4822565 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump.png b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump.png new file mode 100644 index 0000000000000000000000000000000000000000..2b9b5944a66d2c9d9d07eb0207887afb983acffc --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b642788f0ffe1565fc48767b73e0188322a605fd9c94f4cb8e41a119b6ae2696 +size 322166 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_02.png b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_02.png new file mode 100644 index 0000000000000000000000000000000000000000..0b216a4bd836c637b526d4f97436f707812db5c5 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_02.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e1d859f50afe9dd5035c7fe345b7741c06b94870c0fa1762a4e37d421bf456ad +size 1493349 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_03.png b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_03.png new file mode 100644 index 0000000000000000000000000000000000000000..244bb5e2aee1e5110bcdf414d58682668b041be4 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_dents_bump_03.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0abf0db3f5c4eac1c594df1cec7d53fe913deb79c737d0f20216d9beccc9ba22 +size 977004 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_heat_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_heat_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bb951a28b026d9186fd41f146c1201f6d2885603 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_heat_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5aea609630353cc4848204863f08e1eee5188e0b7a8e9cd0f2aee7144c962d4 +size 297389 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_dents_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_dents_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ffc5fded52470006b1b183e552b342bd441bcf2c --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_dents_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f8e47cbf5cec9ea02e85d46e292f584154c1a48b1cbaf22a9f30c6aa7751ecd +size 1024489 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_spots_metal.png b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_spots_metal.png new file mode 100644 index 0000000000000000000000000000000000000000..d37ee66d8bb6df27042ebc28bd267dd9d473ea82 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_no_spots_metal.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4530e0906158ebb1aff74413bc0eb564c37025bfb5ad85421a5278f043d0d320 +size 1195335 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..622921ba834df6dfaa93b40f2b5065758cc49f85 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2adc2ca380fd5ca43957c5dcf75862a96735457ee3bf398e9d53b9f2882547f7 +size 4181033 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_roughness_no_spots.jpg b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_roughness_no_spots.jpg new file mode 100644 index 0000000000000000000000000000000000000000..57d3b147e42d83dc30da353cfb14297ec9d57b07 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_roughness_no_spots.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c133af1055882bb4febb259f1ac1cc1f2f77026985acafac1fc2abc2fd043819 +size 1009775 diff --git a/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_rust_diffuse.jpg b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_rust_diffuse.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1dfb806155892e92f6ce4a24131b7497cafcf3aa --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/iron_pitted_steel_rust_diffuse.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c06a766944e9c7cc86af782d94efe4d83d253abdf546be5317bc60b130d13511 +size 422369 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_antique_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_antique_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8e475f28d9554cd6f62814d84df22bef737773b6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_antique_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1eda7e0e25d82efa1f3a6e627ce74b4bf085661483d9341c5704c6640faec48f +size 1281923 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_base_G_dirtmask_B_dirt.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_base_G_dirtmask_B_dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a87c2b2baa6d18689d110d809fdc0ef3a6693dc2 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_base_G_dirtmask_B_dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c42f6fa4bc53551a3f9570f1ba41917879e7649fd67bd1bd7b694367ccad678 +size 2899859 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_dirt_G_urough_B_vrough.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_dirt_G_urough_B_vrough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5897960a5f38417be020c0f77147879186f58678 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_multi_R_dirt_G_urough_B_vrough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42f4f165fc4a624362fc389536f9ee21c5394e7886fa8232349a863ee614317e +size 3547124 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_galvan_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..597d21223b1619b7f81547f704998a34adcbbaca --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_galvan_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:10226261c24ea1f695828e7183e0ab13d1b12798b955de4347ffd93025100dac +size 2516459 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_knurling_R_rough_G_curvature_B_reflectivity.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_knurling_R_rough_G_curvature_B_reflectivity.jpg new file mode 100644 index 0000000000000000000000000000000000000000..14dba5511e0b8a93ab1e2a50bbdbb673b0f04204 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/metal_knurling_multi_R_diff_G_rough_B_grunge.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_knurling_multi_R_diff_G_rough_B_grunge.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f773c9cafdd2fa71939326f23ba94520cda6be24 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/metal_scratched_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_scratched_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..27dcc594e2645788d9562414bf0af216595d2ae9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_scratched_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:553bffe8944a4e85850b92cf5f8c2bf561347b87dde741c2f11507650f2a5123 +size 1997338 diff --git a/code/third_party/vMaterials_2/Metal/textures/metal_scratched_scratch_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_scratched_scratch_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b5b09ebf9955e03dfc4ab47f095f7380cd485197 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/metal_smudges_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/metal_smudges_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..32000971764b8a672817ea01556d39a62461ab7b --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/metal_smudges_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f9e82f8ea8c39d649173c220617eedab68f68a38c749ffe8b7c6c8195ee3254 +size 2901291 diff --git a/code/third_party/vMaterials_2/Metal/textures/pcb_copper_diff.jpg b/code/third_party/vMaterials_2/Metal/textures/pcb_copper_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1d96984f938a52d0eb6e00ddb1eaad851e1ea6e2 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/pcb_copper_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c68b6a7e34ce9a1dc4cca401a0b7e2b200451ce7579d7d1d68c55bd757c0def6 +size 1231290 diff --git a/code/third_party/vMaterials_2/Metal/textures/pcb_copper_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/pcb_copper_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e4008c49990dca7330ec3ebeefba34ce0e70d1a6 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/pcb_copper_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d4e7172268f0e4ffc56b9b0bea6fd2c725cf3aa96d5d6f14f78648fab21f91c +size 1465546 diff --git a/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8d6891420dd1986590315ea5a8d3d691d16d6104 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:603aa0830e3ffa854cdeb17b9555121e89df5ef29cc5d1693f9d2024323f2fe2 +size 1849285 diff --git a/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5cae850d6d594acbf98937ecc91cdbea4db674c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/pcb_goldfinger_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48c72c96b264424ebd9b1c8cf12f6599cedf5f76cbeb1fb6fdb5c70e8f6dbe60 +size 1259173 diff --git a/code/third_party/vMaterials_2/Metal/textures/plate_dirt_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/plate_dirt_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0f2ba9ffa0449e6f07e9caa19427c4f8b509816c --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/plate_dirt_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b78c6dfdc8da22e89cf8384708aa8b7993b8f773bf1cb995f934aed11bc7ba4 +size 1191931 diff --git a/code/third_party/vMaterials_2/Metal/textures/polish_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/polish_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f1115ec2ecff648aabf643783ea22b5220000883 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/polish_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaa3ccf6620d6ddfc80d31b4dde6df13af099937eff5e9f0edb0c6034eeb3995 +size 3060774 diff --git a/code/third_party/vMaterials_2/Metal/textures/polish_wipe.jpg b/code/third_party/vMaterials_2/Metal/textures/polish_wipe.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ec5110c16be2dcee0dbc685149705405cf85325 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/polish_wipe.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb396b1ab0703bb06b7f8db5bcf83861d6c149e10538d6ea5466685e2b477be1 +size 3509286 diff --git a/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_dents_G_crust_B_rough.jpg b/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_dents_G_crust_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7ba5a23e7a3fa371ce7f6a87acbd62d8b36ab92a --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_dents_G_crust_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:454906861d0edc95498071bba0453e5acff4cab7ee9fcf209c4532eaa46857e5 +size 10917898 diff --git a/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg b/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a4eeff412961fbc5996f0c335d284609923b3b5d --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d70db4dd56e5307f6c86c1a11f24f05581b1876499ff0a4f838022e9e2aeedb0 +size 9683102 diff --git a/code/third_party/vMaterials_2/Metal/textures/scratched_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/scratched_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..23bccd19228c94a6ed278d7040a2ad8987f4d3f5 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/scratched_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:07ddddeea1bd74d48aee7d92f975bc041bcfd0633eecf42dd73bea897b76f76e +size 5076504 diff --git a/code/third_party/vMaterials_2/Metal/textures/sheet_metal_R_rough_G_ao_B_streaks.jpg b/code/third_party/vMaterials_2/Metal/textures/sheet_metal_R_rough_G_ao_B_streaks.jpg new file mode 100644 index 0000000000000000000000000000000000000000..8a919e141894a2242175b13c37dee2571da51ce0 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/sheet_metal_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/sheet_metal_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b954935687b2c9052528646b6e2e2f5136d85a70 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/sheet_metal_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3145f26a544857dd0163129591cb37d6c7d7934dc59aaa3611030f9f44ecd613 +size 3633863 diff --git a/code/third_party/vMaterials_2/Metal/textures/solder_paste_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/solder_paste_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2ba66053fcd3cb7f9298e724f1ee43b0ca8a4f1f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/solder_paste_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6629081839754f2611a5bc5deb058fdbd180dbd312e01ff2a7d8b9faa84b93d0 +size 574505 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_multi_R_impurities_G_rough_B_dents.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_multi_R_impurities_G_rough_B_dents.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e0da910d9df48d5987b14386f6c490700c119197 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/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/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..68d90861c27fbffe6aa660f21d7935e2fb23f1d2 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81099d9d4775db344922f1e2c52fa977841799145ee809e08d91ca7a209317b2 +size 3323602 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_smudges.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_smudges.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e36f0b26d565b2cc625b7b05898df6ad4e55c157 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_brushed_smudges.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0a0323d350c75d91dc20db6ee2a6e8a7e2e78b0f8b475726e61817efa7b6f25 +size 2232876 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_damages_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_damages_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..6c4198ec085fd890f9f37d14e7bd4bc007a6f490 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_damages_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32762c1356d4c87a57b94198d4daa97ada2bd4ad6059979aab308a4de60c2d76 +size 964428 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_milled_multi_R_diff_G_rough_B_dents.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_milled_multi_R_diff_G_rough_B_dents.jpg new file mode 100644 index 0000000000000000000000000000000000000000..706c8801a71de44a67410e254a0f97512226c448 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_milled_multi_R_diff_G_rough_B_dents.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d18403c936bb40cdd6cc72076bf31a48638ae92eebf0bb4c21d562bab6fb21b +size 2409773 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_milled_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_milled_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cf21a7713d82895ef0f93eed7e86d44511c829be --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_milled_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:86a15ebc3e1ebd40242d3db3d96aa5bf0ed15a7824cf94f3b8cac62be48f2c3c +size 1339310 diff --git a/code/third_party/vMaterials_2/Metal/textures/stainless_norm.jpg b/code/third_party/vMaterials_2/Metal/textures/stainless_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..adf52a8f37d2c5be2ee1661f03ce8c796bbd9923 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/stainless_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9186838b8ad79e26c4433a243e56fc2bdb2fc708c470f0ad53445cdce89ae657 +size 1219078 diff --git a/code/third_party/vMaterials_2/Metal/textures/transition_noise.jpg b/code/third_party/vMaterials_2/Metal/textures/transition_noise.jpg new file mode 100644 index 0000000000000000000000000000000000000000..205df4d9d7661dabe3a3553883d877add9796821 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/transition_noise.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d5c7c90981c464b1f8442bb962a268611bb3266592b79443d847a99633981c41 +size 334039 diff --git a/code/third_party/vMaterials_2/Metal/textures/tripletear_multi_ao_height.png b/code/third_party/vMaterials_2/Metal/textures/tripletear_multi_ao_height.png new file mode 100644 index 0000000000000000000000000000000000000000..464c3fab41afa987a013bdc86804d41a4fcba38f --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/tripletear_multi_ao_height.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7766b5427833b6b069c19a924cb9b43e49ad82cbe6d2d64aa673c6ef0d5e158 +size 1213745 diff --git a/code/third_party/vMaterials_2/Metal/textures/tripletear_shape_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/tripletear_shape_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ab91dd49bd85090e58eb403570bb008ef6742c49 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/tripletear_shape_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:baaa9ffaf8467734c05b59bf01434ef301eac6fcef0a19c01637b31a74098f6a +size 633918 diff --git a/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a4b69808f046d8cb106fd31971b8037d8e8210f9 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_base_G_dirtmask_B_dirt.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8fd63152bbb16a404ef36e1012a1664c002d9eab8c735c75fd02c6a66f22a77e +size 2903400 diff --git a/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a662ef0d9a6964402fc728efb3153539ce2a5bc7 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_multi_R_dirt_G_urough_B_vrough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d31e7f4b416d2cf625ac31ecff2327debd04b27f9cf41f4c024d981207f61ed8 +size 4597032 diff --git a/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_normal.jpg b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..40ef47de5669726aa603af632b6c8b6018437962 --- /dev/null +++ b/code/third_party/vMaterials_2/Metal/textures/zinc_galvanized_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df834a40db73e4b12d675ac1c4a04f39ff4bbf7c768612a841732d79a0f8e9c4 +size 2144947 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..c14f774ee95235193491b3f65c61584757dda7a3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f222d269954d1d813c7f9d513685cf88b1214c4128cb8d0a3a6a3accf6e916 +size 122509 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly.png new file mode 100644 index 0000000000000000000000000000000000000000..c14f774ee95235193491b3f65c61584757dda7a3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f222d269954d1d813c7f9d513685cf88b1214c4128cb8d0a3a6a3accf6e916 +size 122509 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Dark_Red_Raspberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Dark_Red_Raspberry.png new file mode 100644 index 0000000000000000000000000000000000000000..99e0e675f7883b67b9676f1ceaf020a01936a6c6 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Dark_Red_Raspberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0ef0b590d5e7bd0ac6f49d41fefca288c5cea0aa04be8769d126fd02ddc2fc4 +size 112313 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Green_Apple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Green_Apple.png new file mode 100644 index 0000000000000000000000000000000000000000..346e2eba4272fbe7e6143c525352855b552c13b2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Green_Apple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05afe5c9f719037fd3389b0fb9222561ebb56488ab0f5f548a8143e34a5d06d7 +size 112326 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Orange.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..319b672905dc9b9b270212c3e73831b938b2d5b2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d7a51ac2244883dddd01863463a414790c1118cfe66f1372ae70fa6c9d48d71f +size 124423 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Strawberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Strawberry.png new file mode 100644 index 0000000000000000000000000000000000000000..761cc8455f18b968e7bbb8b4ef71ec8da744862b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Red_Strawberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62e27cb98ad78898f5e10ab688042be50dad55bf043f1275dc39105e4b90abd0 +size 116811 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_White_Pineapple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_White_Pineapple.png new file mode 100644 index 0000000000000000000000000000000000000000..9dbd11f15ee229d5b24d0c24f64ff231abfb22ff --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_White_Pineapple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a27d4e3ebea0291619d727747693870a156e9d3f791ea3cc4ed439d45b7914d9 +size 112049 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Yellow_Lemon.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Yellow_Lemon.png new file mode 100644 index 0000000000000000000000000000000000000000..f17f1e20abe2654ab782a8855f1732e807af6c55 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly.mdl@Jelly_Yellow_Lemon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0cdc82e7eac9b3831d0c5a3bbe19e7bae04da37a64a1a0655c3f865d871158a8 +size 125719 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..5c7680206d85fdd430675b9a772512b03b22f284 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65bab049c9daefbf9de517964c41bc66ba41114573096f52656c2adc5ec86b19 +size 117494 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear.png new file mode 100644 index 0000000000000000000000000000000000000000..5c7680206d85fdd430675b9a772512b03b22f284 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:65bab049c9daefbf9de517964c41bc66ba41114573096f52656c2adc5ec86b19 +size 117494 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Dark_Red_Raspberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Dark_Red_Raspberry.png new file mode 100644 index 0000000000000000000000000000000000000000..d82ce678b69f0dddf62a4695c543aa8c2e4976e3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Dark_Red_Raspberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d88a97242ac837db9669d21c8795bdc7f4e4c76936a04a622e0ba4f5180afcc +size 103692 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Green_Apple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Green_Apple.png new file mode 100644 index 0000000000000000000000000000000000000000..40a4cb637ab53340d563c66c9b742033cb47ed87 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Green_Apple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d701b8cac085c284217a1b7da67c0fe700e645432678266ef460614d6ea8eecc +size 107161 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Orange.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..d102c5289e17fb66e3d301eedb2e2b750d8233c3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6101431b9c31e80874b02130b55ebaff5e5d516736e4657da9d9cfff3c1ec42 +size 117043 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Red_Strawberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Red_Strawberry.png new file mode 100644 index 0000000000000000000000000000000000000000..d05754c3b98492afeabaf0b5a014e4a6db0f47ea --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Red_Strawberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5c588b7930534c3b0304c37553c30bf2b9bd86a7dc532193217b77a84733e9d5 +size 113371 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_White_Pineapple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_White_Pineapple.png new file mode 100644 index 0000000000000000000000000000000000000000..8091031548e00e909bd2d5383327c44baf47b924 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_White_Pineapple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1637ded8d4a33da51c663ce53a50b16054a5c6a41c5b68fa6f4e9a5ad75d082 +size 109780 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Yellow_Lemon.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Yellow_Lemon.png new file mode 100644 index 0000000000000000000000000000000000000000..ee0f8a5c785c81db47fa4a60879a77bd0f330f7c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/256x256/Jelly_Clear.mdl@Jelly_Clear_Yellow_Lemon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:def6ff715a8678c3aca66f64c88b91b45e194a1c29bee5681dc1e1bbda592636 +size 117647 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly.png new file mode 100644 index 0000000000000000000000000000000000000000..b2d2e594213883a2cc05a8dad6b919bb35157067 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7bb7f588b2425a2c511367bc783cec0cba721e33c79f2b4826880fb45cca9179 +size 131700 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Dark_Red_Raspberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Dark_Red_Raspberry.png new file mode 100644 index 0000000000000000000000000000000000000000..991fcd04b2de3a469e8c61f1b7065e202581aa38 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Dark_Red_Raspberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76911715fdfd27b0bb15bc6143df280f43b01d6ad37e08b23810e59ec79652a8 +size 123236 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Green_Apple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Green_Apple.png new file mode 100644 index 0000000000000000000000000000000000000000..b8c6f025d9b051ea8a7e30ee4e8fe7eb817d1a7a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Green_Apple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:752a2d765b0d8199717b675852a8b646be47fc5217ac283b097898bf13991c7c +size 123024 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Orange.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..52b1b06e30c193a9aae8080ea60df7fc5dd57604 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c5580a5a4cffd78fb3d2b08197558b78e4d5f3e0c996f67f2a8ba7c05ae0af2b +size 136910 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Strawberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Strawberry.png new file mode 100644 index 0000000000000000000000000000000000000000..d2943b406851837d3227b36e9b542804d2622f9f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Red_Strawberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b67db89c471697853a16530b79a56fb6cfa189435c464ed176752168840ec688 +size 127124 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_White_Pineapple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_White_Pineapple.png new file mode 100644 index 0000000000000000000000000000000000000000..3bb2e3908fabf15a101aacc286eff45d74f6006a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_White_Pineapple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ad292f8e9a1a6442b343a6454d6c68899333df833248a48eda8de6d1c41e0d9 +size 121170 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Yellow_Lemon.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Yellow_Lemon.png new file mode 100644 index 0000000000000000000000000000000000000000..f360ae087c3c16d567702744b489ceab4b9e8eb9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly.Jelly_Yellow_Lemon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57bd533c437b762955839dfd07c32b2ef5929211b7e0c7f54122d5fdaf9c6e09 +size 138481 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear.png new file mode 100644 index 0000000000000000000000000000000000000000..c2725e08b07d193e8c0c5e292498d55a94a72519 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1ecfab7dcdd649e49209643a301913355644c3e2bc6f9c3ea3c51f0697db24d9 +size 123420 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Dark_Red_Raspberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Dark_Red_Raspberry.png new file mode 100644 index 0000000000000000000000000000000000000000..18d7125be654cfa90acc8f1e715f2da5ac5340b5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Dark_Red_Raspberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94d74813200096b09e535fbf24217d22674eab9b9c5b7ed290a6ef06a6c1fdcd +size 114295 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Green_Apple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Green_Apple.png new file mode 100644 index 0000000000000000000000000000000000000000..34ca36210307cd7d12ca812c08a16a787d3017f9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Green_Apple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2362b8031615521917b3d2aa12f4d9bea576a075c22ef766617efb1d8b115723 +size 118164 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Orange.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..0cfe229009355b2c2120803e6b954a82a444400a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c3f6941f62ff7d742dcb3b40ff80230692bbab3e7537310b3b6d2a29da216796 +size 126851 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Red_Strawberry.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Red_Strawberry.png new file mode 100644 index 0000000000000000000000000000000000000000..48b2370f7127bebfe5e43937d426a63dfa6d9078 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Red_Strawberry.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2aa6e966f8c3eba6540bcbe2f82ea79f3a0a1b2916edc1fe56ce1ffcffdbabf7 +size 121589 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_White_Pineapple.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_White_Pineapple.png new file mode 100644 index 0000000000000000000000000000000000000000..771c111e10276635f8ce06c0ae276ec7f6a62783 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_White_Pineapple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d936e917dfd5e034dd32e5b323803aee106abd485b267eb413d7a3d534bdc779 +size 114299 diff --git a/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Yellow_Lemon.png b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Yellow_Lemon.png new file mode 100644 index 0000000000000000000000000000000000000000..e7cff9df46da6146e03f6018c0a99ec773f7bfd7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/.thumbs/Jelly_Clear.Jelly_Clear_Yellow_Lemon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0115e395623b52133a9f68e1e6fb317f465e169b67291b48b1b944beae08d26 +size 126502 diff --git a/code/third_party/vMaterials_2/Other/Food/textures/jelly_normal.jpg b/code/third_party/vMaterials_2/Other/Food/textures/jelly_normal.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f47b1a931e1b476420edf326c7e9a763e0f89076 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/textures/jelly_normal.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35959fdfe01bb3f8256b17502df3c6701d00e7ec720699c5d31f12ef3dae99d6 +size 491940 diff --git a/code/third_party/vMaterials_2/Other/Food/textures/jelly_roughness.jpg b/code/third_party/vMaterials_2/Other/Food/textures/jelly_roughness.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c94d6486d3ab4c60feefca8b6184d19a0c812144 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Food/textures/jelly_roughness.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72f92c745ea72676df539e9af028b49db0e3784391671cb4444a399fd89bfa3d +size 448078 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..ede05a8d8e9fea29658ae3e6e2989dd804b1834a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c605d07fee67ff455f8fee51217cefdde2ed9bad8d9a17b95c076ae6d996a89e +size 76834 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material.png new file mode 100644 index 0000000000000000000000000000000000000000..ede05a8d8e9fea29658ae3e6e2989dd804b1834a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c605d07fee67ff455f8fee51217cefdde2ed9bad8d9a17b95c076ae6d996a89e +size 76834 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Blue.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..d65faa59d7b9781cc07cf2806d6cd88aaf1ff5a3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:142357b3fa2920b9182a071831e45f89eafb05b447c38734f68806537ae267a6 +size 79497 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Gray_Worn.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Gray_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..bd494603afdc9a2cbb12202769dbf862fffe9c45 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Gray_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:676c6e5eeb9895a490454bab49b1ba829561be9e4eda348b733ab9f5c89d02db +size 76209 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Orange.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..fa19564d843ba0f5036082935b110cbe63b39e32 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98fd30de44389aa199cbf8574eebd77a4457c062c1b4cc1f50d7378597204c7b +size 80187 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Red.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..1f772b83ed05497f5bb3d0018a457d78af61e71c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a26e8fd90e2c3735d72d3f088d396dd637d3d43449726e9d07ec80c8df156551 +size 79973 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_White.png new file mode 100644 index 0000000000000000000000000000000000000000..8a8c421b1b86370a7e89456445224cdcbeae7497 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:105281c0fc34340b39b0d8971c2b7865647a984df9ed2a0e6a78a7a4b115d741 +size 74272 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Yellow.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..7c3528a73bfa67c6e8751fad963ebf9f241c60db --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Material.mdl@Retroreflective_Material_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd1107c863e0149bcab1ab52733e83f4dfe9e73ea857fa3ace05ddcbacac9c38 +size 79123 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..2d9abb2f3e93dc33c19ff18aeb6d0e5470085330 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:564a92e4ea9dccefc4df9898d0a4a294d24f818ee51d674c12f6f61c1fc828e9 +size 99033 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape.png new file mode 100644 index 0000000000000000000000000000000000000000..2d9abb2f3e93dc33c19ff18aeb6d0e5470085330 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:564a92e4ea9dccefc4df9898d0a4a294d24f818ee51d674c12f6f61c1fc828e9 +size 99033 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Blue.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..20a9061ad3c36683935ae43432630ba74c70ccc1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9c29739ccbae9363a1c0246eadda30a84fae504f7455a599084fb17e893597c +size 94780 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Green.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..c8c3ea370a6fe929932c08cc0265b51ccf45e886 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b638184fe83bbafb2e3cb1a5c9f061491b99cd7148f3e0c4a874e61fe76caa3 +size 100705 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Orange.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..c53abdd62ce94b2dab1332afba8741e732ee384c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ccbb1c303977dcf099e7021fa3bb39fe46e6635f3b8d1da990c50244fe7d091c +size 99264 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Red.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..0a489a6d1a567450021f3a22f5d2b81fb7fb0e6d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ffb15ec33e64cd1916874f1afd36b3cbda10bc1e83612081ec476ba60c2fe966 +size 95589 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_White.png new file mode 100644 index 0000000000000000000000000000000000000000..d6b95996e20ffcdd7c095aa3b841bd2577b6bdd3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7393dea974973085192262a9548a2201f331731189802a7687b1c3c647c8033e +size 93670 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Yellow_Worn.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Yellow_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..82b4d2cccbd117690087069f4743ce998d94e963 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Tape.mdl@Retroreflective_Tape_Yellow_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ce0c30dead44ed4d8572efe4969357f299351938d1e85e55ff4de90779d52c17 +size 98443 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..96ed1a255df28bcc984bf6620f5c0722ce0573e5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c1276bf228fcdf704e818928417860de6789e83697d46b11e99b78fdddc6e1a +size 100470 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes.png new file mode 100644 index 0000000000000000000000000000000000000000..96ed1a255df28bcc984bf6620f5c0722ce0573e5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c1276bf228fcdf704e818928417860de6789e83697d46b11e99b78fdddc6e1a +size 100470 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_White.png new file mode 100644 index 0000000000000000000000000000000000000000..5938b814d50182a5442899850f2e1a9937d6deb0 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:064cb63bc37582e94837eabe46cbaaaf37119a00e43e0e83d076fae1cbd8d174 +size 94949 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_Yellow.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..235bb15c152fa94bb9e047c35cbb0407ddd24a56 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/256x256/Retroreflective_Warnstripes.mdl@Retroreflective_Warnstripes_Black_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:353ac6d2604f987a6e6c25e75abac1af80c1ea3f518d2b6032dfb734527bb982 +size 100607 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material.png new file mode 100644 index 0000000000000000000000000000000000000000..0cf2ac6770582a63c6cc4e58e77104fc7f128d1d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b08532cb740511e57e9055b065986ab05cc7859b904fdc5a3a5912df6327feb +size 94344 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Blue.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..576ee134eea65e5a715783cf6fa425e32715659e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb06724ed186f5293f0a4df343a6f64af7fdb77321f4f2c8194e3a2e742ba04c +size 102885 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Gray_Worn.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Gray_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..c90dd4970f0035e3d0c9a7478655e511c6b9747e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Gray_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1682efdfdd7153f441c4ab27d463d8cc9d88cf2febd12ed68ef953dc741f6a2b +size 93014 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Orange.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..707ee6fb17a3409002619be8eb865ad44e2cec7b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57e79e5e6186ea417ed93d9653d92b1d6e520fc76054ebdaa7d35cea07b3060a +size 108306 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Red.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..5deb543c45c2c4296d7e2638375f74ebbca74eb2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b185f629f1489edd3add3b8a7e5e29744ce2a411fc4afc8cf9164f9bcb901a4b +size 107078 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_White.png new file mode 100644 index 0000000000000000000000000000000000000000..08d2573a4fc01a5381bdae35c8bea8bff8df2878 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1b48ae82e56dfeb87de1530838ff3105cff8150a741c4cd189508260f31bf766 +size 96018 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Yellow.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..d432159cb81d06b54f1f9548c9d8090da88cb11e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Material.Retroreflective_Material_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b804fc5124aaca5d7ddaa17e56f6d35a9f3e640f7d9ebd3e51d73c8a7818c8c +size 106421 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape.png new file mode 100644 index 0000000000000000000000000000000000000000..634cccfb5db62796b49d52f9469e3ec64c147e6f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb7098cddea1c16361701e544ca03c6175fec79e4cb815014dbb014ea169035c +size 115120 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Blue.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..b1ec55219df2f67d483ac07050e1baa6fbb57387 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb62492d50ac3e23d654072bdfbf7b427dccdf0ade0aebb996223c65203880f2 +size 107676 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Green.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..6b07f3d898fecbc2652d67fee7358acb5ad2882d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:940612a1fc7c3de72656f6a5d40aecb69433f37cb972d89861693d926cd0cc2f +size 118126 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Orange.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..07ca5309ea608f9151b6b3553851f0b08568fb1c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77ff2837c4f114a34b1474aca023e2455da8b7d181a309dbb3a78e459789702c +size 117269 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Red.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..a39d14ac1abb843ea709fb88d17d1a8033c6e66e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac819d925b7a6eb8480d1dc997f00ac9ee439bcb3a315c82f31f2dc2509685fd +size 112884 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_White.png new file mode 100644 index 0000000000000000000000000000000000000000..8c979390b667018ad2139e0f14bcdddd1aec7cf2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2e75eda665935c495b248a77ecae7d6aecedf7cc0e36cc5a02c870896a839c63 +size 107237 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Yellow_Worn.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Yellow_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..aa88f4ff3cb8dac52bcec077bdb71a9a5d53d9f0 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Tape.Retroreflective_Tape_Yellow_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51ba15e8854bbdea443f72588178687a46172c550276001b5a11a6676ccc3558 +size 115936 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes.png new file mode 100644 index 0000000000000000000000000000000000000000..c3188eceb83ddb882529596d1b6c654c3141c3b4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:46a5cdf21010ac7c5c9d2ea5d2aa05654d66ccf75d497b89159559e19538603e +size 110685 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_White.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_White.png new file mode 100644 index 0000000000000000000000000000000000000000..1948ecde11a64b2894c83caf27665ce95f5463f7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9653dfefed4c7100d849246997c929253050473e57e03ae899b2ff7357d7a203 +size 99780 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_Yellow.png b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..a24689ec049cd938f7d27707672319026cfb910b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/.thumbs/Retroreflective_Warnstripes.Retroreflective_Warnstripes_Black_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:844284dfadfc4697ab248835b4592c4aef498a96d9fbb0a156327af785e486c3 +size 105979 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/diagonal_stripes.png b/code/third_party/vMaterials_2/Other/Retroreflective/textures/diagonal_stripes.png new file mode 100644 index 0000000000000000000000000000000000000000..befb84b4626d9c6beae96ea3703d015e31455610 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/diagonal_stripes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34dfcce84e1efe03848cddfb76ede9f9e0a774cd94b2d8406baa5d4211b5157e +size 3932 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/glitter_noise_1k.png b/code/third_party/vMaterials_2/Other/Retroreflective/textures/glitter_noise_1k.png new file mode 100644 index 0000000000000000000000000000000000000000..a4c15916ddf7212a9124882e31659ac0037df8f1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/glitter_noise_1k.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:08210cd09f455de30b5402e636407a91e185a62aa07ae4029b08884cb425d8cd +size 839543 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_retro_paint.jpg b/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_retro_paint.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2084a39bbec867da791c0ea020c35e2164cd8a46 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_retro_paint.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fa61d9a4a26e7831ec30f1c278e88e24733b2fb29e4f3640f998f953b6ae4b17 +size 2528999 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_scratches_B_height.jpg b/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_scratches_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ea77b6b94b74653ffd80e7236477795528bc532f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/smudges_scratches_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6b59df42221cbc23f703a00156aa8bf31128673605af4fd6418c4708fd876db2 +size 1378528 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_hex_mask.png b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_hex_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..985bbc82487b6f27dc99e62967f100e9a50e3e5e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_hex_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eb45d019d7cd068843467dee020e9ede7b558299a9d5ddf4a0e1187a3b938c46 +size 900324 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_norm.jpg b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2bf531d1a8795beae4c4e717e9642fc3d97f2ee5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6c5831b1795dcf374f2a116b962afa582d5f08df705fe1e074b14338ca4d79a +size 382888 diff --git a/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_rounded_mask.png b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_rounded_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..db8a04de63dc532bdf1c5c08dad7d57812342c98 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Retroreflective/textures/tape_patterns_rounded_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:871469b2c393382a0b0e4b3a3b6d4dff2bbd2279e6c216d9b2e369b47246aa3d +size 893953 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..7cba50cdcadc5c6d0c73cc64f17a3bbb83962a4f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c07d132d03defd312dfbeb2d4887683d25b4e98d2d42a6bf07995e0ff8a71ada +size 83222 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Blue.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..3ea0f255fbbc18916de1fba6968b29d0420f18b1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f034955dc07aca8c74d3e046662f537dd443a91db4ce371550a75a3525307dd +size 68221 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Gray.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..26d88bcd33580a09b29bf539a28f0c6b37d43182 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eee502ce1dd0c34ff9d13d3f743ceb4eabb8c3f663ffd048235d713d56131b0a +size 64623 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Red.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..1924128a921b7c4841c1f8c15d8960dfaf12b65f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d24933671e93b9222afecba91629a07c9c36d0c2c65b076a2b9d42a37183577 +size 71119 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_White.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_White.png new file mode 100644 index 0000000000000000000000000000000000000000..503bc95f40360730a5f656740311a2eb15c7553d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Eraser_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aeaea7756b7321e2a16ec261bf3f29903c360ba3b368a3e79de1928ca2ee80c0 +size 67909 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..43287c88e3dab5b12709e7a2a09b5e28150bf3eb --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:762adcfeebfaf42d181c9150b1a41667e1a59b6723daff1f6cf6752f2508f99e +size 64562 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..186de03c5277063e068b74bd74713532abb45a7b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:41ea168283cca822795b0f2533d5b8199cfeadc17de63af2313d0633e87f42e0 +size 67083 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..f7f3739f960835605628abc94f4f1746e4ffd577 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Black_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae5bc77b93ad847db23abac8820f0bc0027056d09190611f9d49fd24d50ee60a +size 73161 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..2467fc5d685388e6c1c6c50e920f337bb840d340 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2dcd576f3c0202f9e4182a8f49ed92be18b4831b800a4422bf457c6540405309 +size 81465 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..500e0102236f386112ab078d488db3596e94f0f4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0676a971e43c6fc4600dff1f7bafe3911d69512b0ff83658c9e31f8cb6595cd +size 80959 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..0c6605851d9007df699d4795f5e7cc43cfdd79ed --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Citrus_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f46ce167bc5870440b3a9935846888d1b933d2c34f594b9c272ff986ecc308f4 +size 100536 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..c0552d1b73f37119e5a9eb53dc9c6987b51d8866 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a0af9584c56022a79a20cc2cb9bb44a76dc47ecd4854e694fff9cc3cb7b0ea4 +size 76944 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..216fd022db65d1c3974e8ff7f56f22dda282e674 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a812647764eaeda2248e845faebc8dcddfcafba8ce1e270b6fc6d0d9cada0d7a +size 77847 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..bddadac2f704b4bc3e935c4a5b5420ef057f50e7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Grass_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:061d885a51628f538c470973cf1d5559f21b11bf9fc6895db1b09a3f57bca073 +size 92232 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..0e641be80e3917515066b3d24539dd0ba417547f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:abcf9bf7a75c9669eeacf25d7e470c6619f505d9d36a0422d75f2769bce6dd4c +size 81007 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..56297caa05e08d91ff87b8cfb511c845d1060fa8 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:496f18db0fd410628a5193200d9c6ee8b3832d038ea9894cd20b78d86449ceb5 +size 79996 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..57e4136b3639d80c5885d099f7a2e6e0d571edc2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Lime_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebac2a6633d2db59f17f4a61ede0d589c239cb42612af551a7cb72f32a4b48af +size 102402 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..9df759f10b99280c3e2dd3dec1ce08a8afa84b76 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:103b6b3743273bedf49b66b2adba74ee9d3e324818f7be84b59f6e54e8ceac30 +size 83561 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..a43398066c205964431f437a4661ca93e652610f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0bc77cc00b35f307a0693c93393db7aacd3745649ade692c980a0b181cc7ef12 +size 82726 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..69893e884d41e47f820c1b378187ed9f2ee53d43 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Mustard_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13821e8beaa60c4246666fcb68817ad3ce125a2ed44919a99598ede0f81ab4b6 +size 104664 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..6c43f16c504ec92a80729d6f9508b0cef2aa45c2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac41b3161bf0f7cf3b21189e9d91f85f3981a9bedd7f2fde17dd8958062e781b +size 85337 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..6a2e7fd81a7fbb0d5c2f8690286d5df15b376882 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66b42b0516d416fde27f6bbff11200aabbd2690d8d8fb11c7ebfa19a9b1505f0 +size 84335 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..5e6320e8243d2eb4b8d4abadb11d48e2cf1bec7e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Pink_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c75a2a5cf1d0e17c0be7a3b7652d682047d80bf15d8ef0ebd70b16b374f2f26 +size 105121 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..24cc584be497c19de38db6cd9586249ec5547557 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:84fb24a7f39c12d05debbaadd9990f00731e515d513e405324681cccd41fd6a6 +size 79396 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..669b8b0d61745ae90091563d3a78447dd6534ced --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf94b13edc246c11bfca2da7238e6bfe450dca167c231b7b71e34f0eb2541855 +size 78028 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..239b05e679c469430cf42d43ff3f9619f3738e9d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Radish_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91f3bd6e66aeeffd637f463ed534dd16271de38686c65b3c1b31fcfffcf84d75 +size 97321 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..d21a0c765f72888ee2358ae167d106e9ed6d431d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3c17b25f1f18ee45eff1f3b5a7f72317f5ff74e102132a25d2a0df304ae0ba8 +size 79893 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..cd7986160fc29055e7b3a87500ba773844e7eb56 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:03b137202a68f800f3dccf3071bf1e32d7fe5cfe79b440593f21a3ae7d9bdc16 +size 80785 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..77d9029c92e7a3a53c757d138bca3ab06c29d232 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Red_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e60cdfe49156583c418396488666ffafa45d4eeb1faad15b2da04821f9bb4669 +size 97195 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..ad28d8c071d18dc36e45817b97fa0707305311f3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:64d6781a1979419c8c3ccaf6b8ec3e7ee5041d93af82412477744244387b804c +size 81626 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..1062af48151d854dbecb16c1e734de7076110194 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f69d0910f7032c084bd0f1e2cfb5aa268ff5587e1fd923a78dfefe5c753f8489 +size 80964 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..13cc743448a98ffe44f0210657f153b7ac4ef6a4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Tangerine_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f6b257c74ce58ca1479cff83d7e405c45601faca65964c8b22bfce9a3938d57 +size 102694 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..414c63bb5e37d450818530cb29b0553a719501df --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b46aaf484fa0966ac209df9fb7ee8af0605412e777d2e7b8d556e49c7d58c63c +size 82860 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..879ce5bcf915692ce636f2f58f25e26da6a9b2bb --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18007eaf138508523f1f491d41de14f6a0e28ec50eacc06234f8b1b02c867e5e +size 80850 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..bbf74b4addf29ee520cfcce9d658d6351aa5d5e5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Turquoise_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cacff1307ad3e3c7fceb3af7ea16a19d7ff92c50f05ca8249c5c6bc8e6274d07 +size 100726 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..84ef3b004434bb5d8017a49adfda16bb9fd0b81a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e357e3e4fb805eedb1cd847e538203cccd4eb7214b7d687e794201a41c173798 +size 81706 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..04e092ec12defbd8ab7c1101e1583464f7cf0d58 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55c590a46406c5d730b4006e96f1ba14c72f537971927aada589953ce1131e7b +size 80605 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..4ff72f2f18cd4a3e630829fad3abecb30eb62b5d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Latex_Ultra_Blue_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bd4c2cabc3c93b784ed8b43216443ff17535ffc864535d21f97eb252777a52f +size 100927 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Black_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Black_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..09ba0d3fd58eca72ed151e50a0ded174d8b52d15 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Black_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:617172187688a3cef943d93ada7b97c157d1b2d77ea9a9cf26a40991b30653b7 +size 64029 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..dbf20972f2a15a20b772a8fd84bdb417f63b42d7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:880c671a9cb78b4a750da072923897abcbf14eb8d3fe3ad02292affda352fbd6 +size 90703 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Cream_White_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Cream_White_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..883f184a258d4d4fc435bb6e78d083e3e7bc812f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Cream_White_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:90fc1f6f963fa34faaa3d1683598ed1e3ae6f7cd691f2bf52d3e0dda1d22dfc5 +size 102447 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Light_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Light_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..7c9e5d7370b0be13726415a620d03aadd61ee4c4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Light_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d454cbe7ad2190ba6bbf38f011ef00a399c17d6e2e7869e186e08c4be437da2 +size 108264 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Ultra_White_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Ultra_White_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..258c6b21925e3fff734ce1777f8a1dae4377acb5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Ultra_White_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2714a8335e38ab0b626a79c4a5b11d651a42860e60414655723bd042eeb49f48 +size 104153 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Violet_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Violet_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..18d92c282ff31d57c9ee9b906ae248f7a6217d7e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Nitrile_Violet_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f79f43643b8b159853a8e34b96eec584310e342b4d3c9d3509cd5c079bbf8761 +size 97194 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber.png new file mode 100644 index 0000000000000000000000000000000000000000..7cba50cdcadc5c6d0c73cc64f17a3bbb83962a4f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c07d132d03defd312dfbeb2d4887683d25b4e98d2d42a6bf07995e0ff8a71ada +size 83222 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..b4ad399036743176af76936e8ae40fdd32e8f9df --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ec75f7e7bbbfaf948a50736a725c65416953082bca8e1f42916c81ded4caf206 +size 69813 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..a10fc7475d7d50d727348762d3fe67bb84ccc505 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Beet_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4d9cdf338c2d8e8f7f6b5e59fae343fbc67eef4b9ea89196e5b61e6a3c2043b0 +size 71541 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..6992e4d6502c38fcb2c3a16de24b08fb54bd71ad --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d772aef3ef50d53bf6e4f6886537b62b954c282874cf9647712ff37788747887 +size 65911 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..ca1574b83b60907456d8c38a33755c583d80d950 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Black_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f729446ee6e7a16f4ff45e4084f093022db155c3b74952e74dce1bff2c3f76be +size 66226 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..3ae640b2c70d578c45a66b7b22aa5d73d6339569 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:978ea644c217a9cdc47876aca6fbfb5589f36fe64e178629a606b92e11bd57be +size 77948 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..9ab93a86610cfc002fc83693b5bf2f5e7fb59a32 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Frog_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdf43a1a767cabbccff6948e327b7d38bd238d32e43a6a8683359ac337eb594d +size 82951 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..c82d8e35e752a7df9798c71dcbb034284e9c3911 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5669a5342fdf85c424fc48dcb0989ef9ecd11e6f124796c2d9e2067cf8631355 +size 93632 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..282bcaac3f8c329ec05d84fca818859cb66754f5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Heaven_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78d49ab82ad7f4ca20a528a537b040702ef9c9ecf96d756003c4b4d1c9c15cba +size 97742 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..2dd1e2ec5ca76ab3a43738a86c0f1f8fe3c68630 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:01afa7ca3f6c8429b3b082cb53032c094dd59ccbedda57a59bc654299aee8510 +size 91538 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..7a792986ed183621689800f6918838370b719a31 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lemon_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77b1093b7fd10f349cd289dd9ed40b9740dbf7437181d141f6f99ea65a474bb0 +size 96276 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..88674746c7167bce56c7bee44e52aff998b6bc67 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:214dd7eb2d6262424afd20c04d8d360afd9031371f1790091055ed3f60338c8d +size 98066 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..ec7ea564229ec230c028741427b0dee59ad0c5c4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Lolly_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fa02a5f7e4551baa287c948fae33bdc576c74a4e56e1d90c139948e5897ff25 +size 101589 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..276b364bceb9032feddb0a516975f8aa7c10a1d1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6c6ea4f4b47d2c0d6cb44931b3a906347e33a68f95ec8210ce956e41aa28985 +size 83813 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..4c71bfeed60eb9da82c04e38a21c4a459ea55bca --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Mandarin_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:177f840291211320811624994183a13afadb91a40eca0fbd2931b4bba9aa4697 +size 88762 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..acfe30382fe11107e95ba469f72d6680fb06ffa9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3362122581e496d655ee4e4758f4146c8f1f79a8f0e565c7830eaa742263cbf0 +size 97332 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..de41fcb68a00a3671cbc808b9b8ce81a55709706 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Orange_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:304fcf9008f6e2b3d669ad23c4c251f99ebcde49588096963ca71c1f32a0a631 +size 100681 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..b94a5e4019be25a096da267b54f743c8b7c90579 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94d0cef6c0b70291716c934e3ce51d810526c6c1ae682c70b5382c122e6b7836 +size 77536 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..e51c2ce85080374ed453ceda1929a02011f1809c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Submarine_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:358155cd2e7e3bf903f5fc09e05680be12ba77ab934617622ee30cae0387adf5 +size 81632 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..710a121f4370a220f926bf1ac5959ddc4bbb75fa --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2cb36d0e3de0577ac0ca491823552664149d6b4558bde6873b7f9326be71c3e7 +size 72839 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..eaa1be04bec6ec4762620adeec2bf18beb675b6f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Turtle_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e09838f6986387d2b964b2166652d7c64f8f6067dc079263f6cbc02947f10d75 +size 76119 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..5a39521f943f142c89ecbdb7214a46d15f3bdd98 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eba2c4e83d0db5ea0a8d94337e6e974bdfa10a18801973876334d848ff492562 +size 74874 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..abac53b874521a6a959942266f841fa6d103e83f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Rubber_Wine_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c028dd0457ef20086b6feb9dc604848590b1136a4bbea87773deb0b5896fcb9 +size 76474 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..c6f31028b33a73f1b770baa7861ffecc511b0b6e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2706afedd0e30ceb0dc84a0913c48b1faf96394c436354e8944a815d7aba3a1e +size 110150 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..0490dbfe6deb3c4e1c173574dacf0f0940c69a60 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1a5aee168a8c3fd30732058f4c6232b017dffaebfa9ccb614531f6c797796db8 +size 106477 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..2dc572fb79a1e1464e485e672ac5bc859481df8d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Blue_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69d4ecc33250b090506c3ae0d8e0b19347f62f98bfe4df49e5ce6282558035e0 +size 95367 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream.png new file mode 100644 index 0000000000000000000000000000000000000000..d33c3a295ede04d39008743b9c8738a6b98deef3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5377aad5da051a9ec535016b60bcf1b6203541b190e01a5df63462c10c3ff58f +size 106010 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..5bca32e734083b258856e482c7ca509f9bfeee14 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:27167be6ce76e5965c7095d7aa1b4f8fda467c81017ee01f98f8ee59456263e8 +size 103509 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..18df01f3edd86d7ec7a7dd033a7b87f3181e996a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Cream_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bc29e648e48f05736ae2d50fbcdcce7b28c472984480ebe7fe72a2d2cffde0e +size 94396 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..6c22ceb864970bbf2aeae26ab5c4a6911cdf79cb --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:444993ded80dcdef816d82021e887ef2f06ca042318de6de83420c00e3250cd3 +size 102486 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..54f3a2c3d964338694e2b772e63b34ac0248fba9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9a4728eace178c360255e33e1a8f6b6abfbc1ff8229c4ed13a6bf78badf5a19d +size 99588 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..e9372e7bcfcade29eb6e89ae17ac6523da1a85c9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Gray_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56ffcac4a9c38388259f7b86900056994901c0dfc6a5f1b31d1cb219c543f806 +size 82995 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..078ae2df48ca84d183d5232133960bc4cc054bc1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc7d281b0253da046f87e7898d4b1e8650f8c1ca1f24776f5622ab1a2bc59e65 +size 102388 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..c797cfd135168baedde3bb627b23eecfa9f88f39 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:366b5ecc256b76de118ffe13160fdf7f575d6896e1397f20e189e82e2f4e290a +size 97822 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..36c2a19ab9c36e2cee3702309fa05ed78f7c10c8 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Green_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4b9f0f5fd8f1ac8d51df149901d179845a48ff92f060bc307d6978ecd18c80b +size 84800 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink.png new file mode 100644 index 0000000000000000000000000000000000000000..4ab71940eab29df54277f75efa685b114b8b62e7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75f002a3dbb0cc4101ceb069c1b0554262928eb95fd50909007fa3ca81194268 +size 110454 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4db3bfff1cba318d8ba1299789f218aa0d7c1b3c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dee461d0dea3cb992800a29bfa8d0133925d1f1faa63c4b94a330ef19d5744c0 +size 109842 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..0c329a8d8e8d30bb18af9b32782ddfb74c2a1810 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Light_Pink_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35be6ce8889be4783c443146684c00ac8fd4a7d91a18dfa27c519136abff5f66 +size 104633 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone.png new file mode 100644 index 0000000000000000000000000000000000000000..a5baae96de3e4ada0d42ecaf9e85e86457ec7dc6 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62d4c648be7a311fb02f5eea20ff6b376151d40512a4aaeaf90dabdcf6140346 +size 104224 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..316e0673edd18ddcd057062284047c517853d18e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1e9b0a79b33f6892c6be34d4ad289e97c1fed87856cd9cd6c05ef55c238a260b +size 100477 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..9afa8b6a2f7e7ed96095086303fe1b8f964b955b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Marone_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72eba84b99250fe5150ae9ec246638e6581c49cf4ca4883f7720fe8212736bdb +size 85266 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..95c3ddd4be5aed2950b0ff52d691be96490b5d76 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4114a34713a323d81aff22c62d32acf9b010067e4c2d0931221535207a254c24 +size 109439 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..cda288e078fdc5b6baad94c774d5ba99d5667578 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:009ca4e4d719faa1d218c5bb6e0dc10f272f2d674a7fe33fe244bfc5d4f69a89 +size 105652 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..941772cc560e2945a48d6e93d65d0a37be322c6d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Red_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61733e342fefff2f81b0b51b24b7d785e12eece932009e4b0ddb5afa2ca45166 +size 95729 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White.png new file mode 100644 index 0000000000000000000000000000000000000000..5b29392ff2c6017f379a26ee4cbc029103436118 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff681cd986d791eeaf7cd2a03338d95dc26c4049a18476f5a9758366b91f6429 +size 110129 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..a289ee69d07f0daeb47626aa321fd1d0bcd7dc91 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:04d03a0a1549b574e277ca6c1f7b407e8e53b9e3a5640a92e9249eaf3c55f70b +size 110050 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..bdd7a802cbaa83d0440fcb447880a2b8c416bf0c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_White_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:11bc236c6125d5e169f4d64c67cfb3075ea3f2c61f2c42332a248f8a9827fbe6 +size 97564 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..3a173b73e25f10cb56f69b930447e7f918ee9db5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:56734a372b3f0033ce1352c58f6edd8c39a3489f242ce8d5ede178e5d67be343 +size 117563 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..642cf61f467d7d4e70e3a059aabe2490cf267fb9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f4653758b6caf67ccf3c9af9b98f7fe0c11dde08909d6b4fd7b95e6eeedc10ba +size 115116 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..53b3055e2dcd3ba0ef90006001e4077e9a527ba3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Caoutchouc.mdl@Silicone_Yellow_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d59d5c81a3756828ad45958f5ca3be48452ee25850e0860fde3898b88f48920a +size 106918 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..fca42c5ac8e276c27494191268c60ad29e7a492f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:210ede900c242af6c3800515f19ad78b6fedc84fea8f855c9ef7b59422b24379 +size 67516 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire.png new file mode 100644 index 0000000000000000000000000000000000000000..fca42c5ac8e276c27494191268c60ad29e7a492f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:210ede900c242af6c3800515f19ad78b6fedc84fea8f855c9ef7b59422b24379 +size 67516 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Dusty.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Dusty.png new file mode 100644 index 0000000000000000000000000000000000000000..4df67c1178f3acbeac0795388f6df24e4a4bb2ae --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Dusty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:039d46c45fb1a2529bdda5448f0406289c69930374dad0fb8b5b8b9bf852f950 +size 77104 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_New.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_New.png new file mode 100644 index 0000000000000000000000000000000000000000..5334f72e138f646a9a7a4ac420fff7248a17b8b9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_New.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:18144cd35b4e85dffb6498f9dece7bbfc2a6ebdce3e504d9f989afce3e813164 +size 64308 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Offroad.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Offroad.png new file mode 100644 index 0000000000000000000000000000000000000000..5c8dd146d80ae1f78bab4fe4e84a5efc6fc83613 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Offroad.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7928b5809a5a147ffe1c6b6e5874d6d6fc013bf2916f4caf9ee873276adbf1bb +size 64230 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Slick.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Slick.png new file mode 100644 index 0000000000000000000000000000000000000000..c3c1b9d6afa4cf0d5baa25ab9f8a9a0d1593bdd1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/256x256/Tire.mdl@Tire_Slick.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2196a3bbcfb6fb4f782d1e1de449ec0628ac07978e7f7bbee2d87fe5dc167dc +size 63102 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Blue.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..9a02b5ddf0a4ef331f3e53872bc2e42a3792cb31 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a4f0ff94d890d296361463ef095842372e36dcb2850e6d21ebcdc7d81fe50d66 +size 89138 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Gray.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..c7cad9f1070a4b7de6944a01360fe7b47b5282c0 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6f7a5b43f37d270a52a50bad4924424d48297bd55cb54052d22dcc4539679cae +size 83198 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Red.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..da5183b1fcbb6191109443ed417d317024531b8e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49ef965c9f736a060b00bd5c2773b7dd24190e24b522998ef36b011644dbb363 +size 94630 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_White.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_White.png new file mode 100644 index 0000000000000000000000000000000000000000..1a001d100d30f5e8e700cc4f16f6c5025b8209bf --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Eraser_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a2bb5ca7a81de0ee961c8b3119558e6bdd840f42ca81794c8208970f39c3718 +size 91426 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..6c304ceeba1132d6013140e9f2b8d79c8f248362 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9906177cc7c79b3facaceba51ae0ff90667f77756df084ef83bc4b22e8688692 +size 92681 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..7fa7acb85c0344e17a794d0e325fa5d15eac36ca --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7247bbb4d0e2348cd305d2a30a69af5d799ab10f209a141eff42b4d61867ed0a +size 89330 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..5483dd010aec939a80057532ea5be079de4c4a51 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Black_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b751ac4a9c533ac361ccd635efc72ed37819b4abe4062c4577b40ac4172300bf +size 93530 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..96de059bfa48fb80ec05a4e7dfa72bdb987e3b3b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2713bb86831bedaffea3b0a688eeb557a5cfc64b6d201b34a6e674037f061e3e +size 109071 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..d70876561a9fb594b209505e93b34b038169923b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a307e62174cd005ec4a77459126854b807a2a4a3ba53794263aac3799a53a3b9 +size 107121 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..71bdf9cc621c624662d4076d5653f090cfbc78cd --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Citrus_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e82698898d774ac893968e34081e24e2ac40475f69c828e8181c045aa99da40 +size 119689 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..517ceee16525a4ca75f4d0545730b5e90281058d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b71a3874fbc3ece4310b9bc7e8b107cd12834e261bf451caaed508cbf683b9e6 +size 108204 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..d94ef4795f6f09c00b8cdc9372b7b482e57b26d7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba0f85e6e1a9d0e18c2c86cf58d9b7eddcd82945fffef3a03b1b898361966c9a +size 104165 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..23406ad4af28a77214b9a04e226189ed3a4d251a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Grass_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a93e13276c4e4c405b62dc5ef8e7afa00ab96b9f01470d0af5a87439c165fa7 +size 107786 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..6bcb3faf862c472b90249fe464c0f085a39a56b5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab7f74fabaa07ea7f3b5ef7b963bb9b72a06fcd21778176b9e8c24ea324e947e +size 110555 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..e05d89b380b0e9f1094f95ef949dad6acf2391e8 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49f90188376ba834737a8a6927517ceb19c0cde05fe6f86cc50e13bd54e14fe9 +size 108087 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..bf0f4cecb448c5816ea789d5da82bb83abfca6ab --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Lime_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:66baa9f2c50345b78068ec5ab43071dfbdad7217218663cf699af2eeb3cad4c8 +size 119949 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..ef39e4a7ae257f310f4e4789f8fd3d5675eccee7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd1161872edbfd7d581d709ef4f70cecec720ef1f5623684e22cff3d129f36c2 +size 114139 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..01eef866ba5c624f5be975093383ab6665ae56ac --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f6563b07c75bb6b2e544c8fca4a4fbd395c262af178e98a429bd1bd6a0ce6e4 +size 111991 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..f7098f7ffef2c6fe8bcfecaae311e29c8bae8532 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Mustard_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c891c29d0c79f9e60f81261a63f35e095b36fc37bcd7886884bc6366a918479 +size 126118 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..ac4dc9454fe3bebd951fc202cf01532e9002abee --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8eb530acc89d48fb12ce9038d4e291e0fc29e6fe2d79f4ac8e7298815f238181 +size 118060 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..c29ec52189952395faa3530d5279b6b82693d4c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:651d6d26df98dd7e55de5f90ee7b6222e5800cc5ad6648cea9caf3dc4c3ffd3c +size 116020 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..77f72a78bf8d36a7a254944084f38df84c0a1d4e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Pink_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:32f899df46b68e02e67ae86c5950a3dc9e983dac4a2ff615311b31116095082e +size 127918 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..3a9682e76544e1391efc02f96d7559ef8642b0b4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ca205497a8e77987739b4d80038c43f69b7d350fc21d3c2bd5c39aeacb77395 +size 110209 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..c309173986be57e4c3e0387718b113239295a6da --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a993ead33ef4fe2274cfa5860599ae038141a97deea394d1f18d6a251ba1026e +size 107069 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..cacbd9d8cbe2efb1fc33d70978e8a4f1c3421780 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Radish_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f19bf706e0c3e48a913a6d9399ec15dff2c230906e743b69a9b940fd27a79d1d +size 112165 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..fa0fc35e983c5bffb1a850e3d067fac76ab2044b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f65c0e007648a719f9a3c4a647723de15fed4678f5e7d2113af8b52202997206 +size 110566 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..06c1c3926522020f4a101a965c8ff6c83524c17d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7b1960991685e332b6994a6b292bb13858b5d329b68ab9375c09c8883d11c8b +size 107753 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..a737553cbeb53742875124982b87ec0d5e18b251 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Red_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e446be8701ece7fc7eee0892c6b7dc36b0918a4bfc6f1691298ad7a925c985a +size 118111 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..fa5229926809411b230697b8ce07c6033f1a17dd --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dffb0281b2380da219a8e66e2e067e698963410ee4d41f397177f1ac9f1884f +size 112401 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..00c7ff03330b2739aafa64eec3e44fe0de7c444c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c6924c233733f13421dce4a4ea2e6f594935f605d7b444a2b81d668bd7f0a55d +size 110049 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..c3f85a2214fe727f7183511fff90baeeaa311ae4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Tangerine_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:185586af7642f911cd8a18f38f1e1dd9b37df0f9d965810be9bff4b5bd93d8b4 +size 122147 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..cfbbc1b449d5aa574ab1a3e60e7b6f0c6f190a5a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd77ff0902bc59cd1cd2aaa5c48be8df6a82fe05a86038a6657b2690f598a60b +size 111560 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..e6f6dd83e06848af0dad2f631eabe22e7659716d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7420c25644590576eda96aa44c30bdaa9f208f386e32ceb926dbc3be2cadf270 +size 108622 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..1c87151e941ebb0f374172aa133dbb29a982e53c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Turquoise_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf87d6aa66a5b4538252ed3dfa1a82c22d6a651f5c82dcd6eec02cf08d0490a2 +size 118338 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..cf35f603bf6391639f2625c895e5e2c92822d8e5 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:596e9f44a9f73c592527ebab9bbb2afedcb8cfa1046b656f9c77d73a955feeab +size 111523 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Soft.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Soft.png new file mode 100644 index 0000000000000000000000000000000000000000..4d938e60a9d5851327640d7c0f1dc68cd4ab7bbd --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Soft.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae1626508cdfff4afe6c3c15b41ae998ef93cb71b8d92a30a96e61775c35cb19 +size 107900 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Transparent.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Transparent.png new file mode 100644 index 0000000000000000000000000000000000000000..ecd7e3d4f658a4a40a758c8404f5d1ae01892843 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Latex_Ultra_Blue_Transparent.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb666663781930cc9d3121eaa5f7ed04ca40c2bef3bba382f96e46024e3c9b25 +size 117491 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Black_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Black_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..ef7c8218256f2f66cf59dbe68bfc24bd07b980e0 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Black_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c5063f6673f65e6076bc0be955f0a7ea5600ae6d0c1d1806ba702532f04f7bc +size 85665 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..b2a64d79d32305b2f890b35e740ca2fea4aca7ec --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5649376af4d9419788606b89384a1c278e7dc60edb2399ae2660f94aafd61cfb +size 103727 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Cream_White_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Cream_White_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..886b6fe46765e3c7e4636a3f8437d0acdfab3ff1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Cream_White_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f950b78f73791c75b14550a03c3637a683c75761684b8dbb3246b0aa79c25a75 +size 115840 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Light_Blue_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Light_Blue_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..92cd7d962cf91cf7251d49959ce2b2548aa6ed8e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Light_Blue_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2374102e8234c7fe12b4dd4d53c688038f0b2cc676ebab0f55a031f7debf9983 +size 123548 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Ultra_White_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Ultra_White_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..a6051074666142832c100df743bb08143769427e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Ultra_White_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1d60c60e8a94c582cc643b522756315e9059d127408d3bef971d17d6c70cb3e9 +size 115106 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Violet_Clean.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Violet_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..ec1ebfa1a78df65d9d24ab894084d3947e171345 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Nitrile_Violet_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2c6dc0940763d75603d37a5b909b37a70b435af63c1f44808cd9ecee98342226 +size 111110 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber.png new file mode 100644 index 0000000000000000000000000000000000000000..0cedf3cfcb6267ff1ae5abea720d5b198f473c26 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5b650ac3a56f9ff4142dc6c5fabb48873842b140bf3d86fb68ddbd09e53ec698 +size 96551 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..f1a3e6878589fbdaa04f54e0edecb74e0ee106b2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3c2e4a576cfe52a72d374d3be325f04e8bc81e0839c715901618b0e57462c2f +size 90582 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..13c6a5760cd98939a16518dfc479fbd7f4893c1e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Beet_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12aefeeceaa1ddd1f9365268a17406c155f7cb582a66487f14b875d9ccd7df09 +size 98782 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..6ec0405891d8e3a426cf8b2d7976c270741e7ea4 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:13df406632f9a4b659243ab31031867d5721ab599604ff0051c56ea15c6cfc81 +size 85798 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..7ecb02efe21d6e4d1d6e991b413987246590539f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Black_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d5980eaa6fa430d6192139da31386fc5ad9a61941e4f21619af339647061515 +size 93165 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..8307db8cbed7ea40a9436a6140655caf72d0694f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:38842138fe0d2c2a1403e8274df83190e7ad5c14304f412edab1a724a7613139 +size 98696 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..5fdb005139507533bbf595953de4c2803fb98a0a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Frog_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ac028214952014557f2c9b8824f46fba9a4b92a1924ec246ea206a090bbcf8b +size 106453 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4fbead8e1b381d7a74710a28b650e9cdb468aa69 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:083fc7b92c128b6c29e81b1a5e981a95b1fb65ac8dd4d6b749ca6b534ba6573b +size 107773 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..2cf3eca41ec0d7b8c143ad76870c15ef5179e159 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Heaven_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73d3e382ce81c65b191bef06abd545de6ac7a629f131a520a570b039c4d6c218 +size 112650 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..fd33c05573dbe5790ffef89ffd9babd8b369f132 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b854af7b5b295077e64571298553238decdaa3bf8a369a373b4370bf9aed5d0 +size 105026 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..68372cd0d5a79721ed862a039bdca7f9f8058f01 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lemon_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93606e4db3913b5b15ca7fa54e56cea654ac6f684f5a202f8fb782acc2feea1b +size 110608 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..6b2c079a8f26f142e181e0cb5e51624d2098b4b3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:477e4c490e87a88cc24661cb7a9a2777141e0bf35bd1881f5d25889a54a6d520 +size 112724 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..9ee91d8428eaf593b618aaa8a9fc96f72c754a82 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Lolly_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aecad4a7ea72e756e6f466b8f78940384078e18d87537706ce4212edf660f16a +size 117828 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..8f909ec3d963ad0790545ceec6ea90ea3f1a034c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:273f1a99a0fff242ee7beb7778aa708a827351345b839cd6cba70a834f017bb9 +size 101921 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..abdd0455d4b21d2f779059f5c318835f1b831bbe --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Mandarin_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:36500c69590738814670bdd61bafe82d21fa9dcd6640bdc8e1e82e3a8f021a52 +size 108596 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..96fb8d417f408bbec532fec74609464e386c4544 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe62d8ad7a0181a4fd149a9a0279d4e5577fef9b8b2506e481d7a3176f4420a8 +size 111249 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..28a85b8f242e4d5387c2af9b7ddcdc1fa7830d92 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Orange_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e92a7b82332e30ed823282c9bd8e55ef3c9f394648ed8b648bd8f3e51c46533 +size 117004 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..6445ecfb636be85f8e534734aa85d1b051f5269a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5cd24229e07a2cd3dfb021e37f67f2373eb774650c4236de1fa63a482cc56580 +size 95905 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..41418f5d7908fd191bba2ab79cc82faa1e9d05da --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Submarine_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4dd44f99df24996ea6009650b9c06bb9915e7f4c449020a5ed82d7d30c4bd6c2 +size 102713 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..30a7965ad5b0ae632b2784b56ee5c81524b13309 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83303430ab579b42a4cd14db9d2f88c41ed5b1be36a37f4b043ad465f8579856 +size 94363 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..8da342cdac5765ba591a3bc454a970016c374d28 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Turtle_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe7958f9b1a8861d9260bf6b4a7e4b37b19fc2d071f7627c9f2db1d3e6c39198 +size 102209 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4a33def8772bc7bee1d23bec1bc24d66a3521f46 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6dc18a82d89a747125759868bc9880c8832a508fad6df1b9c4c40e1a9790da42 +size 96985 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Shiny.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..9d10bf2b33dd621c2ddd79bc96a2b535c18c8dd1 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Rubber_Wine_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8a111ec63378cd757056beea486c44cd7bf9a30325cdad88395a57dd4c60e1c +size 104563 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..d25ac440bdca735f6801330b0efe6af2db031b59 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2950136699b8cb2f47c5495ad0c49908cbb5ed31cde4c7bcd304063c1759125d +size 125440 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4e5037be175b6d08dd08e2e5033c2483323ad442 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cd1e95c1b68e3974163b3dd19a993faadcdc414dbfc58fe2e2055b5b587d8f16 +size 116173 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..68450bc581b3a1ce89d3c5afbd7ae065905ad720 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Blue_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ac3076df28c7c1d257440b0844dbc7e4cc5143c91a174f64e1b94493f8447516 +size 110292 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream.png new file mode 100644 index 0000000000000000000000000000000000000000..396df92390bef20f78056a426b7e916cfb5d5be7 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:139cee7fbbecb70b204b131c9072ce216edc413d36578937889138b432f0d7a7 +size 120904 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..812f43131eed484a1e46ebd038a4520bf7e12a8e --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85b49d36f2e34275c48c1bb0c0a81f17142b56ee3c322f64b74dc90ef39d9150 +size 116931 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..f0249b0d859dccb2af524c40233798b0ddff7290 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Cream_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4592157c1df7060b287fb83ddf0a916193bb93be194ec7013dcb49d988c03cb6 +size 103509 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..065d2cd7a6415d5e3a6d608ff451ac4e760464fd --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:757ca25523995649ad74b752c70f5344376e96e5e584a5cf7d66fc5cc8ead10b +size 115300 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4148c9aca9e20b5ec8694fb1a6232994d976d03f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c0fed700ef009684f10ddbf831aef988fceae0bc3431f05a3e72381f6ab1a61d +size 109005 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..e6512e74c0c8e4f628b53d770ba96ff45214fd71 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Gray_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f17b323eefdec34c5d2fd674df057f29c966e0a288611e6fa07cfabd2d12f07 +size 95810 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..78622d3b4b7bff92c9f39904ba4ba2fcf1844bb8 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4913f11293682265a15718b555651f7fb13aeb146ac9a9161d8b089732956154 +size 120006 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..7e176a15ad6064d568013eb09b9662751edbde9a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:628513d7b439093a1764fbd38089c89d1c053f6c1d32ef9578952df2c649cbc1 +size 108149 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..eb5168a85c2261e5ec6a16a0d79155bf2984929d --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Green_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a91ee439ede76f821d48c176f6ef273652e5e379a8dd1328e27d2a31547af4f2 +size 106983 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink.png new file mode 100644 index 0000000000000000000000000000000000000000..d1db128f8772b357218401ca175f1dd354dfc32a --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e15bdad38fcb208e927f8fa7425e28a20d849a80eebbe1ed953f48eb6c52f582 +size 130582 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..22d6e10ec77d47e2bd1e34d17aa617056002209c --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f91aad584919238f9562e1de36d7131cc375c3a6ace71945a907d42f742e73de +size 128205 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..277dc2ff5e78f55f03e5c921557de4136ff991be --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Light_Pink_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d41b09eeff4004e11d90105854e9da58de3117fee052dc3d355e7745d25b676d +size 117977 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone.png new file mode 100644 index 0000000000000000000000000000000000000000..028b4858edaf7a8f7a3d62af6528143854b90cf9 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:05050e67569aeaf48c031f2e747bde12c750073df909f42ba98305dafa2499c4 +size 122622 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4ccadf402c259ac10e8b01b2d3a8fa1839031ed3 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:71975d1e291f52d445c5bff70c8b48bf9ddbe4fce8b972825496664649534c2f +size 113074 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..9cfee07e05a9352e3afc488c1a64f680465db69f --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Marone_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1afc13fced14bbd411f3461700fce47ed137c86749c9d9c4245dfcdaf593f0ab +size 104120 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..9005a5e4c62fa0b8dbdf5e9589965143f2f8e955 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba311ad05e92c4f3c4481f614df2721e6ea265ba8ebba55a17ac7f159e3712c5 +size 126261 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..0596c26a1c3351eab9efd28e4df443cbe8730a22 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7a0d9c92ff0623950e36cd356643fa45acfe54873d18f61a0b7f7bc1f8a6c3f +size 116297 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..5d5cb3ab21896340b1b5b700087a59402e815213 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Red_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cd065bae89036c5e6eae7b3295fd97fbff9390d0fd5f5d8e7af645a95155e56 +size 112256 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White.png new file mode 100644 index 0000000000000000000000000000000000000000..f9c11843bfd1e6ccfdb52d7024d8cc5cad910ea2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0efab41c56ef0800100a4cffcf96c04704e16649ff0730e2ce662d916070efec +size 123938 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..4aa549fae39c56399f1cd3eb6014ac6d194b9781 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:836995320acd17ec8648b3daafc5223eb2d551fe9564f11e63e5356cd16cf314 +size 122984 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..25419532b7229ba7f7af13b63a600739364223a6 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_White_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:98b4ce6176e2c52e1a8bef54f67dd1542032f286a9377e9e53361abdd7ba5869 +size 104716 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow.png new file mode 100644 index 0000000000000000000000000000000000000000..0aed77bc41d2f69a0fc4beb45d15573931363d59 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6aca9ca63f7bb66ba7ba5df14c4c8ce65600f54e3ce66a8599dc1c782fa181cd +size 136175 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Matte.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..dbc4d1fc1f09e8bb1c0db4d19e8d889b20f6b945 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5394df37318b5a8c5f8659e178ab7323ec7afc8b3c91c0097d3b281dc038deba +size 130023 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Opaque.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Opaque.png new file mode 100644 index 0000000000000000000000000000000000000000..05e54506879eece8cde9f63ae156a1c026032503 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Caoutchouc.Silicone_Yellow_Opaque.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2c39771de98c7767f5cbeb646a6b8622dc76c47446e259bd4eb1857e8811fce +size 119001 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire.png new file mode 100644 index 0000000000000000000000000000000000000000..89aef65d78e079fe64a35bfbf01150df8bf0ef84 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69017eff6c9d291eaeaa120d755bc4e0eb289824439a7fb6d7a962aa1e4d8961 +size 85196 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Dusty.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Dusty.png new file mode 100644 index 0000000000000000000000000000000000000000..e9e25cbc04e5f8356c963f9d2c329cb8031543c2 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Dusty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a450ee4e97dc0a16fa82097d8fe911145aebfc96bc5525836efe44a4fb063a7 +size 88158 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_New.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_New.png new file mode 100644 index 0000000000000000000000000000000000000000..1f76fc599d45bded322bafcf85b06e3f12bf8dea --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_New.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:29ceb9407d7bcd064dee9232985b798d944353ed337e9a607ec02f956711c2ce +size 85450 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Offroad.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Offroad.png new file mode 100644 index 0000000000000000000000000000000000000000..086b3ba7128a975bb3003bc9f164bf49e814de51 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Offroad.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c862cb79e3ebcf4421cdfe28f8e4d91c9db6c163c9722df31940730580fb596a +size 81967 diff --git a/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Slick.png b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Slick.png new file mode 100644 index 0000000000000000000000000000000000000000..898b561c456a887910c06f2b0c398766f40a7e16 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/.thumbs/Tire.Tire_Slick.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:26a24011513c670930d3206b63e59a99474f4a90147ca2671d5e2ce4464f8552 +size 85134 diff --git a/code/third_party/vMaterials_2/Other/Rubber/textures/tire_fractal_sum_norm.jpg b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_fractal_sum_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1d611fb05521487ece0af9ac2a5b9274945b4a76 --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_fractal_sum_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3cc72fb4781fbd618f5dc20a6b4c802f07b53574eaa1c9f387ab79860b8d573c +size 2790214 diff --git a/code/third_party/vMaterials_2/Other/Rubber/textures/tire_grunge_A_norm.jpg b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_grunge_A_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d142b847911afcc4df68f9bd3d04a2517f6358ae --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_grunge_A_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6acd7e23a3182e773e7132f00d657accb5c12a8f315098ec698b9063cddd81f +size 971609 diff --git a/code/third_party/vMaterials_2/Other/Rubber/textures/tire_multi_rough_R_fractal_sum_G_grungeA_B_BnWSpots3.jpg b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_multi_rough_R_fractal_sum_G_grungeA_B_BnWSpots3.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d43e05146ab4f03557b2674617e42ef56009818b --- /dev/null +++ b/code/third_party/vMaterials_2/Other/Rubber/textures/tire_multi_rough_R_fractal_sum_G_grungeA_B_BnWSpots3.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b47de00a8f718b2114591544dd89160f0e8023c701f9d2d1ecb997462156c9e1 +size 1098606 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Blue_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Blue_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..42b3ceadc400606f44c39fedb8dde16fa51116fa --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Blue_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d08ac230afe56a947d5bc397bfff870aa6e49cbf7072e14b38a0e65ff5f985f9 +size 112293 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Carpaint_Candy.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Carpaint_Candy.png new file mode 100644 index 0000000000000000000000000000000000000000..abed9d3ba7d0e1df3bfc071d826c28c6b9d04220 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Carpaint_Candy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cf1412aac669dbf4e6a7bc9557750a552de4bef7896d8ea947b0cc183c566053 +size 119670 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Purple_Candy_Madness.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Purple_Candy_Madness.png new file mode 100644 index 0000000000000000000000000000000000000000..5a88c60f4e4d142c151810254d6e9857cd4ef638 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Purple_Candy_Madness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ca3e5ad1c131d08be5180ae3362084f36d97280290636d9708a7436a18dbb4a +size 112419 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Red_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Red_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..dfa031e9159aea7d66d7b189b29cd9a8beeb6765 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Red_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c736d55f4cef02e775af0cdb302f36610985a4327bc373ecb2f39478e8882904 +size 96420 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Yellow_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Yellow_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..b8b6d24fe5ea5b2f2c4c390a97f343fc4b4381a0 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Candy.mdl@Yellow_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ab19f1f20eeb4ffd4b167288dde7cee1c557b68a1180046579029fb1f80542c1 +size 125260 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@Black_Sparkling_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@Black_Sparkling_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..f1047f0d9a9b3c3caa3f8f6510565befb912aea7 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@Black_Sparkling_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6230d84afe1ba41e187df5ce475bc8180f11bc715216c41f1d9b9c2c3bb7a98b +size 91352 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@White_Light_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@White_Light_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..299a485d89227723c6c8f2a0cd245be1e301da08 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Metallic.mdl@White_Light_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b9d831e9989cff2d9319b8d407dadd5b230f537fd86387bc3a48f5ce9dbe9c4f +size 99269 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Deep_Blue_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Deep_Blue_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..9e929e45aa5d772e5b50c26fd75fa95f79cdba7a --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Deep_Blue_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d42045a7bdd240791b29ab9760371187d179d056d602333f9dac229f591fa1a5 +size 101377 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Dimmed_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Dimmed_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..c9855b9030bd0e622b3a34768c8760242d5841d3 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Dimmed_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e8cbc16e140ed3c0a8d4c7eb2bc06d38231aa3e63ee3842c158c11c0d7fbf097 +size 109596 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Gold_Green_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Gold_Green_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..474d1dba1b316cd6857f015bbde341bcf0cf0ece --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Gold_Green_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a044ab0dc974840b599284705d0d7b0d974a91c325c0f3a3e6112d0a48fdf51c +size 107327 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Voodoo.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Voodoo.png new file mode 100644 index 0000000000000000000000000000000000000000..d90e9b2cd2847f94d8cef45332dd68aa22cc32c9 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Shifting_Flakes.mdl@Voodoo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40355ddf44397c76f7c028f4e1933d3f0dea00bdd5be25459ae6391da283c322 +size 99282 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Dark_Decent_Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Dark_Decent_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..e353d45909a4962cde3d4df98a1114e905831d08 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Dark_Decent_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb2b6cb4eea0be373a1c29ae8dcaa5c4354a94a0d01379b1ff672664f5ebb010 +size 70511 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Vintage_White.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Vintage_White.png new file mode 100644 index 0000000000000000000000000000000000000000..9c4fc5d419388b144c48e8dcd74313719a682bd7 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@Vintage_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:75b7a00a5e90af6f400dcc8b48e8fddab2e108cb167369dc744225fe243c0a55 +size 72290 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@White.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@White.png new file mode 100644 index 0000000000000000000000000000000000000000..a8ecf8b3296e178b025719876f1d5ed0b1a27a3c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/256x256/Carpaint_Solid.mdl@White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d45a1e49827da8a1a17fa2cd74248cd6c516b7ffbcecef2178835848bcba8cc +size 71601 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Black_Monster_Flakes_Candy.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Black_Monster_Flakes_Candy.png new file mode 100644 index 0000000000000000000000000000000000000000..b53062a9e203af5747842980efdc28141be3ef30 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Black_Monster_Flakes_Candy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0ec2ffe97c3cd5e0913aa2add27953564d388efb5104bad0d953b3ab8c1c603e +size 114772 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Intense_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Intense_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..67db444fecc15663e60d788698c41069b090d0fb --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Intense_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:57c9ee003efda88b0a420c6cff72428440c763c3b44f0e3eb87cb4c4fafb409d +size 113405 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..fbfad5ecef84d52130b783a7e34dc60af392131f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Blue_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc2669cdbe2a215e4ef0614f00025e1f72f2adcc3143c9d2a55de1dec9c2c141 +size 110501 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Carpaint_Candy.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Carpaint_Candy.png new file mode 100644 index 0000000000000000000000000000000000000000..a2b7ae2644e427b073a25d7d779e22a6dd0988cf --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Carpaint_Candy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4f4b288799460501942bf95baf3c0dcaed5fe7cc39eaa8e9082b554e7b1b4c0e +size 119042 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..cdb65138fb94b932f294db247d1925f07cb98c20 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6906652faa21a4bb4f482c6ae968916aab16c819c6e38ab6ebfcb2c9713ca246 +size 118855 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..326ad4674e192e924d8bdb44e534c5c82d0f7197 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Green_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7325cdcb7f4f5bb0d2b091c1cd47b3e877d4e71cda54a0299832a176a72b1b63 +size 108553 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Orange_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Orange_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..bf8feb07c0c58077136bf40c203aaf61ea3dce06 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Orange_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:798e96a2431b1afa61e513c787b81786825a3256f04be3cddd24cb99dae78402 +size 119217 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Pinkie_Pie.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Pinkie_Pie.png new file mode 100644 index 0000000000000000000000000000000000000000..63af4601c72afe276f0b7ba25f89d1ae6aca643d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Pinkie_Pie.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9d4d6bada624b81ae9f4003445e23164eced6ba8c434ed799e15b7ede3eda98 +size 113040 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Candy_Madness.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Candy_Madness.png new file mode 100644 index 0000000000000000000000000000000000000000..d5ce234edbf921879c7a99f78b2a34501bd4a831 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Candy_Madness.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cc3bf3597b2992b86dfaa41bd3243f7fafd8f3be6f4df736b3656557788e70f7 +size 113445 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Monster_Flakes.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Monster_Flakes.png new file mode 100644 index 0000000000000000000000000000000000000000..54ac5286d5407f98f77c85256be6f304185e6533 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Purple_Monster_Flakes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:019fd8ef2279be7139256c04b2461213d1a78925845532cb50fca468c5928fc7 +size 126117 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..b5d4e002e7f1b892935178ce6641f2a81b62d869 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:43f6e2c8aeeb602a04b76fb04b7dccbe1a48a079172ee62274f5361ebf2d80d4 +size 111521 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Murdered_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Murdered_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..4914157ba25e1ff4e698cbea3e1e2e68049b2299 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Red_Murdered_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e172149874228c4310f388ae10f8146891b32549761cfd09e8d22303f09c8d8 +size 112561 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Yellow_Candy_Coat.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Yellow_Candy_Coat.png new file mode 100644 index 0000000000000000000000000000000000000000..6d8d16394d488d280656a6924fd3b7e31bce21a0 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Candy.Yellow_Candy_Coat.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:17842f17bc42e4738442bee101e201820caa63d299aaef81068a104337488bd5 +size 121795 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Black_Sparkling_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Black_Sparkling_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..451f62a8838914fcb922048a4f8e21eafe870094 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Black_Sparkling_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cf361a040cbbf8f570fcf2799267167b030f9e01f3f1304e072b1866b8a48b6 +size 108362 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Bright_Silver_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Bright_Silver_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..246492f516203471f78142c016a395ae4f57cbd6 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Bright_Silver_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fc1775745d5fd09b5982b0f5520659def945468714ec7bb8bd1ce2e627c10267 +size 107845 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Carpaint_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Carpaint_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..66d2be891b0d3fc485bec52f89ae206ddfa5b657 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Carpaint_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f5b8961ab93813edbff1c40dfc3fdbde15fa9f98993548223beff8eba697902 +size 111463 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Cherry_Red_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Cherry_Red_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..4b577a23a36ff2013c01c4eac6f5363e015e356c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Cherry_Red_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a7d9ecc9fc873e95f6d887c1ad428bc626ab43c0310bcc4a4ef279be4289e1a5 +size 117886 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Gray_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Gray_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..96c7361ad3f1c302815edee79cee207763c7dcfc --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Gray_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e4c1bbb48503d2a54d4bcec7f45a27d702842274259ce0ea59f0d07b51b67742 +size 107515 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Red_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Red_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..248168f3d51b68be73eaad166b34164c84bc021f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Red_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb6d675f5d7af9c6623a9564612c141df25a39e2dabd9aaf7346eef4f8e6d4dc +size 114377 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Silver_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Silver_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..b4e626daf180498a2c9a968fece51726904013c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Dark_Silver_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4b9c3dc8d75ad7dae0f9a78ec9af65e2fe1db5466d33cd28b8fa2aa071eacb16 +size 110804 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Electric_Blue_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Electric_Blue_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..2fbe520c043077ffbe5e58e485982992420665c6 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Electric_Blue_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a72e3d9320072cf4739c92c86d5b587e3142311104a2c72f62e6cb3581763486 +size 123727 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Elegant_Blue_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Elegant_Blue_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..fbe3a385e1cd62558f743141723a10c168181cbf --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Elegant_Blue_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2bb674d08836f00f44d7af8e72c207b493c2371879b6c0194c9d7f3985ac3a0f +size 114653 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Emerald_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Emerald_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..9f6307008d11f9bb7555969f4eb4838f03746283 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Emerald_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a14d7952613cd1e1cbe8b79a8d154943983c5b2d713f0af1205e07d9ec4de41 +size 115663 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Flaming_Orange_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Flaming_Orange_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..da836eb546f2fde87d4360ecfd0cf588d25dd4f2 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Flaming_Orange_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f391069ef4e82b25d42526ea9e2a89c00f5c3c0304ff94ae7ac4b7f89ff1fa99 +size 123143 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gold_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gold_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..6dc467ae9106cbc30ecef7c0ce0d200cbf528fa2 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gold_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3910f3be2c384b32885ed03856940ed9ff45e634ad0592dbd9dbe874a67b9353 +size 123834 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Flakes_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Flakes_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..bb873b89fbd483e749365ec617dac182621651fc --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Flakes_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93f1b980c430d6c3eed9ccd9ea9f3087e0f8c0bc47fda092c7948ea20c86aa6e +size 123997 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Yellow_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Yellow_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..6bedebbf5475ed3faf5e19e7214e389dd24e40e4 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Golden_Yellow_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87cf283d4d665f32c5a03b77eddae616c03058b80e392706169aefca2ca13f7d +size 115253 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Graphite_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Graphite_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..6c575ca330652f15dcb5c777e42a850852f36365 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Graphite_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aad518a443d40958e789b0170125d5b4de5ae9a42d78df7e62ea3857e64e1eee +size 102876 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Grass_Green_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Grass_Green_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..f3e212d4da10f154c609163a19b429940dc05323 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Grass_Green_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8301e0bf7f11de3067bee2035b29cde53961c5e4f05cc2834b64521a9eb15f73 +size 119437 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gunmetal_Matte_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gunmetal_Matte_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..0ecce3b287ec92f4650b3f3128dd3aa816de4a20 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Gunmetal_Matte_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8c03c5596e3341b8df6e066f7ab6cae0803b2989a558ac47ca1459a857da1c7 +size 104529 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Mocha_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Mocha_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..e775b4225b5a9c985d210ae2c0e58288d2af0f36 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Mocha_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed2bb915d2dfe4013b3a67de7a899adf4d87133982479e2d14d9a7f407f6762d +size 113322 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Pink_Glamour_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Pink_Glamour_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..fc10c6e3c20dbfc829f8ce27bcc1052e6c70317d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Pink_Glamour_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9c86e798a1751c5ef9d992931768d61e3cf941313d3af0f850610a7f0fea01d9 +size 120525 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Poseidon_Blue_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Poseidon_Blue_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..f5c2e5baa199b0eed428fb4f2f8fa8ad7cae3907 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Poseidon_Blue_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:55b01d1e6c34ebd4ccd19d4d3ede13f4e95e95f0da6ce52f28c801db5713ce16 +size 108736 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Purple_Rain_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Purple_Rain_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..9fd75a1b92f721d5d9dd532595ed5ecad2c26b4a --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Purple_Rain_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:315fbabb7cf722e85aa93ac81a082be73808d9abb8f4f21f2fa25863cda01292 +size 126956 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Rainforest_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Rainforest_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..5e9983966d86afc62774d4a3e6f31f2c75c932c1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Rainforest_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91ca2ee4fefa1c5342ee33af84873fe55b88349643f25eb8090e9678e90d6b99 +size 118650 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Silverblue_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Silverblue_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..6cebeb39c0ce63741a718a0c94bbb27728d47016 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Silverblue_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f8305edb545f8f47e38b88d8a72bb96f0f3846b99c9dec821d8d3e2ec78292bb +size 112360 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Sparkling_Lime_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Sparkling_Lime_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..cfc0515091b45d0f019aa974f0fb977dea544543 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Sparkling_Lime_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:792beed486d241e2dae3a620a56368d1a013f8854ab7060b81b6c5a90659d142 +size 125525 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Taupe_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Taupe_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..64a73edf7816d563d947ab1316a799b56a51644f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Taupe_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59a0f2d858114291273fd0f209afdb0ac04efb9f52e1a9240a8a75761f0503af +size 107460 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Teal_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Teal_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..f2f9b1b4d1301868fb43f1307e59694bbfc1cffb --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Teal_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78adc18ccc84a9b08f1ed57dec6e48eb46a4d5033da0fae2fcc3fd7e5a35c840 +size 115071 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Vintage_Turquoise_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Vintage_Turquoise_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..4bad3b7b21dbd798f28d13bae3b4b52b92f32357 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.Vintage_Turquoise_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0ffc819799a387bb1b05f424c625ba7e1d34eea15e3904d99d3bfd5fac1c8b6 +size 116736 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Blue_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Blue_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..ec924c82a9df58b0bd04056416c23b07c4f6ebd2 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Blue_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:755f7eeef5c075508a2898d4e640e898c343544fe240876940a97b828f0432ad +size 109658 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Light_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Light_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..92682bc59f3514fc2f7329e0393921e7deb38f48 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Light_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68ef330068bc9a5e748308b8ecb28c0e8459b18add2b4c97644d46d5c9eeb8c4 +size 106228 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Silver_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Silver_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..6a118fa3978678915ef3e4d3327a19d9fb3935bb --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Silver_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:25797afb5b234bc55958c3bf157dfa646b3b7fcd7f86eb8ee98123cd525e2d78 +size 102554 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Strong_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Strong_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..5d0c5a332aff957ddb8e0a3da42b58bb7498704b --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Metallic.White_Strong_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:476e80d4140b4363988e264201c25529e296ec82db71b5bea713d398a5be87b6 +size 113495 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Andromeda.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Andromeda.png new file mode 100644 index 0000000000000000000000000000000000000000..373b6dc10afe9cd4d0f0e9f70884a43c5cfa0078 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Andromeda.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:109ac584cebccdb0f37a6e4735f8181d1e34426f943c0a3c289d2eba5c6bc51c +size 126965 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Aquatic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Aquatic.png new file mode 100644 index 0000000000000000000000000000000000000000..48c6b06533b52fc0299b9d664b5e5f311c430e3d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Aquatic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3aa086b3fb26c61f5f05ef126f5b501d1f5f85b9f65715789ae4e82ecdf25a18 +size 117447 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Bionic_Flare.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Bionic_Flare.png new file mode 100644 index 0000000000000000000000000000000000000000..aa7b9c69707b42742138c029dd6f7bb24a0860a5 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Bionic_Flare.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ae1347592b29f67735f0b220cbf537dac94634af48ae19e2931c4c50c1f5e866 +size 122162 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Purple_Emerald.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Purple_Emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..8b204f4796d4ad5e62257802102133b13a484030 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Purple_Emerald.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af03bc356be41608713adc1575b923c9dc5458d7cafe200cf842e34050f8aff0 +size 122780 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Saphire.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Saphire.png new file mode 100644 index 0000000000000000000000000000000000000000..7e1a65dd4bd3c4f0bc8be1799a6d4f87258500b4 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Blue_Saphire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d2c5224e214a070d4c2ff9d6add9051508461fecabf7ed29358d714c0e1ab59 +size 116298 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Carpaint_Shifting_Flakes.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Carpaint_Shifting_Flakes.png new file mode 100644 index 0000000000000000000000000000000000000000..1a503be707f20b05f545a541017012cc7a275e55 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Carpaint_Shifting_Flakes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddfcf854807176f73554bb309ac581b7fa2c83deac7b1f29b8b93ad27ab7de6a +size 111646 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Deep_Blue_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Deep_Blue_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..3b5bd407869ec457ba33949da4195ba84de0cd7f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Deep_Blue_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c4e3709b62a9fd4d6c5973fbbe825b11aa40abdd4617591febd3e9432487f6f +size 113874 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Desert_Wind.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Desert_Wind.png new file mode 100644 index 0000000000000000000000000000000000000000..a42e5e8280daae578cc6a638510a68152d5958b2 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Desert_Wind.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:96d57719aa178b2adb44e6b4e0765f06c5e155d1d945c32478a42c30a73998a3 +size 119208 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Dimmed_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Dimmed_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..ec971a45a1a4d95fe45fd6252623c02f21676dc0 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Dimmed_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ce8ca2995b7822bdea8bf4938479cb6e3783681a81247fa293e559c834fbd5f +size 117861 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Electric_Shimmer.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Electric_Shimmer.png new file mode 100644 index 0000000000000000000000000000000000000000..fee61c602a325442244da8a235f405b6246f8f12 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Electric_Shimmer.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4d0586ac298942231d3063744bde117272ca92220e1be5079e8f0099d693c64 +size 116170 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Elegant_Emerald.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Elegant_Emerald.png new file mode 100644 index 0000000000000000000000000000000000000000..0015437eae4f82ba5bfe0dc934aef3a90ca5aba4 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Elegant_Emerald.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33a0740170b26c70aed2f6ce27003defdb7496567ae510c0575c0da8fecc97ad +size 116457 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Emerald_to_Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Emerald_to_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..6b0e17f5b84abcd2ba04d2d93aaab849d06cb369 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Emerald_to_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:be71796474f4bd5d6b24111125e29e3923f88b20f17047bff4ce37684f2a2163 +size 118744 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Goblin_Fire.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Goblin_Fire.png new file mode 100644 index 0000000000000000000000000000000000000000..8d3eadcf1aeee1a51f7e027d12eeb05f18e59f21 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Goblin_Fire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ff40736246e0786831d33a375619d35beb75acaf99f735d1f75e21d891ff6fb0 +size 123635 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Gold_Green_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Gold_Green_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..6eb94c5680a0ae9e6773b10d004b4b15658226df --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Gold_Green_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c2a86e7aaa3b48ef531568dcfdb6343e20bb59f5742af476a4c150fbfae06218 +size 119070 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Golden_Green_Intense.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Golden_Green_Intense.png new file mode 100644 index 0000000000000000000000000000000000000000..0d9245be37ca5b7b02fea554106ec83ce86ac66f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Golden_Green_Intense.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31a25e04e2e1361c8831c5d06bbf2429209b04ab0087ed3b2cf941da61206bf7 +size 120163 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Aquatic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Aquatic.png new file mode 100644 index 0000000000000000000000000000000000000000..80cba26c3658f88fb96423e4bf8d8e7a51bf0166 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Aquatic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:145e1defab924e71737532549b09eff5672f95415e66f8ee6801917ac7b19f6f +size 124584 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Dragon_Monsterflakes.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Dragon_Monsterflakes.png new file mode 100644 index 0000000000000000000000000000000000000000..24bf9aa7ab163908ca14f4b79be6ee5286bd64cc --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Green_Dragon_Monsterflakes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2ba5dd044e967b9e4fb8aedb12960042737237bb940cd0d7feacbe333f4bcdd9 +size 129663 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Magic_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Magic_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..c23df4954c96b2e0feab0fbc92c41e049f4ad1db --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Magic_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f14e1f8c489de88bd991e417f65393459e3bc72e256aea2f1b54e26570b896d +size 123930 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Nebular.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Nebular.png new file mode 100644 index 0000000000000000000000000000000000000000..db107fada7b48a8ed4bfd9d6a5ce715c5a5cb983 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Nebular.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94fe50b93856c53dae948cbd9b7a655e2a270832bd827ca9e0a7e2b69de4bc7a +size 127593 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Petrol_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Petrol_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..3b5bd407869ec457ba33949da4195ba84de0cd7f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Petrol_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c4e3709b62a9fd4d6c5973fbbe825b11aa40abdd4617591febd3e9432487f6f +size 113874 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Poseidon.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Poseidon.png new file mode 100644 index 0000000000000000000000000000000000000000..36c0066e8d23b0a93e8ca20c2fd4e99c91dcab81 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Poseidon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:49a08c871b8a18c68390c27d4fa08ee004329c868ecd8afad7e6a17306449f13 +size 111326 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Princess_Fire.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Princess_Fire.png new file mode 100644 index 0000000000000000000000000000000000000000..7ef68ad5f2eaaa6f020c3ca54f8cc8a77e506af1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Princess_Fire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9e97cef53ec8a8e01a8a70f508a2883f95256d15c679b7c9203d76978b2f4ba +size 117101 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Purple_Red_Orange.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Purple_Red_Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..38413daffe239cbdf01039ac216f9ab1384c301a --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Purple_Red_Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d9acbd0af88d969fceb6c37db7e661c0d0b8b7055dfa2a2c89daaeeb32cebca9 +size 121998 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Red_Elegance.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Red_Elegance.png new file mode 100644 index 0000000000000000000000000000000000000000..bded12aee2e1a7cc7b49979493fc6133784a7204 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Red_Elegance.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3afc66f9026631c8a91b3cbcbeb578507a93bdf715733d1baefbd22b73f74b3 +size 118350 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Soft_Golden_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Soft_Golden_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..2e3a6526ae27d2f2d6719a83d9e093a4ecbc29d1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Soft_Golden_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ab1e928898abe6091d05198edf6f3e507ca8fba12b88d458439ce8db80f7f75 +size 116830 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Turquoise_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Turquoise_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..add61fafa5504dda93a36b2159a299394c288449 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Turquoise_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6592b2644c04e74bad8f513972418779df2eb9d1786c8e6acb41f3fd81ee46b +size 119644 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Voodoo.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Voodoo.png new file mode 100644 index 0000000000000000000000000000000000000000..05391255f2a061bb5f6cd8e9407a502331f5a1a4 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.Voodoo.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d79a9ff981472037f2cb70b7a0ca21469dafa9d661ac3d6d8e6b60d7e92f29fb +size 113333 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_Chameleon.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_Chameleon.png new file mode 100644 index 0000000000000000000000000000000000000000..ec77132031d48ec2c8418ce337b12af482e5242b --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_Chameleon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f22494c3bfded9657a603e0445972bc901f412bb8054a3d69a9c9c464e1632d6 +size 109139 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..73c385d364a3f76520fa3ca3b31b07fb23d0653c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ccfe4dea31d04c7549d53b34dacaea53f6b9a03cb2cfaa6dcc16e5a4d119cc2 +size 107988 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Gold.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Gold.png new file mode 100644 index 0000000000000000000000000000000000000000..cc070dd44020c422279646f32ca6d71ca48b686a --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Gold.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59192fd785048679802aa0dac64553e816569f7b30711cfb413c2af4a6894b46 +size 105489 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..df299566145976636aa9609cfb8dd62551052bc1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Shifting_Flakes.White_to_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:595e287722be22b3cde84fff173d65943b9473e67fc5ca6e62e4650b0b727727 +size 109347 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..d858fa0c07edc747e86c7c9230bbd5ffe450395f --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99c3e7da5cb553715d8a23af340dc01cad28575a2d60a7aa5a8e72e558ff5321 +size 97658 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray_Matte.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..f048d0dcbe690e4ea92894e4c4645ebaccd78844 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Agent_Gray_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:915bd6c6293bb841b2fa7c4c45736625535ac2ec7597578123628587a0e8cda7 +size 95137 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black.png new file mode 100644 index 0000000000000000000000000000000000000000..dfda1492a307bf9715723719c8198ba13b655eba --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62a0c550ffc13ee1060cda170075fd74aa5fcff33e287dd02101dd3253ee0332 +size 97498 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black_Matte.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..a052e44164e0faca9f2a5246625dc17395266b2d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Black_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:99d0f35e00bd156a3e2daaa08a308e068c5ba326ca6810bfde19e28343100ae6 +size 92811 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blood_Red.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blood_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..d83edb4b98b8e9cef9c420b178f67a34dbc76382 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blood_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72a25d90a4891817bab3d4e917bf9c09829773b9a3b6313edbd933f1d9854823 +size 108243 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..ff9f6c99703f1b611ebace44b527a1425347a820 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4ab508542dc50f66d738f744e21113985fa00596bb379031c24940d8a957760 +size 108592 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Brown_Matte.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Brown_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..0407878b081ba443061cc454e7ac0f206a37bcfb --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Brown_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ffc8f9225c3ef2ccedeac7aa6aa385f31b002bb98587008ef85624a21046d12 +size 96536 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Bumblebee.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Bumblebee.png new file mode 100644 index 0000000000000000000000000000000000000000..09ce9aaa59a6b8eb37edf1168118e8c09ad0d4f2 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Bumblebee.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd6118bf01452eeb7c003e28c8e93dc145d6532dc261842b0d3b6781ec3c79a8 +size 113413 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Carpaint_Solid.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Carpaint_Solid.png new file mode 100644 index 0000000000000000000000000000000000000000..fe91afb5a2fd17017cdf799a197c5ee4490a4fe9 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Carpaint_Solid.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a284c7727eeb98b4c0ff78aed70c6bd0f2804f4860c5d287208803f2cf312146 +size 98916 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..75d2d5e5bcc0cfb470dc082f540b4cf097423b99 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d4fa8a6fa716d29d4f7f7a7691787046812538c840ffa2fa5cb8326618ab8e5d +size 98802 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Red.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..bf6a5a46534b473c4ff9a46714242e54677a3a3e --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Dark_Decent_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:78cd6234093b1c312e5ddfed8395c76cff875c1a5708306f489a2b061b8f286d +size 101255 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Feline_Dark_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Feline_Dark_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..79c3889ef315d3c20fee0d01c31789c81969e9f3 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Feline_Dark_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6de5c87b5008a1485bb862b90b69884d2da2811cae97b7436d5dad75b944cc0 +size 100288 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Hunting_Green_Matte.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Hunting_Green_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..01dd88a2e8da03271bd7abed588482e0806d1c20 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Hunting_Green_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:192575e1963cb48da952ca149b492fd868cdaccd9a1bafb8fc81e3c31e1ef247 +size 96538 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Orange.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Orange.png new file mode 100644 index 0000000000000000000000000000000000000000..cfafe95d76e9b841c2a75b3de0c2ae61be4afbb5 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Orange.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bb719543bbdf2fb3158e07b4bb0acba94df33ab6bf14bdb5a8237065ad6f89b7 +size 112248 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Tarreri_Red.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Tarreri_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..3c8bbd159ba0f2934833d00ee9aa24b511e9fdfa --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Tarreri_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e926458952fe19ea833813b76a31c58c3653a878be709050899ff9590c5afdd +size 111460 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Maroon.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Maroon.png new file mode 100644 index 0000000000000000000000000000000000000000..377ecf112c184d1a521a87e664feceff066af50d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Maroon.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1bdb478d0fea58b6c24639e58e4ed5732275f0428e5f00ec44f47b0934cdae06 +size 104932 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Sky_Blue.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Sky_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..852033140c6755c13207db8f52961021bd2b4215 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_Sky_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a14e945eb3382450be62733acef777c9802dacc3e92f8006befe1a9f1459526c +size 105821 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_White.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_White.png new file mode 100644 index 0000000000000000000000000000000000000000..932dec5f3f1693b3dfa65c411bbe06ca008bae72 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Vintage_White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b547cf09fdd03bd6e1b2cdfe52048a6740324b8e8ebae0090332d93f68fed940 +size 101257 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Wasp.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Wasp.png new file mode 100644 index 0000000000000000000000000000000000000000..bf6d80790a186e690a44a3ec95490700a3e8c987 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.Wasp.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:95b6cbeef915d7e2544aa54494ec3e818ab5fbeda5d456f8a6d27f1ad44b6808 +size 111164 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.White.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.White.png new file mode 100644 index 0000000000000000000000000000000000000000..85b8b1738610ba3a5ea89a36942cded609c6813d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Carpaint_Solid.White.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b15a74f9216e29419a47a74636f6d45544e951547ece06f267ec682e7aa620ac +size 99401 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Aqua_Racer.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Aqua_Racer.png new file mode 100644 index 0000000000000000000000000000000000000000..1ad0b4503e96a220aaedc947f1346b42051f933e --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Aqua_Racer.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:263ef79078e552ca9603acc7133d4c4b5cdb73af8c9f326078be2e00c59cdadf +size 125301 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Borealis.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Borealis.png new file mode 100644 index 0000000000000000000000000000000000000000..4057292b98b7733295879dba65ebbd7acb2513b1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Borealis.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c1e75107906b9e5f0bebc4a93683815cf380bcabdb38e43f31b5e513a1d43ebc +size 125664 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Candytron.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Candytron.png new file mode 100644 index 0000000000000000000000000000000000000000..e986c9a4bc3983e637d7ebec9abb3c91eac9446e --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Candytron.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bdb55a3e1b4be2f23280f10e674182678f58ce540d396504db0e961ccf1712d +size 130264 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Deep_Purple.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Deep_Purple.png new file mode 100644 index 0000000000000000000000000000000000000000..8474afc503881065c4b8f9255e7b19ee712b8b39 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Deep_Purple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bc83977e939d3f9122340fea636757bb4999e882fa313a0803c7015eb7ce708a +size 126260 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Desert_Fire.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Desert_Fire.png new file mode 100644 index 0000000000000000000000000000000000000000..a0d4a1b9c6e948ea8da2f153a9ddea9798564e6c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Desert_Fire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c5f81439c91b8497b222c8533b13b43bc14a895fa70806128c943775cfc5e37 +size 123834 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Goblin_Fire.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Goblin_Fire.png new file mode 100644 index 0000000000000000000000000000000000000000..23b9bd156498f30e5a365040cb91ca3a48f16ae3 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Goblin_Fire.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5ec0c74cd2fa82ff50a28e2dba0edf062ca4f15607ab1b5a32cc5a0d6be2dafa +size 128690 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Green.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Green.png new file mode 100644 index 0000000000000000000000000000000000000000..ce997383e2865b74f504e9c9dc91825b0eccd647 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Green.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8935f9313bb3209edda84a7e256a58758dad7d4fa28b93f72944b3f309cfc46c +size 122596 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Lavender.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Lavender.png new file mode 100644 index 0000000000000000000000000000000000000000..49b4b6a53db9ab3d390d5af7fe830dc2387f4956 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Lavender.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f155792946dcba7bdc405e020b66a6b5729e943408c8a3821fce18dca524fe2f +size 123588 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Pink_Slip.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Pink_Slip.png new file mode 100644 index 0000000000000000000000000000000000000000..8dfeb3441e72d4c8bc0f66936e02fe3ec945f137 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Pink_Slip.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:319db0cfe53d83f736a05353972e019a81ce737b25097fe56e336070ec2bdd9f +size 124708 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Scarabeus.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Scarabeus.png new file mode 100644 index 0000000000000000000000000000000000000000..cadc7b68077be0a53a941a84c3034e96913b88d5 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Scarabeus.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d78f0949069923d9972cde49775fb304b5cf58e9ca28ac9676c3a1706849ccd5 +size 125541 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Effect_Pigment_Metallic.png b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Effect_Pigment_Metallic.png new file mode 100644 index 0000000000000000000000000000000000000000..62130685aefa10b1b77498ecb0ff7b493bcc8442 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/.thumbs/Effect_Pigment_Metallic.Effect_Pigment_Metallic.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9240261d4d15a181e7c2577778a7667f124d3ff7b5b009be6e3575d0de2d8c8 +size 131520 diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Candy.mdl b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Candy.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0737ca08c79184e69d6484cbf43dc6496d9fa7cd --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Candy.mdl @@ -0,0 +1,898 @@ +/****************************************************************************** + * 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; +} + +// ------------------- (Candy): 1 Orange Candy ------------------- +export material Carpaint_Candy( + color base_color = color(0.552011f, 0.187821f, 0.030713f) [[ + ::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.0f [[ + ::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.45f [[ + ::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.80f [[ + ::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.672443f, 0.181164f, 0.012983f) [[ + ::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.31f [[ + ::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.54f [[ + ::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.15f [[ + ::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.6f [[ + ::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.82f [[ + ::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.99f [[ + ::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.06f [[ + ::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.14f [[ + ::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, 2.f), + ::anno::ui_order(16) + ]], + uniform float orange_peel_size = 0.1f [[ + ::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.f, 1.f)), + ::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 Candy - Orange Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "orange", "warm", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Carpaint_Candy.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); + + +// ------------------- (Candy): 2 Black Monster Flakes ------------------- +export material Black_Monster_Flakes_Candy(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Black Monster Flakes"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "black", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Black_Monster_Flakes_Candy.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.019382f, 0.019382f, 0.019382f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.34f, + edge_darkening: 0.57f, + flakes_tint: color(0.730461f, 0.730461f, 0.730461f), + flakes_density: 0.16f, + spread: 0.52f, + flakes_roughness: 0.19f, + flakes_size: 0.8f, + candy_flip: 0.00f, + flake_layer_visibility: 0.82f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 3 Red Candy Coat ------------------- +export material Red_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Red Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "red", "warm", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Red_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.124772f, 0.021219f, 0.021219f), + ground_coat_influence: 0.43f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.64f, + flakes_tint: color(0.318547f, 0.021219f, 0.021219f), + flakes_density: 0.79f, + spread: 0.27f, + flakes_roughness: 0.14f, + flakes_size: 0.8f, + candy_flip: 0.82f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 4 Red Murdered Candy ------------------- +export material Red_Murdered_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Red Murdered Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "red", "warm", "saturated", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Red_Murdered_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.021219f, 0.021219f, 0.021219f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.38f, + edge_darkening: 0.57f, + flakes_tint: color(0.783538f, 0.014444f, 0.039546f), + flakes_density: 0.20f, + spread: 0.13f, + flakes_roughness: 0.12f, + flakes_size: 0.8f, + candy_flip: 0.53f, + flake_layer_visibility: 0.52f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 5 Orange Murdered Candy ------------------- +export material Orange_Murdered_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Orange Murdered Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "orange", "warm", "saturated", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Orange_Murdered_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.054480f, 0.028426f, 0.026241f), + ground_coat_influence: 1.0f, + ground_coat_brightness: 0.00f, + edge_darkening: 1.00f, + flakes_tint: color(0.723055f, 0.191202f, 0.020289f), + flakes_density: 0.27f, + spread: 0.22f, + flakes_roughness: 0.31f, + flakes_size: 0.8f, + candy_flip: 0.68f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- (Candy): 6 Yellow Candy ------------------- +export material Yellow_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Yellow Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "yellow", "warm", "saturated", "light")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Yellow_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.610496f, 0.445201f, 0.025187f), + ground_coat_influence: 0.78f, + ground_coat_brightness: 1.00f, + edge_darkening: 1.00f, + flakes_tint: color(0.871367f, 0.450786f, 0.052861f), + flakes_density: 0.51f, + spread: 0.54f, + flakes_roughness: 0.37f, + flakes_size: 0.60f, + candy_flip: 0.75f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- (Candy): 7 Green Candy ------------------- +export material Green_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Green Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "green", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Green_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.109462f, 0.527115f, 0.246201f), + ground_coat_influence: 1.00f, + ground_coat_brightness: 0.75f, + edge_darkening: 1.00f, + flakes_tint: color(0.102242f, 0.571125f, 0.318547f), + flakes_density: 0.39f, + spread: 0.38f, + flakes_roughness: 0.20f, + flakes_size: 0.60f, + candy_flip: 0.77f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- (Candy): 8 Green Murdered Candy ------------------- +export material Green_Murdered_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Green Murdered Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "green", "saturated", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Green_Murdered_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.021219f, 0.024158f, 0.021219f), + ground_coat_influence: 0.64f, + ground_coat_brightness: 0.38f, + edge_darkening: 0.57f, + flakes_tint: color(0.107023f, 0.423268f, 0.072272f), + flakes_density: 0.22f, + spread: 0.23f, + flakes_roughness: 0.13f, + flakes_size: 0.6f, + candy_flip: 0.78f, + flake_layer_visibility: 0.6f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 9 Intense Blue ------------------- +export material Blue_Intense_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Blue Intense Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "blue", "saturated", "dark", "intense", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Blue_Intense_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.021219f, 0.023153f, 0.242281f), + ground_coat_influence: 0.84f, + ground_coat_brightness: 0.38f, + edge_darkening: 1.00f, + flakes_tint: color(0.033105f, 0.116971f, 0.871367f), + flakes_density: 0.31f, + spread: 0.23f, + flakes_roughness: 0.24f, + flakes_size: 0.60f, + candy_flip: 0.88f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 10 Blue Murdered Candy ------------------- +export material Blue_Murdered_Candy_Coat(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Blue Murdered Candy"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "green", "saturated", "dark", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Blue_Murdered_Candy_Coat.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.021219f, 0.021219f, 0.023153f), + ground_coat_influence: 0.64f, + ground_coat_brightness: 0.38f, + edge_darkening: 0.57f, + flakes_tint: color(0.059511f, 0.144128f, 0.337164f), + flakes_density: 0.31f, + spread: 0.23f, + flakes_roughness: 0.23f, + flakes_size: 0.6f, + candy_flip: 0.68f, + flake_layer_visibility: 1.00f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- (Candy): 11 Purple Candy Madness ------------------- +export material Purple_Candy_Madness(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Blue Purple Candy Madness"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "purple", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Purple_Candy_Madness.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.341914f, 0.019382f, 0.230740f), + ground_coat_influence: 0.97f, + ground_coat_brightness: 0.41f, + edge_darkening: 0.59f, + flakes_tint: color(0.552011f, 0.086500f, 0.3419147f), + flakes_density: 0.26f, + spread: 0.67f, + flakes_roughness: 0.36f, + flakes_size: 0.60f, + candy_flip: 0.85f, + flake_layer_visibility: 0.82f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 12 Purple Monster Flakes ------------------- +export material Purple_Monster_Flakes(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Purple Monster Flakes"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "purple", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Purple_Monster_Flakes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.124772f, 0.006995f, 0.049707f), + ground_coat_influence: 0.43f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.84f, + flakes_tint: color(0.783538f, 0.059511f, 0.597202f), + flakes_density: 0.3f, + spread: 0.44f, + flakes_roughness: 0.11f, + flakes_size: 0.60f, + candy_flip: 0.77f, + flake_layer_visibility: 1.00f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Candy): 13 Pinkie Pie ------------------- +export material Pinkie_Pie(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Candy - Pinkie Pie"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "candy", "pigment", "glitter", "pink", "saturated", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Candy.Pinkie_Pie.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Candy( + base_color: color(0.341914f, 0.019382f, 0.230740f), + ground_coat_influence: 0.97f, + ground_coat_brightness: 0.41f, + edge_darkening: 0.64f, + flakes_tint: color(0.491021f, 0.119538f, 0.332452f), + flakes_density: 0.74f, + spread: 0.53f, + flakes_roughness: 0.53f, + flakes_size: 0.50f, + candy_flip: 0.87f, + flake_layer_visibility: 0.82f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + + + + + + + + + + diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Metallic.mdl b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Metallic.mdl new file mode 100644 index 0000000000000000000000000000000000000000..968c7008ffd78e58a447d48b7e4ef06833057f5c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Metallic.mdl @@ -0,0 +1,1456 @@ +/****************************************************************************** + * 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; +} + +// ------------------- (Metallic): 1 Flat Blue ------------------- +export material Carpaint_Metallic( + color base_color = color(0.021219f, 0.090842f, 0.212231f) [[ + ::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.45f [[ + ::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.37f [[ + ::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.76f [[ + ::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.080220f, 0.313989f, 0.603827f) [[ + ::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.46f [[ + ::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.25f [[ + ::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.55f [[ + ::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.15f [[ + ::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.19f [[ + ::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.57f [[ + ::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.06f [[ + ::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.14f [[ + ::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, 2.f), + ::anno::ui_order(16) + ]], + uniform float orange_peel_size = 0.01f [[ + ::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.f, 1.f)), + ::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 Blue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "blue", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Carpaint_Metallic.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); + + + + +// ------------------- (Metallic): 2 ------------------- +export material White_Light_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint White Light Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "white", "light", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.White_Light_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.783538f, 0.783538f, 0.783538f), + ground_coat_influence: 0.1f, + ground_coat_brightness: 1.0f, + edge_darkening: 0.96f, + flakes_tint: color(0.552011f, 0.552011f, 0.552011f), + flakes_density: 0.49f, + spread: 0.33f, + flakes_roughness: 0.57f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + +// ------------------- (Metallic): 3 ------------------- +export material White_Strong_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint White Strong Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "white", "light", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.White_Strong_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.693872f, 0.693872f, 0.693872f), + ground_coat_influence: 0.59f, + ground_coat_brightness: 0.62f, + edge_darkening: 0.57f, + flakes_tint: color(0.723055f, 0.791298f, 0.830770f), + flakes_density: 0.58f, + spread: 0.41f, + flakes_roughness: 0.22f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + +// ------------------- (Metallic): 4 ------------------- +export material White_Silver_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint White Silver Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "white", "light", "silver", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.White_Silver_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.783538f, 0.783538f, 0.783538f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.57f, + flakes_tint: color(0.552011f, 0.552011f, 0.552011f), + flakes_density: 0.17f, + spread: 0.27f, + flakes_roughness: 0.29f, + flakes_size: .5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + +// ------------------- (Metallic): 5 ------------------- +export material White_Blue_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint White Blue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "light", "white", "blue", "light")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.White_Blue_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.564712f, 0.590619f, 0.630757f), + ground_coat_influence: 0.87f, + ground_coat_brightness: 0.98f, + edge_darkening: 0.24f, + flakes_tint: color(0.693872f, 0.830770f, 0.791298f), + flakes_density: 0.98f, + spread: 0.31f, + flakes_roughness: 0.55f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + + +// ------------------- (Metallic): 6 ------------------- +export material Black_Sparkling_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Black Sparkling Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "light", "white", "blue", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Black_Sparkling_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.022174f, 0.022174f, 0.022174f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.57f, + flakes_tint: color(0.806952f, 0.806952f, 0.806952f), + flakes_density: 0.1f, + spread: 0.29f, + flakes_roughness: 0.33f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + + +// ------------------- (Metallic): 7 Bright Silver Metallic ------------------- +export material Bright_Silver_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Bright Silver Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "light", "silver", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Bright_Silver_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.304987f, 0.304987f, 0.304987f), + ground_coat_influence: 0.95f, + ground_coat_brightness: 0.68f, + edge_darkening: 0.71f, + flakes_tint: color(0.799103f, 0.799103f, 0.799103f), + flakes_density: 0.92f, + spread: 0.26f, + flakes_roughness: 0.43f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 1.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 +); + +// ------------------- (Metallic): 8 Dark Silver Metallic ------------------- +export material Dark_Silver_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Dark Silver Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "silver", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Dark_Silver_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.019382f, 0.019382f, 0.019382f), + ground_coat_influence: 0.0f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.57f, + flakes_tint: color(0.806952f, 0.806952f, 0.806952f), + flakes_density: 0.61f, + spread: 0.29f, + flakes_roughness: 0.55f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.82f, + // 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 +); + +// ------------------- (Metallic): 9 Dark Silver Metallic ------------------- +export material Silverblue_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Silverblue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "silver", "gray", "multicolor", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Silverblue_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.381326, 0.423268f, 0.491021f), + ground_coat_influence: 0.95f, + ground_coat_brightness: 0.68f, + edge_darkening: 0.9f, + flakes_tint: color(0.552011f, 0.686685f, 0.799103f), + flakes_density: 0.48f, + spread: 0.37f, + flakes_roughness: 0.43f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.95f, + // 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 +); + +// ------------------- (Metallic): 10 Graphite ------------------- +export material Graphite_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Graphite Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "graphite", "silver", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Graphite_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.171441f, 0.162029f, 0.155926f), + ground_coat_influence: 0.40f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.73f, + flakes_tint: color(0.116971f, 0.119538f, 0.124772f), + flakes_density: 0.74f, + spread: 0.39f, + flakes_roughness: 0.50f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.95f, + // 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 +); + +// ------------------- (Metallic): 11 Taupe ------------------- +export material Taupe_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Taupe Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "silver", "taupe", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Taupe_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.205079f, 0.174647f, 0.147027f), + ground_coat_influence: 0.40f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.73f, + flakes_tint: color(0.300544f, 0.250158f, 0.187821f), + flakes_density: 0.74f, + spread: 0.39f, + flakes_roughness: 0.50f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.95f, + // 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 +); + +// ------------------- (Metallic): 12 Dark Gray ------------------- +export material Dark_Gray_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Dark Gray Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "silver", "gray", "dark", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Dark_Gray_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.033105f, 0.033105f, 0.033105f), + ground_coat_influence: 0.99f, + ground_coat_brightness: 0.88f, + edge_darkening: 0.99f, + flakes_tint: color(0.417885f, 0.417885f, 0.417885f), + flakes_density: 0.72f, + spread: 0.41f, + flakes_roughness: 0.38f, + flakes_size: 0.5f, + candy_flip: 0.0f, + flake_layer_visibility: 0.49f, + // 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 +); + +// ------------------- (Metallic): 13 Gunmetal Matte ------------------- +export material Gunmetal_Matte_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Gunmetal Matte Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "silver", "gray", "gunmetal", "neutral")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Gunmetal_Matte_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.138432f, 0.135633f, 0.111932f), + ground_coat_influence: 0.99f, + ground_coat_brightness: 0.88f, + edge_darkening: 0.99f, + flakes_tint: color(0.417885f, 0.417885f, 0.417885f), + flakes_density: 0.72f, + spread: 0.40f, + flakes_roughness: 0.48f, + flakes_size: 0.61f, + candy_flip: 0.0f, + flake_layer_visibility: 0.49f, + // roughness_texture: + clearcoat_rough: 0.42f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.06f, + orange_peel_size: 0.002f +); + +// ------------------- (Metallic): 14 Cherry Red ------------------- +export material Cherry_Red_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Red Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "red", "saturated", "warm", "cherry")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Cherry_Red_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.462077f, 0.034340f, 0.026241f), + ground_coat_influence: 0.43f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.74f, + flakes_tint: color(0.479320f, 0.021219f, 0.021219f), + flakes_density: 0.76f, + spread: 0.41f, + flakes_roughness: 0.48f, + flakes_size: 0.50f, + candy_flip: 0.0f, + flake_layer_visibility: 0.82f, + // 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 +); + + +// ------------------- (Metallic): 15 Dark Metallic Red ------------------- +export material Dark_Red_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Dark Red Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "red", "saturated", "warm", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Dark_Red_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.031896f, 0.003035f, 0.003035f), + ground_coat_influence: 0.43f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.61f, + flakes_tint: color(0.223228f, 0.012286f, 0.012286f), + flakes_density: 0.92f, + spread: 0.3f, + flakes_roughness: 0.14f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 1.00f, + // 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 +); + + +// ------------------- (Metallic): 16 Flaming Orange ------------------- +export material Flaming_Orange_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Flaming Orange Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "orange", "saturated", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Flaming_Orange_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.462077f, 0.124772f, 0.021219f), + ground_coat_influence: 0.79f, + ground_coat_brightness: 0.13f, + edge_darkening: 0.79f, + flakes_tint: color(0.745404f, 0.250158f, 0.024158f), + flakes_density: 0.53f, + spread: 0.42f, + flakes_roughness: 0.50f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 1.00f, + // 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 +); + +// ------------------- (Metallic): 17 Mocha Metallic ------------------- +export material Mocha_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Mocha Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "mocha", "brown", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Mocha_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.095307f, 0.061246f, 0.038204f), + ground_coat_influence: 0.40f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.73f, + flakes_tint: color(0.376262f, 0.198069f, 0.109462f), + flakes_density: 0.64f, + spread: 0.39f, + flakes_roughness: 0.50f, + flakes_size: 0.50f, + candy_flip: 0.00f, + flake_layer_visibility: 1.00f, + // 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 +); + +// ------------------- (Metallic): 18 Golden Yellow ------------------- +export material Golden_Yellow_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Golden Yellow Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "yellow", "gold", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Golden_Yellow_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.658375f, 0.520996f, 0.017642f), + ground_coat_influence: 0.43f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.35f, + flakes_tint: color(0.913099f, 0.386429f, 0.016807f), + flakes_density: 0.19f, + spread: 0.23f, + flakes_roughness: 0.42f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 0.45f, + // 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 +); + +// ------------------- (Metallic): 19 Gold Metallic ------------------- +export material Gold_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Gold Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "yellow", "gold", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Gold_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.658375f, 0.386429f, 0.017642f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.72f, + edge_darkening: 0.35f, + flakes_tint: color(0.439657f, 0.439657f, 0.025187f), + flakes_density: 0.52f, + spread: 0.36f, + flakes_roughness: 0.42f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 1.00f, + // 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 +); + + +// ------------------- (Metallic): 20 Golden Flakes ------------------- +export material Golden_Flakes_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Golden Flakes Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "gold", "orange", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Golden_Flakes_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.021219f, 0.021219f, 0.021219f), + ground_coat_influence: 0.78f, + ground_coat_brightness: 0.0f, + edge_darkening: 1.00f, + flakes_tint: color(0.913099f, 0.491021f, 0.052861f), + flakes_density: 0.99f, + spread: 0.54f, + flakes_roughness: 0.37f, + flakes_size: 1.00f, + candy_flip: 0.00f, + flake_layer_visibility: 0.50f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.3f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.0f, + orange_peel_size: 0.01f +); + + +// ------------------- (Metallic): 21 Sparkling Lime ------------------- +export material Sparkling_Lime_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Sparkling Lime Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "lime", "green", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Sparkling_Lime_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.039546f, 0.396755, 0.031896f), + ground_coat_influence: 0.11f, + ground_coat_brightness: 0.64f, + edge_darkening: 0.10f, + flakes_tint: color(0.327778f, 0.644480f, 0.036889f), + flakes_density: 0.56f, + spread: 0.39f, + flakes_roughness: 0.39f, + flakes_size: 0.50f, + candy_flip: 0.00f, + flake_layer_visibility: 1.00f, + // 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 +); + +// ------------------- (Metallic): 22 Rainforest ------------------- +export material Rainforest_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Rainforest Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "green", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Rainforest_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.038204f, 0.124772f, 0.011612f), + ground_coat_influence: 0.66f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.96f, + flakes_tint: color(0.031896f, 0.417885f, 0.119538f), + flakes_density: 0.70f, + spread: 0.25f, + flakes_roughness: 0.33f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 1.00f, + // 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 +); + +// ------------------- (Metallic): 23 Grass Green ------------------- +export material Grass_Green_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Grass Green Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "green", "grass", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Grass_Green_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.122139f, 0.242281f, 0.019382f), + ground_coat_influence: 0.66f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.50f, + flakes_tint: color(0.291771f, 0.913099f, 0.063010f), + flakes_density: 0.56f, + spread: 0.23f, + flakes_roughness: 0.42f, + flakes_size: 0.50f, + candy_flip: 0.19f, + flake_layer_visibility: 0.45f, + // 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 +); + +// ------------------- (Metallic): 24 Emerald ------------------- +export material Emerald_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Emerald Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "green", "dark", "emerald", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Emerald_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.021219f, 0.127438f, 0.064803f), + ground_coat_influence: 0.79f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.79f, + flakes_tint: color(0.021219f, 0.254152f, 0.127438f), + flakes_density: 0.44f, + spread: 0.38f, + flakes_roughness: 0.41f, + flakes_size: 0.3f, + candy_flip: 0.00f, + flake_layer_visibility: 1.00f, + // 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 +); + + +// ------------------- (Metallic): 25 Vintage Turquoise ------------------- +export material Vintage_Turquoise_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Vintage Turquoise Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "turquoise", "blue", "cool", "vintage", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Vintage_Turquoise_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.088656f, 0.341914f, 0.391572f), + ground_coat_influence: 0.06f, + ground_coat_brightness: 0.24f, + edge_darkening: 0.06f, + flakes_tint: color(0.287441f, 0.491021f, 0.597202f), + flakes_density: 0.30f, + spread: 0.35f, + flakes_roughness: 0.28f, + flakes_size: 0.7f, + candy_flip: 0.00f, + flake_layer_visibility: 0.64f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.05f, + orange_peel_size: 0.01f +); + +// ------------------- (Metallic): 26 Electric Blue ------------------- +export material Electric_Blue_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Electric Blue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "blue", "saturated", "intense", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Electric_Blue_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.061246f, 0.396755f, 0.887923f), + ground_coat_influence: 0.95f, + ground_coat_brightness: 0.34f, + edge_darkening: 0.51f, + flakes_tint: color(0.061246f, 0.396755f, 0.887923f), + flakes_density: 0.63f, + spread: 0.41f, + flakes_roughness: 0.32f, + flakes_size: 0.6f, + candy_flip: 0.00f, + flake_layer_visibility: 0.64f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Metallic): 27 Teal ------------------- +export material Teal_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Teal Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "blue", "teal", "saturated", "intense", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Teal_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.088656f, 0.274677f, 0.391572f), + ground_coat_influence: 0.22f, + ground_coat_brightness: 0.55f, + edge_darkening: 0.25f, + flakes_tint: color(0.020289f, 0.351533f, 0.337164f), + flakes_density: 0.78f, + spread: 0.34f, + flakes_roughness: 0.43f, + flakes_size: 0.5f, + candy_flip: 0.00f, + flake_layer_visibility: 0.55f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Metallic): 28 Elegant Blue ------------------- +export material Elegant_Blue_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Elegant Blue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "blue", "cool", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Elegant_Blue_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.023153f, 0.028426f, 0.063010f), + ground_coat_influence: 0.9f, + ground_coat_brightness: 0.24f, + edge_darkening: 1.00f, + flakes_tint: color(0.021219f, 0.171441f, 0.417885f), + flakes_density: 0.27f, + spread: 0.12f, + flakes_roughness: 0.46f, + flakes_size: 0.5f, + candy_flip: 0.19f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + + +// ------------------- (Metallic): 29 Poseidon Blue ------------------- +export material Poseidon_Blue_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Poseidon Blue Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "blue", "cool", "dark")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Poseidon_Blue_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.021219f, 0.135633f, 0.356400f), + ground_coat_influence: 0.92f, + ground_coat_brightness: 0.56f, + edge_darkening: 1.00f, + flakes_tint: color(0.028426f, 0.099899f, 0.162029f), + flakes_density: 0.19f, + spread: 0.29f, + flakes_roughness: 0.26f, + flakes_size: 0.5f, + candy_flip: 0.19f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + + + +// ------------------- (Metallic): 30 Purple Rain ------------------- +export material Purple_Rain_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Purple Rain Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "purple", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Purple_Rain_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.155926f, 0.045186f, 0.234551f), + ground_coat_influence: 0.87f, + ground_coat_brightness: 0.44f, + edge_darkening: 0.24f, + flakes_tint: color(0.502886f, 0.122139f, 0.791298f), + flakes_density: 0.49f, + spread: 0.66f, + flakes_roughness: 0.2f, + flakes_size: 0.4f, + candy_flip: 0.00f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- (Metallic): 31 Pink Glamour ------------------- +export material Pink_Glamour_Metallic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Pink Glamour Metallic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "reflective", "artificial", "multilayer", "new", "flat", "clearcoat", "automotive", "design", "metallic", "flakes", "pigment", "glitter", "pink", "light", "warm")), + ::anno::thumbnail("./.thumbs/Carpaint_Metallic.Pink_Glamour_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Metallic( + base_color: color(0.760525f, 0.439657f, 0.323143f), + ground_coat_influence: 0.87f, + ground_coat_brightness: 0.44f, + edge_darkening: 0.24f, + flakes_tint: color(0.715694f, 0.445201f, 0.386429f), + flakes_density: 0.70f, + spread: 0.66f, + flakes_roughness: 0.2f, + flakes_size: 0.4f, + candy_flip: 0.00f, + flake_layer_visibility: 0.99f, + // roughness_texture: + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Shifting_Flakes.mdl b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Shifting_Flakes.mdl new file mode 100644 index 0000000000000000000000000000000000000000..c66a604032b64975e01d5b2442347a0684283ed1 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Shifting_Flakes.mdl @@ -0,0 +1,1626 @@ +/****************************************************************************** + * 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_Shifting_Flakes( + color base_color = color(0.846873f, 0.846873f, 0.846873f) [[ + ::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.24f [[ + ::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.93f [[ + ::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.0f."), + ::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.97f [[ + ::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) + ]], + float flakes_reflectivity = 1.0f [[ + ::anno::description("The reflectivity of the flakes."), + ::anno::display_name("Flakes Reflectivity"), + ::anno::in_group("Flakes"), + ::anno::hard_range(0.f, 1.f), + ::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.37f [[ + ::anno::description("The amount how much flakes are pointing to random directions. It is strongly discouraged using a value of 0.0f 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.44f [[ + ::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) + ]], + + // Flakes colorshift colors + color flakes_paint_color_1 = color(1.000000f, 0.043735f,0.672443f) //color(0.297f, 0.66f, 0.875f) + [[ + ::anno::display_name("Paint Color 1"), + ::anno::description("First Color of the effect paint."), + ::anno::in_group("Flakes", "Flakes Gradient Colors"), + ::anno::ui_order(9) + ]], + color flakes_paint_color_2 = color(0.982251f, 0.407240f, 1.000000f) //color(0.392f, 0.36f, 1.f) + [[ + ::anno::display_name("Paint Color 2"), + ::anno::description("Second color of the effect paint."), + ::anno::in_group("Flakes", "Flakes Gradient Colors"), + ::anno::ui_order(10) + ]], + color flakes_paint_color_3 = color(0.830770f, 0.830770f, 0.830770f) //color(0.75f, 0.225f, 0.64f) + [[ + ::anno::display_name("Paint Color 3"), + ::anno::description("Third color of the effect paint."), + ::anno::in_group("Flakes", "Flakes Gradient Colors"), + ::anno::ui_order(11) + ]], + color flakes_paint_color_4 = color(0.806952f, 0.806952f, 0.806952f) //color(0.750f, 0.508f, 0.0f) + [[ + ::anno::display_name("Paint Color 4"), + ::anno::description("Fourth Color of the effect paint."), + ::anno::in_group("Flakes", "Flakes Gradient Colors"), + ::anno::ui_order(12) + ]], + color flakes_paint_color_5 = color(00.830770f, 0.830770f, 0.830770f) //color(0.553f, 0.75f, 0.232f) + [[ + ::anno::display_name("Paint Color 5"), + ::anno::description("Fifth color of the effect paint."), + ::anno::in_group("Flakes", "Flakes Gradient Colors"), + ::anno::ui_order(13) + ]], + + float flake_layer_visibility = 1.0f [[ + ::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.0f 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(14) + ]], + 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(15) + ]], + float clearcoat_rough = 0.05f [[ + ::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(16) + ]], + float roughness_variation = 0.3f [[ + ::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(17) + ]], + 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(18) + ]], + 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(19) + ]], + 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, 2.f), + ::anno::ui_order(20) + ]], + 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(21) + ]], + 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(22) + ]], + 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(23) + ]], + 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.0f, 1.0f)), + ::anno::ui_order(24) + ]], + 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(25) + ]], + 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(26) + ]], + 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 Chameleon - Gloss White to Pink"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "white", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Carpaint_Shifting_Flakes.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.537313432835f + // Substance Designer Scaling factor: 1158.6829010512f + 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), color(1.0f) /* flakes tint */, color(1.0f) /* flakes_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), + + // Artist-friendly color shift with custom colors + ::df::measured_curve_factor( + curve_values: color[](flakes_paint_color_1, flakes_paint_color_1, flakes_paint_color_2, flakes_paint_color_3, flakes_paint_color_4, flakes_paint_color_5, flakes_paint_color_5), //applying 5th color twice, since grazing angles are seen proportinally less + base: ::df::microfacet_ggx_smith_bsdf( + flakes_roughness * flakes_roughness, + flakes_roughness * flakes_roughness, + color(flakes_reflectivity), + color(flakes_reflectivity), + ::state::texture_tangent_u(0), + ::df::scatter_reflect + ) + ), + + + // ::df::thin_film( + // thickness: flakes_coating_thickness * 300.0f, // Does a user understand how the thickness in thin film even works!? + // ior: color(2.5f, 2.6f, 2.7f), //flakes_coating_ior, + // base: ::df::fresnel_factor( + // ior: color(1.25f, 1.35f, 1.4f), // Needs proper IOR of base substrates + // extinction_coefficient: color(1.0f, 2.5f, 4.0f), // Needs proper IOR of base substrates + // base: ::df::microfacet_ggx_smith_bsdf( + // flakes_roughness * flakes_roughness, + // flakes_roughness * flakes_roughness, + // color(flakes_reflectivity), + // color(flakes_reflectivity), + // ::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.95f + 0.05f), 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 White to Purple ------------------- +export material White_to_Purple(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - White to Purple"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "white", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.White_to_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.846873f, 0.846873f, 0.846873f), + ground_coat_influence: 0.20f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.97f, + flakes_reflectivity: 1.00f, + flakes_density: 0.29f, + spread: 0.37f, + flakes_roughness: 0.44f, + flakes_size: 0.1f, + flakes_paint_color_1: color(0.337164f, 0.043735f, 1.000000f), + flakes_paint_color_2: color(0.737910f, 0.407240f, 1.000000f), + flakes_paint_color_3: color(0.830770f, 0.830770f, 0.830770f), + flakes_paint_color_4: color(0.806952f, 0.806952f, 0.806952f), + flakes_paint_color_5: color(0.830770f, 0.830770f, 0.830770f), + flake_layer_visibility: 0.95f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 3 White to Blue ------------------- +export material White_to_Blue(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - White to Blue"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "white", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.White_to_Blue.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.846873f, 0.846873f, 0.846873f), + ground_coat_influence: 0.24f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.97f, + flakes_reflectivity: 1.00f, + flakes_density: 0.29f, + spread: 0.37f, + flakes_roughness: 0.44f, + flakes_size: 0.1f, + flakes_paint_color_1: color(0.027321f, 0.029557f, 0.871367f), + flakes_paint_color_2: color(0.052861f, 0.029557f, 0.871367f), + flakes_paint_color_3: color(0.830770f, 0.830770f, 0.830770f), + flakes_paint_color_4: color(0.806952f, 0.806952f, 0.806952f), + flakes_paint_color_5: color(0.830770f, 0.830770f, 0.830770f), + flake_layer_visibility: 0.95f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 4 White to Gold ------------------- +export material White_to_Gold(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - White to Gold"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "white", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.White_to_Gold.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.846873f, 0.846873f, 0.846873f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.34f, + edge_darkening: 0.57f, + flakes_reflectivity: 1.00f, + flakes_density: 0.16f, + spread: 0.52f, + flakes_roughness: 0.19f, + flakes_size: 0.1f, + flakes_paint_color_1: color(1.000000f, 0.552011f, 0.024158f), + flakes_paint_color_2: color(1.000000f, 0.752942f, 0.187821f), + flakes_paint_color_3: color(1.000000f, 1.000000f, 1.000000f), + flakes_paint_color_4: color(1.000000f, 1.000000f, 1.000000f), + flakes_paint_color_5: color(0.955973f, 0.955973f, 0.955973f), + flake_layer_visibility: 0.95f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + +// ------------------- 5 White Chameleon ------------------- +export material White_Chameleon(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - White Chameleon"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "white", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.White_Chameleon.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.846873f, 0.846873f, 0.846873f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.34f, + edge_darkening: 0.57f, + flakes_reflectivity: 1.00f, + flakes_density: 0.16f, + spread: 0.52f, + flakes_roughness: 0.19f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.072272f, 0.737910f, 0.737910f), + flakes_paint_color_2: color(0.127438f, 0.107023f, 1.000000f), + flakes_paint_color_3: color(0.520996f, 0.040915f, 0.366253f), + flakes_paint_color_4: color(0.520996f, 0.223228f, 0.000000f), + flakes_paint_color_5: color(0.266356f, 0.520996f, 0.043735f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 6 Green Aquatic ------------------- +export material Green_Aquatic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Green Aquatic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "green", "multicolor", "intense", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Green_Aquatic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.010960f, 0.296138f, 0.031896f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.1f, + flakes_reflectivity: 1.0f, + flakes_density: 0.57f, + spread: 0.37f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 1.00f, + flakes_paint_color_1: color(0.174647f, 0.407240f, 0.031896f), + flakes_paint_color_2: color(0.031896f, 0.300544f, 0.009134f), + flakes_paint_color_3: color(0.035601f, 0.610496f, 0.270498f), + flakes_paint_color_4: color(0.042311f, 0.479320f, 0.644480f), + flakes_paint_color_5: color(0.000304f, 0.158961f, 0.171441f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 7 Dimmed Green ------------------- +export material Dimmed_Green(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Dimmed Green"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Dimmed_Green.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.177888f, 0.296138f, 0.109462f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.50f, + spread: 0.40f, + flakes_roughness: 0.19f, + flakes_size: 0.1f, + flakes_paint_color_1: color(0.274677f, 0.149960f, 0.021219f), + flakes_paint_color_2: color(0.467784f, 0.434154f, 0.013702f), + flakes_paint_color_3: color(0.063010f, 0.174647f, 0.341914f), + flakes_paint_color_4: color(0.194618f, 0.080220f, 0.520996f), + flakes_paint_color_5: color(0.296138f, 0.074214f, 0.552011f), + flake_layer_visibility: 1.00f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 8 Goblin Fire ------------------- +export material Goblin_Fire(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Goblin Fire"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "multicolor", "green", "red", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Goblin_Fire.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.010960f, 0.250158f, 0.015996f), + ground_coat_influence: 0.24f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.99f, + flakes_reflectivity: 1.00f, + flakes_density: 1.00f, + spread: 0.37f, + flakes_roughness: 0.29f, + flakes_size: 0.1f, + flake_layer_visibility: 0.82f, + flakes_paint_color_1: color(0.491021f, 0.022174f, 0.022174f), + flakes_paint_color_2: color(0.467784f, 0.491021f, 0.016807f), + flakes_paint_color_3: color(0.165132f, 0.491021f, 0.039546f), + flakes_paint_color_4: color(0.035601f, 0.479320f, 0.102242f), + flakes_paint_color_5: color(0.034340f, 0.407240f, 0.033105f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 9 Emerald to Blue------------------- +export material Emerald_to_Blue(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Emerald to Blue"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "intense", "saturated", "blue", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Emerald_to_Blue.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.017642f, 0.171441f, 0.262251f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.99f, + flakes_reflectivity: 1.00f, + flakes_density: 1.00f, + spread: 0.31f, + flakes_roughness: 0.28f, + flakes_size: 0.1f, + flake_layer_visibility: 0.82f, + flakes_paint_color_1: color(0.054480f, 0.381326f, 0.162029f), + flakes_paint_color_2: color(0.029557f, 0.194618f, 0.051269f), + flakes_paint_color_3: color(0.076185f, 0.381326f, 0.603827f), + flakes_paint_color_4: color(0.141263f, 0.064803f, 0.571125f), + flakes_paint_color_5: color(0.102242f, 0.068478f, 0.539479f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 10 Nebular ------------------- +export material Nebular(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Nebular"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "intense", "saturated", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Nebular.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.033105f, 0.086500f, 0.212231f), + ground_coat_influence: 0.24f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.60f, + flakes_reflectivity: 1.00f, + flakes_density: 1.00f, + spread: 0.32f, + flakes_roughness: 0.29f, + flakes_size: 0.1f, + clearcoat_rough: 0.06f, + flakes_paint_color_1: color(0.467784f, 0.491021f, 0.016807f), + flakes_paint_color_2: color(0.822786f, 0.171441f, 0.000000f), + flakes_paint_color_3: color(0.165132f, 0.491021f, 0.039546f), + flakes_paint_color_4: color(0.012286f, 0.630757f, 0.723055f), + flakes_paint_color_5: color(0.011612f, 0.072272f, 0.760525f), + flake_layer_visibility: 1.00f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 11 Elegant Emerald ------------------- +export material Elegant_Emerald(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Elegant Emerald"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "emerald", "green")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Elegant_Emerald.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.017642f, 0.262251f, 0.088656f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.33f, + spread: 0.31f, + flakes_roughness: 0.28f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.054480f, 0.381326f, 0.162029f), + flakes_paint_color_2: color(0.029557f, 0.194618f, 0.051269f), + flakes_paint_color_3: color(0.076185f, 0.381326f, 0.603827f), + flakes_paint_color_4: color(0.141263f, 0.064803f, 0.571125f), + flakes_paint_color_5: color(0.102242f, 0.068478f, 0.539479f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 12 Purple Red Orange ------------------- +export material Purple_Red_Orange(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Purple Red Orange"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "purple", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Purple_Red_Orange.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.097587f, 0.017642f, 0.262251f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.7f, + flakes_reflectivity: 1.00f, + flakes_density: 1.00f, + spread: 0.31f, + flakes_roughness: 0.28f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.212231f, 0.076185f, 0.623960f), + flakes_paint_color_2: color(0.318547f, 0.038204f, 0.038204f), + flakes_paint_color_3: color(0.242281f, 0.063010f, 0.491021f), + flakes_paint_color_4: color(0.806952f, 0.371238f, 0.088656f), + flakes_paint_color_5: color(0.730461f, 0.428690f, 0.088656f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 13 Golden Green Intense------------------- +export material Golden_Green_Intense(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Golden Green Intense"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Golden_Green_Intense.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.023153f, 0.283149f, 0.102242f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.99f, + flakes_reflectivity: 1.00f, + flakes_density: 0.58f, + spread: 0.24f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 0.93f, + flakes_paint_color_1: color(0.571125f, 0.434154f, 0.042311f), + flakes_paint_color_2: color(0.462077f, 0.351533f, 0.035601f), + flakes_paint_color_3: color(0.496933f, 0.610496f, 0.068478f), + flakes_paint_color_4: color(0.165132f, 0.644480f, 0.242281f), + flakes_paint_color_5: color(0.048172f, 0.171441f, 0.086500f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 14 Soft Golden Green ------------------- +export material Soft_Golden_Green(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Soft Golden Green"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "green", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Soft_Golden_Green.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.029557f, 0.124772f, 0.052861f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.53f, + spread: 0.37f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 0.53f, + flakes_paint_color_1: color(0.571125f, 0.434154f, 0.042311f), + flakes_paint_color_2: color(0.327778f, 0.462077f, 0.035601f), + flakes_paint_color_3: color(0.450786f, 0.610496f, 0.198069f), + flakes_paint_color_4: color(0.165132f, 0.644480f, 0.177888f), + flakes_paint_color_5: color(0.048172f, 0.171441f, 0.086500f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 15 ------------------- +export material Gold_Green_Purple(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Blue Gold Green Purple"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "multicolor", "blue", "cool", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Gold_Green_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.029557f, 0.097587f, 0.141263f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.70f, + flakes_reflectivity: 1.00f, + flakes_density: 0.35f, + spread: 0.31f, + flakes_roughness: 0.36f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.491021f, 0.258183f, 0.029557f), + flakes_paint_color_2: color(0.024158f, 0.445201f, 0.119538f), + flakes_paint_color_3: color(0.042311f, 0.479320f, 0.584078f), + flakes_paint_color_4: color(0.147027f, 0.049707f, 0.806952f), + flakes_paint_color_5: color(0.318547f, 0.088656f, 0.730461f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 16 ------------------- +export material Electric_Shimmer(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Electric Shimmer"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "saturated", "intense", "multicolor", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Electric_Shimmer.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.029557f, 0.309469f, 0.479320f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.45f, + spread: 0.31f, + flakes_roughness: 0.28f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.054480f, 0.351533f, 0.381326f), + flakes_paint_color_2: color(0.029557f, 0.138432f, 0.194618f), + flakes_paint_color_3: color(0.076185f, 0.381326f, 0.603827f), + flakes_paint_color_4: color(0.141263f, 0.064803f, 0.571125f), + flakes_paint_color_5: color(0.102242f, 0.068478f, 0.539479f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 17 ------------------- +export material Blue_Purple_Emerald(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Blue Purple Emerald"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "purple", "cool", "intense", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Blue_Purple_Emerald.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.011612f, 0.147027f, 0.109462f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.73f, + spread: 0.49f, + flakes_roughness: 0.23f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.082283f, 0.539479f, 0.584078f), + flakes_paint_color_2: color(0.144128f, 0.040915f, 0.283149f), + flakes_paint_color_3: color(0.278894f, 0.078187f, 0.479320f), + flakes_paint_color_4: color(0.051269f, 0.462077f, 0.181164f), + flakes_paint_color_5: color(0.052861f, 0.462077f, 0.141263f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 18 ------------------- +export material Petrol_Purple(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Petrol Purple"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "intense", "cool", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Petrol_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.013702f, 0.086500f, 0.187821f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.30f, + spread: 0.31f, + flakes_roughness: 0.25f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.201556f, 0.258183f, 0.539479f), + flakes_paint_color_2: color(0.095307f, 0.270498f, 0.508881f), + flakes_paint_color_3: color(0.107023f, 0.439657f, 0.637597f), + flakes_paint_color_4: color(0.283149f, 0.093059f, 0.520996f), + flakes_paint_color_5: color(0.423268f, 0.155926f, 0.745404f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 19 ------------------- +export material Deep_Blue_Purple(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Deep Blue Purple"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "purple", "multicolor", "cool", "intense", "saturated")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Deep_Blue_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.013702f, 0.086500f, 0.187821f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.3f, + spread: 0.31f, + flakes_roughness: 0.25f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.201556f, 0.258183f, 0.539479f), + flakes_paint_color_2: color(0.095307f, 0.270498f, 0.508881f), + flakes_paint_color_3: color(0.107023f, 0.439657f, 0.637597f), + flakes_paint_color_4: color(0.283149f, 0.093059f, 0.520996f), + flakes_paint_color_5: color(0.423268f, 0.155926f, 0.745404f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 20 Turquoise Purple ------------------- +export material Turquoise_Purple(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Turquoise Purple"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "turquoise", "blue", "cool", "multicolor", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Turquoise_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.017642f, 0.004025f, 0.051269f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.50f, + flakes_reflectivity: 1.00f, + flakes_density: 0.40f, + spread: 0.35f, + flakes_roughness: 0.24f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.022174f, 0.571125f, 0.309469f), + flakes_paint_color_2: color(0.028426f, 0.571125f, 0.278894f), + flakes_paint_color_3: color(0.012286f, 0.033105f, 0.155926f), + flakes_paint_color_4: color(0.356400f, 0.022174f, 0.366253f), + flakes_paint_color_5: color(0.318547f, 0.031896f, 0.162029f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 21 ------------------- +export material Desert_Wind(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Desert Wind"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "red", "warm", "multicolor", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Desert_Wind.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.366253f, 0.023153f, 0.023153f), + ground_coat_influence: 0.3f, + ground_coat_brightness: 0.8f, + edge_darkening: 0.54f, + flakes_reflectivity: 1.00f, + flakes_density: 0.25f, + spread: 0.28f, + flakes_roughness: 0.33f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.745404f, 0.571125f, 0.111932f), + flakes_paint_color_2: color(0.637597f, 0.456411f, 0.070360f), + flakes_paint_color_3: color(0.658375f, 0.039546f, 0.391572f), + flakes_paint_color_4: color(0.479320f, 0.035601f, 0.174647f), + flakes_paint_color_5: color(0.407240f, 0.033105f, 0.250158f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 22 ------------------- +export material Green_Dragon_Monsterflakes(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Green Dragon Monsterflakes"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "green", "intense", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Green_Dragon_Monsterflakes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.042311f, 0.296138f, 0.010960f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.44f, + spread: 0.37f, + flakes_roughness: 0.27f, + flakes_size: 0.85f, + flake_layer_visibility: 1.00f, + flakes_paint_color_1: color(0.099899f, 0.318547f, 0.462077f), + flakes_paint_color_2: color(0.107023f, 0.318547f, 0.462077f), + flakes_paint_color_3: color(0.116971f, 0.450786f, 0.672443f), + flakes_paint_color_4: color(0.107023f, 0.708376f, 0.242281f), + flakes_paint_color_5: color(0.078187f, 0.434154f, 0.099899f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 23 ------------------- +export material Andromeda(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Andromeda"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "multicolor", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Andromeda.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.010330f, 0.010330f, 0.010330f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.36f, + spread: 0.47f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 1.00f, + flakes_paint_color_1: color(0.637597f, 0.144128f, 0.070360f), + flakes_paint_color_2: color(0.198069f, 0.730461f, 0.016807f), + flakes_paint_color_3: color(0.017642f, 0.658375f, 0.049707f), + flakes_paint_color_4: color(0.017642f, 0.034340f, 0.904661f), + flakes_paint_color_5: color(0.278894f, 0.018500f, 1.000000f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 24 ------------------- +export material Blue_Saphire(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Blue Saphire"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "purple", "multicolor", "cool", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Blue_Saphire.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.016807f, 0.026241f, 0.144128f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.36f, + spread: 0.47f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 1.00f, + flakes_paint_color_1: color(0.082283f, 0.122139f, 0.708376f), + flakes_paint_color_2: color(0.074214f, 0.074214f, 0.708376f), + flakes_paint_color_3: color(0.019382f, 0.033105f, 0.124772f), + flakes_paint_color_4: color(0.381326f, 0.054480f, 0.904661f), + flakes_paint_color_5: color(0.270498f, 0.042311f, 0.623960f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 25 ------------------- +export material Bionic_Flare(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Bionic Flare"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "green", "multicolor", "saturated", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Bionic_Flare.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.019382f, 0.017642f, 0.003677f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.43f, + spread: 0.47f, + flakes_roughness: 0.27f, + flakes_size: 0.1f, + flake_layer_visibility: 1.00f, + flakes_paint_color_1: color(0.527115f, 0.708376f, 0.082283f), + flakes_paint_color_2: color(0.423268f, 0.708376f, 0.074214f), + flakes_paint_color_3: color(0.019382f, 0.124772f, 0.025187f), + flakes_paint_color_4: color(0.104616f, 0.904661f, 0.054480f), + flakes_paint_color_5: color(0.042311f, 0.623960f, 0.177888f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 26 ------------------- +export material Aquatic(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Aquatic"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "green", "cool", "multicolor", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Aquatic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.017642f, 0.171441f, 0.262251f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.42f, + spread: 0.23f, + flakes_roughness: 0.30f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.054480f, 0.445201f, 0.059511f), + flakes_paint_color_2: color(0.019382f, 0.283149f, 0.059511f), + flakes_paint_color_3: color(0.141263f, 0.603827f, 0.187821f), + flakes_paint_color_4: color(0.111932f, 0.571125f, 0.491021f), + flakes_paint_color_5: color(0.090842f, 0.539479f, 0.462077f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 27 ------------------- +export material Poseidon(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Poseidon"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "blue", "multicolor", "intense", "cool")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Poseidon.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.017642f, 0.171441f, 0.262251f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.44f, + spread: 0.23f, + flakes_roughness: 0.30f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.114435f, 0.215861f, 0.445201f), + flakes_paint_color_2: color(0.068478f, 0.158961f, 0.283149f), + flakes_paint_color_3: color(0.158961f, 0.219526f, 0.242281f), + flakes_paint_color_4: color(0.346704f, 0.147027f, 0.571125f), + flakes_paint_color_5: color(0.258183f, 0.141263f, 0.539479f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 28 ------------------- +export material Red_Elegance(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Red Elegance"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "red", "warm", "multicolor", "intense")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Red_Elegance.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.262251f, 0.080220f, 0.017642f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 1.00f, + flakes_reflectivity: 1.00f, + flakes_density: 0.44f, + spread: 0.23f, + flakes_roughness: 0.30f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.407240f, 0.008568f, 0.152926f), + flakes_paint_color_2: color(0.300544f, 0.009134f, 0.109462f), + flakes_paint_color_3: color(0.610496f, 0.080220f, 0.010330f), + flakes_paint_color_4: color(0.644480f, 0.381326f, 0.010960f), + flakes_paint_color_5: color(0.552011f, 0.341914f, 0.009134f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 29 ------------------- +export material Princess_Fire(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Pink Fire"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "pink", "rose", "intense", "warm", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Princess_Fire.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.417885f, 0.198069f, 0.187821f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.57f, + flakes_reflectivity: 1.00f, + flakes_density: 0.39f, + spread: 0.23f, + flakes_roughness: 0.30f, + flakes_size: 0.1f, + flake_layer_visibility: 0.95f, + flakes_paint_color_1: color(0.508881f, 0.270498f, 0.396755f), + flakes_paint_color_2: color(0.462077f, 0.012286f, 0.162029f), + flakes_paint_color_3: color(0.610496f, 0.381326f, 0.102242f), + flakes_paint_color_4: color(0.644480f, 0.371238f, 0.007499f), + flakes_paint_color_5: color(0.552011f, 0.337164f, 0.006995f), + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 30 ------------------- +export material Magic_Green(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Magic Green"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design", "green", "intense", "saturated", "multicolor")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Magic_Green.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.630757f, 0.520996f, 0.111932f), + ground_coat_influence: 0.76f, + ground_coat_brightness: 0.93f, + edge_darkening: 0.57f, + flakes_reflectivity: 1.00f, + flakes_density: 0.66f, + spread: 0.23f, + flakes_roughness: 0.3f, + flakes_size: 0.1f, + flakes_paint_color_1: color(0.238398f, 0.637597f, 0.004025f), + flakes_paint_color_2: color(0.003677f, 0.407240f, 0.003677f), + flakes_paint_color_3: color(0.012983f, 0.351533f, 0.223228f), + flakes_paint_color_4: color(0.006049f, 0.174647f, 0.130136f), + flakes_paint_color_5: color(0.003677f, 0.024158f, 0.191202f), + flake_layer_visibility: 0.95f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + +// ------------------- 31 ------------------- +export material Voodoo(*) +[[ + ::anno::author("NVIDIA"), + ::anno::display_name("Carpaint Chameleon - Voodoo"), + ::anno::description("Multilayered carpaint material with metallic flakes."), + ::anno::key_words(string[]("carpaint", "chameleon", "flipflop", "colorshift", "reflective", "artificial", "multilayer", "new", "shiny", "flakes", "metallic", "glitter", "pigment", "clearcoat", "automotive", "design")), + ::anno::thumbnail("./.thumbs/Carpaint_Shifting_Flakes.Voodoo.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Carpaint_Shifting_Flakes( + base_color: color(0.009134f, 0.045186f, 0.111932f), + ground_coat_influence: 0.00f, + ground_coat_brightness: 0.34f, + edge_darkening: 0.57f, + flakes_reflectivity: 1.00f, + flakes_density: 0.16f, + spread: 0.52f, + flakes_roughness: 0.19f, + flakes_size: 0.1f, + flakes_paint_color_1: color(0.212231f, 0.025187f, 0.637597f), + flakes_paint_color_2: color(0.407240f, 0.010960f, 0.323143f), + flakes_paint_color_3: color(0.351533f, 0.021219f, 0.038204f), + flakes_paint_color_4: color(0.174647f, 0.006049f, 0.007499f), + flakes_paint_color_5: color(0.191202f, 0.141263f, 0.008023f), + flake_layer_visibility: 0.82f, + clearcoat_rough: 0.06f, + roughness_variation: 0.14f, + clearcoat_ior: 1.6f, + clearcoat_visibility: 1.0f, + orange_peel_strength: 0.00f, + orange_peel_size: 0.01f +); + + diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Solid.mdl b/code/third_party/vMaterials_2/Paint/Carpaint/Carpaint_Solid.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3a26470f0736e95401c0b3244b48c86d3b4d9a63 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/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("./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 +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Paint/Carpaint/Effect_Pigment_Metallic.mdl b/code/third_party/vMaterials_2/Paint/Carpaint/Effect_Pigment_Metallic.mdl new file mode 100644 index 0000000000000000000000000000000000000000..524ea9dceea3f1d3ad415c9da9014a9d3c4d6532 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Carpaint/Effect_Pigment_Metallic.mdl @@ -0,0 +1,601 @@ +/****************************************************************************** + * 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 ::state::*; +import ::tex::*; +import ::df::*; +import ::anno::*; +import ::base::*; +import ::math::*; +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 remap_exponential_range(float input, float steepness = 10.0f) +{ + return - 1.f / ((input-1.0)*steepness + 0.000001) * input * input; +} + +// Flake sizes of a metallic paint vendor +// https://www.onallcylinders.com/2015/02/23/monday-mailbag-tips-spraying-metal-flake-paint/ + +// Monster .025 Inch (0.635 mm) +// Standard .015 Inch (0.381 mm) +// Lil' .008 Inch (0.2032mm) +// Baby .004 Inch (0.1016 mm) +// Trippin' .015-.008 Inch + + + +// This is basically the same material as above. However, i chose a different +// method to expose the transparency / coverage of the flakes that might be more +// intuitive to use +// chameleon_pigment_paint_V2() +export material Effect_Pigment_Metallic( +// Base color +// Base color does base color falloff + color base_color = color(0.04f, 0.073828f , 0.219520f) + [[ + ::anno::display_name("Base Color"), + ::anno::description("The base color, underneath the flakes."), + ::anno::in_group("Base Layer") + ]], +// Flakes (with 5 Colors) +// +// + uniform float flakes_coverage = 1.0f + [[ + ::anno::display_name("Flakes Coverage"), + ::anno::description("When this value is decreased, flakes will be rendered smaller, revealing the base ." + " layer underneath."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Flakes Layer") + ]], + uniform float flakes_scale = 0.015f + [[ + ::anno::display_name("Flakes Scale"), + ::anno::description("A logarithmic slider, setting the scale of the metallic flakes."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Flakes Layer") + ]], + uniform float3 texture_scale = float3(1.0f) + [[ + ::anno::hidden(), + ::anno::display_name("Scale"), + ::anno::description("An additional linear controller for controlling the size of the flaes."), + ::anno::in_group("Flakes Layer"), + ::nvidia::core_definitions::dimension(float3(1.0f, 1.0f, 1.0f)) + + ]], + + uniform float flakes_orientation_random = 0.5f + [[ + ::anno::display_name("Flakes Random Orientation"), + ::anno::description("The higher the value, the more randomly oriented the flakes will appear, creating " + "a stronger scinillation effect."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Flakes Layer") + ]], + float flakes_roughness = 0.15f + [[ + ::anno::display_name("Flakes Roughness"), + ::anno::description("The roughness of the metallic flakes."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Flakes Layer") + ]], + uniform float flakes_transparency = 0.0f + [[ + ::anno::display_name("Flakes Transparency"), + ::anno::description("Sets an overall transparency value for the metallic flakes."), + ::anno::in_group("Flakes Layer") + ]], + +// Clearcoat (orange peel) +// + float clearcoat_roughness = 0.0f + [[ + ::anno::display_name("Clearcoat Roughness"), + ::anno::description("The roughness of the clearcoat layer."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Clearcoat Layer") + ]], + uniform float orange_peel_amount = 0.025f + [[ + ::anno::display_name("Orange Peel Amount"), + ::anno::description("The strength of the orange peel effect on the clearcoat."), + //::anno::hard_range(0.f, 1.f), + ::anno::in_group("Clearcoat Layer") + ]], + uniform float orange_peel_scale = 0.08f + [[ + ::anno::display_name("Orange Peel Scale"), + ::anno::description("Scales the size of the orange peel effect."), + ::anno::in_group("Clearcoat Layer") + ]], + float clearcoat_ior = 1.45f + [[ + ::anno::display_name("Clearcoat IOR"), + ::anno::description("The index of refraction of the clearcoat of tzhe carpaint."), + ::anno::in_group("Clearcoat Layer") + ]], + + + // Flakes colorshift colors + color flakes_paint_color_1 = color(0.0720070004f, 0.738844991f, 0.738844991f) //color(0.297f, 0.66f, 0.875f) + [[ + ::anno::display_name("Paint Color 1"), + ::anno::description("First Color of the effect paint."), + ::anno::in_group("Flakes Gradient Colors") + ]], + color flakes_paint_color_2 = color(0.127330005f, 0.106539004f, 1.f) //color(0.392f, 0.36f, 1.f) + [[ + ::anno::display_name("Paint Color 2"), + ::anno::description("Second color of the effect paint."), + ::anno::in_group("Flakes Gradient Colors") + ]], + color flakes_paint_color_3 = color(0.522521973f, 0.0414360017f, 0.368261993f) //color(0.75f, 0.225f, 0.64f) + [[ + ::anno::display_name("Paint Color 3"), + ::anno::description("Third color of the effect paint."), + ::anno::in_group("Flakes Gradient Colors") + ]], + color flakes_paint_color_4 = color(0.522521973f, 0.221992999f, 0.f) //color(0.750f, 0.508f, 0.0f) + [[ + ::anno::display_name("Paint Color 4"), + ::anno::description("Fourth Color of the effect paint."), + ::anno::in_group("Flakes Gradient Colors") + ]], + color flakes_paint_color_5 = color(0.266786009f, 0.522521973f, 0.0441490002f) //color(0.553f, 0.75f, 0.232f) + [[ + ::anno::display_name("Paint Color 5"), + ::anno::description("Fifth color of the effect paint."), + ::anno::in_group("Flakes Gradient Colors") + ]] +) +[[ + ::anno::display_name("Effect Pigment Paint - Purple Blue"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "purple", "blue")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Effect_Pigment_Metallic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = let { + // Parameter remapping + float flake_scale_remapped = remap_exponential_range(flakes_scale, 10.f); + float orange_peel_scale_remapped = remap_exponential_range(orange_peel_scale, 10.f); + float flakes_orientation_random_remapped = flakes_orientation_random * 2.5f; + float flakes_roughness_remapped = flakes_roughness * 0.5f; + // remapping necessary to give parameter a linear feel when tweaking it + float flakes_coverage_remapped = ::math::pow(flakes_coverage, .5f); + float flakes_transparency_inv = 1.0 - flakes_transparency; + + + // get object coordinates + ::base::texture_coordinate_info uvw = ::base::coordinate_source( + coordinate_system: ::base:: texture_coordinate_object + ); + + ::base::texture_coordinate_info transformed_uvw = + ::base::transform_coordinate( + transform: ::base::rotation_translation_scale( + rotation: float3(0.0f), + translation: float3(0.0f), + scaling: texture_scale + ), + coordinate: uvw + ); + + + + ::base::texture_return flakes = ::base::flake_noise_texture( + uvw: transformed_uvw, + scale: flake_scale_remapped, + intensity: 1.f, + density: flakes_transparency_inv, + noise_type: 1, //worley + maximum_size: flakes_coverage_remapped + ); + + float3 flakes_norm = ::base::flake_noise_bump_texture( + uvw: transformed_uvw, + scale: flake_scale_remapped, + strength: flakes_orientation_random_remapped, + noise_type: 1, + maximum_size: flakes_coverage_remapped + ); + + // Layer the flakes on base layer, tint them with the colors + bsdf flakes_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: flakes_roughness_remapped * flakes_roughness_remapped, + tint: color(1.0f) + ); + + bsdf chameleon_flakes = ::df::measured_curve_factor( + curve_values: color[](flakes_paint_color_1, flakes_paint_color_1, flakes_paint_color_2, flakes_paint_color_3, flakes_paint_color_4, flakes_paint_color_5), + base: flakes_bsdf + + ); + + bsdf base_layer_bsdf = ::df::diffuse_reflection_bsdf( + tint: base_color + ); + + float flakes_weight = (flakes.mono <= 0.0001f) ? 0.0f : + ((flakes_transparency_inv < 0.5) ? 0.f : + (flakes_transparency_inv - 0.5f) * 2.0f); + + // float flakes_weight = (flakes_transparency_inv < 0.5) ? 0.f : + // (flakes_transparency_inv - 0.5f) * 2.0f; + + bsdf base_n_flakes_bsdf = ::df::weighted_layer( + // flakes_transparency + weight: ::math::lerp(flakes.mono, 1.0, flakes_weight), + layer: chameleon_flakes, + base: base_layer_bsdf, + normal: flakes_norm + ); + + // Clearcoat + + // Orange Peel bump + float3 orange_peel_normal = ::base::perlin_noise_bump_texture( + uvw: transformed_uvw, + factor: orange_peel_amount, + size: orange_peel_scale_remapped, + noise_levels: 2 + ); + + bsdf clearcoat_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: clearcoat_roughness, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + + bsdf final_bsdf = ::df::fresnel_layer( + ior: clearcoat_ior, + layer: clearcoat_bsdf, + base: base_n_flakes_bsdf, + normal: orange_peel_normal + ); + +} +in material( + surface: material_surface( + scattering: final_bsdf + ) +); + + +// Chameleon Paint effect presets +export material Chameleon_Pigment_Desert_Fire(*) +[[ + ::anno::display_name("Effect Pigment Paint - Desert Fire"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "orange", "warm")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Desert_Fire.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.348865, 0.082414, 0.028991), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.5f, + flakes_roughness: 0.15f, + flakes_transparency: 0.3f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.737205f, 0.517401f, 0.069727f), + flakes_paint_color_2: color(1.000000f, 0.459080f, 0.106156f), + flakes_paint_color_3: color(0.529523f, 0.080219f, 0.037029f), + flakes_paint_color_4: color(0.529523f, 0.010398f, 0.010398f), + flakes_paint_color_5: color(0.529523f, 0.039947f, 0.039947f) +); + +export material Chameleon_Pigment_Goblin_Fire(*) +[[ + ::anno::display_name("Effect Pigment Paint - Goblin Fire"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "red", "green")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Goblin_Fire.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.431340f, 0.311180f, 0.042987f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.5f, + flakes_roughness: 0.15f, + flakes_transparency: 0.05f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.737205f, 0.027755f, 0.027755f), + flakes_paint_color_2: color(1.000000f, 0.242796f, 0.054592f), + flakes_paint_color_3: color(0.219520f, 0.529523f, 0.037029f), + flakes_paint_color_4: color(0.010398f, 0.529523f, 0.041452f), + flakes_paint_color_5: color(0.035614f, 0.201096f, 0.015175f) +); + + +export material Chameleon_Pigment_Borealis(*) +[[ + ::anno::display_name("Effect Pigment Paint - Borealis"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "blue", "cool")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Borealis.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.069727f, 0.047776f, 0.415148), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.60f, + flakes_roughness: 0.301f, + flakes_transparency: 0.111f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.267358f, 0.612066f, 0.547994f), + flakes_paint_color_2: color(0.127530f, 0.659224f, 0.378676f), + flakes_paint_color_3: color(0.006585f, 0.163641f, 0.399293f), + flakes_paint_color_4: color(0.011126f, 0.013473f, 0.535642f), + flakes_paint_color_5: color(0.056374f, 0.015175f, 0.201096f) +); + + +export material Chameleon_Pigment_Candytron(*) +[[ + ::anno::display_name("Effect Pigment Paint - Candytron"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "orange", "pink", "warm")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Candytron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.645555f, 0.183549f, 0.042987f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.39f, + flakes_roughness: 0.286f, + flakes_transparency: 0.03f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.481952f, 0.025371f, 0.612066f), + flakes_paint_color_2: color(0.781751f, 0.259027f, 0.007155f), + flakes_paint_color_3: color(0.694081f, 0.208360f, 0.011881f), + flakes_paint_color_4: color(0.554227f, 0.566810f, 0.020951f), + flakes_paint_color_5: color(0.899385f, 0.907547f, 0.052842f) +); + + +export material Chameleon_Pigment_Deep_Purple(*) +[[ + ::anno::display_name("Effect Pigment Paint - Deep Purple"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "purple")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Deep_Purple.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.415148f, 0.047776f, 0.378676f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.39f, + flakes_roughness: 0.286f, + flakes_transparency: 0.06f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + clearcoat_ior: 1.45f, + orange_peel_scale: 0.08f, + flakes_paint_color_1: color(0.612066f, 0.054592f, 0.329729f), + flakes_paint_color_2: color(0.523443f, 0.127530f, 0.659224f), + flakes_paint_color_3: color(0.073828f, 0.006585f, 0.399293f), + flakes_paint_color_4: color(0.011126f, 0.013473f, 0.535642f), + flakes_paint_color_5: color(0.022013f, 0.015175f, 0.201096f) +); + +export material Chameleon_Pigment_Scarabeus(*) +[[ + ::anno::display_name("Effect Pigment Paint - Scarabeus"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "green")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Scarabeus.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.378676f, 0.250840f, 0.047776f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.367f, + flakes_roughness: 0.535f, + flakes_transparency: 0.06f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.238828f, 0.638779f, 0.004116f), + flakes_paint_color_2: color(0.003697f, 0.409826f, 0.003697f), + flakes_paint_color_3: color(0.012664f, 0.353741f, 0.223310f), + flakes_paint_color_4: color(0.006041f, 0.173439f, 0.130352f), + flakes_paint_color_5: color(0.003697f, 0.024223f, 0.190463f) +); + + +export material Chameleon_Pigment_Golden_Lavender(*) +[[ + ::anno::display_name("Effect Pigment Paint - Golden Lavender"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "gold", "lavender")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Lavender.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.136099f, 0.026549f, 0.673049f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.306f, + flakes_roughness: 0.317f, + flakes_transparency: 0.093f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.638779f, 0.638779f, 0.638779f), + flakes_paint_color_2: color(0.573159f, 0.373615f, 0.201096f), + flakes_paint_color_3: color(0.511398f, 0.288816f, 0.019918f), + flakes_paint_color_4: color(0.344026f, 0.160444f, 0.006041f), + flakes_paint_color_5: color(0.388910f, 0.060032f, 0.011126f) +); + + +export material Chameleon_Pigment_Pink_Slip(*) +[[ + ::anno::display_name("Effect Pigment Paint - Pink Slip"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "gold", "pink", "orange", "warm")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Pink_Slip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.511398f, 0.019918f, 0.067725f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.663f, + flakes_roughness: 0.383f, + flakes_transparency: 0.05f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.409826f, 0.008373f, 0.154152f), + flakes_paint_color_2: color(0.302125f, 0.009021f, 0.108711f), + flakes_paint_color_3: color(0.612066f, 0.080219f, 0.010398f), + flakes_paint_color_4: color(0.645555f, 0.638779f, 0.011126f), + flakes_paint_color_5: color(0.404541f, 0.404541f, 0.009021f) +); + + +export material Chameleon_Pigment_Aqua_Racer(*) +[[ + ::anno::display_name("Effect Pigment Paint - Aqua Racer"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "green", "blue", "cool")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Aqua_Racer.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Effect_Pigment_Metallic( + base_color: color(0.511398f, 0.019918f, 0.067725), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.663f, + flakes_roughness: 0.383f, + flakes_transparency: 0.0f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.173439f, 0.409826f, 0.031551f), + flakes_paint_color_2: color(0.031551f, 0.302125f, 0.009021f), + flakes_paint_color_3: color(0.035614f, 0.612066f, 0.271577f), + flakes_paint_color_4: color(0.042987f, 0.481952f, 0.645555f), + flakes_paint_color_5: color(0.000367f, 0.160444f, 0.170138f) +); + + +export material Chameleon_Pigment_Golden_Green(*) +[[ + ::anno::display_name("Effect Pigment Paint - Golden Green"), + ::anno::description("A clearcoated metallic effect pigment paint with an orange peel effect."), + ::anno::author("NVIDIA Corporation"), + ::anno::created(2020, 3, 17, ""), + ::anno::key_words(string[]("design", "paint", "metallic", "flipflop", "carpaint", "automotive", "peel", "orange peel", "flake", "flakes", "multicolor", "clearcoat", "coated", "new", "green", "gold")), + ::anno::thumbnail("./.thumbs/Effect_Pigment_Metallic.Chameleon_Pigment_Golden_Green.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Effect_Pigment_Metallic( + base_color: color(0.511398f, 0.019918f, 0.067725f), + flakes_coverage: 1.0f, + flakes_scale: 0.02f, + flakes_orientation_random: 0.663f, + flakes_roughness: 0.383f, + flakes_transparency: 0.0f, + clearcoat_roughness: 0.0f, + orange_peel_amount: 0.025f, + orange_peel_scale: 0.08f, + clearcoat_ior: 1.45f, + flakes_paint_color_1: color(0.573159f, 0.348865f, 0.013473f), + flakes_paint_color_2: color(0.470440f, 0.344026f, 0.013473f), + flakes_paint_color_3: color(0.103634f, 0.246800f, 0.020951f), + flakes_paint_color_4: color(0.058187f, 0.157281f, 0.007751f), + flakes_paint_color_5: color(0.024223f, 0.101145f, 0.003697f) +); diff --git a/code/third_party/vMaterials_2/Paint/Chalk_Paint.mdl b/code/third_party/vMaterials_2/Paint/Chalk_Paint.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b62eebebda6cc0878aaee96ca0316a88e566bff3 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Chalk_Paint.mdl @@ -0,0 +1,804 @@ +/****************************************************************************** + * 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::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"; + +const string DESCRIPTION = +"A diffuse chalk paint material with a slightly glossy sheen, applied with thick strokes"; + + +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 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 + )); +} + +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)) - 0.5) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal()); +} + +export material Chalk_Paint( + 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 = 1.f [[ + ::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::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + color paint_color = color(0.742101f, 0.747431f, 0.720990f) [[ + ::anno::description("Sets the diffuse color of the paint material."), + ::anno::display_name("Paint Color"), + ::anno::in_group("Appearance") + ]], + float paint_brightness = 0.7f [[ + ::anno::description("Adjusts the brightness of the paint."), + ::anno::display_name("Paint Brightness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + float paint_roughness = 0.9f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Paint Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + float bump_strength = 0.7f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + uniform float2 texture_translate = float2(0.f) [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Translate") + ]], + 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 = float2(1.f) [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Extra White"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative")) +]] + = + let { + bool tmp0 = false; + float2 corrected_texture_scale = texture_scale * 0.5; + + material_surface tmp1( + ::df::custom_curve_layer(0.02f, 1.f, 5.f, 1.f, ::df::microfacet_beckmann_smith_bsdf(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.639999986f, 0.740999997f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1] * float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.639999986f, 0.740999997f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.811000049f, ::math::lerp(0.419999987f, 0.192000002f, paint_roughness)), histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.639999986f, 0.740999997f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1] * float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.639999986f, 0.740999997f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.811000049f, ::math::lerp(0.419999987f, 0.192000002f, paint_roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(paint_color, color(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.639999986f, 0.740999997f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Strokes_multi_R_diff_G_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), ::base::color_layer_multiply, 0.585000038f).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::math::lerp(0.400000006f, 0.f, paint_brightness)).tint, 0.f, ""), ::state::normal()), + 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, + infinite_tiling ? endless_normal(texture_2d("./textures/Chalk_Paint_Strokes_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.100000001f, patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(60.f, 0.100000001f, patch_size)) : normalmap_normal(texture_2d("./textures/Chalk_Paint_Strokes_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Chalk_Paint_Origami(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Origami"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Origami.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "white", "light", "neutral", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.684843f, 0.684843f, 0.634958f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Rose_Ash(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Rose Ash"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Rose_Ash.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "pink", "light", "warm", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.684843f, 0.664642f, 0.620393f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Moonlight(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Moonlight"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Moonlight.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "light", "neutral")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.674701f, 0.674701f, 0.674701f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Elation(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Elation"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Elation.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "lilac", "light", "desaturated")) +]] += Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.664642f, 0.659643f, 0.700210f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Misty(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Misty"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Misty.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "light", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.568561f, 0.610786f, 0.596528f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Moonstone(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Moonstone"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Moonstone.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "neutral")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.506143f, 0.510471f, 0.489035f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Roses(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Roses"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Roses.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "red", "light", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.644771f, 0.506143f, 0.472246f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + + + +export material Chalk_Paint_Felted_Wool(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Felted Wool"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Felted_Wool.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.356441f, 0.331956f, 0.279539f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Bark(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Bark"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Bark.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.215402f, 0.204714f, 0.174419f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Morning_Dew(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Morning Dew"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Morning_Dew.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "desturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.292183f, 0.370860f, 0.349348f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + + +export material Chalk_Paint_Contemplation(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Contemplation"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Contemplation.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "teal", "cool", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.210021f, 0.288993f, 0.311724f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Distance(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Distance"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Distance.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.174419f, 0.231992f, 0.273331f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Deep_Emerald(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Deep Emerald"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Deep_Emerald.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "dark")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.077511f, 0.160259f, 0.176843f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Night_Watch(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Night Watch"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Night_Watch.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "dark", "blue", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.106357f, 0.151181f, 0.146750f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Wine(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Wine"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Wine.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "red", "dark", "warm", "desaturated")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.212702f, 0.129743f, 0.144562f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Black_Bean(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Black Bean"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Black_Bean.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "dark")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.117733f, 0.097356f, 0.090467f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Dark_Forest(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Dark Forest"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Dark_Forest.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "dark", "neutral")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.123658f, 0.140238f, 0.146750f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Charcoal_Blue(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Charcoal Blue"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Charcoal_Blue.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "charcoal", "cool", "dark")) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.111966f, 0.123658f, 0.148957f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Summernight(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint - Summernight"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint.Chalk_Paint_Summernight.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "dark", "desaturated" )) +]] + = Chalk_Paint( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.069965f, 0.102704f, 0.115793f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + diff --git a/code/third_party/vMaterials_2/Paint/Chalk_Paint_Pebbles.mdl b/code/third_party/vMaterials_2/Paint/Chalk_Paint_Pebbles.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e9e3e6539713f6c53eab4741a240dd0a55fdb8f0 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Chalk_Paint_Pebbles.mdl @@ -0,0 +1,802 @@ +/****************************************************************************** + * 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::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"; + +const string DESCRIPTION = +"A diffuse chalk paint material with a slightly glossy sheen, evenly applied with a bumpy look and feel"; + + +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 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 + )); +} + +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)) - 0.5) * (factor * 2.0); + return ::math::normalize(uvw.tangent_u * lookup.x + uvw.tangent_v * lookup.y + ::state::normal()); +} + +export material Chalk_Paint_Pebbles( + 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::in_group("Appearance") + ]], + float patch_size = 0.9f [[ + ::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::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + color paint_color = color(0.1042f, 0.32314f, 0.031327f) [[ + ::anno::description("Sets the diffuse color of the paint material."), + ::anno::in_group("Appearance") + ]], + float paint_brightness = 0.737f [[ + ::anno::description("Adjusts the brightness of the paint."), + ::anno::display_name("Paint Brightness"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float paint_roughness = 0.9f [[ + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::display_name("Paint Roughness"), + ::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.f) [[ + ::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 = float2(1.f) [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::anno::in_group("Transform") + ]], + 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("Chalk Paint Pebbles - Extra White"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "white", "light", "neutral")) +]] + = + let { + bool tmp0 = false; + float2 corrected_texture_scale = texture_scale * 0.5; + + material_surface tmp1( + ::df::custom_curve_layer(0.02f, 1.f, 5.f, histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.266000003f, 0.180000007f), ::df::microfacet_beckmann_smith_bsdf(histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.51f, 0.502f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1] * float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.985000074f, ::math::lerp(0.36f, 0.09f, paint_roughness)), histogram_scan_big(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1] * float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.985000074f, ::math::lerp(0.36f, 0.09f, paint_roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(paint_color, color(float3(infinite_tiling ? endless_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.824000001f, 0.50999999f, 0.501999974f), ::math::lerp(60.f, 0.1f, patch_size), true) : ::base::file_texture(texture_2d("./textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0]), ::base::color_layer_multiply, 0.8f).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::math::lerp(0.400000006f, 0.f, paint_brightness)).tint, 0.f, ""), ::state::normal()), + 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, + infinite_tiling ? endless_normal(texture_2d("./textures/Chalk_Paint_Pebbles_norm.jpg", ::tex::gamma_linear), bump_strength, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), ::math::lerp(60.f, 0.1f, patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(60.f, 0.1f, patch_size)) : normalmap_normal(texture_2d("./textures/Chalk_Paint_Pebbles_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Chalk_Paint_Pebbles_Origami(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Origami"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Origami.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "white", "light", "neutral", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.684843f, 0.684843f, 0.634958f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Rose_Ash(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Rose Ash"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Rose_Ash.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "pink", "light", "warm", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.684843f, 0.664642f, 0.620393f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Moonlight(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Moonlight"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Moonlight.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "light", "neutral")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.674701f, 0.674701f, 0.674701f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Elation(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Elation"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Elation.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "lilac", "light", "desaturated")) +]] += Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.664642f, 0.659643f, 0.700210f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Misty(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Misty"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Misty.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "light", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.568561f, 0.610786f, 0.596528f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Moonstone(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Moonstone"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Moonstone.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "neutral")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.506143f, 0.510471f, 0.489035f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Roses(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Roses"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Roses.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "rose", "red", "light", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.644771f, 0.506143f, 0.472246f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + + + +export material Chalk_Paint_Pebbles_Felted_Wool(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Felted Wool"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Felted_Wool.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.356441f, 0.331956f, 0.279539f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Bark(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Bark"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Bark.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.215402f, 0.204714f, 0.174419f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Morning_Dew(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Morning Dew"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Morning_Dew.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "green", "desturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.292183f, 0.370860f, 0.349348f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + + +export material Chalk_Paint_Pebbles_Contemplation(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Contemplation"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Contemplation.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "teal", "cool", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.210021f, 0.288993f, 0.311724f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Distance(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Distance"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Distance.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.174419f, 0.231992f, 0.273331f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Deep_Emerald(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Deep Emerald"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Deep_Emerald.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "cool", "dark")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.077511f, 0.160259f, 0.176843f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Night_Watch(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Night Watch"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Night_Watch.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "dark", "blue", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.106357f, 0.151181f, 0.146750f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Wine(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Wine"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Wine.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "red", "dark", "warm", "desaturated")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.212702f, 0.129743f, 0.144562f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Black_Bean(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Black Bean"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Black_Bean.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "brown", "dark")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.117733f, 0.097356f, 0.090467f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Dark_Forest(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Dark Forest"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Dark_Forest.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "gray", "dark", "neutral")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.123658f, 0.140238f, 0.146750f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Charcoal_Blue(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Charcoal Blue"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Charcoal_Blue.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "charcoal", "cool", "dark")) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.111966f, 0.123658f, 0.148957f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + + +export material Chalk_Paint_Pebbles_Summernight(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Chalk Paint Pebbles - Summernight"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Chalk_Paint_Pebbles.Chalk_Paint_Pebbles_Summernight.png"), + ::anno::key_words(string[]("paint", "chalk", "wall", "bumped", "rough", "design", "new", "infinite tiling", "architecture", "decorative", "blue", "dark", "desaturated" )) +]] + = Chalk_Paint_Pebbles( + infinite_tiling: true, + patch_size: 0.9f, + paint_color: color(0.069965f, 0.102704f, 0.115793f), + paint_brightness: 0.7f, + paint_roughness: 0.9f, + bump_strength: 0.7f, + texture_translate: float2(0.f), + texture_rotate: 0.f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); diff --git a/code/third_party/vMaterials_2/Paint/Hammer_Paint.mdl b/code/third_party/vMaterials_2/Paint/Hammer_Paint.mdl new file mode 100644 index 0000000000000000000000000000000000000000..d86377059d03315c4b08417027c25b9e8cd785bf --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Hammer_Paint.mdl @@ -0,0 +1,688 @@ +/****************************************************************************** + * 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"; + +annotation preview_scale( float f); + +float screen(float base, float layer, float weight) +{ + return base + (1.0f - base) * layer * weight; +} + +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); + 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)); +} + +::base::texture_coordinate_info vmat_transform_post_scale( + ::base::texture_coordinate_info uvw, + float2 scale = float2(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 + ); +} + +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); +} + +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); +} + +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)) - 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))); +} + + +float3 rgb2hsl(float3 c) +[[ + ::anno::description("Converts a color value to HSL. The function outputs the hue to \n" + "lie in the range from 0.0-1.0."), + ::anno::author("NVIDIA vMaterials") +]] +{ + float3 hsl; + float cMax = ::math::max(::math::max(c.x, c.y), c.z); + float cMin = ::math::min(::math::min(c.x, c.y), c.z); + float delta = cMax - cMin; + + hsl.z = (cMax + cMin) / 2.0; + hsl.x = ((cMax == cMin) ? 0 : + (cMax == c.x) ? (c.y - c.z) / delta + ((c.z > c.y) ? 6.0f : 0.0f): + (cMax == c.y) ? (c.z - c.x) / delta + 2.0 : (c.x - c.y) / delta + 4.0) / 6.0f; + hsl.y = (hsl.z == 0.0 || hsl.z == 1.0) ? 0.0 : delta / (1.0 - ::math::abs(2.0 * hsl.z - 1.0)); + return hsl; +} + + +// converts a HSL value back to a color +// The Hue is expected to lie in the range +float f_n(float n, float a, float h, float l) { + float k = ::math::fmod(n + h * 12.f, 12.f); + + return l - a * ::math::max(-1.0f, ::math::min(::math::min(k-3.0f, 9.0f-k), 1.0f)); +} + +color hsl2rgb(float3 hsl) +[[ + ::anno::description("Converts a HSL value back to a color. Note that the hue is expected to \n" + "lie in the range from 0.0-1.0."), + ::anno::author("NVIDIA vMaterials") +]] +{ + float h = hsl.x, s = hsl.y, l = hsl.z; + float a = s * ::math::min(l, 1.0f - l); + return color(f_n(0.0, a, h, l), + f_n(8.0, a, h, l), + f_n(4.0, a, h, l)); +} + + + +const string DESCRIPTION = "A hammer paint material"; + +export material Hammer_Paint( + 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) + ]], + color paint_color = color(0.028426f, 0.144128f, 0.144128f) [[ + ::anno::description("Choose the color of the paint."), + ::anno::display_name("Paint Color"), + ::anno::in_group("Appearance"), + ::anno::ui_order(1) + ]], + float contrast = 0.24f [[ + ::anno::description("Increases the contrast of the hammer paint surface."), + ::anno::display_name("Paint Contrast"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(2) + ]], + 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::ui_order(3) + ]], + float bump_strength = 0.5f [[ + ::anno::description("\t\nSpecifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f), + ::anno::ui_order(4) + ]], + 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(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 = 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.0f, 1.0f)), + ::preview_scale(2.1f), + ::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 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(9) + ]], + 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(10) + ]], + 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(11) + ]]) +[[ + ::anno::display_name("Hammer Paint - Dark Blue"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "blue", "dark", "cool")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint.png") +]] + = + let { + bool tmp0 = false; + material_surface tmp1(::df::custom_curve_layer(0.0599999987f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(screen(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).x, ::math::lerp(0.479999989f, 0.74000001f, roughness), ::math::lerp(0.109999999f, 0.589999974f, roughness)), float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).y, ::math::lerp(0.300000012f, 0.859999955f, roughness)) * screen(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).x, ::math::lerp(0.479999989f, 0.74000001f, roughness), ::math::lerp(0.109999999f, 0.589999974f, roughness)), float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).y, ::math::lerp(0.300000012f, 0.859999955f, roughness)), screen(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).x, ::math::lerp(0.479999989f, 0.74000001f, roughness), ::math::lerp(0.109999999f, 0.589999974f, roughness)), float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).y, ::math::lerp(0.300000012f, 0.859999955f, roughness)) * screen(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).x, ::math::lerp(0.479999989f, 0.74000001f, roughness), ::math::lerp(0.109999999f, 0.589999974f, roughness)), float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_rough.jpg", ::tex::gamma_linear), vmat_transform_post_scale(vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.f)), 4.f, float3(0.409000009f, 0.0960000008f, 0.f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_rough.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(2.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).y, ::math::lerp(0.300000012f, 0.859999955f, roughness)), 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(0.550000012f, ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(paint_color, color(0.f, 0.f, 0.f), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, true).tint, color(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y), ::base::color_layer_add, contrast * 0.25f, true).tint, hsl2rgb(float3(rgb2hsl(float3(paint_color)).x, rgb2hsl(float3(paint_color)).y, rgb2hsl(float3(paint_color)).z * (contrast * 0.119999997f))), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::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 * contrast, false).tint, 0.f), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(0.230399996f, 0.230399996f, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(paint_color, color(0.f, 0.f, 0.f), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, true).tint, color(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y), ::base::color_layer_add, contrast * 0.25f, true).tint, hsl2rgb(float3(rgb2hsl(float3(paint_color)).x, rgb2hsl(float3(paint_color)).y, rgb2hsl(float3(paint_color)).z * (contrast * 0.119999997f))), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::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 * contrast, false).tint, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(paint_color, color(0.f, 0.f, 0.f), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).x, true).tint, color(float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false, 0.f, int2(0), ::tex::wrap_repeat, 30.f).tint).y), ::base::color_layer_add, contrast * 0.25f, true).tint, hsl2rgb(float3(rgb2hsl(float3(paint_color)).x, rgb2hsl(float3(paint_color)).y, rgb2hsl(float3(paint_color)).z * (contrast * 0.119999997f))), ::base::color_layer_blend, float3(infinite_tiling ? endless_texture(texture_2d("./textures/hammer_paint_multi_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.559000015f, 0.108000003f, 0.143999994f), 4.f, false) : ::base::file_texture(texture_2d("./textures/hammer_paint_multi_diff.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.200000003f, ::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 * contrast, false).tint, ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, true, true, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.5f, 0.5f, 1.f), 4.f) : normalmap_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index))), infinite_tiling ? endless_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, true, true, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.5f, 0.5f, 1.f), 4.f) : normalmap_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index))), infinite_tiling ? endless_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, true, true, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::base::texture_coordinate_uvw, uv_space_index), 4.f, float3(0.5f, 0.5f, 1.f), 4.f) : normalmap_normal(texture_2d("./textures/hammer_paint_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale * 0.200000003f, ::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); + + +// 2 +export material Hammer_Paint_Brilliant_Blue(*) +[[ + ::anno::display_name("Hammer Paint - Brilliant Blue"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "blue", "cool", "brilliant")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Brilliant_Blue.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.116971f, 0.230740f, 0.238398f), + contrast: 0.12f, + roughness: 0.29f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 3 +export material Hammer_Paint_Red(*) +[[ + ::anno::display_name("Hammer Paint - Red"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "red", "warm", "saturated")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Red.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.637597f, 0.052861f, 0.017642f), + contrast: 0.1f, + roughness: 0.3f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 4 +export material Hammer_Paint_Dark_Red(*) +[[ + ::anno::display_name("Hammer Paint - Dark Red"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "red", "warm", "dark", "saturated")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Dark_Red.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.366253f, 0.034340f, 0.012286f), + contrast: 0.59f, + roughness: 0.3f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 5 +export material Hammer_Paint_Green(*) +[[ + ::anno::display_name("Hammer Paint - Green"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "green")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Green.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.107023f, 0.198069f, 0.029557f), + contrast: 0.77f, + roughness: 0.42f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 6 +export material Hammer_Paint_Black(*) +[[ + ::anno::display_name("Hammer Paint - Black"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "black", "dark", "neutral")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Black.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.012286f, 0.012286f, 0.012286f), + contrast: 0.19f, + roughness: 0.3f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 7 +export material Hammer_Paint_Anthracite(*) +[[ + ::anno::display_name("Hammer Paint - Anthracite"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "anthracite", "gray", "neutral")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Anthracite.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.078187f, 0.084376f, 0.095307f), + contrast: 0.19f, + roughness: 0.3f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 8 +export material Hammer_Paint_Copper(*) +[[ + ::anno::display_name("Hammer Paint - Copper"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "copper", "warm", "orange")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Copper.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.552011f, 0.165132f, 0.012286f), + contrast: 0.53f, + roughness: 0.25f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 9 +export material Hammer_Paint_Aluminum(*) +[[ + ::anno::display_name("Hammer Paint - Aluminum"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "gray", "aluminum", "neutral")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Aluminum.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.318547f, 0.304987f, 0.226966f), + contrast: 0.53f, + roughness: 0.3f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + +// 10 +export material Hammer_Paint_Gold(*) +[[ + ::anno::display_name("Hammer Paint - Gold"), + ::anno::description(DESCRIPTION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("paint", "hammer", "tool", "coated", "interior", "coat", "shiny", "decorative", "infinite tiling", "gold", "yellow", "warm")), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab"), + ::anno::author("NVIDIA vMaterials"), + ::anno::thumbnail("./.thumbs/Hammer_Paint.Hammer_Paint_Gold.png") +]] = Hammer_Paint +( + infinite_tiling: true, + paint_color: color(0.564712f, 0.337164f, 0.009721f), + contrast: 0.0f, + roughness: 0.0f, + bump_strength: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0, + roundcorners_enable: false, + roundcorners_radius_mm: 0.5f, + roundcorners_across_materials: false +); + diff --git a/code/third_party/vMaterials_2/Paint/Paint_Eggshell.mdl b/code/third_party/vMaterials_2/Paint/Paint_Eggshell.mdl new file mode 100644 index 0000000000000000000000000000000000000000..bf5980eaf68c4ae6df71b0a88feb55758c3ff93c --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Paint_Eggshell.mdl @@ -0,0 +1,1370 @@ +/***************************************************************************** +* Copyright 2024 NVIDIA Corporation. All rights reserved. +****************************************************************************** + + MDL MATERIALS ARE PROVIDED PURSUANT TO AN END USER LICENSE AGREEMENT, + WHICH WAS ACCEPTED IN ORDER TO GAIN ACCESS TO THIS FILE. IN PARTICULAR, + 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 ::nvidia::core_definitions::flex_material_v2; +import ::nvidia::core_definitions::perlin_noise_bump_texture; +import ::state::normal; +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"; + +/* AEC Flat Paint */ + + +export material Paint_Eggshell( + color base_color = color (0.590619, 0.715694, 0.644480) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0f, 4.0f), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Aqua"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "pastel", "eggshell", "interior", "aqua", "blue", "light", "cool")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Teal( + color base_color = color (0.270498, 0.644480, 0.623960) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Teal"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "pastel", "teal", "blue", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Teal.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Lime( + color base_color = color (0.723055, 0.791298, 0.412543) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Lime"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "pastel", "lime", "green", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Lime.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Leaf( + color base_color = color (0.351533, 0.428690, 0.287441) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Leaf"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "pastel", "eggshell", "interior", "leaf", "green", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Leaf.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Light_Denim( + color base_color = color (0.124772, 0.238398, 0.323143) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Light Denim"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "denim", "blue", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Light_Denim.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Denim( + color base_color = color (0.061246, 0.109462, 0.168269) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Denim"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "denim", "blue")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Denim.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Peach( + color base_color = color (0.973445, 0.822786, 0.715694) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Peach"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "pastel", "peach", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Peach.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Pale_Rose( + color base_color = color (0.806952, 0.577580, 0.545724) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Pale Rose"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "pastel", "rose", "pale", "light", "warm")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Pale_Rose.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Burnt_Red( + color base_color = color (0.577580, 0.102242, 0.070360) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Burnt Red"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "red", "burnt", "warm")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Burnt_Red.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Copper( + color base_color = color (0.462077, 0.124772, 0.052861) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Copper"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "copper", "brown", "warm")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Copper.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Sunny( + color base_color = color (0.715694, 0.376262, 0.012983) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Sunny"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "sunny", "warm", "yellow")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Sunny.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Nude( + color base_color = color (0.791298, 0.456411, 0.230740) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Nude"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "pastel", "eggshell", "interior", "nude", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Nude.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Camel( + color base_color = color (0.456411, 0.351533, 0.223228) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Camel"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "camel", "sand", "brown")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Camel.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Vanilla( + color base_color = color (0.814847, 0.783538, 0.603827) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Vanilla"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "pastel", "vanilla", "yellow", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Vanilla.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Taupe( + color base_color = color (0.246201, 0.194618, 0.158961) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Taupe"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "taupe", "brown", "gray")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Taupe.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Cashmere( + color base_color = color (0.644480, 0.603827, 0.564712) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Cashmere"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "pastel", "eggshell", "interior", "cashmere", "light", "white", "gray")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Cashmere.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Ash( + color base_color = color (0.127438, 0.132868, 0.124772) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Ash"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "ash", "dark", "gray")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Ash.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_Earth( + color base_color = color (0.149960, 0.066626, 0.016807) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - Earth"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "eggshell", "interior", "earth", "brown", "dark")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_Earth.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + + +export material Paint_Eggshell_White( + color base_color = color (0.9658157, 0.907549, 0.8277255) + [[ + ::anno::display_name("Color"), + ::anno::description("Choose the color of the paint."), + ::anno::in_group("Appearance") + ]], + uniform float bump_strength = 1.f + [[ + ::anno::display_name("Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::in_group("Appearance") + ]], + float reflection_roughness = 0.6f + [[ + ::anno::display_name("Finish Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0,1.0), + ::anno::in_group("Appearance") + ]], + uniform float texture_scale = 1.f + [[ + ::anno::display_name("Scale"), + ::anno::description("Larger numbers increase the texture size."), + ::nvidia::core_definitions::dimension(1.0f), + ::anno::in_group("Transform") + ]], + uniform float ior = 1.4f + [[ + ::anno::display_name("IOR"), + ::anno::description("Index of refraction."), + ::anno::soft_range(1.0,4.0), + ::anno::in_group("Advanced") + ]]) +[[ + ::anno::display_name("Eggshell Paint - White"), + ::anno::description("An eggshell paint for walls and other surfaces."), + ::anno::author("NVIDIA vMaterials"), + ::anno::key_words(string[]("aec", "paint", "pastel", "eggshell", "interior", "white", "light")), + ::anno::thumbnail("./.thumbs/Paint_Eggshell.Paint_Eggshell_White.png"), + ::anno::copyright_notice(COPYRIGHT) +]]= +::nvidia::core_definitions::flex_material_v2( + base_color: base_color, + diffuse_roughness: 0.f, + is_metal: false, + reflectivity: 0.8f, + reflection_roughness: reflection_roughness, + anisotropy: 0.f, + anisotropy_rotation: 0.f, + transparency: 0.f, + transmission_color: color ( 1.f , 1.f , 1.f), + volume_color: color ( 1.f , 1.f , 1.f), + transmission_roughness: 0.f, + base_thickness: 0.1f, + ior: ior, + thin_walled: false, + normal: ::nvidia::core_definitions::perlin_noise_bump_texture( + factor: bump_strength* 0.75f, + scaling: (1.f/texture_scale) * float3 ( 3000.f , 3000.f , 3000.f), + noise_levels: 1, + object_space: true, + absolute_noise: false, + noise_threshold_high: 1.f, + noise_threshold_low: 0.f, + translation: float3 ( 0.f), + rotation: float3 ( 0.f), + texture_space: 0)); + diff --git a/code/third_party/vMaterials_2/Paint/Paint_Gun_Metal.mdl b/code/third_party/vMaterials_2/Paint/Paint_Gun_Metal.mdl new file mode 100644 index 0000000000000000000000000000000000000000..7be509fe90c6c1e1fc04ebf6e652276f921247b4 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/Paint_Gun_Metal.mdl @@ -0,0 +1,280 @@ +/****************************************************************************** + * 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 ::anno::*; +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"; + + +// remaps a 0...1 value to lie between min and max +float remap(float x, float min, float max) +{ + return min + x * (max - min); +} + + +export material Paint_Gun_Metal ( + uniform color base_color = color(0.08) + [[ + ::anno::display_name("Base color"), + ::anno::description("The base color of the material."), + ::anno::in_group("Appearance") + ]], + uniform float flake_amount = .25 + [[ + ::anno::display_name("Flake Amount"), + ::anno::soft_range(0.0, 1.0), + ::anno::description("The amount of metal flakes in the material."), + ::anno::in_group("Appearance") + ]], + uniform float particle_size = .1 + [[ + ::anno::display_name("Particle Size"), + ::anno::soft_range(0.0, 1.0), + ::anno::description("The size of the particles in millimeters. If the paticles don't appear " + "at all, check whether you are using the correct units in yout scene. The materials is built to " + "use meters as scene unit."), + ::anno::in_group("Appearance") + ]], + uniform float3 texture_scale = float3(1.0f) + [[ + ::anno::hidden(), + ::anno::display_name("Scale"), + ::anno::description("An additional linear controller for controlling the dimension."), + ::anno::in_group("Flakes Layer"), + ::nvidia::core_definitions::dimension(float3(1.0f, 1.0f, 1.0f)) + ]] +) [[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal Paint"), + ::anno::description("Gun metal material."), + ::anno::key_words(string[]("design", "metal", "gunmetal", "flakes", "effect", "paint", "car", "rim", "new", "automotive", "wheel", "matte")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] = let +{ + color flake_color = color(1,1,1); + float flake_intensity = .8; + float flake_roughness = .3; + float flake_bumpiness = .25; + + // Scaling the particle size parameters to give the right average size of + // the particles in the render + uniform float flake_scale = particle_size * 0.0008; + + float flake_amount_2 = remap(flake_amount, 0.2, 0.6); + + ::base::texture_coordinate_info uvw = ::base::coordinate_source(coordinate_system: ::base::texture_coordinate_object); + + ::base::texture_coordinate_info transformed_uvw = + ::base::transform_coordinate( + transform: ::base::rotation_translation_scale( + rotation: float3(0.0f), + translation: float3(0.0f), + scaling: texture_scale + ), + coordinate: uvw + ); + + bsdf flake = ::df::simple_glossy_bsdf( + roughness_u: flake_roughness, + tint: flake_color + ); + + bsdf base = ::df::diffuse_reflection_bsdf ( + tint: base_color * 0.2 + ); + + float3 flake_bump = ::base::flake_noise_bump_texture( + uvw: transformed_uvw, + strength: flake_bumpiness, + scale: particle_size*flake_scale + ); + + float flake_weight = ::base::flake_noise_texture( + uvw: transformed_uvw, + intensity: flake_intensity, + scale: particle_size*flake_scale, + density: flake_amount_2 + ).mono; + +} in material ( + surface: material_surface ( + scattering: ::df::weighted_layer( + weight: flake_weight, + normal: flake_bump, + layer: flake, + base: base + ) + ) +); + + +export material Paint_Gun_Metal_Black_0(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Black 0"), + ::anno::description("A black gun metal effect paint."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "black")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Black_0.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.08), + flake_amount: 0.0f, + particle_size: .15 +); + + +export material Paint_Gun_Metal_Black_25(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Black 25"), + ::anno::description("A black gun metal effect paint."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "black")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Black_25.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.08), + flake_amount: 0.25f, + particle_size: .15 +); + + + +export material Paint_Gun_Metal_Black_50(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Black 50"), + ::anno::description("A black gun metal effect paint."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "black")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Black_50.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.08), + flake_amount: 0.50f, + particle_size: .15 +); + + + +export material Paint_Gun_Metal_Black_75(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Black 75"), + ::anno::description("A black gun metal effect paint."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "black")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Black_75.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.08), + flake_amount: 0.75f, + particle_size: .15 +); + + +export material Paint_Gun_Metal_Gray_0(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Gray 0"), + ::anno::description("A dark gray gun metal paint material."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "gray", "dark")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Gray_0.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.284), + flake_amount: 0.0f, + particle_size: .30 +); + + +export material Paint_Gun_Metal_Gray_25(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Gray 25"), + ::anno::description("A dark gray gun metal paint material."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "gray", "dark")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Gray_25.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.284), + flake_amount: 0.25, + particle_size: .30 +); + + +export material Paint_Gun_Metal_Gray_50(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Gray 50"), + ::anno::description("A dark gray gun metal paint material."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "gray", "dark")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Gray_50.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.284), + flake_amount: 0.50, + particle_size: .30 +); + + +export material Paint_Gun_Metal_Gray_75(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Gun Metal - Gray 75"), + ::anno::description("A dark gray gun metal paint material."), + ::anno::key_words(string[]("design", "metal", "paint", "flakes", "effect", "car", "automotive", "rim", "wheel", "spraypaint", "shiny", "gray", "dark")), + ::anno::thumbnail("./.thumbs/Paint_Gun_Metal.Paint_Gun_Metal_Gray_75.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Paint_Gun_Metal( + base_color: color(0.284), + flake_amount: 0.75, + particle_size: .30 +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0868a65ead7571c3e9be0f8dd6677ddaa95af3e7 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_multi_R_diff_G_rough_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de2a8369cd57f688febfb2c2d9ca6215b694c33f1d28bad9560ed6adb936c997 +size 3080694 diff --git a/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_norm.jpg b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0f108dd2747316e8a655c5fe5ece6212b6b29d0d --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Pebbles_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e5f809029a4f0163d35f754da0f61bc67ad208f4fa37ba3aedbd53fcc50541a +size 2527304 diff --git a/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0bb283bdfda64a2236085412ef9b7e629e7d3c62 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_multi_R_diff_G_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d56d097a2edba658967b52d48d499540ec3d8d91cefaeab066308051bf6dbdc4 +size 3062915 diff --git a/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_norm.jpg b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d57c72f0d11f056f7a9cef073d7727256f94b203 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/Chalk_Paint_Strokes_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f3b6a26e49d990ebbda92ecb5af7ee2a3dff66d30d227f670c5b7d28513e64fe +size 4648796 diff --git a/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_diff.jpg b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..031458b34e6c1714008ef9e99939bf32b4bd2596 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:152d7d34923591cbd17467d4b13496108d99342304b71dc30041f89f8f6c672d +size 2306217 diff --git a/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_rough.jpg b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2ba4907e409343d16c373f3c8f876ee5868714b8 --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_multi_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74e4a44e1c3e5a52ce4eee8361a28cc575090bb9bb1359f8817995c900d7d3c0 +size 2663725 diff --git a/code/third_party/vMaterials_2/Paint/textures/hammer_paint_norm.jpg b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..47246299531b982c78b2970d1ef8f24676b5f1cd --- /dev/null +++ b/code/third_party/vMaterials_2/Paint/textures/hammer_paint_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3f41a8578a3e167430888d3476406226c42ce8b70beb3a6639a602cea28cd7a6 +size 1062448 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..8eca7974fd2b74d60acafb135b217280faf27bc1 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a656a16bd4d2db2de4aa93086a3e8143fe9018f90e4242d37d523aca8a0edaed +size 104797 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough.png new file mode 100644 index 0000000000000000000000000000000000000000..8eca7974fd2b74d60acafb135b217280faf27bc1 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a656a16bd4d2db2de4aa93086a3e8143fe9018f90e4242d37d523aca8a0edaed +size 104797 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Bright_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Bright_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..88c7f1c07cfecac4bf1e3da7837817914c9f2e71 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Bright_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d671ad1120568d188a43e3188483261e8757715e982c733093c3d1e63f1851b +size 118187 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Dark_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Dark_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..28442373126777eb00b076246e22ab90dd4f062b --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Dark_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b2ef11d8727842a6c845943ca068438a303c3ab8aee129c4657db732fe7fc61e +size 112114 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Matte.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..cf4f26642f9ce4c5725b8c37f2d5dea21558042b --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Facade_Plaster_Rough.mdl@Facade_Plaster_Rough_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4eaac74da4ecf21eef0b9d8c48bb1ea4ad8427e5db0c18db46ebd19d7dc0313c +size 105421 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..c3d39fb2e2fbc541dfc0a44e9173b64feadf2136 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e2ce0690066e99dc4e13c7e7218f669f21bc30b4b07ad512c8c570d56479e65 +size 135660 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone.png new file mode 100644 index 0000000000000000000000000000000000000000..c3d39fb2e2fbc541dfc0a44e9173b64feadf2136 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e2ce0690066e99dc4e13c7e7218f669f21bc30b4b07ad512c8c570d56479e65 +size 135660 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Ash.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Ash.png new file mode 100644 index 0000000000000000000000000000000000000000..27374980848ebbd2e62d2fa0789623843baaeea0 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Ash.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9bbc65d3f6601dd54829d25e3895f252f0065f713a67643f424c154194c6be28 +size 128972 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Brown.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Brown.png new file mode 100644 index 0000000000000000000000000000000000000000..252c59c1463531f7ea3433f66647fb234cc06961 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Brown.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de2c8008f1cebc347572adaf62c4ee37ee45936fbb61e98650b66f4b2e5dad7f +size 125322 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Red.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..2314b8e0eb4c65affeb389b2cde1b65c28011ff3 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Mosaic_Multi_Color_Stone.mdl@Mosaic_Multi_Color_Stone_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72a0c2bde5afd5ecacda5109ed9ceafb61609c41eb1b60b92f053e4d532dc3fa +size 135234 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..9f4810fbe10588a559d31bc3c6b2d426d80cde91 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8dafe39dd0d4d33a76d89abf76f5982ffafdaa3f8e32fc9567456282e43f2c5a +size 82937 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall.png new file mode 100644 index 0000000000000000000000000000000000000000..9f4810fbe10588a559d31bc3c6b2d426d80cde91 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8dafe39dd0d4d33a76d89abf76f5982ffafdaa3f8e32fc9567456282e43f2c5a +size 82937 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Cracked.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Cracked.png new file mode 100644 index 0000000000000000000000000000000000000000..65d49cda4d1f4da3c98a0b8ba4df086f5bcb29d8 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Cracked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30d7c02e2c32902efc5aab0c58a21e18880a5c5bf9fabad8c62d8974f051d21d +size 87016 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Slightly_Cracked.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Slightly_Cracked.png new file mode 100644 index 0000000000000000000000000000000000000000..5afd9dad10c27952d22ccdf5792f24749a8d0c54 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Slightly_Cracked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cdc83e4917b880a6c0827ce957af3b9eede2e655ef0ab653a02d2f1b45dbe756 +size 84611 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Weathered.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Weathered.png new file mode 100644 index 0000000000000000000000000000000000000000..bafc234f5fa57fed05068ddbfc6c796e70c758aa --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Plaster_Wall.mdl@Plaster_Wall_Weathered.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e1af24a5babca9fedd394c4dd646e3fcb6a6ea49b3629ec9459902d51fd6e96 +size 87937 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..f6ad2766ab2e93fb77bbc27766d23a9706c18472 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dbb2ba5c3917d2d36a5448a66d8b17fa29d4c22bd9b3621d09e7a6bad815bcc +size 76263 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco.png new file mode 100644 index 0000000000000000000000000000000000000000..f6ad2766ab2e93fb77bbc27766d23a9706c18472 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dbb2ba5c3917d2d36a5448a66d8b17fa29d4c22bd9b3621d09e7a6bad815bcc +size 76263 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Dirty.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Dirty.png new file mode 100644 index 0000000000000000000000000000000000000000..ba4715bf4ff9230903665a087f606163b53bee2e --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Dirty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:529830b8240551a500450057a2c7296c71a8aa9fe815ce853af760c0663b48d4 +size 84735 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Old_Repainted.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Old_Repainted.png new file mode 100644 index 0000000000000000000000000000000000000000..999282c16ba400d2bee19fa3aa330d18f8ed0043 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Old_Repainted.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2420237bbb01c29ee2d4282c83b00d4f7e4dc0bca040024938d0cef98e1fc02d +size 84340 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Shiny_Rough.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Shiny_Rough.png new file mode 100644 index 0000000000000000000000000000000000000000..e3460b51e11206455f30d922d45443661766a67a --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Shiny_Rough.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d1d7f5621cd67f23e79a1872c8514f568694e8babff247cb9de33b2a214741eb +size 82965 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Slight_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Slight_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..a5cec8745bf1baa6d534ef56be008338408ea681 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Slight_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:83d4d5f2a661d207857f4ac8b25777acec9e88ac5a38e9bf3efeec3a1971fc77 +size 79407 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Subtle_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Subtle_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..034e611ac378ed7f1db99d81f908270b62fca837 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/256x256/Stucco.mdl@Stucco_Subtle_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:48026096f38dc3c84748a15a1e5c8139553369b1574122913fb940942fe43fb3 +size 74488 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough.png new file mode 100644 index 0000000000000000000000000000000000000000..69b5eeb016173f0e3f1bfd1fa1e3737a1bf1fa23 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b8df5156d7846f54c4f82d86e887c7b91bee8633c22b65af6e64a88ddf2ca19d +size 110161 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Bright_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Bright_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..38cfca6d50b2722c2ae673c7f7231d14a839c4d4 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Bright_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b31d98bcc425938efcd780e086f76c19bf95dc48fc2dbbc053bb6ea0c69ff958 +size 122378 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Dark_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Dark_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..0bcb51a8509941c12eb3172a363c1950582a3487 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Dark_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8b8021a47eae7355e4bc3668ad3ec73ff0743d610983e2d964d581e6e8bdb06 +size 117270 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Matte.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..d38041bf258ac00a829cc43ca9aabbb9e652ae74 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59235e6a0a073463d0f292411385a2be35ba9dffe265f79dacc424eeebbd74ea +size 110449 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone.png new file mode 100644 index 0000000000000000000000000000000000000000..312c441d936d7360ea75c68e1623f6457b412a55 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:cb16d9fbc0a2fea5a8ae67116a83527318a6c55130da383f085403728aa67ef9 +size 98615 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Ash.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Ash.png new file mode 100644 index 0000000000000000000000000000000000000000..099c85c6363f90313e405afd0c87b207e7a421ea --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Ash.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a6a3eccd0ecd81c681537714b0a06126125cd8085e7611b472a8286e69858c1 +size 96153 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Brown.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Brown.png new file mode 100644 index 0000000000000000000000000000000000000000..252b534f407939516daa6cd70d0e95e876931280 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Brown.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7b99a3f850009a5395465fd27aa5fc19f10b4b8057a01459dee8532b82553a2a +size 96630 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Red.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Red.png new file mode 100644 index 0000000000000000000000000000000000000000..0b74d0b3a173d28b1c032a812f921abf3e189829 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d3b72c46f5b6aad3c133eba4092c3f0a51d626828ef379c0b1921b821c39629d +size 98950 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall.png new file mode 100644 index 0000000000000000000000000000000000000000..d018f05b01941be703b1d8b6c175be6fff620664 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c415bc616d858527b86627ecb2814cb9331c2d93f5aca29fb2d61473f55328b2 +size 96479 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Cracked.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Cracked.png new file mode 100644 index 0000000000000000000000000000000000000000..aa08102c8eb64c259ad19b1fd2956762ed03e9c2 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Cracked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b95ef14d3429b9d3e9c5e0f2a0b8fc4182e60e8c826ef2c7b643a540f7766b6 +size 98617 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Slightly_Cracked.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Slightly_Cracked.png new file mode 100644 index 0000000000000000000000000000000000000000..50089999541545a5d58cdcc4789121279b1082fb --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Slightly_Cracked.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e9a42f7a4d30faaa45fa872d64fb59d918154abc4fd3ea4f5377f29173a59d78 +size 97296 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Weathered.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Weathered.png new file mode 100644 index 0000000000000000000000000000000000000000..89ae142cce5dfbdcc984853975493b588bcbf75d --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Plaster_Wall.Plaster_Wall_Weathered.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:021107ed76eeefa21c92b86434b512ac11abcef7cb3e8547ea71c191df5f3bb8 +size 100964 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco.png new file mode 100644 index 0000000000000000000000000000000000000000..9321aa2d45ff8b45859ec2d8421eaf015f17ce6f --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a892b85993dd0e149674741d2c48b2f11d76e895bf890309118df3208a7ff231 +size 99960 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Dirty.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Dirty.png new file mode 100644 index 0000000000000000000000000000000000000000..1f5ca5c94c4e7f23d6b49cdd11a2289fb83cf2fe --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Dirty.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:008ba9d3b62e7d04f4e528a2d5f21d20547011821e1f7aa5d85a31841249272f +size 100558 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Old_Repainted.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Old_Repainted.png new file mode 100644 index 0000000000000000000000000000000000000000..9a31ee90029c6bad01eeca311f8a70aed6457781 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Old_Repainted.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0f4a6f897501e19cc464ca1f9a9527852828a839d9ac646a66aafe080eee54b1 +size 101933 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Shiny_Rough.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Shiny_Rough.png new file mode 100644 index 0000000000000000000000000000000000000000..ea31a2943e6d5fbff760042987f425c9a5da868f --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Shiny_Rough.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42de466febfcc7963b27a6ec13c6bf646a2712ed1769caf678fdd5ee6f937efe +size 100999 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Slight_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Slight_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..033f8b7a8043428abdec3b35f48dcb3463bb8305 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Slight_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34f6777e4ed63d0e4fa8e1a0936d7a5d4725e2414259c6c065e99458c6890d52 +size 100080 diff --git a/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Subtle_Dirt.png b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Subtle_Dirt.png new file mode 100644 index 0000000000000000000000000000000000000000..98bb165364482257260b6fda42f4367eb731490b --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/.thumbs/Stucco.Stucco_Subtle_Dirt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7a3362124d2c433f5576790663b20d24cedeab2d701f2142d034eaf8bf87b99 +size 99259 diff --git a/code/third_party/vMaterials_2/Plaster/Facade_Plaster_Rough.mdl b/code/third_party/vMaterials_2/Plaster/Facade_Plaster_Rough.mdl new file mode 100644 index 0000000000000000000000000000000000000000..836b6956abc1aa0157502c9b8631fe23cd20363a --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/Facade_Plaster_Rough.mdl @@ -0,0 +1,435 @@ +/****************************************************************************** + * 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"; + + +float3 hsv2rgb(float3 c) +{ + float4 K = float4(1.0, 2.0/3.0, 1.0/3.0, 3.0); + float3 p = ::math::abs(::math::frac(float3(c.x) + float3(K.x, K.y, K.z)) * 6.0 - float3(K.w)); + return c.z * ::math::lerp(float3(K.x), ::math::clamp(p - float3(K.x), 0.0, 1.0), c.y); +} + + +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 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 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 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); +} + +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 Facade_Plaster_Rough( + 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 facade_brightness = 0.65f [[ + ::anno::display_name("Brightness"), + ::anno::description("Makes the wall material darker or brighter. Keep at 0.5 for default."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float roughness = 0.8f [[ + ::anno::display_name("Roughness"), + ::anno::description("Adjusts the roughness of the wall material."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt = 0.1f [[ + ::anno::description("Adds dirt aggregations in the dimples of the wall."), + ::anno::display_name("Dirt Amount"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_brightness = 0.5f [[ + ::anno::description("Adjusts the brightness of the dirt."), + ::anno::display_name("Dirt Brightness"), + ::anno::in_group("Appearance", "Dirt", ""), + ::anno::hard_range(0.f, 1.f) + ]], + float 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, 1.f) + ]], + uniform float2 texture_translate = float2(0.f) [[ + ::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 = float2(1.f) [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(0.35f, 0.35f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Use selected UV space for material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]], + uniform float infinite_tiling_patch_size = 0.83f [[ + ::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("Infinite Tiling Patch Size"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Rough Shiny"), + ::anno::description("A roughly plastered facade."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough.png"), + ::anno::key_words(string[]("facade", "wall", "plaster", "rough", "exterior", "construction", "bumped", "white", "infinite tiling", "light", "new", "neutral")) +]] + = + let { + bool tmp0 = false; + material_surface tmp1( + ::df::custom_curve_layer(0.0199999996f, 1.f, 5.f, ::math::lerp(::math::lerp(0.362000018f, 1.f, histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.5f, 0.756000042f)), ::math::lerp(0.21100001f, 1.f, histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.43900001f, ::math::lerp(0.288000017f, 0.77700001f, dirt))), 0.f), ::df::microfacet_ggx_smith_bsdf(remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_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], 0.f, 1.f, ::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.5f, 1.f, roughness)) * remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_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], 0.f, 1.f, ::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.5f, 1.f, roughness)), remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_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], 0.f, 1.f, ::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.5f, 1.f, roughness)) * remap(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_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], 0.f, 1.f, ::math::lerp(0.f, 0.5f, roughness), ::math::lerp(0.5f, 1.f, roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(color(::math::pow(hsv2rgb(float3(0.0900000036f, 0.75999999f, ::math::lerp(0.f, 0.453000009f, dirt_brightness))), 2.20000005f)), ::nvidia::core_definitions::blend_colors(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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, infinite_tiling_patch_size), float3(0.753000021f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), true) : ::base::file_texture(texture_2d("./textures/plaster_rough_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_overlay, ::math::lerp(0.300000012f, 0.f, facade_brightness)).tint, ::base::color_layer_blend, ::math::lerp(0.107000008f, 1.f, histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./textures/plaster_rough_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), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), float3(0.834999979f, 0.885999978f, 0.583999991f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size), false) : ::base::file_texture(texture_2d("./textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.43900001f, ::math::lerp(0.288000017f, 0.77700001f, dirt)))).tint, 0.f, ""), ::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, + infinite_tiling ? endless_normal(texture_2d("./textures/plaster_rough_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, infinite_tiling_patch_size), float3(0.5f, 0.5f, 1.f), ::math::lerp(30.f, 0.100000001f, infinite_tiling_patch_size)) : normalmap_normal(texture_2d("./textures/plaster_rough_norm.jpg", ::tex::gamma_linear), bump_strength, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Facade_Plaster_Rough_Matte(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Rough Matte"), + ::anno::description("A roughly plastered facade."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Matte.png"), + ::anno::key_words(string[]("facade", "wall", "plaster", "rough", "exterior", "construction", "bumped", "white", "infinite tiling", "light", "neutral", "matte")) +]] + = Facade_Plaster_Rough( + infinite_tiling: true, + facade_brightness: 0.3f, + roughness: 0.9f, + dirt: 0.0f, + dirt_brightness: 0.5f, + bump_strength: 1.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + infinite_tiling_patch_size: 0.83f +); + + +export material Facade_Plaster_Rough_Dark_Dirt(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Rough Dark Dirt"), + ::anno::description("A roughly plastered facade."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Dark_Dirt.png"), + ::anno::key_words(string[]("facade", "wall", "plaster", "rough", "exterior", "construction", "bumped", "white", "infinite tiling", "light", "dirty", "dirt", "neutral")) +]] + = Facade_Plaster_Rough( + infinite_tiling: true, + facade_brightness: 0.3f, + roughness: 0.5f, + dirt: 0.8f, + dirt_brightness: 0.5f, + bump_strength: 1.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + infinite_tiling_patch_size: 0.83f +); + + +export material Facade_Plaster_Rough_Bright_Dirt(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Rough Bright Dirt"), + ::anno::description("A roughly plastered facade."), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Facade_Plaster_Rough.Facade_Plaster_Rough_Bright_Dirt.png"), + ::anno::key_words(string[]("facade", "wall", "plaster", "rough", "exterior", "construction", "bumped", "white", "infinite tiling", "light", "dirty", "dirt", "neutral")) +]] + = Facade_Plaster_Rough( + infinite_tiling: true, + facade_brightness: 0.3f, + roughness: 0.5f, + dirt: 0.8f, + dirt_brightness: 0.9f, + bump_strength: 1.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f, 1.0f), + uv_space_index: 0, + infinite_tiling_patch_size: 0.83f +); + + diff --git a/code/third_party/vMaterials_2/Plaster/Mosaic_Multi_Color_Stone.mdl b/code/third_party/vMaterials_2/Plaster/Mosaic_Multi_Color_Stone.mdl new file mode 100644 index 0000000000000000000000000000000000000000..bfc8951fe32313dcb50cc2b2e5d5af9697be99c9 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/Mosaic_Multi_Color_Stone.mdl @@ -0,0 +1,264 @@ +/****************************************************************************** + * 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 facade stone granules material"; + +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)); +} + +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 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()); +} + + +export material Mosaic_Multi_Color_Stone( + color pebbles_tint = color(0.592438f, 0.404541f, 0.006585f) [[ + ::anno::display_name("Pebbles Tint"), + ::anno::description("Tints a smaller selection of pebbles in the given color."), + ::anno::in_group("Appearance") + ]], + float pebbles_roughness = 0.21f [[ + ::anno::display_name("Pebbles Roughness"), + ::anno::description("Adjusts the overall roughness of the material."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + float diffuse_brightness = 0.5f [[ + ::anno::display_name("Material Brightness"), + ::anno::description("Adjusts the overall brightness of the material."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.0f, 1.0f) + ]], + uniform float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Translate"), + ::anno::description("Offsets the position of the material."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Rotate"), + ::anno::description("Rotates the material."), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = float2(1.f) [[ + ::anno::display_name("Scale"), + ::anno::description("Scales the material."), + ::nvidia::core_definitions::dimension(float2(1.0, 1.0)), + ::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::description(DESCRIPTION), + ::anno::display_name("Mosaic Multi Color Stone - Sand"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("aec", "construction", "wall", "facade", "exterior", "hard", "pebbles", "sand", "warm", "granule", "plaster", "stone", "multi", "color")), + ::anno::thumbnail("./.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = + let { + bool tmp0 = false; + + float2 corrected_texture_scale = texture_scale * 0.5f; + material_surface tmp1( + ::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, histogram_scan_big(float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.484000027f, 0.613927007f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.49000001f, 1.f, pebbles_roughness)) * histogram_range(float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.49000001f, 1.f, pebbles_roughness)), histogram_range(float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.49000001f, 1.f, pebbles_roughness)) * histogram_range(float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.49000001f, 1.f, pebbles_roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(::math::lerp(0.5f, 0.899999976f, diffuse_brightness)), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, pebbles_tint, ::base::color_layer_overlay, float3(::base::file_texture(texture_2d("./textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2]).tint, 0.f, ""), ::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, + normalmap_normal(texture_2d("./textures/mosaic_multi_color_stone_norm.jpg", ::tex::gamma_linear), 1.f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material Mosaic_Multi_Color_Stone_Red(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Mosaic Multi Color Stone - Red"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("aec", "construction", "wall", "facade", "exterior", "hard", "pebbles", "warm", "granule", "plaster", "stone", "multi", "red")), + ::anno::thumbnail("./.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Red.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = Mosaic_Multi_Color_Stone( + pebbles_tint: color(0.464741f, 0.027755f, 0.027755f), + pebbles_roughness: .228f, + diffuse_brightness: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + +export material Mosaic_Multi_Color_Stone_Ash(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Mosaic Multi Color Stone - Ash"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("aec", "construction", "wall", "facade", "exterior", "hard", "pebbles", "warm", "granule", "plaster", "stone", "multi", "ash")), + ::anno::thumbnail("./.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Ash.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = Mosaic_Multi_Color_Stone( + pebbles_tint: color(0.065754f, 0.592438f, 0.796917f), + pebbles_roughness: .228f, + diffuse_brightness: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + + +export material Mosaic_Multi_Color_Stone_Brown(*) +[[ + ::anno::description(DESCRIPTION), + ::anno::display_name("Mosaic Multi Color Stone - Brown"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::key_words(string[]("aec", "construction", "wall", "facade", "exterior", "hard", "pebbles", "warm", "granule", "plaster", "stone", "multi", "brown")), + ::anno::thumbnail("./.thumbs/Mosaic_Multi_Color_Stone.Mosaic_Multi_Color_Stone_Brown.png"), + ::anno::author("Nvidia vMaterials"), + ::anno::contributor("Maik Rohland"), + ::anno::contributor("Ruediger Raab") +]] + = Mosaic_Multi_Color_Stone( + pebbles_tint: color(0.0f, 0.054592f, 0.119264f), + pebbles_roughness: .228f, + diffuse_brightness: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); diff --git a/code/third_party/vMaterials_2/Plaster/Plaster_Wall.mdl b/code/third_party/vMaterials_2/Plaster/Plaster_Wall.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8f7ab44596f485b0982e4c491d8c2f787ae00c07 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/Plaster_Wall.mdl @@ -0,0 +1,314 @@ +/****************************************************************************** + * 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 ::tex::*; +import ::anno::*; +import ::base::*; +import ::df::*; +import ::math::*; +import ::state::*; +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 DESCRITPION = +"A plaster wall material with optional cracks and weathering effect"; + +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 remap_xy_to_0_1(float input, float x, float y) +{ + return (input - x)/(y - x); +} + +float histogram_scan_small(float input, float width, float position) +{ + return ::math::clamp( + remap_xy_to_0_1(input, + ::math::lerp(0.0, 1.0 - width, position), + ::math::lerp(width, 1.0 , position)), + 0.0, + 1.0); +} + + +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 ; +} + +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 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)); +} + + + +export material Plaster_Wall( + color diffuse_tint = color(0.838f, 0.802f, 0.775f) [[ + ::anno::description("Adjusts the color of the plaster wall."), + ::anno::display_name("Plaster Color"), + ::anno::in_group("Appearance", "Wall") + ]], + float diffuse_brightness = 0.5f [[ + ::anno::description("Adjusts the diffuse brightness of the plaster wall."), + ::anno::display_name("Plaster Brightness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Wall") + ]], + float roughness = 0.5f [[ + ::anno::description("Adjusts the roughness of the wall. Lower values make the wall more reflective."), + ::anno::display_name("Plaster Roughness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Wall") + ]], + float wall_weathering = 0.f [[ + ::anno::description("Adds a dirty grunge on top of the wall to create a weathered appearance."), + ::anno::display_name("Wall Weathering"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Wall") + ]], + float crack_darkening_weight = 0.0 [[ + ::anno::description("Darkens the plaster around the cracks."), + ::anno::display_name("Cracks Darkness"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Cracks") + ]], + uniform float cracks_bump_factor = 0.f [[ + ::anno::description("Determines the degree of bumpiness of the cracks."), + ::anno::display_name("Cracks Bump Factor"), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Cracks") + ]], + uniform float2 texture_translate = float2(0.f, 0.f) [[ + ::anno::description("Controls the position of the texture."), + ::anno::display_name("Translate"), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::description("Controls the rotation of the texture."), + ::anno::display_name("Rotate"), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = float2(1.f) [[ + ::anno::description("Larger numbers increases the texture size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(.8f, .8f)), + ::anno::in_group("Transform") + ]], + 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("Plaster Wall - New"), + ::anno::description(DESCRITPION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Plaster_Wall.Plaster_Wall.png"), + ::anno::key_words(string[]("aec", "plaster", "wall", "construction", "exterior", "interior", "rough", "weathered", "worn", "light", "white" )) +]] + = + let { + bool tmp0 = false; + material_surface tmp1( + ::df::custom_curve_layer(0.f, 1.f, 5.f, histogram_scan_small(::math::pow(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 2.20000005f), 0.74000001f, 0.864000022f), ::df::microfacet_ggx_smith_bsdf(::math::lerp(remap(::math::lerp(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.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], float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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.502000034f), 0.f, 1.f, ::math::lerp(0.297000021f, 0.728000045f, roughness), ::math::lerp(0.74000001f, 0.817000031f, roughness)), remap(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.f, 1.f, 0.975000024f, 0.697000027f), wall_weathering * 0.600000024f) * ::math::lerp(remap(::math::lerp(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.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], float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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.502000034f), 0.f, 1.f, ::math::lerp(0.297000021f, 0.728000045f, roughness), ::math::lerp(0.74000001f, 0.817000031f, roughness)), remap(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.f, 1.f, 0.975000024f, 0.697000027f), wall_weathering * 0.600000024f), ::math::lerp(remap(::math::lerp(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.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], float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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.502000034f), 0.f, 1.f, ::math::lerp(0.297000021f, 0.728000045f, roughness), ::math::lerp(0.74000001f, 0.817000031f, roughness)), remap(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.f, 1.f, 0.975000024f, 0.697000027f), wall_weathering * 0.600000024f) * ::math::lerp(remap(::math::lerp(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.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], float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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.502000034f), 0.f, 1.f, ::math::lerp(0.297000021f, 0.728000045f, roughness), ::math::lerp(0.74000001f, 0.817000031f, roughness)), remap(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[2], 0.f, 1.f, 0.975000024f, 0.697000027f), wall_weathering * 0.600000024f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(color(0.f, 0.f, 0.f), ::nvidia::core_definitions::blend_colors(diffuse_tint, color(::math::pow(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.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.74600005f)), ::base::color_layer_multiply, 1.f).tint, ::base::color_layer_blend, ::math::lerp(0.601000011f, 1.f, diffuse_brightness)).tint, color(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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_overlay, ::math::lerp(0.f, 0.550000012f, wall_weathering)).tint, color(::math::pow(float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_ao_g_grunge_b_diff.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 2.20000005f)), ::base::color_layer_multiply, 0.503000021f).tint, color(0.367246985f, 0.367246985f, 0.367246985f), ::base::color_layer_multiply, float3(::base::file_texture(texture_2d("./textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.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] * (crack_darkening_weight * 0.600000024f)).tint, 0.f, ""), ::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, + add_detail_normal(normalmap_normal(texture_2d("./textures/plaster_wall_cracks_norm.jpg", ::tex::gamma_linear), cracks_bump_factor, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)), normalmap_normal(texture_2d("./textures/plaster_wall_norm.jpg", ::tex::gamma_linear), 0.55400002f, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index)))); + + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Plaster_Wall_Slightly_Cracked(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Wall - Slightly Cracked"), + ::anno::description(DESCRITPION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Plaster_Wall.Plaster_Wall_Slightly_Cracked.png"), + ::anno::key_words(string[]("aec", "plaster", "wall", "construction", "exterior", "interior", "rough", "weathered", "worn", "cracked", "cracks", "light", "white" )) +]] = Plaster_Wall( + diffuse_tint: color(0.838f, 0.802f, 0.775f), + diffuse_brightness: 0.473f, + roughness: 0.4f, + wall_weathering: 0.35f, + crack_darkening_weight: 0.322f, + cracks_bump_factor: 0.25f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + +export material Plaster_Wall_Cracked(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Wall - Cracked"), + ::anno::description(DESCRITPION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Plaster_Wall.Plaster_Wall_Cracked.png"), + ::anno::key_words(string[]("aec", "plaster", "wall", "construction", "exterior", "interior", "rough", "weathered", "worn", "cracked", "cracks", "light", "white" )) +]] = Plaster_Wall( + diffuse_tint: color(0.933f, 0.900f, 0.844f), + diffuse_brightness: 0.473f, + roughness: 0.7f, + wall_weathering: 0.35f, + crack_darkening_weight: 1.0f, + cracks_bump_factor: 0.83f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + +export material Plaster_Wall_Weathered(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Plaster Wall - Weathered"), + ::anno::description(DESCRITPION), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Plaster_Wall.Plaster_Wall_Weathered.png"), + ::anno::key_words(string[]("aec", "plaster", "wall", "construction", "exterior", "interior", "rough", "weathered", "old", "worn", "light", "white" )) +]] = Plaster_Wall( + diffuse_tint: color(0.973f, 0.815f, 0.697f), + diffuse_brightness: 0.23, + roughness: 0.7f, + wall_weathering: 1.0f, + crack_darkening_weight: 0.215f, + cracks_bump_factor: 0.2f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + uv_space_index: 0 +); + diff --git a/code/third_party/vMaterials_2/Plaster/Stucco.mdl b/code/third_party/vMaterials_2/Plaster/Stucco.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f55c19ef04ae33aad99adb8256738fc279100ebc --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/Stucco.mdl @@ -0,0 +1,629 @@ +/****************************************************************************** + * 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 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 enum palette_color +[[ + ::anno::description("Palette Color."), + ::anno::hidden() +]] +{ + chalk_white + [[ ::anno::display_name("Chalk White")]], + winter_gray + [[ ::anno::display_name("Winter Gray")]], + ash + [[ ::anno::display_name("Ash")]], + sunrise + [[ ::anno::display_name("Sunrise") ]], + sand + [[ ::anno::display_name("Sand") ]], + caramel + [[ ::anno::display_name("Caramel") ]], + mustard + [[ ::anno::display_name("Mustard") ]], + coral + [[ ::anno::display_name("Coral") ]], + madera + [[ ::anno::display_name("Madera") ]], + cocoa + [[ ::anno::display_name("Cocoa") ]], + petrol + [[ ::anno::display_name("Petrol") ]], + mesa_verse + [[ ::anno::display_name("Mesa Verde") ]], + eukalyptus + [[ ::anno::display_name("Eukalyptus") ]], + sage + [[ ::anno::display_name("Sage") ]], + anthracite + [[ ::anno::display_name("Anthracite") ]], + graphite + [[ ::anno::display_name("Graphite") ]] , + ink_blue + [[ ::anno::display_name("Ink Blue") ]], + pigeon_blue + [[ ::anno::display_name("Pigeon Blue") ]] +}; + + +export material Stucco( + 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 wall_color = color(0.823529f) [[ + ::anno::description("Color of the Stucco."), + ::anno::display_name("Wall Color"), + ::anno::in_group("Appearance"), + ::anno::enable_if("use_palette_color!=true") + ]], + bool use_palette_color = false + [[ + ::anno::description("When enabled, use one of the predefined colors from the list."), + ::anno::display_name("Use palette color"), + ::anno::in_group("Appearance") + ]], + uniform palette_color color_selection = chalk_white + [[ + ::anno::description("Choose a predefined color from a palette."), + ::anno::display_name("Palette Color"), + ::anno::in_group("Appearance"), + ::anno::enable_if("use_palette_color==true") + ]], + float reflection_roughness = 0.59f [[ + ::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 roughness_variation = 0.29 [[ + ::anno::description("Sets how much the roughness is varying."), + ::anno::display_name("Roughness Variation"), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_stucco = 0.14f [[ + ::anno::description("Amount of visible dirt on the stucco surface."), + ::anno::display_name("Dirt Stucco"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_grunge = 0.02f [[ + ::anno::description("Amount of visible grunge dirt."), + ::anno::display_name("Dirt Grunge"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_deposits = 0.f [[ + ::anno::description("Amount of visible dirt deposits."), + ::anno::display_name("Dirt Deposits"), + ::anno::in_group("Appearance", "Dirt"), + ::anno::hard_range(0.f, 1.f) + ]], + float normal_stucco = 0.35f [[ + ::anno::description("Sets the strength of the normal stucco contribution."), + ::anno::display_name("Normal Stucco"), + ::anno::in_group("Appearance", "Normal"), + ::anno::hard_range(0.f, 2.f) + ]], + float normal_grunge = 0.f [[ + ::anno::description("Sets the strength of the grunge normal ."), + ::anno::display_name("Normal Grunge"), + ::anno::in_group("Appearance", "Normal"), + ::anno::hard_range(0.f, 2.f) + ]], + float normal_deposits = .53f [[ + ::anno::description("Sets the bump strength of the deposits."), + ::anno::display_name("Normal Deposits"), + ::anno::in_group("Appearance", "Normal"), + ::anno::hard_range(0.f, 2.f) + ]], + color dirt_color = color(0.071761f, 0.044553f, 0.032876f) [[ + ::anno::description("Sets the color of the dirt which is layered on the stucco."), + ::anno::display_name("Dirt Color"), + ::anno::in_group("Appearance", "Dirt") + ]], + uniform float2 texture_translate = float2(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::hard_range(-360.f, 360.f) + ]], + uniform float2 texture_scale = float2(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 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."), + ::anno::display_name("Round Corner Radius"), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f), + ::anno::enable_if("roundcorners_enable==true") + ]], + 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::enable_if("roundcorners_enable==true") + ]], + 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("Stucco material with different layers of dirt."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "smooth", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] + = + let { + color[18] palette(color(0.824240, 0.824240, 0.758153), // chalk White + color(0.674701, 0.679762, 0.654665), // Winter Gray + color(0.684843, 0.664642, 0.620393), // Ash + color(0.835547, 0.695067, 0.400636), // Sunrise + color(0.610786, 0.493282, 0.356441), // Sand + color(0.532409, 0.415995, 0.328536), // Caramel + color(0.649708, 0.554853, 0.282671), // Mustard + color(0.763545, 0.506143, 0.439627), // Coral + color(0.338855, 0.261142, 0.160259), // Madera + color(0.207358, 0.179285, 0.138104), // Cocoa + color(0.146750, 0.218120, 0.229181), // Petrol + color(0.374513, 0.400636, 0.321753), // Mesa Verse + color(0.400636, 0.506143, 0.468099), // Eukalyptus + color(0.356441, 0.378186, 0.234823), // Sage + color(0.231992, 0.229181, 0.215402), // Anthracite + color(0.140238, 0.142391, 0.131806), // Graphite + color(0.144562, 0.174419, 0.267198), // Ink Blue + color(0.489035, 0.554853, 0.654665) // Pigeon Blue + ); + + color final_wall_color = use_palette_color ? palette[color_selection] : wall_color; + + float remapped_rough = ::math::lerp(a: 0.39, b: 0.9, l: reflection_roughness); + + material_surface tmp1(::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(::math::max(::math::max(histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough)), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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_variation, remapped_rough)) * ::math::max(::math::max(histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough)), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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_variation, remapped_rough)), ::math::max(::math::max(histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough)), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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_variation, remapped_rough)) * ::math::max(::math::max(histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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], roughness_variation, remapped_rough)), histogram_range((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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_variation, remapped_rough)), 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(dirt_color, final_wall_color, ::base::color_layer_blend, nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(color(1.f, 1.f, 1.f), color((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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]), ::base::color_layer_multiply, dirt_stucco * 0.800000012f).tint, color((float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint))[1]), ::base::color_layer_multiply, dirt_grunge).tint, color(1.f - (float3(1.f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.811999977f, 0.677999973f, 0.893999994f), 4.6500001f, false) : ::base::file_texture(texture_2d("./textures/multi_R_diff_G_grunge_B_deposits.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, dirt_deposits).mono).tint, 0.f, ""), bsdf(), ::base::blend_normals(::base::blend_normals(infinite_tiling ? endless_normal(texture_2d("./textures/stucco_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.497999996f, 0.501999974f, 0.991999984f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/stucco_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), normal_stucco, infinite_tiling ? endless_normal(texture_2d("./textures/grunge_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.5f, 0.5f, 0.995000005f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/grunge_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), normal_grunge), 1.f, infinite_tiling ? endless_normal(texture_2d("./textures/deposits_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.5f, 0.5f, 0.996999979f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/deposits_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), normal_deposits)), ::base::blend_normals(::base::blend_normals(infinite_tiling ? endless_normal(texture_2d("./textures/stucco_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.497999996f, 0.501999974f, 0.991999984f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/stucco_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), normal_stucco, infinite_tiling ? endless_normal(texture_2d("./textures/grunge_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.5f, 0.5f, 0.995000005f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/grunge_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), normal_grunge), 1.f, infinite_tiling ? endless_normal(texture_2d("./textures/deposits_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 3.43999982f, float3(0.5f, 0.5f, 0.996999979f), 4.6500001f) : ::base::tangent_space_normal_texture(texture_2d("./textures/deposits_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), normal_deposits)), 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: false, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Stucco_Shiny_Rough(*) +[[ + ::anno::description("Stucco material with a shiny rough appearance."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco - Shiny Rough"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco_Shiny_Rough.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "rough", "shiny", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] + = Stucco( + infinite_tiling: true, + wall_color: color(0.823529f), + use_palette_color: false, + color_selection: chalk_white, + reflection_roughness: 0.69f, + roughness_variation: 0.62f, + dirt_stucco: 0.14f, + dirt_grunge: 0.02f, + dirt_deposits: 0.f, + normal_stucco: 0.17f, + normal_grunge: 1.0f, + normal_deposits: .53f, + dirt_color: color(0.071761f, 0.044553f, 0.032876f), + texture_translate: float2(0.f), + texture_rotate: 0.f , + texture_scale: float2(1.f), + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +export material Stucco_Old_Repainted(*) +[[ + ::anno::description("Stucco material that has been repainted."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco - Old Repainted"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco_Old_Repainted.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "old", "rough", "white", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Stucco( + infinite_tiling: true, + wall_color: color(0.823529f), + use_palette_color: false, + color_selection: chalk_white, + reflection_roughness: 0.59f, + roughness_variation: 0.29f, + dirt_stucco: 0.14f, + dirt_grunge: 0.02f, + dirt_deposits: 0.f, + normal_stucco: 0.75f, + normal_grunge: 0.70f, + normal_deposits: .53f, + dirt_color: color(0.071761f, 0.044553f, 0.032876f), + texture_translate: float2(0.f), + texture_rotate: 0.f , + texture_scale: float2(1.f), + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +export material Stucco_Subtle_Dirt(*) +[[ + ::anno::description("Stucco material with a subtle dirt layer."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco - Subtle Dirt"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco_Subtle_Dirt.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "smooth", "white", "dirt", "grunge", "old", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Stucco( + infinite_tiling: true, + wall_color: color(0.823529f), + use_palette_color: false, + color_selection: chalk_white, + reflection_roughness: 0.5f, + roughness_variation: 0.22f, + dirt_stucco: 0.12f, + dirt_grunge: 0.099f, + dirt_deposits: 0.12f, + normal_stucco: 0.07f, + normal_grunge: 0.25f, + normal_deposits: 0.46f, + dirt_color: color(0.071761f, 0.044553f, 0.032876f), + texture_translate: float2(0.f), + texture_rotate: 0.f , + texture_scale: float2(1.f), + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + +export material Stucco_Slight_Dirt(*) +[[ + ::anno::description("Stucco material with a light dirt layer."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco - Slight Dirt"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco_Slight_Dirt.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "smooth", "white", "dirt", "grunge", "old", "light", "neutral")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Stucco( + infinite_tiling: true, + wall_color: color(0.823529f), + use_palette_color: false, + color_selection: chalk_white, + reflection_roughness: 0.55f, + roughness_variation: 0.42f, + dirt_stucco: 0.2f, + dirt_grunge: 0.19f, + dirt_deposits: 0.46f, + normal_stucco: 0.07f, + normal_grunge: 0.25f, + normal_deposits: 0.46f, + dirt_color: color(0.071761f, 0.044553f, 0.032876f), + texture_translate: float2(0.f), + texture_rotate: 0.f , + texture_scale: float2(1.f), + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); + + + +export material Stucco_Dirty(*) +[[ + ::anno::description("Stucco material with a light dirt layer."), + ::anno::in_group("Masonry"), + ::anno::display_name("Stucco - Dirty"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::thumbnail("./.thumbs/Stucco.Stucco_Dirty.png"), + ::anno::key_words(string[]("stucco", "wall", "facade", "infinite tiling", "construction", "architecture", "exterior", "interior", "smooth", "white", "dirt", "grunge", "old")), + ::anno::author("NVIDIA vMaterials"), + ::anno::contributor("Ruediger Raab"), + ::anno::contributor("Maik Rohland") +]] = Stucco( + infinite_tiling: true, + wall_color: color(0.823529f), + use_palette_color: false, + color_selection: chalk_white, + reflection_roughness: 0.81f, + roughness_variation: 0.71f, + dirt_stucco: 0.36f, + dirt_grunge: 0.53f, + dirt_deposits: 0.53f, + normal_stucco: 0.44f, + normal_grunge: 0.2f, + normal_deposits: 1.0f, + dirt_color: color(0.071761f, 0.044553f, 0.032876f), + texture_translate: float2(0.f), + texture_rotate: 0.f , + texture_scale: float2(1.f), + roundcorners_enable: false, + roundcorners_radius_mm: 1.5f, + roundcorners_across_materials: false, + uv_space_index: 0 +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Plaster/textures/deposits_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/deposits_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bf8d22f019fde8b6f08b26c3dad6e2d6526d970a --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/deposits_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9b3b1222d9a91126a3f574e85ac46121765bda6aca6e20ef4a6bcb791f64b39d +size 256157 diff --git a/code/third_party/vMaterials_2/Plaster/textures/grunge_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/grunge_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..52113b61ce907503b1c9933d4b8359542cdc5f65 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/grunge_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:647470be4abe15223a1b0be9debb07049c2691eea577b5c128a3ae755df035ae +size 600366 diff --git a/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_diff.jpg b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5ded65debdef83d197d3bed302143e1b470ebe6f --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:31c81c70a8c1236f27b00d2c6e6e22f16b5b071b4f2a7db8f12f6e8a3bbbdb15 +size 4426057 diff --git a/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg new file mode 100644 index 0000000000000000000000000000000000000000..be2f3ae76b51dfc66f05a51bc71f9744450dbc64 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_multi_R_rough_G_ao_B_diffColor_mask.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c5184fd320c8cc126b591d68a3f79861feda4776a22c84ff22a3135360c8b63 +size 5468176 diff --git a/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..4e9f2e345e62540c2c70b7355d74f1200d822372 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/mosaic_multi_color_stone_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5cc9cbc4db95a10f5acf049254346508726434b81852e5f1b47437d1914067d +size 4552470 diff --git a/code/third_party/vMaterials_2/Plaster/textures/multi_R_diff_G_grunge_B_deposits.jpg b/code/third_party/vMaterials_2/Plaster/textures/multi_R_diff_G_grunge_B_deposits.jpg new file mode 100644 index 0000000000000000000000000000000000000000..234d4064bf7d8f16ba65cee19d626b636c83fa53 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/multi_R_diff_G_grunge_B_deposits.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d6aad3fd1076e2c216363d29cea7815fb06f6514e97ab784439281e449f65519 +size 1220603 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_diff.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e688fd96c60bdb16a0df83ed19242cc7f249c66d --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:958d2cd2bc4fad0e8c353394177cc34c75eb52370696e2b8618880ea067aa843 +size 1955185 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..60d3b017d466eff4674442f6a0619c8910dfb1e3 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_multi_R_rough_G_ao_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5480e0bbec124e7df3aef79a3693b4aa8d0739407880df1fe36277de195549f2 +size 3541609 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..89c9f7e74495c2d0422578e991f1505f489fc0e9 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_rough_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3dd20c55f24ef3f9b0ca8759a44255a0ae4ac6764ee44aff6889cf924dae6c9e +size 2677077 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_cracks_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_cracks_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c0af34625b636d04f6dabfcccd491699f10138ab --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_cracks_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37b80d18c50310b9dd660fe47417d8f824f557d23e15062e8745175c91f4b008 +size 844849 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_ao_g_grunge_b_diff.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_ao_g_grunge_b_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..97d8d13e74c20008e5393dd72b87a753dc2f57fa --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_ao_g_grunge_b_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0c338c97d2e38f46517a463fe7000bf869fb9c41d3a149a6c4c5026c720b9f5 +size 5210314 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..70fef89c8ddb5bd38b4502b386419d04668fa1a0 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_multi_r_rough_g_cracksmask_b_grunge2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7514aed7d0871132afda1b0cc62a00f63434707d1ee0e280d492564d91ee8c25 +size 5170898 diff --git a/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ae9f7cb8976ebf6a7961299574c263de7ed0ef52 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/plaster_wall_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fb83499aeb10a033fe5b26e8f2b741f02237054cf7699c9bb152e91b4ca44101 +size 4202535 diff --git a/code/third_party/vMaterials_2/Plaster/textures/stucco_norm.jpg b/code/third_party/vMaterials_2/Plaster/textures/stucco_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..23d7927dc37edd88bf06e24f5932388090aaf350 --- /dev/null +++ b/code/third_party/vMaterials_2/Plaster/textures/stucco_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c347509a2f228d3c8b4f52679faa78eab5afca31501fbb3982007de3ac4e8d78 +size 646486 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..bea77c787e5cd86f8f8b1784eae272e08fbee21c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e8744f40e58c9529887119dff8f81eb80d022fc03e5461a63048738de36ca0 +size 92608 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia.png new file mode 100644 index 0000000000000000000000000000000000000000..bea77c787e5cd86f8f8b1784eae272e08fbee21c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4e8744f40e58c9529887119dff8f81eb80d022fc03e5461a63048738de36ca0 +size 92608 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..53b57350aefbcb3e2c85366b08b7f217cfc3ac46 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6a5f998fcc89b916fb9a1723d9d1702860e514d70cc61f678304b2b17bb0a102 +size 92039 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Dark.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Dark.png new file mode 100644 index 0000000000000000000000000000000000000000..ad070eda388ba76ead9da56ae68a46d17de51dc6 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Dark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e9a108ce8dfc0fa046e8e415ffb30bbb801cad23ec88230c4d8ede105eae7ea +size 94119 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..4c5bca32e54f1bc930f3a344dc5b93d32f2627a9 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Polished_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2f721bb40e03c5544ddeabab2dd16212f1fba38e394bd0d84670ff765fb0a6a5 +size 92995 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..71cbc78e0ae02818bfe4a2beb9e54e08aec099b3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Ardesia_Grigia.mdl@Ardesia_Grigia_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5dbab239ff6ef40211ce94df98a4dcbb84996203e835c9f44ef666c438133cae +size 100411 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..ec2ebc893b8990afde03ade2b965f59d10c0c0f4 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:439cfdfb03c64081b34e0f4429aa4291405df7a1f7493a040cb0008ec3d3173c +size 99466 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..512a1c7f720fdbb2dbfe8833c6b13d821c768603 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e74634ec5fc710a4e330bbd74b2789072ead96f7a04f4636abdd4da2a5fd31e1 +size 99334 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..aa14256cee616bcb8a5a70acecff50d443a88a80 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5d1ec0d14a1f141c1bfa6988273b87b090c6f378229714f5ed1c70e2d485ec51 +size 99920 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished_Dark.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished_Dark.png new file mode 100644 index 0000000000000000000000000000000000000000..51989a45649253a2a4528eafa541b01cc6325ea0 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Polished_Dark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d46f4fc503ce439fa210208d060bee3cecd69f9b8956781d12879ec6de6c39e4 +size 97848 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..204edffc12c66c7e47770ccb5de42249f191f58c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Basaltite.mdl@Basaltite_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cb18b9e76f906dd2d8c09932da98df1c9982e526176a93f4af799f21f9ef201 +size 100531 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..59dce3bc39f29b80c5cd6d5e8a694dc1f6208013 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f658627b0179aba8f7dd2416e3b968760ce3f0d87fb644320af7278e5901d433 +size 91300 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Clean_Pollished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Clean_Pollished.png new file mode 100644 index 0000000000000000000000000000000000000000..72425e9dc58eb2e54b4f75dc29c566cb6d2edc6c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Clean_Pollished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bebdab3fe12d0da0adddb706cb0b8d3e5defdafa4923f7751fa80894129122f1 +size 93660 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Matte.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..f982d2d25c6204f5540b5bcb4a07c3f5c7c59232 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4ee253c5b36ea341fe8aaea0405f55f59dc5ed355e9b074d3944590f4c2c6215 +size 86484 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Ripple.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Ripple.png new file mode 100644 index 0000000000000000000000000000000000000000..ea6295587ddef54077b54a4134c7e0a2fc6a3415 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Ripple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6fdfd9b250b27efe0e6be7540ce5a5793c99af617be93222a252328695ccb05d +size 94648 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Satin.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Satin.png new file mode 100644 index 0000000000000000000000000000000000000000..fd4ee8c58f5e2633f3c3752f352f73d3e0e5016a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Devil_Black.mdl@Devil_Black_Satin.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df73016021d1c3d7f58abd431c9cdddf85f9f4465e1835172e365e77631b3e30 +size 92883 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..9df696225d26067582c789f7d7472c36128610f2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dec7290ac84fd6b311d9ebe4115181503a96b5746e8ccad624ca9e2d53af737b +size 116742 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@Granite_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@Granite_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..9df696225d26067582c789f7d7472c36128610f2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@Granite_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dec7290ac84fd6b311d9ebe4115181503a96b5746e8ccad624ca9e2d53af737b +size 116742 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@baltic_red.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@baltic_red.png new file mode 100644 index 0000000000000000000000000000000000000000..bb0a10c1d2cd545e0fbe4257b777229e5b879bb7 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@baltic_red.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e60a53406adeb5ee01232ea415e699cc77f821c4c974bb8a815213f56856d652 +size 117088 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@black_galaxy.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@black_galaxy.png new file mode 100644 index 0000000000000000000000000000000000000000..c572443b36367bb4045a0a10abee32d591fa5b92 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@black_galaxy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bfd2523a18e0d5896292fc2cef1d19ea8d9853bec434bec7f8e50347de31bc0c +size 80396 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@blue_eyes.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@blue_eyes.png new file mode 100644 index 0000000000000000000000000000000000000000..4727c1aa3b2f4b5133ceaa2812014b5cdc751226 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@blue_eyes.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8b593ebaeea30e3c8ad694495429179d7c308b31e6c79a86d876c026bbf7fd11 +size 110485 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@caledonia.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@caledonia.png new file mode 100644 index 0000000000000000000000000000000000000000..fdc0df44f8413126ebf50ffac4eed0214861e5ca --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@caledonia.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bde5870193b9786204c6b476b9e38b0c3924150f8f042075c670278bec105e5d +size 113892 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@giallo_fiorito.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@giallo_fiorito.png new file mode 100644 index 0000000000000000000000000000000000000000..cc33100a3a2959279a04da4cac58922b6890f8ea --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@giallo_fiorito.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6e7ec73ce0048d747ffbc2c99ba928d1b6a5f802868a76ad13c220f23092b278 +size 122692 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@golden_galaxy.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@golden_galaxy.png new file mode 100644 index 0000000000000000000000000000000000000000..f066b227bb5b7ce9790e941bbb8ecedbef717602 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@golden_galaxy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a2f5efa4579c49070c449e597d8801867621e73c23cffc975ac8aa7e2dcf654a +size 112586 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@ice_kynite.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@ice_kynite.png new file mode 100644 index 0000000000000000000000000000000000000000..f3f08497f6dc484dc99c3091995a4240047123e9 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@ice_kynite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40db1d1740eb637a34625f421a941950064c3fe5e8779ca969d8b59603834084 +size 98080 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tan_brown.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tan_brown.png new file mode 100644 index 0000000000000000000000000000000000000000..1f52ddb13b2c187c03a00559c67461e60520e45f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tan_brown.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2db59eeebef9b36b5d120b46655b8ce3eaf281c296b9d02bfd88195dc6fc9e6d +size 121228 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tiger_skin_gold.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tiger_skin_gold.png new file mode 100644 index 0000000000000000000000000000000000000000..f7ce599cf788550f0297612ec8f28b8715159894 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Granite_Polished.mdl@tiger_skin_gold.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87a2a074d0a9d33077e5a99dbe077341214405b7e0adc68dcc39906158d70339 +size 129362 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..f2bb723d1c6bf0966f6931cfbf79d10372872718 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9685561ae386972f7dd1ceeb22a2aff209a6da765e772e36fedd64ab95a05034 +size 120541 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Bleached.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Bleached.png new file mode 100644 index 0000000000000000000000000000000000000000..cbb5243228bd1f63dcf3fde4f46306594da6925e --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Bleached.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d41f8e21fcc91d1632c173bd66acf3baa5acf41909e5acbd5a5d63077f6b008d +size 119061 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Polished_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Polished_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..39422d6d7d0edccae6e96b08195d771b4f17bfd3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Imperial_Red.mdl@Imperial_Red_Polished_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:69b29d06d0ceafa1d5228436651d7434b71580ee245d98d49ffef59f28a9341f +size 119182 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..58d595fcd7d105802151a9f7017cef1207d9e3e4 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:234f38c5424ebcb58ee6237e5c276a98360fa7a96dbce185896e9253d3931351 +size 116068 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray.png new file mode 100644 index 0000000000000000000000000000000000000000..58d595fcd7d105802151a9f7017cef1207d9e3e4 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:234f38c5424ebcb58ee6237e5c276a98360fa7a96dbce185896e9253d3931351 +size 116068 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..e138240bedd1588e53acbf62f7f43a914a75514d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a411536750e14fc80fb0c2e2792bb1472bcf6c1c348a7ceec9ebdd02f6917cf +size 110365 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..aa09cc609977df733b15cc81bf298488380121b3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Polished_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:30a703918276153435689278611e1998c602751082c6ab1690536aaae9a23f11 +size 108724 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..78439ec17eabfe9f499fd874916cd60757c3267a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Padang_Dark_Gray.mdl@Padang_Dark_Gray_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42698434bb02270f6316406e58f9368fce445af6b8631bb2927d0ac04576f5ad +size 107813 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..de0bf0d3ae5eb6c67f5ee58939366bbdfa633bfd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca724a3e8b2d0b8ce9c31a2a3efdc631aa0aed5ab407882509659ef672c91ee0 +size 100238 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta.png new file mode 100644 index 0000000000000000000000000000000000000000..de0bf0d3ae5eb6c67f5ee58939366bbdfa633bfd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca724a3e8b2d0b8ce9c31a2a3efdc631aa0aed5ab407882509659ef672c91ee0 +size 100238 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Grunge.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Grunge.png new file mode 100644 index 0000000000000000000000000000000000000000..1a2c9a12b4a4b698d6b348dbfa02693e725e0ed5 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Grunge.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d0b8e4dc702c3f03c0390794b7d6302e190a8e290fd1bfd076d5e006e3ea4f08 +size 99784 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Matte.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..7ea1df9d6c882f0348241965a47492742396ba41 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a64d4437754b4c49c4b05483f48ac3adff9aeeed5f68e5e4064dfe2638945f8a +size 98902 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Satin.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Satin.png new file mode 100644 index 0000000000000000000000000000000000000000..68e90c240385df49878ec05038347f8005dc8e97 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Satin.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:09b2a6c36f34ce5a49f128a458c1210420f506d346f05e3094e20297cc023834 +size 97342 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Stain.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Stain.png new file mode 100644 index 0000000000000000000000000000000000000000..d0adb7300122664722476c615780cc4a6b90faca --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Rosa_Beta.mdl@Rosa_Beta_Stain.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:914e217bda0f99a1ae818378ff27049d3868b23e3730f86b456d454cc52cd30f +size 100026 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..085ee370a1861f1f944f78b0895aea0a6ae21c7f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:692570932be30425a07c351b46174ebb6d4a460e5582af2a3eeac5368bb9a910 +size 105248 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Dark.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Dark.png new file mode 100644 index 0000000000000000000000000000000000000000..f9e3298e5c14cc5bdfd66ae2b8f6fadaebf15d4d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Dark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c59647c81419867091facd27a5e81ee1fcf015a7c2efde3c4de12d104be4a74c +size 108976 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..dce35e625a50fa6a41cf8b4469ce18c3ccacd6e2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Polished_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e2c650d9a90a08cc0846c9841320e0a59a91060176dd130bb8a5b377dd6e3a37 +size 107192 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..294dd2ecfaacc01a67b76f9f052e06970789b24e --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Serizzo_Gneis.mdl@Serizzo_Gneis_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:12557d5d14839f1e506d82dc2fea854079c37913a94c9a9faa315cfb357f25da +size 109054 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..41e2146020a091243c51f2bc94bdf52270e60f1a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a32933160f28a0e75bf12a74622e7c3af4c60e8333756993dda529766cbf88f2 +size 103885 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy.png new file mode 100644 index 0000000000000000000000000000000000000000..41e2146020a091243c51f2bc94bdf52270e60f1a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a32933160f28a0e75bf12a74622e7c3af4c60e8333756993dda529766cbf88f2 +size 103885 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Dark.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Dark.png new file mode 100644 index 0000000000000000000000000000000000000000..53ef10699ab55e01f9924614489bae2e68bf11a4 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Dark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a54e5376adf9cb37d31c533489ac4a64ba1f4bcb871e25de65438b99a3cc7ca0 +size 78938 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Ice.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Ice.png new file mode 100644 index 0000000000000000000000000000000000000000..8e29718736d9480dfdf23bad6152b9e2e9dc3214 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Ice.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4a639cf2f430c6a979e9877df53e41720d550efb44321ca83f1b8a161f131d7c +size 114181 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..9a7aacf7e20deddfdf820c9eb67dc5bc4bed7e50 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d614068ce31182217363e8305e38bb7c65214914235989a585c2e3747bf107c7 +size 105215 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Used.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Used.png new file mode 100644 index 0000000000000000000000000000000000000000..9b4537d44763cf976d8414da3a1848708e94feb7 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Star_Galaxy.mdl@Star_Galaxy_Used.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e115e03c19379a1205f4dfcd0b2715fa2fef3336ee1c0e9b00076e01e2dba8b5 +size 111192 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..817f504f4ba54b9b0889553e4ff62432b77025ad --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf302ebdb525b2d0c2d96e56c738ce865d2c9fc9e084ee07adf1157aa510f2d5 +size 112110 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey.png new file mode 100644 index 0000000000000000000000000000000000000000..817f504f4ba54b9b0889553e4ff62432b77025ad --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bf302ebdb525b2d0c2d96e56c738ce865d2c9fc9e084ee07adf1157aa510f2d5 +size 112110 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Alabaster.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Alabaster.png new file mode 100644 index 0000000000000000000000000000000000000000..9eae3ef196d7800eae04ed8945535adfaeaa8664 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Alabaster.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7f088d48446224db32b157b07b50f13c1248f30999999174fef6f8327090e737 +size 119663 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Clean_Ripple.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Clean_Ripple.png new file mode 100644 index 0000000000000000000000000000000000000000..cd7c3d59b56f3c0bdde4771439382a99c36dc510 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Clean_Ripple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2b5a40cd88767e1509e3b46a6f64e3b48a7bfaa363778bde762abfb7dea3fdb8 +size 100326 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Sprinkles.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Sprinkles.png new file mode 100644 index 0000000000000000000000000000000000000000..a2ff9a4d83b4ec295c0454cce84b6d77bece6dab --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dark_Sprinkles.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fecdab0f81b6f5335ab697a63c869004adef5a795cd8f6f1083eab40e042c732 +size 110562 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dust.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dust.png new file mode 100644 index 0000000000000000000000000000000000000000..ab6241824fd16a7fc016f49b76d24a99c98ff124 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Dust.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:273535c1f848fc837c0bdac8ab8f2bc629152ecb4e70201c5b4054226e3a1cd1 +size 96878 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..0dea1e8508f34c35117c80241c56959b5f1fbe83 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:87964c2de8d480bb7803856e891fb21d2ea7ad5aa83d8c223ee99a69b8453ff8 +size 113922 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Soft_Alabaster.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Soft_Alabaster.png new file mode 100644 index 0000000000000000000000000000000000000000..50e4f4943b2e8596d4b5b2e5a474d8cc099442a0 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Steel_Grey.mdl@Steel_Grey_Soft_Alabaster.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2423e5b7736498dbdd77fc0bd961bae39bb3b7e7dc5857127b582932c4ad7923 +size 114942 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..f3cecb7d74a09ffb250ebfdeeeb27c5b5884ae39 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5adc60bb096f6e441b6069256097a036f62e04e0a6973463a2973e103002d9f +size 109487 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Matte.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..720192c39a407e691d71de6c097eae2305bdedb3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d665a62be0bf60b72c5e0ef5f5517a1091510afec1a55a0e2522e46d1088caca +size 111786 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Matte.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..33194bfb7939585f74d8a687c23da95e61098751 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ea98dee36290e73a8420a6793ce3a2a6278462fa99ba6558716df4691b9c67c +size 117571 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Shiny.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Shiny.png new file mode 100644 index 0000000000000000000000000000000000000000..b15982980f25a85204e569229b7001dc56ed6235 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Stone_Mediterranean.mdl@Stone_Mediterranean_Warm_Shiny.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0cdd4ff0ab152e6d0fa4b12c6041161b01d2c3c51ddfd6907bb706f82aa4d5b +size 116442 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl.png new file mode 100644 index 0000000000000000000000000000000000000000..16484262ad19abd9023f5190aa5bf7dd9055ef11 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ba79b17e402e6cfc1c1f83540195ee3cb483a7f102715c4c2dfecfbe11a3f1fa +size 122719 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Diffuse_Clean.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Diffuse_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..48c0aea6521e20afb538ef776cbda483c8e7d88c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Diffuse_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1697b013bbed761a922c3417c941d510a3d6a4a6d75cede484605055678b3192 +size 102163 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Dry_Matt.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Dry_Matt.png new file mode 100644 index 0000000000000000000000000000000000000000..280b9d421ad798350c489da7db36a94d584ad875 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Dry_Matt.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ed6dee523f15b030b9e059662f85800f7014f7a70330c0c9f03f94dfe6884f48 +size 119617 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Footprints.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Footprints.png new file mode 100644 index 0000000000000000000000000000000000000000..d3f8ac2e6ecca25b406ba1eb991666c3bf48f8f9 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Footprints.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a883c8a5b2162e021921d0dfd08532cb33152bca96150c8ddaec065ef25f574f +size 102619 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Freckled_Highlights.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Freckled_Highlights.png new file mode 100644 index 0000000000000000000000000000000000000000..203385c0a1635a3c27de1880f11aab0e76967ef4 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Freckled_Highlights.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0a57469b1c17a92e0b1a3641ddf427b0e9be72d8771d0ef15f2601e3b1ab1030 +size 103073 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Shiny_Clean.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Shiny_Clean.png new file mode 100644 index 0000000000000000000000000000000000000000..a8b8a737509397a2789d368de2e52ed1d0c6559e --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Shiny_Clean.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd66816c0c1476b2a0867a1818a87625685c9430d967b0137e3b3b14bb5e4708 +size 121890 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Speckled_Spots.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Speckled_Spots.png new file mode 100644 index 0000000000000000000000000000000000000000..1c3c19686422a9fed1603f956fb00bb8f40d5407 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Terrazzo.mdl@Terrazzo_Speckled_Spots.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e5a728d870eb76cf6194804789311dd40a37d9bd60571c806a3b827545bb561 +size 110203 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..c8138a55c9e11f03f4e080505ccea54ae72e2c35 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8c293686605aa875c0acd3ae22cf8161ec339e792531543eb56baff06e0c43f2 +size 112925 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Bright_Blue.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Bright_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..556ad30ede159ba43a0a98ba9fa2c05d4fe0ee89 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Bright_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e3ca1ded7d735a1f8a0eedbf57347f1503885af107c55e55981c08c87d85f5b3 +size 119155 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Darken.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Darken.png new file mode 100644 index 0000000000000000000000000000000000000000..cf342a14cc4539c598d148ce769e5aed6b54f6d5 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Darken.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4f3310e094ce3307e77551e02d01a87562246b3cda63017a2478c07180e3ac3 +size 109208 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Deep_Pollished.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Deep_Pollished.png new file mode 100644 index 0000000000000000000000000000000000000000..54e6c695537be57e60b95fc5dd299d4113d8a8ee --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Deep_Pollished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d221c42561e8c455e8c4fd0b7d039ff69c4891c86f104004df1edc52de685fe4 +size 109096 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..c27b760414426271d9ce88628248b62fa2200d6f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/256x256/Volga_Blue.mdl@Volga_Blue_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44d8db9b40d22e5a7480ffab9b93d86a4610eeabb6c27f7bd1fe902718dc636a +size 112752 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia.png b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia.png new file mode 100644 index 0000000000000000000000000000000000000000..476181e934b4757ec7c29216cdd1b98ed57ff215 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:350be9bbc3e755ac448c2ba1926db7dbfbd3f85529b12fe8fb1de2cc339b23ab +size 91702 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..2bfdcee9673b26012831c8aac6649cc677ea3b28 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3ebe97cb77869eb708183349f71857bef3aa42a60e7e537e4d14735a464cfae9 +size 91206 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..14649f019de27f3130fd05aae7b4583a42eb668d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Ardesia_Grigia.Ardesia_Grigia_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81fe917103d60e6aa01b0d8a9164f7b1a10bf6255bd2b8c08a163b74d8fc67a5 +size 98131 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Basaltite.Basaltite_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/Basaltite.Basaltite_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..19b2485b0c2b1babe5701fdb4e2dc0ae82683493 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Basaltite.Basaltite_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d32d3581522b79f170ed800737a69d5007602c9661d7eb3546410a4d47307e9e +size 94367 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Matte.png b/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Matte.png new file mode 100644 index 0000000000000000000000000000000000000000..f44ec4d5977d7ca29ad275943c0c2be006b47bda --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Matte.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dc857575b135080119fd79438adfe1bd558bd26873ae400ff055da138463c62d +size 75102 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Ripple.png b/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Ripple.png new file mode 100644 index 0000000000000000000000000000000000000000..a53ce1aeb00b1740da01f34500f21c3f35ad70c3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Devil_Black.Devil_Black_Ripple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:172d5d34d8edabbdd48b8735a3ff0773f6907525b0028cb702bb9d0af010ea4d +size 79103 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.Granite_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.Granite_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..eb0ae47533c7fc59e2eab051b70506aad5b361c3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.Granite_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad19ea6997c8273302e9f3e55b75eaf511a6ce3da89376359fa089517987e762 +size 95934 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.caledonia.png b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.caledonia.png new file mode 100644 index 0000000000000000000000000000000000000000..7d4ad5cf99e1aa07c8143d9f9fed8c229b1ab2f2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.caledonia.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c4594af7a161dd2e1148ced1b18d9b577fde1203eeea2a6a319b75369dee3320 +size 100092 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.giallo_fiorito.png b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.giallo_fiorito.png new file mode 100644 index 0000000000000000000000000000000000000000..5cf5090299cb72d770208d226a81f524e995ed43 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.giallo_fiorito.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6c6c8c9897af7df122f6a4bd7106e297548d0c11f29e3bc0d1c2aead5a40dfd7 +size 101292 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.ice_kynite.png b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.ice_kynite.png new file mode 100644 index 0000000000000000000000000000000000000000..9847d9fcdc20c7004d2071e621e9f06fb5ac45f0 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.ice_kynite.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:40f3be2d41f5d6e16a5838766cbba8443eca910fe9988ccb5ea348031daf0c16 +size 83335 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.tiger_skin_gold.png b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.tiger_skin_gold.png new file mode 100644 index 0000000000000000000000000000000000000000..4347f1d7ffba7ea61c4968d623324c50bfeda67f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Granite_Polished.tiger_skin_gold.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c6213ed7a904415a8a6e1ec0a069d1ac051cf60907ffb50a891c72b64f97950 +size 107443 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Polished_Imperfections.png b/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Polished_Imperfections.png new file mode 100644 index 0000000000000000000000000000000000000000..122b23f15f56de6a53a864574a981c8e454aa021 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Polished_Imperfections.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c14362eea8ca91f182aec2c01f9d32f13fb3fa08ceed6d7e4fb1b74e45cb7736 +size 103625 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..9f0636079fa5eaa2b99877c9019258c881776cf1 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Imperial_Red.Imperial_Red_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1594feafe7f4fe312fa6a3a37b7495f671d504ea3986e148b6c5669f6b28a766 +size 103509 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta.png b/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta.png new file mode 100644 index 0000000000000000000000000000000000000000..c4707488b485e5a06e226cf19159a1c645ba8854 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9fbf4bb259ae80d36eba49ce9677f570d7c031c6f11c8422af5a8d66c75d0ae1 +size 92960 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta_Clean_Pollished.png b/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta_Clean_Pollished.png new file mode 100644 index 0000000000000000000000000000000000000000..1bb78e8e5aa67eaf187bd3758e015f63896ea6de --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Rosa_Beta.Rosa_Beta_Clean_Pollished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7705a1ac2948562f8c4ac438a61ac3f0eb08d45f25d957b5531e145861cccf4e +size 93633 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Polished.png b/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Polished.png new file mode 100644 index 0000000000000000000000000000000000000000..c066ca16b24b19f5939433ca0e73f79d02628b8b --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Polished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5f1562e1267eeb10108bade319474541ca9b2a51302dcc355fca6fa0d8a5746e +size 97594 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Worn.png b/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Worn.png new file mode 100644 index 0000000000000000000000000000000000000000..5ad703b2d22c8b16576f4f0d806bf8ced1d8466d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Serizzo_Gneis.Serizzo_Gneis_Worn.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:85dd22f466bdcd4725b08b1e9c950a53dee20a1a3368693f7790fe472a60122f +size 100801 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Star_Galaxy.Star_Galaxy_Dark.png b/code/third_party/vMaterials_2/Stone/.thumbs/Star_Galaxy.Star_Galaxy_Dark.png new file mode 100644 index 0000000000000000000000000000000000000000..5179414877b60b7fea072d8a20443b2c801a8103 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Star_Galaxy.Star_Galaxy_Dark.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9e477eacd34064b8332b9660e84a0838f3f90d9bd3e448a807cba3609aceee3e +size 76333 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey.png b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey.png new file mode 100644 index 0000000000000000000000000000000000000000..080a67c8bda74c24e64a43b0a58981350db2847a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:da5a9ee40035041fb6059641e835b0aaf24fa737e6fa66de2ea6e69c62dac851 +size 95900 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Alabaster.png b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Alabaster.png new file mode 100644 index 0000000000000000000000000000000000000000..065559bdf45b3d901808415cfd8a9c9470bf550a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Alabaster.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a5e99d9ff830c63af2b3db515e7a2400e2bea563248ce59cddfed967065ea53b +size 106668 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Bright.png b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Bright.png new file mode 100644 index 0000000000000000000000000000000000000000..c99a00135df04202659c7a2ef699320da71358ea --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Bright.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:19572bfddab902209a4d5fd43c8cdb8f36cb99a86e31148f2a2e8b5a4f3651cc +size 106813 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Dark_Clean_Ripple.png b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Dark_Clean_Ripple.png new file mode 100644 index 0000000000000000000000000000000000000000..6bde789bff329aad401206d356d1b67da23a8360 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Steel_Grey.Steel_Grey_Dark_Clean_Ripple.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:111efb59e848ce39ccb8a30ce801466198b980c63ae6e765121a0464e38d7c00 +size 87872 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Footprints.png b/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Footprints.png new file mode 100644 index 0000000000000000000000000000000000000000..82d3aca1dee6845658acd40b463bdf01ab4b77aa --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Footprints.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e58149bee8b6f4e8d8bb5cd562d6949f5b45fd80f6ac1f9c8c8026e4b9156af6 +size 82659 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Freckled_Highlights.png b/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Freckled_Highlights.png new file mode 100644 index 0000000000000000000000000000000000000000..0d78609a5b3cb4715154a1f8098ae182d16ba70d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Terrazzo.Terrazzo_Freckled_Highlights.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c8a337072f32e27b15f54d02bbb3f2cfe2eb1df836cc3fc3a7e65348c561cd5d +size 82932 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Bright_Blue.png b/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Bright_Blue.png new file mode 100644 index 0000000000000000000000000000000000000000..af630728daf4750e7abb0d19a610878c1921dcfe --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Bright_Blue.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8623aca0f214e7c1bef6b4a71ce66a8e8c7ed1a09d19320393f2ca1982e073ce +size 107729 diff --git a/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Deep_Pollished.png b/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Deep_Pollished.png new file mode 100644 index 0000000000000000000000000000000000000000..99eea77870b73a1a4e3c93c0a074fac0c05ede79 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/.thumbs/Volga_Blue.Volga_Blue_Deep_Pollished.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:304f447a0b5acb1ca395323d94de3569856242665495860829412d3b1a509391 +size 99818 diff --git a/code/third_party/vMaterials_2/Stone/textures/ardesia_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/ardesia_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..754d6616980104963a377b4b7d644dcbe5c0b312 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/ardesia_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6c69e8e4d25ca53b825e0b02b16969a7e33ff0a97d9ebb3fb64ca4ba183ca07 +size 1228720 diff --git a/code/third_party/vMaterials_2/Stone/textures/ardesia_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/ardesia_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f6779151bf5468e6bcb38155dcbef95ea1252015 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/ardesia_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7d2461cc886701236405be8694d137f019c610159bdac23c39280cdecaf8fbc8 +size 2289029 diff --git a/code/third_party/vMaterials_2/Stone/textures/ardesia_rough.jpg b/code/third_party/vMaterials_2/Stone/textures/ardesia_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b866afaaa9abebd91e8243c74de0c58a4ed522e5 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/ardesia_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b3d07813ebc7f47bda23067e468227e255fe26e695f01495680d173ceeeb747e +size 2290473 diff --git a/code/third_party/vMaterials_2/Stone/textures/ardesia_sss.jpg b/code/third_party/vMaterials_2/Stone/textures/ardesia_sss.jpg new file mode 100644 index 0000000000000000000000000000000000000000..5297dbf8cfbc4b8c7ea067793d55218df9abdebe --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/ardesia_sss.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f026685deabf3e883a99bdde3856098446cd8583ef82117b4f01e3d9f3249c23 +size 74574 diff --git a/code/third_party/vMaterials_2/Stone/textures/baltic_brown_diff.png b/code/third_party/vMaterials_2/Stone/textures/baltic_brown_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..708332b9d9806a99be96de801333f26c7b18478f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/baltic_brown_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:61b32b9d51e7ccfaea3f0e8c4af29880dcbb68eecec78f9b83ff21b611e402e5 +size 2771642 diff --git a/code/third_party/vMaterials_2/Stone/textures/baltic_red_diff.png b/code/third_party/vMaterials_2/Stone/textures/baltic_red_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..78037f9f4c623235e08408413478c61fbb08d629 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/baltic_red_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fd481d9ac6e19b008d556c80f8b1932ed7c91bdbeea0037fca37f22e3f5a3350 +size 2668604 diff --git a/code/third_party/vMaterials_2/Stone/textures/basaltite_SSS.jpg b/code/third_party/vMaterials_2/Stone/textures/basaltite_SSS.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1faef5d327db12773973e9015b2986e70321ed1e --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/basaltite_SSS.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f44da378192f161942d4a897024687c45ac130cafea1bbfc23c5fc1ac4c2bfa7 +size 121633 diff --git a/code/third_party/vMaterials_2/Stone/textures/basaltite_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/basaltite_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..331e3efaa01e6b82eef445f104b195177527d574 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/basaltite_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23b3fcf179760f35946fb1c162383f459c53f5a1dd636b56c775848c80531764 +size 3195838 diff --git a/code/third_party/vMaterials_2/Stone/textures/basaltite_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/basaltite_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..97eb3d83255b703350d78d71d364b028bc0946ee --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/basaltite_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:586081dfee6c7728812bbcc9a38b121a12a0fd66962e30fa820f36b213b8bfc8 +size 2102895 diff --git a/code/third_party/vMaterials_2/Stone/textures/basaltite_rough.jpg b/code/third_party/vMaterials_2/Stone/textures/basaltite_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ee9665b09b46fda44d7fe3ab3c4828924ec5cc68 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/basaltite_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db0c0308eb110848e897fdb3ae52ca3a3953c65a099099b9a7e5cc747133c0d5 +size 2088769 diff --git a/code/third_party/vMaterials_2/Stone/textures/butterfly_verde_diff.png b/code/third_party/vMaterials_2/Stone/textures/butterfly_verde_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..02f021dfcbf8a7f10697b0060db34d17b718a5f6 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/butterfly_verde_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a472994cdc4442919b41acb27835a02b2ad9d38cff1fdc1fafcfd16fd62bdb76 +size 2716838 diff --git a/code/third_party/vMaterials_2/Stone/textures/caledonia_diff.png b/code/third_party/vMaterials_2/Stone/textures/caledonia_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..5abac026b6cf5213d7b626617d141b3898a6bfdd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/caledonia_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:73c71f0ff7183b0985e9da6fa236df029e0bd8b84249ccfdce161eef8c3b6b97 +size 2374679 diff --git a/code/third_party/vMaterials_2/Stone/textures/castor_brown_diff.png b/code/third_party/vMaterials_2/Stone/textures/castor_brown_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..8badbd7e32e8908a8c2529d48021e0a763e9cea6 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/castor_brown_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:77422e1a1e78b04be355234c772928a5f727d1bc5523889d599bd14ca6b31cdf +size 740456 diff --git a/code/third_party/vMaterials_2/Stone/textures/devil_black_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/devil_black_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cb1ed6dbe901e8045087787bdc218c97dfa0ad00 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/devil_black_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:736f7ae21e16ecf1f1f1ecfe885a9f62000d601dafb9acfb0419f4ab9a0a5955 +size 1429451 diff --git a/code/third_party/vMaterials_2/Stone/textures/devil_black_multi.jpg b/code/third_party/vMaterials_2/Stone/textures/devil_black_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e25b5aaeb4836499fb9a0e2c0518b14df25d14b6 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/devil_black_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3fe30b3c6d88d3f53783b51147cf302d8472af842a00113f7fac9281bf03d333 +size 2569701 diff --git a/code/third_party/vMaterials_2/Stone/textures/devil_black_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/devil_black_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..71c828b643008941a722ebe1994d00a21d5ab312 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/devil_black_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f6265bf955dd3772cc90b730936e6c743f8ab688126add1b9ba83e5a5f600b64 +size 1430148 diff --git a/code/third_party/vMaterials_2/Stone/textures/emerald_pearl_diff.png b/code/third_party/vMaterials_2/Stone/textures/emerald_pearl_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..17f616efff1b4411c0f04d592e7119a114e7540a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/emerald_pearl_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:154f1a4bbac6265f2bb7a43b617bdc55860ae8b833a404f27ab62084c8ce4ef0 +size 2021780 diff --git a/code/third_party/vMaterials_2/Stone/textures/giallo_fiorito_diff.png b/code/third_party/vMaterials_2/Stone/textures/giallo_fiorito_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..b98018c5fad51cc3966450b95934f0c60b4b33a7 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/giallo_fiorito_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c951602d3a26c160c1250957e36d28b6ef83c2f18bb963dd5dfce24ed86743a7 +size 2881757 diff --git a/code/third_party/vMaterials_2/Stone/textures/golden_galaxy_diff.png b/code/third_party/vMaterials_2/Stone/textures/golden_galaxy_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..d2b4bc425365222d34e2be8b41384b8e84e226c5 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/golden_galaxy_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:88dee0fbfdc3286183c0089ea98bec456208968d52d91fddf0a4c8fe45899784 +size 2569736 diff --git a/code/third_party/vMaterials_2/Stone/textures/granite_a_mask.png b/code/third_party/vMaterials_2/Stone/textures/granite_a_mask.png new file mode 100644 index 0000000000000000000000000000000000000000..81547659c29e5eddeb9cef22ff83379aeb5c90cf --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/granite_a_mask.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67569e6eac1a917d9b4595174a0038a327622c1af68a387fd4b53324674c735d +size 23794 diff --git a/code/third_party/vMaterials_2/Stone/textures/granite_blackgalaxy_diff.png b/code/third_party/vMaterials_2/Stone/textures/granite_blackgalaxy_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..b575c0b87717fa53fb8b436aabc7775f650355b2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/granite_blackgalaxy_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4892cf741ea0e4eb3db1c7d7ce957b03a12790f101bfcb53f45e6efce6ec7e2b +size 4664039 diff --git a/code/third_party/vMaterials_2/Stone/textures/granite_blue_eyes_diff.png b/code/third_party/vMaterials_2/Stone/textures/granite_blue_eyes_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..7b78332686e2e3582e7eee5d4de64c9cb859b5d2 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/granite_blue_eyes_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:435367c1a980f003c382fbb1daba463632c05fac4acada7ecabc881558c26196 +size 2295032 diff --git a/code/third_party/vMaterials_2/Stone/textures/ice_kynite_diff.png b/code/third_party/vMaterials_2/Stone/textures/ice_kynite_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..705de619afbe135fdec5478c34fd0794669f0e96 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/ice_kynite_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0710e6e1e1ece51cc934b7a9084670d61271aec19eb6cb979ecf9526e42c1101 +size 1939858 diff --git a/code/third_party/vMaterials_2/Stone/textures/imperial_red_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/imperial_red_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..bcb013fc0bf59672d737fe174bed432499265cb7 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/imperial_red_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b7a137b1b50492c5c6dc3c708529ee540ea0be7810147db3b4d440c827d78896 +size 2972038 diff --git a/code/third_party/vMaterials_2/Stone/textures/imperial_red_multi_R_rough_G_ao_B_spots.jpg b/code/third_party/vMaterials_2/Stone/textures/imperial_red_multi_R_rough_G_ao_B_spots.jpg new file mode 100644 index 0000000000000000000000000000000000000000..716497a0ed5a235d9fc684866ba52d600c268225 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/imperial_red_multi_R_rough_G_ao_B_spots.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d0bf6c728e3595503d49a1fa1c5ae8292c817dc58ce06da2fb93edf340fcd20 +size 4562741 diff --git a/code/third_party/vMaterials_2/Stone/textures/imperial_red_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/imperial_red_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..d4cb5fc47daeed6f45341f60c33572a90056411c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/imperial_red_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad1065d61300bc7849accaa95ad71e19dcaf8ac69c02f59ec512de0e19f855b9 +size 2553628 diff --git a/code/third_party/vMaterials_2/Stone/textures/imperial_red_sss.jpg b/code/third_party/vMaterials_2/Stone/textures/imperial_red_sss.jpg new file mode 100644 index 0000000000000000000000000000000000000000..41a448e59eec5fb58966a0b1fd894c3a1f367176 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/imperial_red_sss.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:81872a47ea7ef5c67efade3588d96ee31b6b380352fae28c3470fc932bea8118 +size 150191 diff --git a/code/third_party/vMaterials_2/Stone/textures/morning_rose_diff.png b/code/third_party/vMaterials_2/Stone/textures/morning_rose_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..af620ce96ee33fb395dfa82c97c8dd970bc5452c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/morning_rose_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b79a21ef9bc68d7fedba507d8a7468095208dc80624f6a5f61c08824fcf5bba6 +size 1907021 diff --git a/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges.jpg b/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges.jpg new file mode 100644 index 0000000000000000000000000000000000000000..a2e934ea381392f0e47672952d0e3246e81ef971 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ae39e1eacb1ac03100a0197c80d65e7a89845f9fea56de8423898721fbe3c9e +size 6670331 diff --git a/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges_2.jpg b/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges_2.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0b15f6b1fad030784b49d812c69b342aa6a1bc4a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/multi_R_dust_G_scratches_B_smudges_2.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7c79e61c2e34ffe63dcaa4d2f3f4019226613779d783d7886b79867b0229c416 +size 5263860 diff --git a/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2da3e7297b45702886841ddea95223d9aea93629 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f35c24422e791449e03caf034bc9ca251cfd4f24e5e91fb51e3675af55f581a5 +size 3222459 diff --git a/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_multi_R_rough_G_ao_B_height.jpg b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_multi_R_rough_G_ao_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..696f6818d090f6fe11c79ef65f80fe14dd4c35da --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_multi_R_rough_G_ao_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b934bb2db328625122622af27084fe516bd84a352d0a0151cb832f907a162e22 +size 5667377 diff --git a/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..22f0e575ea4ed0e0d8993c4af4f52b84385cb021 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/natural_stone_black_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f46492370fcf598b4094af77092b3d56ac2f22bb1b5dcba20745dd3eb119408b +size 2556587 diff --git a/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_SSS.jpg b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_SSS.jpg new file mode 100644 index 0000000000000000000000000000000000000000..43c89a013a7f0459c13a7bd2ab727321a9c82077 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_SSS.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ebb886faf0469d6e06259b1492ca0ba71768c506a5abbdad9636102ab072223d +size 304110 diff --git a/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..cc480cd5aced002e70ac4789e3f90af1fd38c7e7 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d8d2ce9145bdf2455cb472e1a4c9bb57aa245b0f35970e80bb1a402b1a1b0973 +size 3314015 diff --git a/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_multi_R_rough_G_ao_B_height.jpg b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_multi_R_rough_G_ao_B_height.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c8c39efbe5bab823cd7044982b6456893c9f207d --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_multi_R_rough_G_ao_B_height.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8d4b5457e77a96753de43b9f0d475dd16202401ce7a970e11f990c88f8782531 +size 2237145 diff --git a/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..82b47ee2f4de8973f10c529f980ad217b4ab5123 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/padang_dark_grey_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0294f4780e2bf725a5a945dbfb8d02936d055293492530d92adc3ded94aa8353 +size 2439286 diff --git a/code/third_party/vMaterials_2/Stone/textures/rosa_beta_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..18b11898d5632e46017d153ce8135f31e9bd92cd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:507335b46e1de74d5c0a272a42f7c4930634b1623d3f0f1afc9043d76ef2498b +size 2917078 diff --git a/code/third_party/vMaterials_2/Stone/textures/rosa_beta_multi.jpg b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..87fe36c98161a476452e086a561d900b3824be75 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3685f0084aeb8726712a17cd01123e720a54d5c708927dcc9a2eeb7f0168892d +size 2149130 diff --git a/code/third_party/vMaterials_2/Stone/textures/rosa_beta_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e3882d367ca8cc4e5d1de5f922279b0e15fba3cb --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/rosa_beta_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4df7e4f84eb3f1ad0f6ad8811c5c469876063e5433d9314c93d5e2790badef26 +size 2029762 diff --git a/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_SSS.jpg b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_SSS.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c3e21bbfcf2067a6e24d73225a41e5743a1a18dd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_SSS.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b74e8a9d069ac397a071af557c7de1799e6e894713ffc72ae51c0e6a42cf7841 +size 100054 diff --git a/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ab8330639f317684a32c831882b75a1e4920a282 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:df84c3e26a0aff84a4728e9e873c21412a4b02f49eb2b1fab9e65e90f76be9cf +size 2959477 diff --git a/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..9535810b45619094a1369b74feca7fceb510d094 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9cd5ed0cb2756703a86c64a96c6a66d2a9ce935d05da82802c402f285f7981ef +size 3661347 diff --git a/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_rough.jpg b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2e4342163c00e2bb7fc44a1c43c3c275396e4c90 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/serizzo_gneis_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea0b0cee39c9d61d2be201366c55c4d10bf93d123583217cebe455ec9f28b060 +size 1927741 diff --git a/code/third_party/vMaterials_2/Stone/textures/star_galaxy_SSS.jpg b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_SSS.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ac233b6da6a64eec7e3f7c25c26f5fa79d655616 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_SSS.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:100923d68df7cb17da8c899a18c6fad1b69eaa190e07ccca77545d8150c8025f +size 219559 diff --git a/code/third_party/vMaterials_2/Stone/textures/star_galaxy_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..c285662514d6c5a02edf9ac123083aa4879ad5d8 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a67ccbe62fb31cf7d314babf068cff4e69723114eeb5239ab9aa3009a5d8c000 +size 3367147 diff --git a/code/third_party/vMaterials_2/Stone/textures/star_galaxy_multi_R_rough_G_height_B_ao.jpg b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_multi_R_rough_G_height_B_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..7a500102fab149f80a5bb18082c3ad6bd2015f01 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_multi_R_rough_G_height_B_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:67c0df3ca77720dc189c5f79f856165df2f92f0270b9d6c1de46d54874f4cf81 +size 4158753 diff --git a/code/third_party/vMaterials_2/Stone/textures/star_galaxy_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..b8196b29d0f9e71a0aa4d3d1f72b1528c2a08676 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/star_galaxy_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b31f1608b78038dcf77735b36201a057068e3335e862de5c718f6f4df9dcabde +size 2320972 diff --git a/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..e86ffeb8eae24951cd40d9b47db7cf1d708be07c --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2a19cfffe3447980004ca245bfbc60ca4180d6a64987472ee4435f900664eb26 +size 2130749 diff --git a/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff_SSS.jpg b/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff_SSS.jpg new file mode 100644 index 0000000000000000000000000000000000000000..0a25605bd2821f5226dfa6725036b9d8fdfb493f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/steel_grey_diff_SSS.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e202ce9210fcdf9c5cfd2be2f767a4235140c7bafd82b0bf7a1e21d2eac7cfb +size 141978 diff --git a/code/third_party/vMaterials_2/Stone/textures/steel_grey_multi_R_rough_G_height_B_ao.jpg b/code/third_party/vMaterials_2/Stone/textures/steel_grey_multi_R_rough_G_height_B_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..91d6f75c131d67c06a71a7905a1a1e93e415968a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/steel_grey_multi_R_rough_G_height_B_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:267ac5d82ec7c6e5c10876ff9fa7f65e9b11ab24b460bddf9c03719da55972a7 +size 1025405 diff --git a/code/third_party/vMaterials_2/Stone/textures/steel_grey_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/steel_grey_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..ffdc5c8e8f15a06c98292ec6284b1e0ce34b4d58 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/steel_grey_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2178fe12c48bfee2ca1a6d67520abed2e15a7f31ddafe926ff9284b42496c247 +size 992362 diff --git a/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..2072f3166ddf389451cbe38a4f15e7fd82990ed1 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0811c6d26188d9dd4d6838d898cd98047b243ef9774610d29f7acd6d8dd96673 +size 2739321 diff --git a/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_multi_R_rough_G_ao.jpg b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_multi_R_rough_G_ao.jpg new file mode 100644 index 0000000000000000000000000000000000000000..fdf11e5b5c23f015effd96c6bddaf48870520b95 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_multi_R_rough_G_ao.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dcfd2b51aa82e70dffe7a855561de4a90a1006bf3f9c97e4b75a995a1b5cbf17 +size 4658372 diff --git a/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..135a642f488515805eb2d30df9636274b63f5beb --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/stone_mediterranian_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dd704f208d2179a117b2675ae26c6d4cb49c14ffba277a751331f1aaa386c12f +size 2925626 diff --git a/code/third_party/vMaterials_2/Stone/textures/tan_brown_diff.png b/code/third_party/vMaterials_2/Stone/textures/tan_brown_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..044a56be73c7609b16544af146ac0471206ecce3 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/tan_brown_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:939bf21f2b97d35f55f289fa8a789ede17799e6c30dc50406d8602768cb36a7f +size 1156353 diff --git a/code/third_party/vMaterials_2/Stone/textures/terrazzo_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/terrazzo_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..f50f3f3468775de0d6725c2b8baf4ee0efa33161 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/terrazzo_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:42d4cec71cf55938dd4a38b2689fffcd6ec222a6c17a28fb954fbf5964f71961 +size 3473291 diff --git a/code/third_party/vMaterials_2/Stone/textures/terrazzo_multi.jpg b/code/third_party/vMaterials_2/Stone/textures/terrazzo_multi.jpg new file mode 100644 index 0000000000000000000000000000000000000000..08b65f450f5344b068bb99251ce50cc07c193f3f --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/terrazzo_multi.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9d76f53c4f71647020c2dad1c590af61f75fdf7ac844d8719ea53c8ebb9fc1ef +size 3942743 diff --git a/code/third_party/vMaterials_2/Stone/textures/terrazzo_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/terrazzo_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..836544f5b1ecd283cdb51d30b1c6691b06c9bb70 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/terrazzo_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a9534ff9a94f0b552850a3303b94cff2ec0bc08ddbfe2a8944481bcc8d122dc6 +size 4382846 diff --git a/code/third_party/vMaterials_2/Stone/textures/tiger_skin_gold_diff.png b/code/third_party/vMaterials_2/Stone/textures/tiger_skin_gold_diff.png new file mode 100644 index 0000000000000000000000000000000000000000..5f5de5abb3ff2115dd0e49144b7c63ef4e0b69fd --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/tiger_skin_gold_diff.png @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:bdaa18c2ccd6f58891cf7b6cdff7c405c9e03d30e8c734fb3cf99e8b1bff4d7b +size 2122580 diff --git a/code/third_party/vMaterials_2/Stone/textures/volga_blue_diff.jpg b/code/third_party/vMaterials_2/Stone/textures/volga_blue_diff.jpg new file mode 100644 index 0000000000000000000000000000000000000000..05fc78dcafcad763acd0f73ec556d193e26d6795 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/volga_blue_diff.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a3befe39e16f61b173adf39c9553d6dab9bbf40f9a322e730b4b6ed2fd0979cd +size 2026304 diff --git a/code/third_party/vMaterials_2/Stone/textures/volga_blue_multi_R_trans_G_height_B_rough.jpg b/code/third_party/vMaterials_2/Stone/textures/volga_blue_multi_R_trans_G_height_B_rough.jpg new file mode 100644 index 0000000000000000000000000000000000000000..61388e5af0b4561def7f6806bd185c24e1c4f59a --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/volga_blue_multi_R_trans_G_height_B_rough.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:62b3da4130b3b8930bddee2e3b5feb1e239d73795bb6b29685952efe10df2568 +size 939698 diff --git a/code/third_party/vMaterials_2/Stone/textures/volga_blue_norm.jpg b/code/third_party/vMaterials_2/Stone/textures/volga_blue_norm.jpg new file mode 100644 index 0000000000000000000000000000000000000000..113c2680e5a621cf1ca88a704a9cd802e6490752 --- /dev/null +++ b/code/third_party/vMaterials_2/Stone/textures/volga_blue_norm.jpg @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2484fff876c455ad1a9db46e958d8f0f34bf45080c3ebcd906e0a5c9c73262ff +size 569089 diff --git a/code/third_party/vMaterials_2/Wood/Laminate_Oak.mdl b/code/third_party/vMaterials_2/Wood/Laminate_Oak.mdl new file mode 100644 index 0000000000000000000000000000000000000000..8933dd68459f91a3698e1495bb158ebec050940e --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Laminate_Oak.mdl @@ -0,0 +1,435 @@ +/****************************************************************************** + * 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 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); +} + +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()); +} + + +export material Laminate_Oak( + uniform bool enable_infinite_tiling = false [[ + ::anno::description("Enables Infinite Tiling feature. Removes artifacts of repeating texture patterns when material is scaled."), + ::anno::display_name("Infinite Tiling"), + ::anno::in_group("Appearance") + ]], + float wood_brightness = 0.7f [[ + ::anno::description("Adjusts the brightness of the wood material."), + ::anno::display_name("Wood Brightness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + float wood_fiber_roughness = 1.0f [[ + ::anno::description("Adjusts the roughness of the fibers. Lower values cause a more anisotropic appearance of the reflections."), + ::anno::display_name("Wood Fiber Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + float oak_bump_factor = 1.f [[ + ::anno::display_name("Oak Bump Strength"), + ::anno::description("Specifies the strength of the bump."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance") + ]], + float smudges_weight = 0.08f [[ + ::anno::description("Adds smudges on top of the material to create a more worn and used appearance of the material."), + ::anno::display_name("Smudges Weight"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance", "Wear") + ]], + float smudges_roughness = 0.68 [[ + ::anno::description("Adjusts the roughness of the smudges on top of the material."), + ::anno::display_name("Smudges Roughness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance", "Wear") + ]], + float dirt_weight = 0.f [[ + ::anno::description("Adjusts the thickness of the dirt layer on top of the material."), + ::anno::display_name("Dirt Thickness"), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance", "Wear") + ]], + uniform float2 texture_translate = float2(0.f) [[ + ::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 the angle of the texture in degrees."), + ::anno::display_name("Rotate"), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = float2(1.f) [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::description("Selects the UV texture space index to use for the material."), + ::anno::display_name("UV Space Index"), + ::anno::in_group("Advanced") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Laminate Oak - New"), + ::anno::description("A wood laminate material that features infinite tiling, smudges and a dirt layer."), + ::anno::key_words(string[]("aec", "wood", "oak", "laminate", "floor", "polished", "artificial", "infinite tiling", "new", "brown")), + ::anno::thumbnail("./.thumbs/Laminate_Oak.Laminate_Oak.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + bool tmp0 = false; + material_surface tmp1( + ::df::weighted_layer(histogram_range(1.f - float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(1.f, 0.721000016f, dirt_weight)), ::df::custom_curve_layer(0.0410000011f, 1.f, 5.f, smudges_weight, ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.34800002f, ::math::lerp(0.300000012f, 0.649999976f, smudges_roughness)) * histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.34800002f, ::math::lerp(0.300000012f, 0.649999976f, smudges_roughness)), histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.34800002f, ::math::lerp(0.300000012f, 0.649999976f, smudges_roughness)) * histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 0.34800002f, ::math::lerp(0.300000012f, 0.649999976f, smudges_roughness)), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::custom_curve_layer(0.0410000011f, 1.f, 5.f, 1.f, ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.445000023f, 0.398000032f) * histogram_range(float3(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.579999983f, 0.537f, 0.f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_multi_R_rough_G_aniso.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.445000023f, 0.398000032f), ::math::lerp(0.206000015f, 0.382000029f, wood_fiber_roughness) * ::math::lerp(0.206000015f, 0.382000029f, wood_fiber_roughness), color(0.491905004f, 0.491905004f, 0.491905004f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(enable_infinite_tiling ? endless_texture(texture_2d("./textures/laminate_oak_diffuse.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.611000001f, 0.451999992f, 0.287f), 8.f, true) : ::base::file_texture(texture_2d("./textures/laminate_oak_diffuse.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(0.767768979f, 0.767768979f, 0.767768979f), ::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(::math::lerp(0.75f, 1.f, wood_brightness)), ::base::color_layer_multiply, 1.f).tint, 0.f, ""), ::state::normal()), ::state::normal()), ::df::diffuse_reflection_bsdf(color(0.0782879964f, 0.0712279975f, 0.0564489998f), 0.f, ""), ::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, + enable_infinite_tiling ? endless_normal(texture_2d("./textures/laminate_oak_normal.jpg", ::tex::gamma_linear), oak_bump_factor, false, false, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/laminate_oak_normal.jpg", ::tex::gamma_linear), oak_bump_factor, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Laminate_Oak_Polished(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Laminate Oak - Polished"), + ::anno::description("A wood laminate material with smudges and a dirt layer that features infinite tiling."), + ::anno::key_words(string[]("aec", "wood", "oak", "laminate", "floor", "polished", "artificial", "infinite tiling", "dust", "dirt", "brown", "warm")), + ::anno::thumbnail("./.thumbs/Laminate_Oak.Laminate_Oak_Polished.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Laminate_Oak( + enable_infinite_tiling: false, + wood_brightness: 0.7f, + wood_fiber_roughness: 1.0f, + oak_bump_factor: 0.5f, + smudges_weight: 0.0f, + smudges_roughness: 0.0f, + dirt_weight: 0.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0), + uv_space_index: 0 +); + +export material Laminate_Oak_Slight_Smudges(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Laminate Oak - Smudges"), + ::anno::description("A wood laminate material with smudges and a dirt layer that features infinite tiling."), + ::anno::key_words(string[]("aec", "wood", "oak", "laminate", "floor", "polished", "artificial", "infinite tiling", "smudges", "dust", "dirt", "brown", "warm")), + ::anno::thumbnail("./.thumbs/Laminate_Oak.Laminate_Oak_Slight_Smudges.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Laminate_Oak( + enable_infinite_tiling: false, + wood_brightness: 0.7f, + wood_fiber_roughness: 1.0f, + oak_bump_factor: 1.0f, + smudges_weight: 0.8f, + smudges_roughness: 0.75f, + dirt_weight: 0.5f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0), + uv_space_index: 0 +); + +export material Laminate_Oak_Dirty(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Laminate Oak - Dirty"), + ::anno::description("A wood laminate material with smudges and a dirt layer that features infinite tiling."), + ::anno::key_words(string[]("aec", "wood", "oak", "laminate", "floor", "polished", "artificial", "infinite tiling", "dust", "dirt", "brown", "warm")), + ::anno::thumbnail("./.thumbs/Laminate_Oak.Laminate_Oak_Dirty.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Laminate_Oak( + enable_infinite_tiling: false, + wood_brightness: 0.7f, + wood_fiber_roughness: 1.0f, + oak_bump_factor: 1.0f, + smudges_weight: 0.8f, + smudges_roughness: 0.75f, + dirt_weight: 0.85f, + texture_translate: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0), + uv_space_index: 0 +); + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/code/third_party/vMaterials_2/Wood/OSB_Wood.mdl b/code/third_party/vMaterials_2/Wood/OSB_Wood.mdl new file mode 100644 index 0000000000000000000000000000000000000000..b931dcb10fce7fdbd12376ad55278aa3181a2790 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/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 = float2(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 = float2(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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + round_corners_enable: false, + round_corners_radius_mm: 2.5f, + round_corners_across_materials: false, + uv_space_index: 0 +); diff --git a/code/third_party/vMaterials_2/Wood/OSB_Wood_Splattered.mdl b/code/third_party/vMaterials_2/Wood/OSB_Wood_Splattered.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e3aa8568447d96ae5f068e55f33671738b0187d8 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/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 = float2(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 = float2(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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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(float2(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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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("./textures/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: float2(0.0f), + texture_rotate: 0.0f, + texture_scale: float2(1.0f), + round_corners_enable: false, + round_corners_radius_mm: 2.5f, + round_corners_across_materials: false, + uv_space_index: 0 +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Bark.mdl b/code/third_party/vMaterials_2/Wood/Wood_Bark.mdl new file mode 100644 index 0000000000000000000000000000000000000000..e8efba9c7546f1653af7fed370f93d967a174284 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Bark.mdl @@ -0,0 +1,371 @@ +/****************************************************************************** + * 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"; + + +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); +} + +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 Wood_Bark( + uniform bool endless_tiling = true [[ + ::anno::display_name("Infinite Tiling"), + ::anno::description("Enables the infinite tiling feature."), + ::anno::in_group("Appearance") + ]], + float diffuse_luminance_variation = 0.698000014f [[ + ::anno::display_name("Bark Brightness Variation"), + ::anno::description("Adds variation to the brightness of the material."), + ::anno::hard_range(0.0f,1.0f), + ::anno::in_group("Appearance") + ]], + float AO_darkening_amount = 1.f [[ + ::anno::display_name("Bark Contrast"), + ::anno::description("Adds dark details in the deepened areas of the material."), + ::anno::hard_range(0.0f,1.0f), + ::anno::in_group("Appearance") + ]], + float bark_roughness = 0.5f [[ + ::anno::display_name("Bark Roughness"), + ::anno::description("Higher roughness values lead to bigger highlights and blurrier reflections."), + ::anno::hard_range(0.0f,1.0f), + ::anno::in_group("Appearance") + ]], + float bump_factor = 1.f [[ + ::anno::description("Specifies the strength of the bump."), + ::anno::display_name("Bump Strength"), + ::anno::soft_range(0.0f,2.0f), + ::anno::hard_range(0.0f,5.0f), + ::anno::in_group("Appearance") + ]], + uniform float2 texture_translate = float2(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::description("Rotates the angle of the texture in degrees."), + ::anno::display_name("Rotate"), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = float2(1.0f) [[ + ::anno::description("Larger numbers increase the size."), + ::anno::display_name("Scale"), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Use selected UV space for the material."), + ::anno::in_group("Advanced") + ]] + ) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Bark Oak"), + ::anno::description("An oak bark material."), + ::anno::key_words(string[]("wood", "bark", "natural", "nature", "exterior", "rough", "bumped", "brown")), + ::anno::thumbnail("./.thumbs/Wood_Bark.Wood_Bark.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + bool tmp0 = false; + float2 corrected_texture_scale = texture_scale * 0.5; + + material_surface tmp1( + ::df::custom_curve_layer(0.0370000005f, 1.f, 5.f, histogram_scan_big(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 0.100000001f, 0.753500044f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, bark_roughness) * histogram_range(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, bark_roughness), histogram_range(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, bark_roughness) * histogram_range(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, bark_roughness), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::diffuse_reflection_bsdf(::nvidia::core_definitions::blend_colors(::nvidia::core_definitions::blend_colors(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.477999985f, 0.435000002f, 0.39199999f), 8.f, true) : ::base::file_texture(texture_2d("./textures/bark_oak_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, ::base::file_texture(texture_2d("./textures/bark_oak_mask.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(::math::lerp(0.f, 1.f, diffuse_luminance_variation)), ::base::mono_average, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale / float2(0.150000006f), ::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).tint, color(0.f, 0.f, 0.f), ::base::color_layer_multiply, 1.f - histogram_scan_big(::math::pow(float3(endless_tiling ? endless_texture(texture_2d("./textures/bark_oak_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 10.f, float3(0.827000022f, 0.838999987f, 0.275000006f), 8.f, false) : ::base::file_texture(texture_2d("./textures/bark_oak_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.449000031f, ::math::lerp(0.f, 0.606000006f, AO_darkening_amount))).tint, 0.f, ""), ::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, + endless_tiling ? endless_normal(texture_2d("./textures/bark_oak_norm.jpg", ::tex::gamma_linear), 1.f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/bark_oak_norm.jpg", ::tex::gamma_linear), bump_factor, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space_index))); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + + +export material bark_oak_dark_contrast(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Bark Oak - Dark Contrast"), + ::anno::description("An oak bark material."), + ::anno::key_words(string[]("wood", "bark", "natural", "nature", "exterior", "rough", "bumped", "brown")), + ::anno::thumbnail("./.thumbs/Wood_Bark.bark_oak_dark_contrast.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Wood_Bark( + endless_tiling: true, + diffuse_luminance_variation: 0.7, + AO_darkening_amount: 1, + bark_roughness: 1.0, + bump_factor: 1.0, + texture_translate: float2(0.0), + texture_rotate: 0.0, + texture_scale: float2(1.0), + uv_space_index: 0 +); + + diff --git a/code/third_party/vMaterials_2/Wood/Wood_Cork.mdl b/code/third_party/vMaterials_2/Wood/Wood_Cork.mdl new file mode 100644 index 0000000000000000000000000000000000000000..53959e9a9f7a29a437b6264ee57483c292bf07dd --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Cork.mdl @@ -0,0 +1,395 @@ +/****************************************************************************** + * 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::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 +) +{ + 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); +} + +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); +} + +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()); +} + +export material Wood_Cork( + uniform bool infinite_tiling = true [[ + ::anno::display_name("Infinite Tiling"), + ::anno::description("Enables Infinite Tiling feature. Removes artifacts of repeating texture patterns."), + ::anno::in_group("Appearance") + ]], + float roughness = 0.5f [[ + ::anno::display_name("Cork Roughness"), + ::anno::description("Adjusts the overall roughness of the cork."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + float diffuse_brightness = 0.5f [[ + ::anno::display_name("Cork Brightness"), + ::anno::description("Adjusts the overall brightness of the cork."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance") + ]], + uniform bool is_coated = false [[ + ::anno::display_name("Enable Coat"), + ::anno::description("Enables clearcoat layer."), + ::anno::in_group("Appearance", "Coating") + ]], + float coating_roughness = 0.f [[ + ::anno::display_name("Coating Roughness"), + ::anno::description("Adjusts the roughness of the clearcoat layer."), + ::anno::hard_range(0.0f, 1.0f), + ::anno::in_group("Appearance", "Coating") + ]], + float coating_weight = 1.f [[ + ::anno::display_name("Coat Weight"), + ::anno::description("Adjusts the weight of the clearcoat layer, setting weight to zero is equal to disabling the coat layer."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Appearance", "Coating") + ]], + uniform float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Translate"), + ::anno::description("Offsets the position of the material."), + ::anno::in_group("Transform") + ]], + uniform float texture_rotate = 0.f [[ + ::anno::display_name("Rotate"), + ::anno::description("Rotates the material."), + ::anno::in_group("Transform") + ]], + uniform float2 texture_scale = float2(1.f) [[ + ::anno::display_name("Scale"), + ::anno::description("Scales the material."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space = 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("Wood Cork - Natural"), + ::anno::description("A cork material that can have an optional coat layer applied."), + ::anno::key_words(string[]("wood", "cork", "natural", "floor", "design", "multimaterial", "infinite tiling", "unfinished", "brown")), + ::anno::thumbnail("./.thumbs/Wood_Cork.Wood_Cork.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = + let { + bool tmp0 = false; + + float2 corrected_texture_scale = texture_scale * 0.28; + + material_surface tmp1( + is_coated ? ::df::custom_curve_layer(0.0399999991f, 1.f, 5.f, coating_weight, ::df::microfacet_ggx_smith_bsdf(histogram_range(::base::file_texture(texture_2d("./textures/wood_cork_grunge.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, corrected_texture_scale * float2(4.f), ::base::texture_coordinate_uvw, 0), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, coating_roughness * 0.400000006f, coating_roughness * 0.312000006f) + 0.0299999993f, histogram_range(::base::file_texture(texture_2d("./textures/wood_cork_grunge.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, corrected_texture_scale * float2(4.f), ::base::texture_coordinate_uvw, 0), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).mono, coating_roughness * 0.400000006f, coating_roughness * 0.312000006f) + 0.0299999993f, color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect, ""), ::df::custom_curve_layer(0.0440000035f, 1.f, 5.f, histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.796000063f, 0.624000013f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, 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(color(::math::lerp(0.550000012f, 0.850000024f, diffuse_brightness)) * (infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.694000006f, 0.549000025f, 0.435000002f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint), 0.f, ""), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space))), infinite_tiling ? endless_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space))), ::math::normalize(::math::lerp(::state::normal(), infinite_tiling ? endless_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space)), float3(0.119000003f)))) : ::df::custom_curve_layer(0.0440000035f, 1.f, 5.f, histogram_scan_big(::math::pow(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[1], 2.20000005f), 0.796000063f, 0.624000013f), ::df::microfacet_ggx_smith_bsdf(histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)), histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, roughness)) * histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_multi_R_rough_G_ao_B_height.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.764999986f, 0.800000012f, 0.651000023f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_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, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint)[0], 1.f, ::math::lerp(0.459000021f, 0.899999976f, 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(color(::math::lerp(0.550000012f, 0.850000024f, diffuse_brightness)) * (infinite_tiling ? endless_texture(texture_2d("./textures/wood_cork_diff.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.694000006f, 0.549000025f, 0.435000002f), 11.6020002f, true) : ::base::file_texture(texture_2d("./textures/wood_cork_diff.jpg", ::tex::gamma_srgb), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint), 0.f, ""), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space))), infinite_tiling ? endless_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, false, false, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space), 7.f, float3(0.5f, 0.5f, 1.f), 8.f) : normalmap_normal(texture_2d("./textures/wood_cork_norm.jpg", ::tex::gamma_linear), 0.802000046f, vmat_transform(texture_translate, texture_rotate, corrected_texture_scale, ::base::texture_coordinate_uvw, uv_space))), + 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, + ::state::normal()); + } in + material( + thin_walled: tmp0, + surface: tmp1, + backface: tmp2, + ior: tmp3, + volume: tmp4, + geometry: tmp5); + + +export material Wood_Cork_Coated_Matte(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Cork - Coated Matte"), + ::anno::description("A cork material that can have an optional coat layer applied."), + ::anno::key_words(string[]("wood", "cork", "natural", "floor", "design", "multimaterial", "infinite tiling", "coated", "matte", "brown")), + ::anno::thumbnail("./.thumbs/Wood_Cork.Wood_Cork_Coated_Matte.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Wood_Cork( + infinite_tiling: true, + roughness: 0.5f, + diffuse_brightness: 0.5f, + is_coated: true, + coating_roughness: 0.823f, + coating_weight: 0.9f, + texture_translate: float2(0.0f), + texture_rotate: 0.0, + texture_scale: float2(1.0f), + uv_space: 0 +); + + +export material Wood_Cork_Coated_Glossy(*) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Cork - Coated Glossy"), + ::anno::description("A cork material that can have an optional coat layer applied."), + ::anno::key_words(string[]("wood", "cork", "natural", "floor", "design", "multimaterial", "infinite tiling", "coated", "glossy", "brown")), + ::anno::thumbnail("./.thumbs/Wood_Cork.Wood_Cork_Coated_Glossy.png"), + ::anno::copyright_notice(COPYRIGHT) +]] + = Wood_Cork( + infinite_tiling: true, + roughness: 0.5f, + diffuse_brightness: 0.5f, + is_coated: true, + coating_roughness: 0.09f, + coating_weight: 1.0f, + texture_translate: float2(0.0f), + texture_rotate: 0.0, + texture_scale: float2(1.0f), + uv_space: 0 +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash.mdl new file mode 100644 index 0000000000000000000000000000000000000000..3589bdc60a656bf254aba6f8b69598ad622c9c3b --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash.mdl @@ -0,0 +1,2879 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Ash( + color wood_color = color(0.4f, 0.3f, 0.16f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.42f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.1f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.1f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.31f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.03f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.45f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.324f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.741f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.833f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.546f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.287f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.917f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.222f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Ash_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "brick bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Ash_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chantilly", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Ash_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chevron", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Ash_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "cubes", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Ash_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "diagonal", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Ash_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "herringbone", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Ash_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "herringbone", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Ash_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "stack bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Ash_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "stack bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Ash_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "ash", "tiles", "tiled", "floor", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "strip", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash.Wood_Tiles_Ash_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Ash( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..fd0695316a579d8ac0f7bf74e25714eeeb57bc85 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Ash_Multicolor.mdl @@ -0,0 +1,1594 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Ash_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(.47725f, .91036f, .97011f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.95402f, 0.84346f, 0.01097f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.1f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.7f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.006f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + + uniform float tiles_bump_strength = 0.31f [[ + ::anno::display_name("Tiles Bump Strength"), + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.03f [[ + ::anno::display_name("Coating Roughness"), + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.45f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::preview_scale(0.25f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.324f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.741f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.833f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.546f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.287f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.917f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.222f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash_Multicolor.Wood_Tiles_Ash_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Ash_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(.47725f, .91036f, .97011f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.95402f, 0.84346f, 0.01097f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.1f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.7f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(.55f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::preview_scale(0.25f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash_Multicolor.Wood_Tiles_Ash_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Ash_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Ash_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(.47725f, .91036f, .97011f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.95402f, 0.84346f, 0.01097f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 1.0f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.2f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.3333f, 0.3333f)), + ::preview_scale(0.25f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash_Multicolor.Wood_Tiles_Ash_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Ash_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Ash_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(.47725f, .91036f, .97011f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.95402f, 0.84346f, 0.01097f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.1f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 1.0f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.2f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::preview_scale(0.25f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Ash - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "ash", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Ash_Multicolor.Wood_Tiles_Ash_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Ash_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.0f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.324f, + isotropic_roughness_range: 0.741f, + isotropic_specular_brightness: 0.833f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.546f, + aniso_bsdf_width: 0.287f, + aniso_bsdf_height: 0.917f, + anisotropic_isotropic_balance: 0.222f, + + tex_srgb_wood_color: texture_2d("./textures/wood_ash_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_ash_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_ash_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_ash_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f79905ebdc6148e32c123a81510c2a052bd23ffc --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech.mdl @@ -0,0 +1,2877 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Beech( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.3f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.1f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.25f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.194f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.648f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.546f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 0.880f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.519f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.306f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.407f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.444f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Beech_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Beech_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Beech_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chevron", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Beech_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "cubes", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Beech_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "diagonal", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Beech_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "herringbone", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Beech_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "mosaic", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Beech_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "stack bond", "stack", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Beech_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "versailles", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Beech_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "strip", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech.Wood_Tiles_Beech_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Beech( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4652371723562f093914d2dc3967ebc2a9192097 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Beech_Multicolor.mdl @@ -0,0 +1,1592 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Beech_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.64181f, 0.81149f, 0.60815f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.93793f, 0.63971f, 0.5261f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.42f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + + uniform float tiles_bump_strength = 0.31f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.16f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.45f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.324f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.741f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.833f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.546f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.287f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.917f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.222f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech_Multicolor.Wood_Tiles_Beech_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Beech_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.64181f, 0.81149f, 0.60815f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.93793f, 0.63971f, 0.5261f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.4f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.15f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech_Multicolor.Wood_Tiles_Beech_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Wood_Tiles_Beech_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Beech_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.64181f, 0.81149f, 0.60815f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.93793f, 0.63971f, 0.5261f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.1f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .4f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech_Multicolor.Wood_Tiles_Beech_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Beech_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Beech_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.64181f, 0.81149f, 0.60815f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.93793f, 0.63971f, 0.5261f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .35f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.16f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Beech - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "beech", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Beech_Multicolor.Wood_Tiles_Beech_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Beech_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.194f, + isotropic_roughness_range: 0.648f, + isotropic_specular_brightness: 0.546f, + wood_specular_level: 0.880f, + aniso_attenuation: 0.519f, + aniso_bsdf_width: 0.306f, + aniso_bsdf_height: 0.407f, + anisotropic_isotropic_balance: 0.444f, + + tex_srgb_wood_color: texture_2d("./textures/beech_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/beech_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/beech_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/beech_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline.mdl new file mode 100644 index 0000000000000000000000000000000000000000..f3c8cd4cc2c145e2293bc1c1164e226c1c35f4dc --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline.mdl @@ -0,0 +1,2876 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Fineline( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.0f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.25f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.1f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.9f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.15f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.5f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.844f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 0.787f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.484f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.553f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.656f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.361f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Fineline_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Fineline_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chantilly", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Fineline_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chevron", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Fineline_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "cubes", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Fineline_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "diagonal", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Fineline_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "herringbone", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Fineline_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "mosaic", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Fineline_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "stack bond", "stack", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Fineline_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "versailles", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Fineline_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "strip", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline.Wood_Tiles_Fineline_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Fineline( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..0d911d9aa765892944297e8c447e89bb7d538ff9 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Fineline_Multicolor.mdl @@ -0,0 +1,1591 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Fineline_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.5319f, 0.36021f, 0.55172f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.7586f, 0.0f, 1.0f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.5f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 1.0f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.2f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + + uniform float tiles_bump_strength = 0.31f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.16f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.45f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.324f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.741f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.833f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.546f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.287f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.917f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.222f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "fineline", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline_Multicolor.Wood_Tiles_Fineline_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Fineline_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.5319f, 0.36021f, 0.55172f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.7586f, 0.0f, 1.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.5f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 1.0f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.25f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.15f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Multi Color Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "fineline", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline_Multicolor.Wood_Tiles_Fineline_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) +]] += Wood_Tiles_Fineline_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Fineline_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.5319f, 0.36021f, 0.55172f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.7586f, 0.0f, 1.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.8f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 1.0f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .2f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "fineline", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline_Multicolor.Wood_Tiles_Fineline_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Fineline_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Fineline_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.5319f, 0.36021f, 0.55172f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.7586f, 0.0f, 1.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = .5f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 1.0f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .25f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(0.7f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 1.0f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.16f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.6f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.4f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Fineline - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "fineline", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Fineline_Multicolor.Wood_Tiles_Fineline_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Fineline_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.5f, + isotropic_roughness_range: 0.844f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 0.787f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.533f, + aniso_bsdf_height: 0.656f, + anisotropic_isotropic_balance: 0.361f, + + tex_srgb_wood_color: texture_2d("./textures/fineline_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/fineline_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/fineline_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/fineline_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain.mdl new file mode 100644 index 0000000000000000000000000000000000000000..90718363bbe09cc080d08f9f0cc05a961d5b87c0 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain.mdl @@ -0,0 +1,2877 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Oak_Mountain( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.25f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.25f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.45f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.377f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.689f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.393f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.459f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.680f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.607f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Oak_Mountain_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Oak_Mountain_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chantilly", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Oak_Mountain_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chevron", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Oak_Mountain_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "cubes", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Oak_Mountain_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "diagonal", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Oak_Mountain_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "herringbone", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Oak_Mountain_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "herringbone", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Oak_Mountain_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "stack", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Oak_Mountain_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "versailles", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Oak_Mountain_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "mountain", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "strip", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain.Wood_Tiles_Oak_Mountain_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Oak_Mountain( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..964f406ff52c59475d886a0cd1d6dd1cdf5eb03c --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Oak_Mountain_Multicolor.mdl @@ -0,0 +1,1591 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Oak_Mountain_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.81449f,0.82989f, 0.39873f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.90805f, 0.85376f, 0.0334f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.05f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.377f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.689f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.393f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.459f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.680f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.607f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain_Multicolor.Wood_Tiles_Oak_Mountain_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Oak_Mountain_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.81449f,0.82989f, 0.39873f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.90805f, 0.85376f, 0.0334f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(2.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.f), float2(2.f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain_Multicolor.Wood_Tiles_Oak_Mountain_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Oak_Mountain_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Oak_Mountain_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.81449f,0.82989f, 0.39873f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.90805f, 0.85376f, 0.0334f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .4f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(2.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain_Multicolor.Wood_Tiles_Oak_Mountain_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Oak_Mountain_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Oak_Mountain_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.81449f,0.82989f, 0.39873f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.90805f, 0.85376f, 0.0334f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 1.0f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .35f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Oak Mountain - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "oak", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Oak_Mountain_Multicolor.Wood_Tiles_Oak_Mountain_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Oak_Mountain_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/wood_oak_mountain_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_oak_mountain_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_oak_mountain_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_oak_mountain_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine.mdl new file mode 100644 index 0000000000000000000000000000000000000000..a8dbc72e2916746c6626b80c2363f0529baace95 --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine.mdl @@ -0,0 +1,2877 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Pine( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.1f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.1f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(.33f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.2f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.2f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.4f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.26f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.296f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.5f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.869f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.444f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.593f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.759f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.435f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Pine_Brickbond( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "brick bond", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Pine_Chantilly( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chantilly", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Pine_Chevron( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "chevron", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Pine_Cubes( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "cubes", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Pine_Diagonal( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "diagonal", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Pine_Herringbone( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "herrinbone", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Pine_Mosaic( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "mosaic", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Pine_Stackbond( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "stack", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Pine_Versailles( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "versailles", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Pine_Woodstrip( + color wood_color = color(0.78f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.1f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.9f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.01f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "architecture", "strip", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine.Wood_Tiles_Pine_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Pine( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.296f, + isotropic_roughness_range: 0.5f, + isotropic_specular_brightness: 0.869f, + wood_specular_level: 0.35f, + aniso_attenuation: 0.444f, + aniso_bsdf_width: 0.593f, + aniso_bsdf_height: 0.759f, + anisotropic_isotropic_balance: 0.435f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..840e53d4daf23ec00b0c1cfe7a3984c5a8d3c3de --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Pine_Multicolor.mdl @@ -0,0 +1,1591 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Pine_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.22424f, 0.67323f, 0.71724f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.59109f, 0.67586f, 0.22063f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.4f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.45f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.377f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.689f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.393f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.459f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.680f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.607f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine_Multicolor.Wood_Tiles_Pine_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Pine_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.22424f, 0.67323f, 0.71724f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.59109f, 0.67586f, 0.22063f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.4f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.f), float2(2.f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.45f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine_Multicolor.Wood_Tiles_Pine_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Pine_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Pine_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.22424f, 0.67323f, 0.71724f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.59109f, 0.67586f, 0.22063f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.4f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .4f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.45f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine_Multicolor.Wood_Tiles_Pine_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Pine_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Pine_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.22424f, 0.67323f, 0.71724f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.59109f, 0.67586f, 0.22063f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.4f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .35f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.45f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Pine - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "pine", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Pine_Multicolor.Wood_Tiles_Pine_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Pine_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.377f, + isotropic_roughness_range: 0.689f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.393f, + aniso_bsdf_width: 0.459f, + aniso_bsdf_height: 0.680f, + anisotropic_isotropic_balance: 0.607f, + + tex_srgb_wood_color: texture_2d("./textures/pine_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/pine_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/pine_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/pine_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar.mdl new file mode 100644 index 0000000000000000000000000000000000000000..bd14da4ec05af7a7dbe28c8503a22db68020e35d --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar.mdl @@ -0,0 +1,2876 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Poplar( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.0f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.06f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.33f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.336f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.918f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.787f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.484f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.443f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.631f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.434f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "master", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "brick bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Poplar_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "brick bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Poplar_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chantilly", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Poplar_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chevron", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Poplar_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "cubes", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Poplar_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "diagonal", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Poplar_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "herringbone", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Poplar_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "mosaic", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Poplar_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "stack", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Poplar_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "versailles", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Poplar_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.2f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "strip", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar.Wood_Tiles_Poplar_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Poplar( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..003a1669ae39778220bcdd3b36cf04ebf9a90fdf --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Poplar_Multicolor.mdl @@ -0,0 +1,1590 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Poplar_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.50345f, 0.00926f, 0.00926f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.92874f, 0.64808f, 0.09821f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.6f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.6f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.06f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.336f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.918f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 0.787f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.484f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.443f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.631f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.434f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar_Multicolor.Wood_Tiles_Poplar_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + + + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Poplar_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.50345f, 0.00926f, 0.00926f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.92874f, 0.64808f, 0.09821f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.6f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.06f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar_Multicolor.Wood_Tiles_Poplar_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Poplar_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Poplar_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.50345f, 0.00926f, 0.00926f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.92874f, 0.64808f, 0.09821f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.6f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.06f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar_Multicolor.Wood_Tiles_Poplar_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Poplar_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Poplar_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.50345f, 0.00926f, 0.00926f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.92874f, 0.64808f, 0.09821f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.6f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .6f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.06f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.3f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Poplar - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "poplar", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Poplar_Multicolor.Wood_Tiles_Poplar_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Poplar_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.336f, + isotropic_roughness_range: 0.918f, + isotropic_specular_brightness: 0.787f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.484f, + aniso_bsdf_width: 0.443f, + aniso_bsdf_height: 0.631f, + anisotropic_isotropic_balance: 0.434f, + + tex_srgb_wood_color: texture_2d("./textures/poplar_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/poplar_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/poplar_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/poplar_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut.mdl new file mode 100644 index 0000000000000000000000000000000000000000..9c63103362780c98010f8d90cd91ddf05208a22a --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut.mdl @@ -0,0 +1,2877 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn"; + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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 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); + + 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.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)); +} + + +// Returns 4 random IDs for a given pattern +// TODO: Describe how the whole things exactly works +float4 rand_tile_id( + ::base::texture_coordinate_info uvw, + ::base::texture_return id_offset_map // map containing the ID in r channel + //and the cell offset in g channel. + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uvw.position.x) - offset_x), int(::math::floor(uvw.position.y) - offset_y)); + + /* // ORIGINAL + int rand_val_1 = triple32(rand_id + triple32(cell_id.x + triple32(cell_id.y))); + int rand_val_2 = triple32(rand_val_1); + int rand_val_3 = triple32(rand_val_2); + int rand_val_4 = triple32(rand_val_3); + + ret_val = float4(uint2float(rand_val_1), + uint2float(rand_val_2), + uint2float(rand_val_3), + uint2float(rand_val_4)); + + return float4(ret_val/4294967296.f); + */ + + /* Simplified Version */ + int rand_val_1 = random(rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** + +export material Wood_Tiles_Walnut( + color wood_color = color(0.5f) [[ + ::anno::display_name("Wood Color"), + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.0f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.6f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + + + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.352f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.566f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.491f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.508f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.657f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.320f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// TEXTURES (Not accessible to regular users) + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb) // Diffuse + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear) // Anisotropic Roughness AKA "Rough Detail" + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear) // Isotropic Roughness AKA "Rough Grain" + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear) // Wood detail Normal - Grain & Structure + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear) // Tiles ID, Offset & Rotation + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) // Edgewear, Gaps(AO), Gaps Roughnesss + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear) // Tiles Normal (Grout and Bend) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) // Tiles Roughness, Dents and Spots + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) // Tiles orange Peel + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Brick Bond Master"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "brick bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + + // Prepare the UV coordinates for regular texture lookups + ::base::texture_coordinate_info base_uvw = vmat_transform( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + + ::base::texture_return rand_id_offset_lookup = ::base::file_texture( + texture: tex_lin_tiles_id_offset_rotation, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ); + + + float4 rand_vals = rand_tile_id( + uvw: base_uvw, + id_offset_map: rand_id_offset_lookup + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + ::base::texture_coordinate_info tile_uvw = vmat_transform( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + system: ::base::texture_coordinate_uvw, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_edgewear_gaps_gapsrough, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( ::base::file_texture( + texture: tex_lin_tiles_rough_dents_spots, + uvw: base_uvw, + mono_source: ::base::mono_alpha + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_normal, + factor: tiles_bump_strength, + uvw: base_uvw + ); + + float3 wood_detail_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_wood_detail_norm, + factor: wood_bump_strength, + uvw: tile_uvw + ); + + float3 orange_peel_normal = ::base::tangent_space_normal_texture( + texture: tex_lin_tiles_orange_peel, + factor: tiles_orange_peel_bump_factor * 0.1f, + uvw: base_uvw + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + ::base::texture_coordinate_info aniso_brightnessvar_lookup_uvw = vmat_transform( + translation: texture_translate, + rotation: texture_rotate, + scaling: texture_scale * 0.6, + system: ::base::texture_coordinate_uvw + ); + + ::base::texture_return aniso_brightnessvar_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: aniso_brightnessvar_lookup_uvw, + mono_source: ::base::mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_detail, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: tile_uvw.tangent_u, + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = ::base::file_texture( + texture: tex_lin_wood_rough_grain, + uvw: tile_uvw, + mono_source: ::base::mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + float floor_brightness_remap = ::math::lerp( + a: 0.3f, + b: 1.0f, + l: floor_brightness); + + color diffuse_attenuation = ::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y); + + ::base::texture_return diffuse_lookup = ::base::file_texture( + texture: tex_srgb_wood_color, + uvw: tile_uvw, + mono_source: ::base::mono_alpha, + color_scale: diffuse_attenuation + ); + + float rand_tile_brightness = ::math::lerp( + a: ::math::lerp(a: 1.0f, // range of maximum wood brightness variation + b: 0.73, /*max rand wood darkening */ + l: wood_brightness_variation), + b: 1.0f, + l: rand_vals.z // random value + ); + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_color, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Walnut_Brickbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Brick Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "brick bond", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Brickbond.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 02 + +export material Wood_Tiles_Walnut_Chantilly( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Chantilly"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chantilly", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Chantilly.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chantilly_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chantilly_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chantilly_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 03 + +export material Wood_Tiles_Walnut_Chevron( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Chevron"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "chevron", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Chevron.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/chevron_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/chevron_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/chevron_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 04 + +export material Wood_Tiles_Walnut_Cubes( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Cubes"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "cubes", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Cubes.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/cubes_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/cubes_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/cubes_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 05 + +export material Wood_Tiles_Walnut_Diagonal( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Diagonal"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "diagonal", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Diagonal.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/diagonal_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/diagonal_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/diagonal_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 06 + +export material Wood_Tiles_Walnut_Herringbone( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Herringbone"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "herringbone", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Herringbone.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/herringbone_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/herringbone_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/herringbone_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 07 + +export material Wood_Tiles_Walnut_Mosaic( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Mosaic"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "mosaic", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Mosaic.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/mosaic_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/mosaic_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/mosaic_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + +// ****************************************************************************************************** +// 08 + +export material Wood_Tiles_Walnut_Stackbond( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Stack Bond"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "stack", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Stackbond.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stackbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stackbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stackbond_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 09 + +export material Wood_Tiles_Walnut_Versailles( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Versailles"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "versailles", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Versailles.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/versailles_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/versailles_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/versailles_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); + + +// ****************************************************************************************************** +// 10 + +export material Wood_Tiles_Walnut_Woodstrip( + color wood_color = color(0.5f) [[ + ::anno::description("Applies an overlay color to tint the wood. The color is used using the 'overlay' mode as known " + "from paint programs. A gray value of 0.5 has no effect, brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Wood Color"), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.04f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.5f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Floor Brightness"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.03f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(0.2f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Tiles") + ]], + float wood_scale_variation = 0.f [[ + ::anno::description("Adds random variation to size of the wood in each tile."), + ::anno::display_name("Wood Scale Variation"), + ::anno::in_group("Tiles"), + ::anno::soft_range(0.f, 2.f) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Gaps Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + + float tiles_base_roughness = 0.04f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.0f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.0f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Wood Strip"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "organic", "natural", "coated", "infinite tiling", "strip", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut.Wood_Tiles_Walnut_Woodstrip.png"), + ::anno::copyright_notice(COPYRIGHT) +]] = Wood_Tiles_Walnut( + wood_color: wood_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: wood_random_rotation, + wood_scale: wood_scale, + wood_scale_variation: wood_scale_variation, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/woodstrip_R_id_G_offs_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/woodstrip_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/woodstrip_norm.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + +); \ No newline at end of file diff --git a/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut_Multicolor.mdl b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut_Multicolor.mdl new file mode 100644 index 0000000000000000000000000000000000000000..4da3c8e4e1395c8bc3c7d9c3bc45162e1b83b90c --- /dev/null +++ b/code/third_party/vMaterials_2/Wood/Wood_Tiles_Walnut_Multicolor.mdl @@ -0,0 +1,1588 @@ +/****************************************************************************** + * 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 wooden tile material with adjustments to produce a rich variety of wooden floor styles ranging from new to worn."; + +annotation preview_scale( float f); + +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 = float2(1.0f) +) +{ + uv.uv /= scale; + 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)) +{ + 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(); +} + + +// ---------------------------------------------------------------------------------------------------------------------- + + +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); +} + +// ********** Randomization functions -I- ********** + +int random(int seed = 0, int modulus = 65536, int multiplier = 1664525, int increment = 1013904223) +{ + return (multiplier * seed + increment) % modulus; +} + + +// 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)); +} + + +// For the rotated tangent I just used the code for the rotation of the tangent vector +// asselmbled from the former 'vmat_transform' and 'transform_coordinate_2' functions +float3 rotated_tangent( + float rotation = 0, + uniform int uv_space = 0 +) +{ + float rotation_rad = (rotation * 3.1415926535897932384626433832f) / 180.f; + float sin = ::math::sin(rotation_rad); + float cos = ::math::cos(rotation_rad); + + ::base::texture_coordinate_info coord = ::base::coordinate_source(::base::texture_coordinate_uvw, uv_space); + + return ::math::normalize(cos * coord.tangent_u - sin * coord.tangent_v); +} + + +// Returns 4 random IDs for a given pattern +float4 rand_tile_id( + vm_coordinates uv, + ::base::texture_return id_offset_map, // map containing the ID in r channel + //and the cell offset in g channel. + int seed = 0 + ) +[[ + ::anno::noinline() +]] +{ + float4 ret_val; + int offset_x, offset_y; + + + float3 id_offset_map_2 = float3(id_offset_map.tint); + float offset_id = id_offset_map_2.y; + int rand_id = int(id_offset_map_2.x * 254.f); // the more logical value of 255 causes sometimes rendering artifacts + // with the random number generator. Setting it to 254 apparently fixes it + + // Offset of overlapping tiles stored in G-channel + // [0 - 0.25[ : ( 0/ 0) Grayscale value: 0.1 + // [0.25 - 0.5 [ : (-1/ 0) Grayscale value: 0.37 + // [0.5 - 0.75[ : (-1/-1) Grayscale value: 0.62 + // [0.75 - 1.0 [ : ( 0/-1) Grayscale value: 0.87 + + offset_x = offset_id < 0.25f ? 0 : (offset_id < .75f) ? 1 : 0; + offset_y = offset_id < 0.5 ? 0 : 1; + + int2 cell_id = int2(int(::math::floor(uv.uv.x) - offset_x), int(::math::floor(uv.uv.y) - offset_y)); + + /* Using Linear congruential generator for pseudorandom numbers which is good enough */ + int rand_val_0 = random(seed); + int rand_val_1 = random(rand_val_0 + rand_id + random(cell_id.x + random(cell_id.y))); + int rand_val_2 = random(rand_val_1); + int rand_val_3 = random(rand_val_2); + int rand_val_4 = random(rand_val_3); + + ret_val = float4(rand_val_1, rand_val_2, rand_val_3, rand_val_4); + + return float4(ret_val/65535.0f); +} + + +// ****************************************************************************************************** +// Variation of the wood material which features another texture thats masks a secondary color +// Also the map includes a mask that prevents random color variations +export material Wood_Tiles_Walnut_Multicolor( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.4f, 1.0f, 0.0f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.2f, 1.0f, 0.0f) [[ + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::display_name("Secondary Color Tint"), + ::anno::in_group("Appearance") + ]], + float age_dirt = 0.4f [[ + ::anno::display_name("Age Dirt"), + ::anno::description("Adds dark dirt spots on top of the surface to create the appearance of a somewhat aged surface."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::display_name("Wood Brightness"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Randomly darkens the tiles of the floor."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_random_rotation = 0.015f [[ + ::anno::display_name("Wood Random Rotation"), + ::anno::description("Adds a random rotation around the main wood tile alignment direction."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + + float2 wood_scale = float2(1.0f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.15f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.1f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + + float dirt_and_spots_amount = 0.15f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(1.0f, 1.0f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]], + +// WOOD Highlights (Not accessible to regular users) + uniform bool preview_wood_highlights = false + [[ + ::anno::display_name("Preview Wood Specular"), + ::anno::description("Enables previewing of the wood specular highlights for tweaking."), + ::anno::in_group("Advanced", "Wood Highlight") + ]], // just previews the highlights of the wood material + float isotropic_roughness = 0.352f // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values.") + [[ + ::anno::display_name("Isotropic Roughness"), + ::anno::description("Sets the roughness of the isotropic component of the wood reflection."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_roughness_range = 0.566f // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + [[ + ::anno::display_name("Isotropic Roughness Range"), + ::anno::description("Sets the degree roughness variation around the isotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float isotropic_specular_brightness = 1.0f // Sets how strong the isotropic specular highlight appears + [[ + ::anno::display_name("Isotropic Highlight Brightness"), + ::anno::description("Sets the brightness of the isotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float wood_specular_level = 1.f // Adjusts the specular level (PBR Style) + [[ + ::anno::display_name("Wood Specular Level"), + ::anno::description("Adjusts the falloff of the wood highlights."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_attenuation = 0.491f //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + [[ + ::anno::display_name("Anisotropic Attenuation"), + ::anno::description("Breaks up the reflection of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_width = 0.508f //Controls the width of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Width"), + ::anno::description("Adjusts the width of the anisotropic wood highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float aniso_bsdf_height = 0.657f //Controls the height of the anisotropic highlight" + [[ + ::anno::display_name("Anisotropic Height"), + ::anno::description("Adjusts the height of the anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + float anisotropic_isotropic_balance = 0.320f // Balances the Anisotropic vs. the isotropic wood highlight" + [[ + ::anno::display_name("Anisotropic - Isotropic Balance"), + ::anno::description("Blends between the contribution of isotropic and anisotropic highlight."), + ::anno::hard_range(0.f, 1.f), + ::anno::in_group("Advanced", "Wood Highlight") + ]], + +// ------------------ TEXTURES (Not accessible to regular users) ------------------ + // Diffuse + uniform texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb) + [[ + ::anno::display_name("Diffuse Wood Texture"), + ::anno::description("The diffuse wood texture used to cover the tiles (srgb)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Anisotropic Roughness AKA "Rough Detail" + uniform texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Anisotropic Variation Texture"), + ::anno::description("Texture to add variation to the anisotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Isotropic Roughness AKA "Rough Grain" + uniform texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Isotropic Variation Texture"), + ::anno::description("Texture to add variation to the isotropic reflections of the wood (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Wood detail Normal - Grain & Structure + uniform texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Wood Normal Texture"), + ::anno::description("Tangent Space Normal texture for defining the bumpiness of the wood."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles ID, Offset & Rotation + uniform texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles ID - Offset - Rotation Texture"), + ::anno::description("Texture that holds information about the wood tiles needed to create the wood tiles effect. R - Tiles ID, G - Tiles offset, B - Tiles Rotation (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Edgewear, Gaps(AO), Gaps Roughnesss + uniform texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Edgewear - Gaps - Gap Rough"), + ::anno::description("Texture that holds maps for the edgewear roughness, the tile gaps and the gaps roughness (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Normal (Grout and Bend) + uniform texture_2d tex_lin_tiles_normal = texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Normal Texture"), + ::anno::description("Texture that holds the normal map for the tiles (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Secondary color (grayscale) mask, randomization mask + uniform texture_2d tex_lin_tiles_R_2nd_col_G_randmask = texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear) + [[ + ::anno::display_name("2nd Color - Random Mask"), + ::anno::description("Texture that holds maps for blending with the secondary color and a color randomization mask that specifies in which area brightness randomization should occur (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles Roughness, Dents and Spots + uniform texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Rough - Dents - Spots"), + ::anno::description("Texture that contains maps for the tiles roughness, dents and spots which is a roughness effect applied to the wood coating layer (linear space)."), + ::anno::in_group("Advanced", "Textures") + ]], + // Tiles orange Peel + uniform texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) + [[ + ::anno::display_name("Tiles Orange Peel"), + ::anno::description("Tangent Space Normal texture for the orange peel which is applied to the coating of the tiles."), + ::anno::in_group("Advanced", "Textures") + ]] + +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Multicolor Master"), + ::anno::description("Master template material. This material should be hidden." + "If you see this material, the integration is not hiding it correctly."), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "master", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut_Multicolor.Wood_Tiles_Walnut_Multicolor.png"), + ::anno::copyright_notice(COPYRIGHT), + ::anno::hidden() +]] + = + let { +/* + texture_2d tex_srgb_wood_color = texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb); // Diffuse + texture_2d tex_lin_wood_rough_detail = texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear); // Anisotropic Roughness AKA "Rough Detail" + texture_2d tex_lin_wood_rough_grain = texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear); // Isotropic Roughness AKA "Rough Grain" + texture_2d tex_lin_wood_detail_norm = texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear); // Wood detail Normal - Grain & Structure + texture_2d tex_lin_tiles_id_offset_rotation = texture_2d("./textures/brickbond_R_id_G_offs_B_rotation.png", ::tex::gamma_linear); // Tiles ID, Offset & Rotation + texture_2d tex_lin_tiles_edgewear_gaps_gapsrough= texture_2d("./textures/brickbond_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear); // Edgewear, Gaps(AO), Gaps Roughnesss + texture_2d tex_lin_tiles_normal = texture_2d("./textures/brickbond_norm.png", ::tex::gamma_linear); // Tiles Normal (Grout and Bend) + texture_2d tex_lin_tiles_rough_dents_spots = texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear); // Tiles Roughness, Dents and Spots + texture_2d tex_lin_tiles_orange_peel = texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear); // Tiles orange Peel +*/ +/* + // Wood Highlight tweaks + bool preview_wood_highlights = false; // just previews the highlights of the wood material + float wood_specular_level = 1.f; // Adjusts the specular level (PBR Style) + float isotropic_specular_brightness = 1.0f; // Sets how strong the isotropic specular highlight appears + float aniso_attenuation = 0.5f; //Attenuates the the anisotropic highlight using a texture. Use the preview for exclusively previewing the wood hightligghts for properly adjusting this term" + float anisotropic_isotropic_balance = 0.467f; // Balances the Anisotropic vs. the isotropic wood highlight" + float isotropic_roughness_range = 0.66f; // Adjusts the range of variation being applied to the isotropic highlight, a value of zero has no effect at all whereas 1 produces the most variation") + float isotropic_roughness = 0.34f; // The average roughness value of the isotropic highlight. When roughness variation is applied, the variation will go above and below those values."), + + float aniso_bsdf_width = 0.36f; //Controls the width of the anisotropic highlight" + float aniso_bsdf_height = 0.50f; //Controls the height of the anisotropic highlight"), +*/ + float wood_scale_variation = 0.1f; + + // Prepare the UV coordinates for regular texture lookups + vm_coordinates base_uv = vm_coord( + translation:texture_translate, + rotation: texture_rotate, + scaling: texture_scale, + uv_space: uv_space_index + ); + + // Random tile transform + // R: tile_id + // G: tile_offset + // B: tile_rotation + // A: secondary color blend weight + + ::base::texture_return rand_id_offset_lookup = vm_tex_lookup( + tex: tex_lin_tiles_id_offset_rotation, + uv: base_uv, + mono_source: mono_a + ); + + float3 R_2nd_col_G_randmask = ::tex::lookup_float3(tex_lin_tiles_R_2nd_col_G_randmask, base_uv.uv, ::tex::wrap_repeat, ::tex::wrap_repeat) ; + + + + float4 rand_vals = rand_tile_id( + uv: base_uv, + id_offset_map: rand_id_offset_lookup, + seed: seed + ); + + float2 rand_translation = float2(rand_vals.x, rand_vals.y); + float rand_rotation = texture_rotate + (float3(rand_id_offset_lookup.tint).z + (rand_vals.z - 0.5) * wood_random_rotation) * 360; + float2 rand_scale = float2(wood_scale/(1.0 - wood_scale_variation * 0.5 * rand_vals.x)) * texture_scale; + +// *** TILE UV *** - The randomized UV lookup for the tiles + + + vm_coordinates tile_uv = vm_coord( + translation:rand_translation, + rotation: rand_rotation, + scaling: rand_scale, + uv_space: uv_space_index + ); + + + // Tiling Lookups and compositing + // R: Edgewear + // G: Gaps + // B: Gaps Damage Roughness + float3 egdewear_gaps_gapsrough_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_edgewear_gaps_gapsrough, + uv: base_uv, + mono_source: mono_a + ).tint); + + // R: Coat Base Roughness (Footsteps, Grain, Wipe) + // G: Dents (Dirt/Ao) + // B: Spots (Liquid-alike) + float3 rough_dents_spots_lookup = float3( vm_tex_lookup( + tex: tex_lin_tiles_rough_dents_spots, + uv: base_uv, + mono_source: mono_a + ).tint); + + float dirt_and_spots_amount_remap = dirt_and_spots_amount * 0.5; + + float coat_roughness = egdewear_gaps_gapsrough_lookup.x * edgewear_roughness_amount + // edgewear + egdewear_gaps_gapsrough_lookup.z * dirt_and_spots_amount_remap + // Gaps Damage + histogram_range(rough_dents_spots_lookup.x, base_roughness_range, tiles_base_roughness) + // base roughness + rough_dents_spots_lookup.z * dirt_and_spots_amount + // Spots (rough) + (1.0 - rough_dents_spots_lookup.y) * dirt_and_spots_amount; // Dents + + float coat_roughness_squared = coat_roughness*coat_roughness; // roughness squared + + bsdf coating_bsdf = ::df::microfacet_ggx_smith_bsdf( + roughness_u: coat_roughness_squared, + roughness_v: coat_roughness_squared, + tint: color(1.0f), + mode: ::df::scatter_reflect + ); + +// ******** NORMALS ******** + + // Tiles normal + float3 tiles_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_normal, + strength: tiles_bump_strength, + uv: base_uv + ); + + float3 wood_detail_normal = vm_tex_normal_lookup( + tex: tex_lin_wood_detail_norm, + strength: wood_bump_strength, + uv: tile_uv + ); + + float3 orange_peel_normal = vm_tex_normal_lookup( + tex: tex_lin_tiles_orange_peel, + strength: tiles_orange_peel_bump_factor * 0.1f, + uv: base_uv + ); + + // 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(uv_space_index) * (rand_vals.y - 0.5) * slope_amount + + ::state::texture_tangent_v(uv_space_index) * (rand_vals.z - 0.5) * slope_amount + + ::state::normal() * ((1.0f - slope_amount) + 1.0f) + ); + + float3 tiles_slope_normal = add_detail_normal( + n: slope, + nd: tiles_normal + ); + + float3 tiles_slope_detail_normal = add_detail_normal( + n: tiles_slope_normal, + nd: wood_detail_normal + ); + + float3 normal_final = add_detail_normal( + n: tiles_slope_detail_normal, + nd: orange_peel_normal + ); + +// ******** Anisotropic Highlight ******** + // Lookup for anisotropic brightness variation + vm_coordinates aniso_brightnessvar_lookup_uv = vm_coord_post_scale( + uv: base_uv, + scale: texture_scale * 0.6 + ); + + ::base::texture_return aniso_brightnessvar_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: aniso_brightnessvar_lookup_uv, + mono_source: mono_average + ); + + float aniso_brightnessvar = histogram_scan_big( + input: aniso_brightnessvar_lookup.mono, + width: 0.911, + position: aniso_attenuation + ); + + ::base::texture_return aniso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_detail, + uv: tile_uv, + mono_source: mono_average + ); + + float aniso_detail_u = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_width); + float aniso_detail_v = histogram_range(aniso_mod_lookup.mono, 1.0, aniso_bsdf_height); + + bsdf wood_highlight_aniso = ::df::weighted_layer( + layer: ::df::microfacet_ggx_smith_bsdf( + roughness_u: aniso_detail_u * aniso_detail_u, + roughness_v: aniso_detail_v * aniso_detail_v, + tint: color(aniso_brightnessvar), + tangent_u: rotated_tangent(texture_rotate, uv_space_index), + mode: ::df::scatter_reflect + ), + weight: 1.0f, + normal: tiles_slope_normal + ); + +// ******** Isotropic Highlight ******** + ::base::texture_return iso_mod_lookup = vm_tex_lookup( + tex: tex_lin_wood_rough_grain, + uv: tile_uv, + mono_source: mono_average + ); + + float iso_mod = histogram_range( + input: iso_mod_lookup.mono, + range: isotropic_roughness_range, + position: isotropic_roughness + ); + + float iso_mod_squared = iso_mod * iso_mod; + + bsdf wood_highlight_isotropic = ::df::microfacet_ggx_smith_bsdf( + roughness_u: iso_mod_squared, + roughness_v: iso_mod_squared, + tint: color(isotropic_specular_brightness), + mode: ::df::scatter_reflect + ); + +// ******** Comping Anisotropic and Isotropic Highlight ******** + + bsdf wood_highlight_isotropic_bumped = ::df::weighted_layer( + layer: wood_highlight_isotropic, + base: wood_highlight_aniso, + weight: anisotropic_isotropic_balance, + normal: tiles_slope_detail_normal + ); + + +// ******** Diffuse Comping ******** + + // Linear interpolation magic to keep brightness appear the same across different values for + // 'floor_brightness' and 'wood_brightness_variation' + + float floor_brightness_fix = ::math::lerp( + ::math::lerp(0.0f, 0.3f, floor_brightness), + ::math::lerp(0.42f, 1.0f, floor_brightness), + wood_brightness_variation); + + float floor_brightness_remap = floor_brightness_fix * 0.7f + 0.3f; // remapping from 0.3 to 0.7 + + + float4 diffuse_attenuation = float4(::math::lerp( + a: gaps_brightness, + b: floor_brightness_remap, + l: egdewear_gaps_gapsrough_lookup.y)); + + + ::base::texture_return diffuse_lookup = vm_tex_lookup( + tex: tex_srgb_wood_color, + uv: tile_uv, + mono_source: mono_a, + scale: diffuse_attenuation + ); + + // Randomly varies brightness from 0.73 - 1.0 which is a simplification from the two nested lerp calls used in a previous version + float rand_tile_brightness = 1.0f - 0.27 * wood_brightness_variation + 0.27 * wood_brightness_variation * rand_vals.z * R_2nd_col_G_randmask.y; + // float rand_tile_brightness = R_2nd_col_G_randmask.x; + + // adding the darkening of the dents texture channel + float rand_tile_brightness_dents = rand_tile_brightness * ::math::lerp(1.0f, rough_dents_spots_lookup.y, age_dirt); + + + ::base::texture_return tiles_rand_brightness = ::nvidia::core_definitions::blend_colors( + color_1: diffuse_lookup.tint, + color_2: color(::math::pow( a: rand_tile_brightness_dents, b: 2.2)), // do gamma compensation + mode: ::base::color_layer_multiply, + weight: 1.0f + ); + + // blend wood color and wood secondary color based on maps + ::base::texture_return wood_2_colored = ::nvidia::core_definitions::blend_colors( + color_1: wood_color, + color_2: wood_secondary_color, + mode: ::base::color_layer_blend, + weight: R_2nd_col_G_randmask.x + ); + + ::base::texture_return tiles_rand_brightness_tint = ::nvidia::core_definitions::blend_colors( + color_1: tiles_rand_brightness.tint, + color_2: wood_2_colored.tint, + mode: ::base::color_layer_overlay, + weight: .95f + ); + + bsdf diffuse = ::df::weighted_layer( + layer: ::df::diffuse_reflection_bsdf( + tint: tiles_rand_brightness_tint.tint + ), + normal: tiles_slope_detail_normal, + weight: 1.0 + ); + +// Diffuse + Highlights BSDF + + bsdf diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped, + base: diffuse + ); + +// DEBUG + bsdf debug_diffuse_and_highlights_bsdf = ::df::custom_curve_layer( + normal_reflectivity: wood_specular_level * 0.08, + grazing_reflectivity: 1.0f, + weight: aniso_brightnessvar , + layer: wood_highlight_isotropic_bumped + ); + +// Coating Layer + // separate controls for the reflectivity of the gaps and the general reflectivity of the coat + // Note that "gaps_brightness" also controls the diffuse texture (saving an additional parameter here) + float coating_weight = ::math::lerp( + a: gaps_brightness, + b: coating_reflectivity, + l: egdewear_gaps_gapsrough_lookup.y + ); + + // apply the coating layer + bsdf coated_wood_tiles_bsdf = ::df::custom_curve_layer( + normal_reflectivity: 0.03, //may as well be made adjustable (0.08 * specular_level) + grazing_reflectivity: 1.0f, + layer: coating_bsdf, + weight: coating_weight, + base: diffuse_and_highlights_bsdf, + normal: normal_final + ); + + +// ******** Round Corners ******** + float3 round_normal = round_corners ? + ::state::rounded_corner_normal( + radius: roundcorner_radius_mm * 0.001, // is in mm + across_materials: across_materials + ) : ::state::normal(); + +} in material( + surface: material_surface( + scattering: preview_wood_highlights ? debug_diffuse_and_highlights_bsdf : coated_wood_tiles_bsdf + ), + geometry: material_geometry( + normal: round_normal + ) +); + + +// ****************************************************************************************************** +// 01 + +export material Wood_Tiles_Walnut_Melbury( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.4f, 1.0f, 0.0f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.2f, 1.0f, 0.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 1.0f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = 0.5f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.5f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.f), float2(2.f)) + ]], + uniform float tiles_bump_strength = 0.4f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.05f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.3f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 0.6f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.0f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.15f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(.5f, .5f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Multicolor Melbury"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "melbury", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut_Multicolor.Wood_Tiles_Walnut_Melbury.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Walnut_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.006f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/melbury_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/melbury_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/melbury_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/melbury_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 02 + +export material Wood_Tiles_Walnut_Large_Star( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.4f, 1.0f, 0.0f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.2f, 1.0f, 0.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .4f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.6f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.15f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.3333f, 0.3333f)), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Multicolor Large Star"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut_Multicolor.Wood_Tiles_Walnut_Large_Star.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Walnut_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.005f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/star_large_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/star_large_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/star_large_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/star_large_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +); + + + +// 03 + +export material Wood_Tiles_Walnut_Stars( + int seed = 0 [[ + ::anno::display_name("Randomization Seed"), + ::anno::description("Different seed values while causes different patterns of randomization on the tiles."), + ::anno::in_group("Randomization") + ]], + color wood_color = color(0.4f, 1.0f, 0.0f) [[ + ::anno::display_name("Color Tint"), + ::anno::description("Applies an overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + color wood_secondary_color = color(0.2f, 1.0f, 0.0f) [[ + ::anno::display_name("Secondary Color Tint"), + ::anno::description("Choose the secondary overlay color to tint the wood. A grayscale value of 0.5 has no effect, " + "brighter values brighten it while darker colors will have a darkening effect."), + ::anno::in_group("Appearance") + ]], + uniform float wood_bump_strength = 0.3f // Determines the degree of bumpiness"), + [[ + ::anno::display_name("Wood Bump Strength"), + ::anno::description("Adjusts the strength of the wood bump map."), + ::anno::in_group("Appearance"), + ::anno::hard_range(0.f, 2.f) + ]], + float floor_brightness = 0.8f [[ + ::anno::display_name("Wood Brightness"), + ::anno::description("Adjusts the general brightness of the wood."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float wood_brightness_variation = .35f [[ + ::anno::display_name("Wood Brightness Variation"), + ::anno::description("Adds a random brightness variation to the wooden tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float2 wood_scale = float2(1.4f) [[ + ::anno::description("Sets the size of the wood relative to the tiles pattern. Larger numbers increase the size of the wood texture within the tiles."), + ::anno::display_name("Wood Scale"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::soft_range(float2(0.0f), float2(2.0f)) + ]], + uniform float tiles_bump_strength = 0.3f [[ + ::anno::description("Determines the degree of bumpiness of the tiles texture (grooves and bent tiles)."), + ::anno::display_name("Tiles Bump Strength"), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_random_slope_orientation = 0.4f [[ + ::anno::display_name("Tiles Random Slope Orientation"), + ::anno::description("Makes tiles individual tiles to appear tilted in random directions. Good for old floors and to take away too perfect appearing tiled floors."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float gaps_brightness = 0.0f [[ + ::anno::display_name("Grout Brightness"), + ::anno::description("Adjusts the brightness and roughness of the gaps between the tiles."), + ::anno::in_group("Appearance", "Tiles"), + ::anno::hard_range(0.f, 1.f) + ]], + float tiles_base_roughness = 0.14f [[ + ::anno::description("Adjusts the roughness of the coating. Higher value leading to blurrier and softer reflections."), + ::anno::display_name("Coating Roughness"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float base_roughness_range = 1.0f [[ + ::anno::description("Applies roughness variation to the coating, introducing signs of wear such as footprints and smudges."), + ::anno::display_name("Coating Roughness Variation"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + uniform float tiles_orange_peel_bump_factor = 0.3f [[ + ::anno::display_name("Coating Unevenness"), + ::anno::description("Applies an unevenness to the clear coat layer akin to orange peel."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float coating_reflectivity = 1.f [[ + ::anno::display_name("Coating Reflectivity"), + ::anno::description("The overall reflectivity of the clearcoat layer. Note that other parameters will show no effect when the clearcoat reflectivity is 0."), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::hard_range(0.f, 1.f) + ]], + float dirt_and_spots_amount = 0.15f [[ + ::anno::description("Adds random dirt and spots on top of the surface which adds variation to the clearcoat roughness."), + ::anno::display_name("Dirt and Spots"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + float edgewear_roughness_amount = 0.2f [[ + ::anno::description("Adds edgewear around the tile borders which results in a more worn and rough look of the clearcoat."), + ::anno::display_name("Edgewear Roughness Amount"), + ::anno::in_group("Appearance", "Tiles", "Coating"), + ::anno::enable_if("coating_reflectivity > 0.0f"), + ::anno::hard_range(0.f, 1.f) + ]], + + //----------------------------------------------- + + float2 texture_translate = float2(0.f) [[ + ::anno::display_name("Texture Translate"), + ::anno::description("Controls the position of the texture."), + ::anno::in_group("Transform") + ]], + float texture_rotate = 0.f [[ + ::anno::display_name("Texture Rotate"), + ::anno::description("Rotates angle of the texture in degrees."), + ::anno::in_group("Transform") + ]], + float2 texture_scale = float2(1.0f) [[ + ::anno::display_name("Texture Scale"), + ::anno::description("Larger numbers increase the size."), + ::nvidia::core_definitions::dimension(float2(0.5f, 0.5f)), + ::preview_scale(0.33f), + ::anno::in_group("Transform") + ]], + uniform int uv_space_index = 0 [[ + ::anno::display_name("UV Space Index"), + ::anno::description("Uses selected UV space for material."), + ::anno::in_group("Transform") + ]], + uniform bool round_corners = false [[ + ::anno::display_name("Round Corners"), + ::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::in_group("Round Corners") + ]], + uniform float roundcorner_radius_mm = 1.5f [[ + ::anno::display_name("Radius (mm)"), + ::anno::description("Radius of the rounded corners in millimeters."), + ::anno::in_group("Round Corners"), + ::anno::soft_range(0.f, 10.f) + ]], + uniform bool across_materials = false [[ + ::anno::display_name("Across Materials"), + ::anno::description("Applies the round corner effect across different materials when enabled."), + ::anno::in_group("Round Corners") + ]] +) +[[ + ::anno::author("NVIDIA vMaterials"), + ::anno::display_name("Wood Tiles Walnut - Multicolor Stars"), + ::anno::description(DESCRIPTION), + // reflective, varnished, bumped, matte, natural, stained, exterior, new, aged, decayed, abstract, modern, classic + ::anno::key_words(string[]("wood", "walnut", "tiles", "tiled", "pattern", "decorative", "multimaterial", "multicolor", "organic", "natural", "coated", "infinite tiling", "star", "stars", "architecture", "interior")), + ::anno::thumbnail("./.thumbs/Wood_Tiles_Walnut_Multicolor.Wood_Tiles_Walnut_Stars.png"), + ::anno::copyright_notice(COPYRIGHT) + //::anno::hidden() +]] += Wood_Tiles_Walnut_Multicolor( + seed: seed, + wood_color: wood_color, + wood_secondary_color: wood_secondary_color, + wood_bump_strength: wood_bump_strength, + floor_brightness: floor_brightness, + wood_brightness_variation: wood_brightness_variation, + wood_random_rotation: 0.00f, + wood_scale: wood_scale, + + tiles_bump_strength: tiles_bump_strength, + tiles_random_slope_orientation: tiles_random_slope_orientation, + gaps_brightness: gaps_brightness, + tiles_orange_peel_bump_factor: tiles_orange_peel_bump_factor, + coating_reflectivity: coating_reflectivity, + tiles_base_roughness: tiles_base_roughness, + base_roughness_range: base_roughness_range, + dirt_and_spots_amount: dirt_and_spots_amount, + edgewear_roughness_amount: edgewear_roughness_amount, + + texture_translate: texture_translate, + texture_rotate: texture_rotate, + texture_scale: texture_scale, + uv_space_index: uv_space_index, + + round_corners: round_corners, + roundcorner_radius_mm: roundcorner_radius_mm, + across_materials: across_materials, + + preview_wood_highlights: false, + isotropic_roughness: 0.352f, + isotropic_roughness_range: 0.566f, + isotropic_specular_brightness: 1.0f, + wood_specular_level: 1.0f, + aniso_attenuation: 0.491f, + aniso_bsdf_width: 0.508f, + aniso_bsdf_height: 0.657f, + anisotropic_isotropic_balance: 0.320f, + + tex_srgb_wood_color: texture_2d("./textures/wood_walnut_diff.jpg", ::tex::gamma_srgb), + tex_lin_wood_rough_detail: texture_2d("./textures/wood_walnut_rough_detail.jpg", ::tex::gamma_linear), + tex_lin_wood_rough_grain: texture_2d("./textures/wood_walnut_rough_grain.jpg", ::tex::gamma_linear), + tex_lin_wood_detail_norm: texture_2d("./textures/wood_walnut_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_id_offset_rotation: texture_2d("./textures/stars_R_id_G_offset_B_rotation.png", ::tex::gamma_linear), + tex_lin_tiles_edgewear_gaps_gapsrough: texture_2d("./textures/stars_R_edgewear_G_gaps_B_gaps_rough.jpg", ::tex::gamma_linear), + tex_lin_tiles_normal: texture_2d("./textures/stars_norm.jpg", ::tex::gamma_linear), + tex_lin_tiles_R_2nd_col_G_randmask: texture_2d("./textures/stars_R_2ndcol_G_randmask.png", ::tex::gamma_linear), + tex_lin_tiles_rough_dents_spots: texture_2d("./textures/tiles_wood_R_rough_G_dents_B_spots.jpg", ::tex::gamma_linear), + tex_lin_tiles_orange_peel: texture_2d("./textures/tiles_wood_orangepeel_norm.jpg", ::tex::gamma_linear) +);