Package gaiasky.render
Class SGRCubemap
java.lang.Object
gaiasky.render.SGRAbstract
gaiasky.render.SGRCubemap
- Direct Known Subclasses:
SGRCubemapProjections
Scene graph renderer that renders six scenes in the six cartesian
directions (front, back, right, left, up, down) to a cubemap.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected floatprotected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.math.Vector3protected floatprotected com.badlogic.gdx.utils.viewport.StretchViewportprotected com.badlogic.gdx.math.Vector3protected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanprotected com.badlogic.gdx.graphics.glutils.FrameBufferprotected booleanFields inherited from class gaiasky.render.SGRAbstract
extendViewport, rc, resultBuffer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.badlogic.gdx.graphics.glutils.FrameBuffergetFrameBuffer(int w, int h)protected com.badlogic.gdx.graphics.glutils.FrameBuffergetFrameBuffer(int w, int h, int extra)protected intgetKey(int w, int h, int extra)protected voidpostRender(com.badlogic.gdx.graphics.glutils.FrameBuffer fb)protected voidrenderCubemapSides(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, IPostProcessor.PostProcessBean ppb)protected voidrenderFace(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, SceneGraphRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t)protected voidrenderRegularFace(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, SceneGraphRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t)Methods inherited from class gaiasky.render.SGRAbstract
getRenderingContext, getResultBuffer, postProcessCapture, postProcessRender, sendOrientationUpdate
-
Field Details
-
aux1
protected com.badlogic.gdx.math.Vector3 aux1 -
aux2
protected com.badlogic.gdx.math.Vector3 aux2 -
aux3
protected com.badlogic.gdx.math.Vector3 aux3 -
dirBak
protected com.badlogic.gdx.math.Vector3 dirBak -
upBak
protected com.badlogic.gdx.math.Vector3 upBak -
dirUpCrs
protected com.badlogic.gdx.math.Vector3 dirUpCrs -
stretchViewport
protected com.badlogic.gdx.utils.viewport.StretchViewport stretchViewport -
frameBufferCubeMap
-
fovBak
protected float fovBak -
angleFromZenith
protected float angleFromZenith -
zPosFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer zPosFb -
zNegFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer zNegFb -
xPosFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer xPosFb -
xNegFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer xNegFb -
yPosFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer yPosFb -
yNegFb
protected com.badlogic.gdx.graphics.glutils.FrameBuffer yNegFb -
zPosFlag
protected boolean zPosFlag -
zNegFlag
protected boolean zNegFlag -
xPosFlag
protected boolean xPosFlag -
xNegFlag
protected boolean xNegFlag -
yPosFlag
protected boolean yPosFlag -
yNegFlag
protected boolean yNegFlag
-
-
Constructor Details
-
SGRCubemap
protected SGRCubemap()
-
-
Method Details
-
renderCubemapSides
protected void renderCubemapSides(SceneGraphRenderer sgr, ICamera camera, double t, int rw, int rh, IPostProcessor.PostProcessBean ppb) -
postRender
protected void postRender(com.badlogic.gdx.graphics.glutils.FrameBuffer fb) -
renderFace
protected void renderFace(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, SceneGraphRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t) -
renderRegularFace
protected void renderRegularFace(com.badlogic.gdx.graphics.glutils.FrameBuffer fb, ICamera camera, SceneGraphRenderer sgr, IPostProcessor.PostProcessBean ppb, int rw, int rh, int wh, double t) -
getKey
protected int getKey(int w, int h, int extra) -
getFrameBuffer
protected com.badlogic.gdx.graphics.glutils.FrameBuffer getFrameBuffer(int w, int h) -
getFrameBuffer
protected com.badlogic.gdx.graphics.glutils.FrameBuffer getFrameBuffer(int w, int h, int extra)
-