diff options
author | Stefan Boronczyk <stefan.amin.boronczyk@googlemail.com> | 2021-05-01 06:19:40 +0200 |
---|---|---|
committer | Stefan Boronczyk <stefan.amin.boronczyk@googlemail.com> | 2021-05-01 06:19:40 +0200 |
commit | 7571348a5f17b8d50d65fc9a16aee7b0022e62a1 (patch) | |
tree | ecabaef0c90dec310d38ec37c2747069f1e93205 /servers/rendering_server.cpp | |
parent | 28f56e2cbf03a164741f2eade17f9515f887482c (diff) |
fix-tangents-on-rendering-server
Diffstat (limited to 'servers/rendering_server.cpp')
-rw-r--r-- | servers/rendering_server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering_server.cpp b/servers/rendering_server.cpp index 1ecb471360..0d962decfc 100644 --- a/servers/rendering_server.cpp +++ b/servers/rendering_server.cpp @@ -422,7 +422,7 @@ Error RenderingServer::_surface_set_data(Array p_arrays, uint32_t p_format, uint value |= CLAMP(int((src[i * 4 + 0] * 0.5 + 0.5) * 1023.0), 0, 1023); value |= CLAMP(int((src[i * 4 + 1] * 0.5 + 0.5) * 1023.0), 0, 1023) << 10; value |= CLAMP(int((src[i * 4 + 2] * 0.5 + 0.5) * 1023.0), 0, 1023) << 20; - value |= CLAMP(int((src[i * 4 + 3] * 0.5 + 0.5) * 3.0), 0, 3) << 30; + value |= CLAMP(int((src[i * 4 + 3] * 0.5 + 0.5) * 1023.0), 0, 1023) << 30; memcpy(&vw[p_offsets[ai] + i * p_vertex_stride], &value, 4); } |