mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 03:06:55 -04:00
Why did I test this after merging?
This commit is contained in:
parent
2f3a25dfb3
commit
48f67e19c2
@ -75,7 +75,7 @@ void main() {
|
||||
vec3 lineCenter = (lineStart + lineEnd)/2*(upperBounds - lowerBounds);
|
||||
|
||||
vec3 offsetVector = vec3(lineSize);
|
||||
offsetVector += vec3(notEqual(lineStart, lineEnd))*(upperBounds.x - lowerBounds.x)/2;
|
||||
offsetVector += vec3(notEqual(lineStart, lineEnd))*(upperBounds - lowerBounds)/2;
|
||||
|
||||
vec3 vertexPos = lineCenter + offsetVertices[vertexIndex]*offsetVector;
|
||||
vec4 mvPos = viewMatrix*vec4(lowerBounds + vertexPos + modelPosition, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user