libs/yocto/yocto_scene.cpp
// Eval material to obtain emission, brdf and opacity.
Eval material to obtain emission, brdf and opacity.
Eval material to obtain emission brdf and opacity .
vec3f eval_emission(const scene_instance* instance, int element,
    const vec2f& uv, const vec3f& normal, const vec3f& outgoing) {
  auto material = instance->material;
  auto texcoord = eval_texcoord(instance, element, uv);
  return material->emission *
         xyz(eval_texture(material->emission_tex, texcoord));
}
vec3f eval_emission ( const scene_instance * instance , int element , const vec2f & uv , const vec3f & normal , const vec3f & outgoing ) { auto material = instance -> material ; auto texcoord = eval_texcoord ( instance , element , uv ) ; return material -> emission * xyz ( eval_texture ( material -> emission_tex , texcoord ) ) ; }
Eval material to obtain emission, brdf and opacity.
Eval material to obtain emission brdf and opacity .