The spica renderer
roughconductor.h
1 #ifdef _MSC_VER
2 #pragma once
3 #endif
4 
5 #ifndef _SPICA_ROUGH_CONDUCTOR_H_
6 #define _SPICA_ROUGH_CONDUCTOR_H_
7 
8 #include "core/core.hpp"
9 #include "core/common.h"
10 #include "core/spectrum.h"
11 #include "core/render.hpp"
12 #include "core/material.h"
13 
14 namespace spica {
15 
16 class SPICA_EXPORTS RoughConductor : public SurfaceMaterial {
17 public:
18  RoughConductor(const std::shared_ptr<Texture<Spectrum>>& eta,
19  const std::shared_ptr<Texture<Spectrum>>& k,
20  const std::shared_ptr<Texture<Spectrum>>& uRoughness,
21  const std::shared_ptr<Texture<Spectrum>>& vRoughness,
22  const std::string &distribution = "beckmann",
23  const std::shared_ptr<Texture<Spectrum>>& bump = nullptr,
24  bool remapRoughness = false);
26  void setScatterFuncs(SurfaceInteraction* isect,
27  MemoryArena& arena) const override;
28 
29 private:
30  std::shared_ptr<Texture<Spectrum>> eta_;
31  std::shared_ptr<Texture<Spectrum>> k_;
32  std::shared_ptr<Texture<Spectrum>> uRoughness_, vRoughness_;
33  std::string distribution_;
34  std::shared_ptr<Texture<Spectrum>> bumpMap_;
35  bool remapRoughness_;
36 };
37 
38 SPICA_EXPORT_PLUGIN(RoughConductor, "Rough conductor surface");
39 
40 } // namespace spica
41 
42 #endif // _SPICA_ROUGH_CONDUCTOR_H_
Definition: interaction.h:68
Definition: roughconductor.h:16
Definition: renderparams.h:27
Definition: material.h:17