public final class DeferredShading extends java.lang.Object implements IDestroyable
| Constructor and Description |
|---|
DeferredShading(IGLApi glApi) |
| Modifier and Type | Method and Description |
|---|---|
void |
deferredLights(Renderer renderer,
View view,
Lights<?> lights)
Deferred shading
Lights should prior be updated to view: lights.updateToView(view); |
void |
destroy(IGLApi glApi) |
void |
end(IGL gl)
End of scene rendering into this
#getGBuffer() |
boolean |
init(IGL gl,
int w,
int h)
Resize the offscreen render target to the specified size
|
boolean |
isInitialized(IGL gl) |
void |
start(IGL gl)
Start of scene rendering into this
#getGBuffer() |
public DeferredShading(IGLApi glApi)
public boolean init(IGL gl, int w, int h)
gl - w - width of the render targetsh - height of the render targetspublic boolean isInitialized(IGL gl)
gl - OpenGL contextpublic void start(IGL gl)
#getGBuffer()gl - OpenGL contextpublic void end(IGL gl)
#getGBuffer()gl - OpenGL contextpublic void deferredLights(Renderer renderer, View view, Lights<?> lights)
lights.updateToView(view);gl - OpenGL contextview - lights - list of deferred lightscomposeScene - public void destroy(IGLApi glApi)
destroy in interface IDestroyableBonzai 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