public class ShadowFrameBuffer
extends java.lang.Object
See ThinMatrix on Youtube: https://youtu.be/o6zDfDkOFIc
| Modifier | Constructor and Description |
|---|---|
protected |
ShadowFrameBuffer(int width,
int height)
Initialises the frame buffer and shadow map of a certain size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
bindFrameBuffer()
Binds the frame buffer as the current render target.
|
protected void |
cleanUp()
Deletes the frame buffer and shadow map texture when the game closes.
|
protected int |
getShadowMap() |
protected void |
unbindFrameBuffer()
Unbinds the frame buffer, setting the default frame buffer as the current
render target.
|
protected ShadowFrameBuffer(int width,
int height)
width - - the width of the shadow map in pixels.height - - the height of the shadow map in pixels.protected void cleanUp()
protected void unbindFrameBuffer()
protected int getShadowMap()
public void bindFrameBuffer()