Class RtLight

java.lang.Object
one.empty3.library.core.raytracer.RtNode
one.empty3.library.core.raytracer.RtLight
Direct Known Subclasses:
RtPointLight

public abstract class RtLight extends RtNode
  • Field Details

    • mDiffuseColor

      protected float mDiffuseColor
    • mSpecularColor

      protected float mSpecularColor
    • mPosition

      protected Point3D mPosition
    • mColor

      protected RtColor mColor
    • mLightType

      protected int mLightType
    • mIntensite

      protected double mIntensite
  • Constructor Details

    • RtLight

      public RtLight(Point3D position, float diffuseColor, float specularColor, RtColor CColor, int type)
    • RtLight

      public RtLight(int light, String light1)
  • Method Details

    • getPosition

      public Point3D getPosition()
    • getColor

      public RtColor getColor()
    • getType

      public int getType()
    • getLightAt

      public abstract RtColor getLightAt(Point3D normal, Point3D intersectionPoint, RtMatiere material)
    • setIntensite

      public void setIntensite(int intensite)