Package gaiasky.scene.system.render.draw
Class BillboardRenderer
java.lang.Object
gaiasky.render.system.AbstractRenderSystem
gaiasky.scene.system.render.draw.BillboardRenderer
- All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
,IObserver
,IRenderSystem
,Comparable<IRenderSystem>
-
Nested Class Summary
Nested classes/interfaces inherited from class gaiasky.render.system.AbstractRenderSystem
AbstractRenderSystem.RenderSystemRunnable
-
Field Summary
Fields inherited from class gaiasky.render.system.AbstractRenderSystem
alphas, aux3d, aux3f, comp, postRunners, preRunners, programs, rc, sceneRenderer
-
Constructor Summary
ConstructorDescriptionBillboardRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaderPrograms, String texturePath, boolean starTextureListener) Creates a new billboard quad render component.BillboardRenderer
(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs, String texturePath, float w, float h, boolean starTextureListener) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Event notification call.void
render
(com.badlogic.ashley.core.Entity entity, ExtShaderProgram shader, IntMesh mesh, ICamera camera) Billboard quad render, for planets, stars, sso and sets.void
renderStud
(List<IRenderable> renderables, ICamera camera, double t) void
setBillboardTexture
(String texturePath) Methods inherited from class gaiasky.render.system.AbstractRenderSystem
addCameraUpCubemapMode, addDepthBufferUniforms, addEffectsUniforms, addGravWaveUniforms, addPostRunnables, addPreRunnables, addPreviousFrameUniforms, addRelativisticUniforms, addVRScale, compareTo, dispose, getAlpha, getAlpha, getAlpha, getRenderGroup, getShaderProgram, getShaderProgram, initShaderProgram, render, resetFlags, resize, run, updateBatchSize
-
Constructor Details
-
BillboardRenderer
public BillboardRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] programs, String texturePath, float w, float h, boolean starTextureListener) -
BillboardRenderer
public BillboardRenderer(SceneRenderer sceneRenderer, RenderGroup rg, float[] alphas, ExtShaderProgram[] shaderPrograms, String texturePath, boolean starTextureListener) Creates a new billboard quad render component.- Parameters:
rg
- The render group.alphas
- The alphas list.shaderPrograms
- The shader programs to render the quad with.texturePath
- The path to the texture to use for the billboards.starTextureListener
- Whether to listen for star texture setting changes.
-
-
Method Details
-
setBillboardTexture
-
renderStud
- Specified by:
renderStud
in classAbstractRenderSystem
-
render
public void render(com.badlogic.ashley.core.Entity entity, ExtShaderProgram shader, IntMesh mesh, ICamera camera) Billboard quad render, for planets, stars, sso and sets. -
notify
Description copied from interface:IObserver
Event notification call.
-