# CommonFilters

from direct.filter.My import CommonFilters

Class CommonFilters implements certain common image postprocessing filters. The constructor requires a filter builder as a parameter.

## Inheritance:

CommonFilters:

## Methods of CommonFilters:

__init__
cleanup
delBloom
delBlurSharpen
delCartoonInk
delHalfPixelShift
delInverted
delViewGlow
delVolumetricLighting
loadShader
reconfigure
setBloom
setBlurSharpen
setCartoonInk
setHalfPixelShift
setInverted
setViewGlow
setVolumetricLighting
update

__init__ def __init__(self, win, cam) Undocumented function.

cleanup def cleanup(self) Undocumented function.

delBloom def delBloom(self) Undocumented function.

delBlurSharpen def delBlurSharpen(self) Undocumented function.

delCartoonInk def delCartoonInk(self) Undocumented function.

delHalfPixelShift def delHalfPixelShift(self) Undocumented function.

delInverted def delInverted(self) Undocumented function.

delViewGlow def delViewGlow(self) Undocumented function.

delVolumetricLighting def delVolumetricLighting(self) Undocumented function.

loadShader def loadShader(self, name) Undocumented function.

reconfigure def reconfigure(self, fullrebuild, changed) Reconfigure is called whenever any configuration change is made.

setBloom def setBloom(self, blend=(0.3, 0.4, 0.3, 0.0), mintrigger=0.6, maxtrigger=1.0, desat=0.6, intensity=1.0, size="medium") Undocumented function.

setBlurSharpen def setBlurSharpen(self) Undocumented function.

setCartoonInk def setCartoonInk(self, separation=1) Undocumented function.

setHalfPixelShift def setHalfPixelShift(self) Undocumented function.

setInverted def setInverted(self) Undocumented function.

setViewGlow def setViewGlow(self) Undocumented function.

setVolumetricLighting def setVolumetricLighting(self, caster, numsamples=32, density=5.0, decay=0.1, exposure=0.1) Undocumented function.

update def update(self, task=None) Updates the shader inputs that need to be updated every frame. Normally, you shouldn't call this, it's being called in a task.