regenerate atlases with different default z value
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 1012 KiB After Width: | Height: | Size: 1012 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 449 KiB |
BIN
examples/ExampleSources/sdf_atlas_packed.png
Normal file
BIN
examples/ExampleSources/sdf_atlas_packed.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 631 KiB |
@@ -268,25 +268,25 @@ namespace OpenVulkano::Scene
|
|||||||
|
|
||||||
info.xyz[0].x = bearingX;
|
info.xyz[0].x = bearingX;
|
||||||
info.xyz[0].y = h - bearingY;
|
info.xyz[0].y = h - bearingY;
|
||||||
info.xyz[0].z = 1;
|
info.xyz[0].z = 0;
|
||||||
info.uv[0].x = l / m_atlasTex.resolution.x;
|
info.uv[0].x = l / m_atlasTex.resolution.x;
|
||||||
info.uv[0].y = b / m_atlasTex.resolution.y;
|
info.uv[0].y = b / m_atlasTex.resolution.y;
|
||||||
|
|
||||||
info.xyz[1].x = bearingX + w;
|
info.xyz[1].x = bearingX + w;
|
||||||
info.xyz[1].y = h - bearingY;
|
info.xyz[1].y = h - bearingY;
|
||||||
info.xyz[1].z = 1;
|
info.xyz[1].z = 0;
|
||||||
info.uv[1].x = r / m_atlasTex.resolution.x;
|
info.uv[1].x = r / m_atlasTex.resolution.x;
|
||||||
info.uv[1].y = b / m_atlasTex.resolution.y;
|
info.uv[1].y = b / m_atlasTex.resolution.y;
|
||||||
|
|
||||||
info.xyz[2].x = bearingX + w;
|
info.xyz[2].x = bearingX + w;
|
||||||
info.xyz[2].y = bearingY; //h - bearingY + h;
|
info.xyz[2].y = bearingY; //h - bearingY + h;
|
||||||
info.xyz[2].z = 1;
|
info.xyz[2].z = 0;
|
||||||
info.uv[2].x = r / m_atlasTex.resolution.x;
|
info.uv[2].x = r / m_atlasTex.resolution.x;
|
||||||
info.uv[2].y = t / m_atlasTex.resolution.y;
|
info.uv[2].y = t / m_atlasTex.resolution.y;
|
||||||
|
|
||||||
info.xyz[3].x = bearingX;
|
info.xyz[3].x = bearingX;
|
||||||
info.xyz[3].y = bearingY;
|
info.xyz[3].y = bearingY;
|
||||||
info.xyz[3].z = 1;
|
info.xyz[3].z = 0;
|
||||||
info.uv[3].x = l / m_atlasTex.resolution.x;
|
info.uv[3].x = l / m_atlasTex.resolution.x;
|
||||||
info.uv[3].y = t / m_atlasTex.resolution.y;
|
info.uv[3].y = t / m_atlasTex.resolution.y;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user