1c3ae79ad3
Support for Polygon Mode (Triangle Fill Mode in Metal, Fill Mode in D3D) in the RHI graphics pipeline. Options are Fill and Line Status: OpenGL - ok Vulkan - ok Metal - ok D3D11 - ok OpenGL ES - does not support glPolygonMode. Change-Id: I20b7ef416624700c3dc8d1cbe6474f4ca3889db8 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
13 lines
206 B
GLSL
13 lines
206 B
GLSL
#version 440
|
|
|
|
layout(location = 0) in vec3 position;
|
|
layout(location = 1) in vec3 color;
|
|
|
|
layout(location = 0) out vec3 v_color;
|
|
|
|
void main()
|
|
{
|
|
gl_Position = vec4(position, 1.0);
|
|
v_color = color;
|
|
}
|