aboutsummaryrefslogtreecommitdiff
path: root/render/gles2/shaders.c
AgeCommit message (Collapse)Author
2022-10-28render/gles2: move shaders to individual filesSimon Ser
Instead of having a C file with strings for each shader, move each shader into its own file. Use a small POSIX shell script to convert the files into C strings (can't wait for C23 #embed...). The benefits from this are: - Improved readability and syntax highlighting. - Line numbers in shader compiler errors are easier to make sense of. - Consistency with the Vulkan renderer. - Shaders will become more complicated as we add color management features.
2021-11-17Remove support for DMA-BUF flagsSimon Ser
They are never used in practice, which makes all of our flag handling effectively dead code. Also, APIs such as KMS don't provide a good way to deal with the flags. Let's just fail the DMA-BUF import when clients provide flags.
2021-04-08render: drop support for ellipsesSimon Ser
For anything more complicated than quads, compositors can easily ship their own shaders. Closes: https://github.com/swaywm/wlroots/issues/2759
2020-06-17render/gles2: use .x/.y instead of .s/.tSimon Ser
texcoord is a vector of coordinates, with the first member being the X axis value and the second member being the Y axis value. It makes more sense to use the accessors with the same names.
2018-05-18gles2: pre-multiply alpha and fix blending functionIlia Bozhinov
2018-05-15Fix alpha for src_rgba and src_rgbxBrian Ashworth
2018-03-20render/gles2: remove global state, use OpenGL debug extensionemersion
2018-03-20gles2: Honor alpha in fragment_src_externalGuido Günther
By using the same vertex shader and adding alpha to the fragment shader for external textures we can: - use alpha blending - have wlr_gles2_render_texture_with_matrix work with the GL_TEXTURE_EXTERNAL_OES. So far this failed since we passed in alpha which was unknown by fragment_src_external
2018-03-15render/gles2: remove matrix transposition in shadersemersion
2018-03-15Merge branch 'master' into matrix-redesignemersion
2018-03-15matrix: use 2D matricesemersion
2018-03-15Indent GLSL by two spacesGuido Günther
since this is the most established indentation
2018-03-11render: Flip textures in case of inverted_yGuido Günther
2018-02-12Reformat all #include directivesemersion
2017-08-12Fix external shadernyorain
2017-08-10Implement drm (egl) buffer attachingnyorain
2017-06-23Support wl_shm pixel formats in gles2 rendererDrew DeVault
2017-06-23Manually transpose matricies in shaderDrew DeVault
Since GLES2 doesn't do this for us, it seems, on all platforms.
2017-06-23Switch to GLES2Drew DeVault
Closes #13