History

Lasers and teleport scale with avatar

luiscuenca committed 9 years ago

Commit 332cb481 parent d5eb67018 files · +59 −18Browse files

Showing the changes to libraries/render-utils/src/GeometryCache.cpp (1 of 18 files). Show all

Unified · Split

libraries/render-utils/src/GeometryCache.cpp+3−2
@@ -1868,7 +1868,7 @@ void GeometryCache::renderLine(gpu::Batch& batch, const glm::vec2& p1, const glm · 1867 unmodified lines
18681868
18691869
18701870 void GeometryCache::renderGlowLine(gpu::Batch& batch, const glm::vec3& p1, const glm::vec3& p2,
1871− const glm::vec4& color, float glowIntensity, float glowWidth, int id) {
1871+ const glm::vec4& color, float glowIntensity, float glowWidth, float glowScale, int id) {
18721872
18731873 // Disable glow lines on OSX
18741874 #ifndef Q_OS_WIN
@@ -1931,9 +1931,10 @@ void GeometryCache::renderGlowLine(gpu::Batch& batch, const glm::vec3& p1, const · 56 unmodified lines
19311931 vec4 p1;
19321932 vec4 p2;
19331933 vec4 color;
1934+ float scale;
19341935 };
19351936
1936− LineData lineData { vec4(p1, 1.0f), vec4(p2, 1.0f), color };
1937+ LineData lineData { vec4(p1, 1.0f), vec4(p2, 1.0f), color, glowScale };
19371938 details.uniformBuffer->resize(sizeof(LineData));
19381939 details.uniformBuffer->setSubData(0, lineData);
19391940 }