Files
PhotonMF/sphere_area_light.hpp
2017-02-13 17:08:35 -04:00

16 lines
364 B
C++

#pragma once
#ifndef SPHERE_AREA_LIGHT_HPP
#define SPHERE_AREA_LIGHT_HPP
#include "area_light.hpp"
#include "sphere.hpp"
class SphereAreaLight: public AreaLight {
public:
SphereAreaLight(Sphere * _s, float _c = 1.0, float _l = 0.0, float _q = 0.0): AreaLight(static_cast<Figure *>(_s), _c, _l, _q) { }
virtual void sample_at_surface(vec3 point);
};
#endif