@@ -413,10 +413,30 @@ fn standard_material_from_gltf_material(material: &GltfMaterial) -> StandardMate
413413 normal_map_texture : material. normal_map_texture . clone ( ) ,
414414 occlusion_channel : material. occlusion_channel . clone ( ) ,
415415 occlusion_texture : material. occlusion_texture . clone ( ) ,
416+ #[ cfg( feature = "pbr_specular_textures" ) ]
417+ specular_channel : material. specular_channel . clone ( ) ,
418+ #[ cfg( feature = "pbr_specular_textures" ) ]
419+ specular_texture : material. specular_texture . clone ( ) ,
420+ #[ cfg( feature = "pbr_specular_textures" ) ]
421+ specular_tint_channel : material. specular_tint_channel . clone ( ) ,
422+ #[ cfg( feature = "pbr_specular_textures" ) ]
423+ specular_tint_texture : material. specular_tint_texture . clone ( ) ,
416424 clearcoat : material. clearcoat ,
417425 clearcoat_perceptual_roughness : material. clearcoat_perceptual_roughness ,
426+ #[ cfg( feature = "pbr_multi_layer_material_textures" ) ]
427+ clearcoat_roughness_channel : material. clearcoat_roughness_channel . clone ( ) ,
428+ #[ cfg( feature = "pbr_multi_layer_material_textures" ) ]
429+ clearcoat_roughness_texture : material. clearcoat_roughness_texture . clone ( ) ,
430+ #[ cfg( feature = "pbr_multi_layer_material_textures" ) ]
431+ clearcoat_normal_channel : material. clearcoat_normal_channel . clone ( ) ,
432+ #[ cfg( feature = "pbr_multi_layer_material_textures" ) ]
433+ clearcoat_normal_texture : material. clearcoat_normal_texture . clone ( ) ,
418434 anisotropy_strength : material. anisotropy_strength ,
419435 anisotropy_rotation : material. anisotropy_rotation ,
436+ #[ cfg( feature = "pbr_anisotropy_texture" ) ]
437+ anisotropy_channel : material. anisotropy_channel . clone ( ) ,
438+ #[ cfg( feature = "pbr_anisotropy_texture" ) ]
439+ anisotropy_texture : material. anisotropy_texture . clone ( ) ,
420440 double_sided : material. double_sided ,
421441 cull_mode : material. cull_mode ,
422442 unlit : material. unlit ,
0 commit comments