public final class VolCloudsManager extends java.lang.Object implements IDestroyable
| Modifier and Type | Method and Description |
|---|---|
protected void |
_updateWindSpeedConfig()
Update wind speed config
|
void |
create(float radius)
Create all resources
|
void |
destroy(IGLApi glApi) |
void |
getHeight(Vec2 dst)
Get height parameters
|
protected void |
notifyCameraRender(IGLApi glApi,
View c)
Notify camera render, to be invoked per-camera and per-frame
|
protected void |
render(Renderer pipeline) |
void |
setAutoUpdate(boolean autoUpdate)
Set autoupdate
|
void |
setHeight(Vec2 height)
Set height parameters
|
void |
setWindSpeed(float windSpeed)
Set wind speed
|
protected void |
update(IGLApi glApi,
float timeSinceLastFrame)
Update
|
public void destroy(IGLApi glApi)
destroy in interface IDestroyablepublic void create(float radius)
radius - Volumetric cloud field radius, -1 to use current mGeometrySettings.Radiusprotected void update(IGLApi glApi, float timeSinceLastFrame)
timeSinceLastFrame - Time since last frameprotected void notifyCameraRender(IGLApi glApi, View c)
c - Rendering cameraprotected void render(Renderer pipeline)
protected void _updateWindSpeedConfig()
public void setHeight(Vec2 height)
height - x = Cloud field y-coord start, y: Field height (both in world coordinates)public void getHeight(Vec2 dst)
public void setAutoUpdate(boolean autoUpdate)
autoUpdate - true if you want to update volumetric clouds wind depending of the SkyX time multiplierpublic void setWindSpeed(float windSpeed)
windSpeed - Wind speedBonzai Engine 1.4.1-20200831 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2019 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com