public final class SSAOShader extends Shader
Ported from SSAO GLSL shader v1.2.
Assembled by Martins Upitis (martinsh) (devlog-martinsh.blogspot.com).
Original technique is made by ArKano22 (gamedev.net).
Based on three.js code
Modified to use RGBA packed depth texture (use clear color 1,1,1,1 for depth pass), made fog more compatible with linear fog
Shader.DefaultResources, Shader.PRECISION
Constructor and Description |
---|
SSAOShader() |
addAttributes, addUniform, areCustomAttributesDirty, buildKernel, buildProgram, buildProgram, clearCustomAttributes, getAttributes, getAttributesLocations, getFragmentSource, getId, getProgram, getUniforms, getVertexSource, setAttributes, setFragmentSource, setPrecision, setUniforms, setVertexSource, toString, updateShaderSource, updateShaderSource