fbb26c2b88
Having a simple Dear ImGui bridge is not just useful for the manual tests, which do not have any other means to displays GUIs, but is in itself an important exercise for the QRhi machinery. Have a new manual test that exercises the built-in ImGui demo window. Then use it in the displacement test for real, to replace the myriads of key presses with on-screen sliders and checkboxes (with less code). Change-Id: I296bafae2a5cce6fc7a447d97e68e5bcec15f451 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
21 lines
407 B
GLSL
21 lines
407 B
GLSL
#version 440
|
|
|
|
layout(location = 0) in vec4 position;
|
|
layout(location = 1) in vec2 texcoord;
|
|
layout(location = 2) in vec4 color;
|
|
|
|
layout(location = 0) out vec2 v_texcoord;
|
|
layout(location = 1) out vec4 v_color;
|
|
|
|
layout(std140, binding = 0) uniform buf {
|
|
mat4 mvp;
|
|
float opacity;
|
|
};
|
|
|
|
void main()
|
|
{
|
|
v_texcoord = texcoord;
|
|
v_color = color;
|
|
gl_Position = mvp * vec4(position.xy, 0.0, 1.0);
|
|
}
|