[mythtv-commits] [MythTV/mythtv] 946b34: Add experimental procedural texture support
Paul Harrison
noreply at github.com
Mon Dec 6 12:03:47 UTC 2021
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 946b344279fc722f95b5bfcf05274a8baca6b855
https://github.com/MythTV/mythtv/commit/946b344279fc722f95b5bfcf05274a8baca6b855
Author: Paul Harrison <paul at mythqml.net>
Date: 2021-12-06 (Mon, 06 Dec 2021)
Changed paths:
M mythtv/libs/libmythui/libmythui.pro
M mythtv/libs/libmythui/mythpainter.h
A mythtv/libs/libmythui/mythuiprocedural.cpp
A mythtv/libs/libmythui/mythuiprocedural.h
M mythtv/libs/libmythui/opengl/mythpainteropengl.cpp
M mythtv/libs/libmythui/opengl/mythpainteropengl.h
M mythtv/libs/libmythui/opengl/mythrenderopengl.cpp
M mythtv/libs/libmythui/opengl/mythrenderopengl.h
M mythtv/libs/libmythui/xmlparsebase.cpp
Log Message:
-----------
Add experimental procedural texture support
Inspired by https://www.shadertoy.com/ this adds some procedural
texture support (think computer generated art) to the UI code.
Essentially this allows you to run custom OpenGL shaders embedded in
the theme.
The initial use will be for the MythCenterXMAS theme to use as a snow
overlay on top of the background that shows gently falling snow on top
of theme's Christmas snowy background images.
There is a new MythUI type <procedural> that simply defines the area the
shader effect will draw in and the name of two files that contain the
vertex shader program and the fragment shader program.
<procedural name="backimg">
<area>0,0,100%,100%</area>
<vertexsource>vertex_shader.txt</vertexsource>
<fragmentsource>fragment_shader.txt</fragmentsource>
</procedural>
Based on a patch from Mark Kendal.
More information about the mythtv-commits
mailing list