|
|
material_surface tmp1(::df::weighted_layer(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).x * histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), ::df::custom_curve_layer(0.f, 1.f, 5.35999966f, 1.f, ::df::weighted_layer(0.219999999f, ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))) * (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))), (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))) * (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f) * ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f), ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f) * ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), endless_normal(texture_2d("./textures/scratched_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.5f, 0.5f, 1.f), 3.18999982f)), endless_normal(texture_2d("./textures/scratched_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.5f, 0.5f, 1.f), 3.18999982f)), ::df::tint(nvidia::core_definitions::blend_colors(nvidia::core_definitions::blend_colors(gradient_lookup_smooth(texture_2d("./textures/bronze_gradients.png", ::tex::gamma_srgb), ::math::pow(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.179999992f), copper_amount_remap), color(1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y), ::base::color_layer_multiply, rough_scratches_attenuation).tint, nvidia::core_definitions::blend_colors(gradient_lookup_smooth(texture_2d("./textures/bronze_gradients.png", ::tex::gamma_srgb), ::math::pow(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.179999992f), copper_amount_remap), color(0.655930996f, 0.655930996f, 0.655930996f), ::base::color_layer_screen, shiny_scratches_brightness).tint, ::base::color_layer_blend, float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x).tint, ::df::weighted_layer(0.219999999f, ::df::microfacet_ggx_smith_bsdf((histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))) * (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))), (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))) * (histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 0.170000002f, ::math::lerp(0.399999976f, 0.799999952f, roughness)) + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f))), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), ::df::weighted_layer(1.f, ::df::microfacet_ggx_smith_bsdf(::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f) * ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f), ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f) * ::math::clamp(histogram_range(float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, ::math::lerp(0.0700000003f, 0.75999999f, roughness), ::math::lerp(0.0399999991f, 0.349999994f, roughness)) + rough_scratches_roughness * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).y - float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).x * shiny_scratches_roughness + surface_dirt_amount * 0.579999983f * (1.f - histogram_scan_big(histogram_scan_big((1.f - float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).y) * float3(endless_texture(texture_2d("./textures/scratched_multi_R_scratchA_G_scratchB_B_ABblur.jpg", ::tex::gamma_linear), ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.0869999975f, 0.0979999974f, 0.247999996f), 3.18999982f, false)).z + float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z, 1.f, surface_dirt_amount * 0.579999983f), 0.289999992f, 0.479999989f)), 0.f, 1.f), color(1.f, 1.f, 1.f), color(1.f, 1.f, 1.f), ::state::texture_tangent_u(0), ::df::scatter_reflect), bsdf(), endless_normal(texture_2d("./textures/scratched_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.5f, 0.5f, 1.f), 3.18999982f)), endless_normal(texture_2d("./textures/scratched_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.5f, 0.5f, 1.f), 3.18999982f))), ::state::normal()), ::df::diffuse_reflection_bsdf(nvidia::core_definitions::blend_colors(color(0.00489600003f, 0.00409199996f, 0.00365399988f), color(0.0196070001f, 0.015904f, 0.012565f), ::base::color_layer_blend, float3(endless_texture(texture_2d("./textures/scratched_multi_R_dents_G_crust_B_rough.jpg", ::tex::gamma_linear), vmat_transform(texture_translate, texture_rotate, texture_scale, ::base::texture_coordinate_uvw, uv_space_index), 6.08999968f, float3(0.930999994f, 0.505999982f, 0.442999989f), 3.18999982f, false)).z).tint, 0.f), endless_normal(texture_2d("./textures/scratched_normal.jpg", ::tex::gamma_linear), bump_strength, false, false, ::base::coordinate_source(::base::texture_coordinate_uvw, 0), 6.08999968f, float3(0.5f, 0.5f, 1.f), 3.18999982f)), material_emission(emission: edf(), intensity: color(0.f, 0.f, 0.f), mode: intensity_radiant_exitance)); |