How I can create hqx or xBR shader in GLSL?

Hello, people!

I’m new here and I want to make a image scaling shader in OpenGL Shader Language… but I have no idea how to make it. My shader language can be GLSL ES and GLSL.

Please, help!

Useful context for your question from wikipedia (re hqx & xBR):

[li]Pixel art scaling algorithms [/li][li]Hqx [/li][li]Pixel art scaling algorithms#hqnx family [/li][li]Pixel art scaling algorithms#xBR family [/li][/ul]
These shaders appear to be close to what you’re looking for (all part of libretro):

[li]GitHub - libretro/common-shaders: Collection of commonly used Cg shaders. These shaders are usable by either HLSL and/or Cg runtime compilers. The cg2glsl script will translate most of these into GLSL shaders. [/li][/ul]
Of course you’ll need to translate them into GLSL, but that’s not too hard if you know any GPU shading languages. If you’re a newbie there, pick up a good GLSL book (e.g. OpenGL Shading Language) or an on-line tutorial (e.g. GLSL Tutorial – Core (Lighthouse3D)).

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.