#ifndef _POINTLIGHT_CG_
#define _POINTLIGHT_CG_

#include "light.cg"

struct PointLight : Light {
    float3 Plight, Clight;
    bool enabled;
    float3 illuminate(float3 P, out float3 L) {
        L = normalize(Plight - P);
        return Clight;
    }
    bool isEnabled(void) { return enabled; }
};

#endif // _POINTLIGHT_CG_
