Files
RedBear-OS/recipes/wip/qt/qtquick3d/source/examples/quick3d/custommaterial/screen.frag
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

16 lines
415 B
GLSL

void MAIN()
{
vec2 size = vec2(textureSize(SCREEN_TEXTURE, 0));
vec2 uv = FRAGCOORD.xy / size;
vec2 d = vec2(1.0 / size.x, 1.0 / size.y);
vec4 diff = texture(SCREEN_TEXTURE, uv + d) - texture(SCREEN_TEXTURE, uv - d);
float c = (diff.x + diff.y + diff.z) + 0.5;
float alpha = 1.0;
if (uKeepAlpha)
alpha = texture(SCREEN_TEXTURE, uv).a;
BASE_COLOR = vec4(vec3(c), alpha);
}