Skip to content

Instantly share code, notes, and snippets.

View AsefHossainKhan's full-sized avatar

Asef Hossain Khan AsefHossainKhan

View GitHub Profile
@AsefHossainKhan
AsefHossainKhan / gist:32b74ea85d42aeee8602dcf462c1ef38
Last active February 5, 2025 16:32
Android "Shader Editor" Application GLSL Camera Shader code [Pixelated Dithering in Black & White]
#ifdef GL_FRAGMENT_PRECISION_HIGH
precision highp float;
#else
precision mediump float;
#endif
uniform vec2 resolution;
uniform vec2 cameraAddent;
uniform mat2 cameraOrientation;
uniform samplerExternalOES cameraBack;
@AsefHossainKhan
AsefHossainKhan / gist:ab78957f15bc20e882be283d7124c2ae
Created January 30, 2025 03:57
Android "Shader Editor" Application GLSL Camera Shader code [Inverted Edge]
#extension GL_OES_standard_derivatives : enable
precision mediump float;
uniform vec2 resolution;
uniform vec2 cameraAddent;
uniform mat2 cameraOrientation;
uniform samplerExternalOES cameraBack;
void main(void) {