public final class R2FilterFogDepth extends Object implements R2FilterType<R2FilterFogParameters>
A depth-based fog filter.
The filter takes a texture and a depth texture as input and writes a filtered image to the currently bound framebuffer.
| Modifier and Type | Method and Description |
|---|---|
void |
delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g33)
Delete the current object.
|
boolean |
isDeleted() |
static R2FilterType<R2FilterFogParameters> |
newFilter(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g,
R2ShaderPreprocessingEnvironmentReadableType in_shader_env,
R2IDPoolType in_pool,
R2UnitQuadUsableType in_quad) |
void |
runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2FilterFogParameters parameters)
Run the filter for the given parameters.
|
public static R2FilterType<R2FilterFogParameters> newFilter(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type in_g, R2ShaderPreprocessingEnvironmentReadableType in_shader_env, R2IDPoolType in_pool, R2UnitQuadUsableType in_quad)
in_g - An OpenGL interfacein_shader_env - Shader sourcesin_pool - The ID poolin_quad - A unit quadpublic void delete(com.io7m.jcanephora.core.api.JCGLInterfaceGL33Type g33)
throws R2Exception
R2DeletableTypedelete in interface R2DeletableTypeg33 - An OpenGL interfaceR2Exception - On errorspublic boolean isDeleted()
isDeleted in interface com.io7m.jcanephora.core.JCGLResourceUsableTypepublic void runFilter(com.io7m.jcanephora.profiler.JCGLProfilingContextType pc,
com.io7m.jcanephora.texture_unit_allocator.JCGLTextureUnitContextParentType uc,
R2FilterFogParameters parameters)
R2FilterUsableTyperunFilter in interface R2FilterUsableType<R2FilterFogParameters>pc - A profiling contextuc - A texture unit contextparameters - The filter parametersCopyright © 2016 <code@io7m.com> http://io7m.com