Fix depth conversion in ui::painter_impl
This commit is contained in:
parent
b7014f2eda
commit
72ae8604cb
1 changed files with 1 additions and 1 deletions
|
|
@ -20,7 +20,7 @@ out vec4 color;
|
||||||
|
|
||||||
void main()
|
void main()
|
||||||
{
|
{
|
||||||
gl_Position = u_transform * vec4(in_position, float(in_depth) / 16777216.0 * 2.0 - 1.0, 1.0);
|
gl_Position = u_transform * vec4(in_position, 1.0 - float(in_depth) / 16777216.0 * 2.0, 1.0);
|
||||||
color = in_color;
|
color = in_color;
|
||||||
}
|
}
|
||||||
)";
|
)";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue