public final class R2FilterLightApplicator extends Object implements R2FilterType<R2FilterLightApplicatorParameters>
A trivial filter that combines a geometry buffer and a light buffer into a lit image.
The filter takes various buffers as input and writes a lit image to the currently bound framebuffer. It can optionally copy the geometry buffer's depth buffer to the current depth buffer.
Modifier and Type | Method and Description |
---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx)
Delete the current object.
|
boolean |
isDeleted() |
static R2FilterLightApplicator |
newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2IDPoolType in_pool,
R2UnitQuadUsableType in_quad)
Construct a new filter.
|
static R2FilterLightApplicatorParameters |
parametersFor(R2TextureDefaultsType defaults,
R2GeometryBufferUsableType gbuffer,
R2LightBufferUsableType lbuffer,
com.io7m.jregions.core.unparameterized.areas.AreaL viewport)
Create a set of filter parameters for the given values.
|
void |
runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc,
R2FilterLightApplicatorParameters parameters)
Run the filter for the given parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
wrap
public static R2FilterLightApplicatorParameters parametersFor(R2TextureDefaultsType defaults, R2GeometryBufferUsableType gbuffer, R2LightBufferUsableType lbuffer, com.io7m.jregions.core.unparameterized.areas.AreaL viewport)
defaults
- The set of default texturesgbuffer
- The G-Bufferlbuffer
- The L-Bufferviewport
- The output viewportpublic static R2FilterLightApplicator newFilter(R2ShaderPreprocessingEnvironmentReadableType in_shader_env, com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2IDPoolType in_pool, R2UnitQuadUsableType in_quad)
in_shader_env
- Shader sourcesin_g
- A GL interfacein_pool
- An ID poolin_quad
- A unit quadpublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type gx) throws R2Exception
R2DeletableType
delete
in interface R2DeletableType
gx
- An OpenGL interfaceR2Exception
- On errorspublic boolean isDeleted()
isDeleted
in interface com.io7m.jcanephora.core.JCGLResourceUsableType
public void runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc, com.io7m.jcanephora.texture.unit_allocator.JCGLTextureUnitContextParentType uc, R2FilterLightApplicatorParameters parameters)
R2FilterUsableType
runFilter
in interface R2FilterUsableType<R2FilterLightApplicatorParameters>
pc
- A profiling contextuc
- A texture unit contextparameters
- The filter parametersCopyright © 2017 <code@io7m.com> http://io7m.com