Class Moon
- java.lang.Object
-
- de.coreengine.rendering.renderable.Moon
-
-
Constructor Summary
Constructors Constructor Description Moon()
Creating new white moon and setting its attenuation to infinity
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLights()
Adding lights of the moon to the masterrendererColor
getColor()
javax.vecmath.Vector3f
getPosition()
float
getSize()
String
getTexture()
void
setIntensity(float intensity)
Setting light intensityvoid
setSize(float size)
void
setTexture(String texture)
-
-
-
Method Detail
-
getSize
public final float getSize()
- Returns:
- Size of the moon
-
setSize
public final void setSize(float size)
- Parameters:
size
- New sizeof the moon
-
getTexture
public final String getTexture()
- Returns:
- TextureData of the moon
-
setTexture
public final void setTexture(String texture)
- Parameters:
texture
- New texture of the moon
-
addLights
public final void addLights()
Adding lights of the moon to the masterrenderer
-
getColor
public final Color getColor()
- Returns:
- Color of the moon
-
getPosition
public final javax.vecmath.Vector3f getPosition()
- Returns:
- Worldposition of the moon
-
setIntensity
public final void setIntensity(float intensity)
Setting light intensity- Parameters:
intensity
- New intensity of the light
-
-