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 voidaddLights()Adding lights of the moon to the masterrendererColorgetColor()javax.vecmath.Vector3fgetPosition()floatgetSize()StringgetTexture()voidsetIntensity(float intensity)Setting light intensityvoidsetSize(float size)voidsetTexture(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
-
-