public abstract class Sky
extends java.lang.Object
implements jme3utilities.Loadable
| Constructor and Description |
|---|
Sky() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToWorld(VehicleWorld world)
Add this Sky to the specified world.
|
protected void |
build(com.jme3.scene.Spatial cgmRoot,
com.jme3.light.LightProbe probe)
Configure the loaded C-G model and LightProbe.
|
protected static com.jme3.scene.Spatial |
createSky(com.jme3.asset.AssetManager assetManager,
java.lang.String textureAssetPath)
Generate a sky geometry from an equirectangular texture asset.
|
protected com.jme3.light.AmbientLight |
getAmbientLight()
Access the AmbientLight that was added by initialize(), used to modulate
the color/intensity of light probes.
|
protected com.jme3.app.SimpleApplication |
getApplication()
Access the application instance.
|
com.jme3.scene.Spatial |
getCgm()
Access the C-G model.
|
protected com.jme3.light.DirectionalLight |
getDirectionalLight()
Access the DirectionalLight that was added by initialize().
|
protected com.jme3.shadow.DirectionalLightShadowRenderer |
getShadowRenderer()
Access the shadow renderer that was added by initialize().
|
static void |
initialize()
Add lights and shadows to the scene.
|
void |
load(com.jme3.asset.AssetManager assetManager)
Load this Sky from assets.
|
void |
removeFromWorld()
Remove this Sky from the world to which it was added.
|
static void |
setApplication(com.jme3.app.SimpleApplication application)
Specify the application instance.
|
public void addToWorld(VehicleWorld world)
world - where to add (not null)public final com.jme3.scene.Spatial getCgm()
public static void initialize()
public void removeFromWorld()
public static void setApplication(com.jme3.app.SimpleApplication application)
application - the application instance (not null, alias created)protected final void build(com.jme3.scene.Spatial cgmRoot,
com.jme3.light.LightProbe probe)
cgmRoot - the root of the desired model (not null)probe - the desired LightProbe (not null)protected static com.jme3.scene.Spatial createSky(com.jme3.asset.AssetManager assetManager,
java.lang.String textureAssetPath)
assetManager - for loading assets (not null)textureAssetPath - the path to the texture asset (not null, not
empty)protected final com.jme3.light.AmbientLight getAmbientLight()
protected final com.jme3.app.SimpleApplication getApplication()
protected final com.jme3.light.DirectionalLight getDirectionalLight()
protected final com.jme3.shadow.DirectionalLightShadowRenderer getShadowRenderer()
public void load(com.jme3.asset.AssetManager assetManager)
load in interface jme3utilities.LoadableassetManager - for loading assets (not null)