public class DwShadowMap extends Object
Modifier and Type | Field and Description |
---|---|
processing.core.PVector |
lightdir |
processing.core.PMatrix3D |
mat_scene_bounds |
processing.core.PApplet |
papplet |
processing.opengl.PGraphics3D |
pg_shadowmap |
DwSceneDisplay |
scene_display |
processing.opengl.PShader |
shader_shadow |
Constructor and Description |
---|
DwShadowMap(DwPixelFlow context,
int size,
DwSceneDisplay scene_display,
processing.core.PMatrix3D mat_scene_bounds) |
Modifier and Type | Method and Description |
---|---|
processing.core.PMatrix3D |
getModelView() |
processing.core.PMatrix3D |
getProjection() |
processing.core.PMatrix3D |
getShadowmapMatrix() |
void |
resize(int wh) |
void |
setDirection(float[] eye,
float[] center,
float[] up) |
void |
setDirection(processing.core.PVector eye,
processing.core.PVector center,
processing.core.PVector up) |
void |
setOrtho() |
void |
setPerspective(float fovy) |
void |
update() |
public processing.core.PApplet papplet
public processing.opengl.PShader shader_shadow
public processing.opengl.PGraphics3D pg_shadowmap
public processing.core.PMatrix3D mat_scene_bounds
public processing.core.PVector lightdir
public DwSceneDisplay scene_display
public DwShadowMap(DwPixelFlow context, int size, DwSceneDisplay scene_display, processing.core.PMatrix3D mat_scene_bounds)
public void resize(int wh)
public void update()
public void setOrtho()
public void setPerspective(float fovy)
public void setDirection(float[] eye, float[] center, float[] up)
public void setDirection(processing.core.PVector eye, processing.core.PVector center, processing.core.PVector up)
public processing.core.PMatrix3D getShadowmapMatrix()
public processing.core.PMatrix3D getModelView()
public processing.core.PMatrix3D getProjection()
Processing library PixelFlow by Thomas Diewald. (c) 2017