16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-19 07:39:19 +02:00

translation fix, freespot and improvements

This commit is contained in:
milek7
2018-10-13 21:25:00 +02:00
parent 0496350696
commit d8b902a364
3 changed files with 5 additions and 5 deletions

View File

@@ -135,7 +135,7 @@ bool opengl_renderer::Init(GLFWwindow *Window)
// prepare basic geometry chunks
auto const geometrybank = m_geometry.create_bank();
float const size = 2.5f;
float const size = 2.5f / 2.0f;
m_billboardgeometry = m_geometry.create_chunk(
gfx::vertex_array{
{{-size, size, 0.f}, glm::vec3(), {1.f, 1.f}}, {{size, size, 0.f}, glm::vec3(), {0.f, 1.f}}, {{-size, -size, 0.f}, glm::vec3(), {1.f, 0.f}}, {{size, -size, 0.f}, glm::vec3(), {0.f, 0.f}}},

View File

@@ -9,10 +9,10 @@ void main()
{
float x = (gl_PointCoord.x - 0.5f) * 2.0f;
float y = (gl_PointCoord.y - 0.5f) * 2.0f;
float dist2 = abs(x * x + y * y);
if (dist2 > 0.5f * 0.5f)
float dist = sqrt(x * x + y * y);
if (dist > 0.5f)
discard;
gl_FragData[0] = vec4(param[0].rgb * emission, param[0].a);
gl_FragData[0] = vec4(param[0].rgb * emission, mix(param[0].a, 0.0f, dist * 2.0f));
#if MOTIONBLUR_ENABLED
{
vec2 a = (f_clip_future_pos.xy / f_clip_future_pos.w) * 0.5 + 0.5;;

View File

@@ -73,7 +73,7 @@ init() {
"Tools",
"Logging to log.txt",
"Screenshot",
"Windows"
"Windows",
"Log",
"Map",
"Mode windows",