|
|
material_surface tmp1(::df::weighted_layer(::math::pow(1.f - ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 2.6f), ::df::weighted_layer(gradient_lookup_float3(texture_2d("./textures/aging_copper_haze_weight.png", ::tex::gamma_linear), age, 0).x, ::df::microfacet_ggx_smith_bsdf(0.16f, 0.16f, gradient_lookup(texture_2d("./textures/aging_copper_gradient.png", ::tex::gamma_srgb), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 0), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), gradient_lookup(texture_2d("./textures/aging_copper_gradient.png", ::tex::gamma_srgb), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 0), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 2.01f, float3(0.5f, 0.5f, 1.f), 2.02f) : normalmap_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)))), ::state::normal()), ::df::custom_curve_layer(0.04f, 1.f, 5.f, 1.f, ::df::weighted_layer(gradient_lookup_float3(texture_2d("./textures/aging_copper_haze_weight.png", ::tex::gamma_linear), age, 0).x, ::df::microfacet_ggx_smith_bsdf(0.16f, 0.16f, gradient_lookup(texture_2d("./textures/aging_copper_gradient.png", ::tex::gamma_srgb), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 0), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), gradient_lookup(texture_2d("./textures/aging_copper_gradient.png", ::tex::gamma_srgb), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 0), color(0.f, 0.f, 0.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 2.01f, float3(0.5f, 0.5f, 1.f), 2.02f) : normalmap_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)))), ::state::normal()), ::df::weighted_layer(1.f, ::df::diffuse_reflection_bsdf(gradient_lookup(texture_2d("./textures/aging_copper_gradient.png", ::tex::gamma_srgb), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f), 0), 0.f), bsdf(), infinite_tiling ? endless_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 2.01f, float3(0.5f, 0.5f, 1.f), 2.02f) : normalmap_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)))), infinite_tiling ? endless_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 2.01f, float3(0.5f, 0.5f, 1.f), 2.02f) : normalmap_normal(texture_2d("./textures/aging_copper_norm.jpg", ::tex::gamma_linear), ::math::clamp((flow_stains_balance - 0.5f) * 2.f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y + (::math::lerp(0.78f , 0.18f, age * 0.94f) * (drops_variation * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x) + (histogram_range(float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).x, age_variation * 0.5f, age * 0.94f * 0.95f) + float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z * (age * 0.94f * 0.39f + 0.05f) - scratches_abrasion * 0.32f * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y)) + spotsdirt_amount * float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.058f, 0.088f, 0.036f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_drops_G_flowstains_B_spotsdirt.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).z, 0.f, 0.999f) - float3(infinite_tiling ? endless_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 2.01f, float3(0.511f, 0.208f, 0.2f), 2.02f, false) : ::base::file_texture(texture_2d("./textures/aging_copper_multi_R_base_G_scratches_B_castmetal.jpg", ::tex::gamma_linear), color(0.f, 0.f, 0.f), color(1.f, 1.f, 1.f), ::base::mono_alpha, vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), float2(0.f, 1.f), float2(0.f, 1.f), ::tex::wrap_repeat, ::tex::wrap_repeat, false).tint).y * (age * 0.94f * scratches_abrasion), ::base::texture_coordinate_info(::state::texture_coordinate(0), ::state::texture_tangent_u(0), ::state::texture_tangent_v(0)))), ::state::normal()), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); |