Search found 2 matches

by kov_serg
Thu Dec 19, 2024 11:00 am
Forum: Libraries and Tools
Topic: Dithering with matrix
Replies: 10
Views: 24575

Re: Dithering with matrix

Why no use shaders? if not love then os.execute "love ." os.exit() end local app,g={ P=3, CL=8 }, love.graphics app.pixel_shader=string.format([[ #define CL %d #define W %d uniform float noise[W*W]; vec4 effect(vec4 c,Image tex,vec2 uv,vec2 xy){ vec4 p=Texel(tex,uv); int idx=int(mod(floor(...