-virtual vec4 get_base_color()
-{
- if(use_base_color_map)
- return texture(base_color_map, texcoord.xy);
- else
- return pbr_material.base_color;
-}
-
-virtual float get_metalness_value()
-{
- if(use_metalness_map)
- return texture(metalness_map, texcoord.xy).r;
- else
- return pbr_material.metalness;
-}
-
-virtual float get_roughness_value()
-{
- if(use_roughness_map)
- return texture(roughness_map, texcoord.xy).r;
- else
- return pbr_material.roughness;
-}
-
-virtual float get_occlusion_value()
-{
- if(use_occlusion_map)
- return texture(occlusion_map, texcoord.xy).r;
- else
- return 1.0;
-}
-
-virtual vec3 get_emission_color()
-{
- if(use_emission_map)
- return texture(emission_map, texcoord.xy).rgb;
- else
- return pbr_material.emission.rgb;
-}
-