123456789101112 |
- uniform sampler2D textureSampler;
- uniform sampler2D originalColor;
- uniform vec4 viewport;
- varying vec2 vUV;
- void main(void) {
- vec4 ssaoColor = texture2D(textureSampler, viewport.xy + vUV * viewport.zw);
- vec4 sceneColor = texture2D(originalColor, vUV);
- gl_FragColor = sceneColor * ssaoColor;
- }
|