paysages3d/src/render/software/WaterIntersector.h
2016-07-29 13:57:55 +02:00

26 lines
632 B
C++

#pragma once
#include "software_global.h"
#include "RayIntersector.h"
namespace paysages {
namespace software {
/**
* Ray intersector with water.
*/
class SOFTWARESHARED_EXPORT WaterIntersector : public RayIntersector {
public:
WaterIntersector(WaterRenderer *renderer);
virtual int getPriority() const override;
virtual bool findIntersection(const Vector3 &eye, const Vector3 &direction, double limit,
Vector3 *out_hit) const override;
virtual Color getColorAtHit(const Vector3 &eye, const Vector3 &location) const override;
private:
WaterRenderer *renderer;
};
}
}