5 #ifndef _SPICA_MATERIAL_H_
6 #define _SPICA_MATERIAL_H_
10 #include "core/common.h"
11 #include "core/core.hpp"
12 #include "core/spectrum.h"
13 #include "core/cobject.h"
32 Material(
const std::shared_ptr<SurfaceMaterial> &bsdf,
33 const std::shared_ptr<SubsurfaceMaterial> &subsurface =
nullptr);
35 bool isSubsurface()
const {
return static_cast<bool>(subsurface_); }
37 inline std::shared_ptr<SurfaceMaterial> surface()
const {
41 inline std::shared_ptr<SubsurfaceMaterial> subsurface()
const {
46 std::shared_ptr<SurfaceMaterial> bsdf_ =
nullptr;
47 std::shared_ptr<SubsurfaceMaterial> subsurface_ =
nullptr;
52 #endif // _SPICA_MATERIAL_H_
Definition: interaction.h:68
Definition: material.h:24
Definition: material.h:17
Definition: material.h:30