mirror of
https://github.com/openglobus/openglobus.git
synced 2025-12-08 19:25:27 +00:00
889 dd
This commit is contained in:
parent
5ed3c2be03
commit
903d53591f
@ -56,6 +56,9 @@ void main() {
|
||||
mat4 viewMatrixRTE = viewMatrix;
|
||||
viewMatrixRTE[3] = vec4(0.0, 0.0, 0.0, 1.0);
|
||||
|
||||
gl_Position = projectionMatrix * viewMatrixRTE * vec4(highDiff * step(1.0, length(highDiff)) + vert, 1.0);
|
||||
|
||||
|
||||
highDiff = a_startPosHigh - eyePositionHigh;
|
||||
highDiff = highDiff * step(1.0, length(highDiff));
|
||||
vec3 lowDiff = a_startPosLow - eyePositionLow;
|
||||
@ -71,7 +74,6 @@ void main() {
|
||||
repeat = distance(nStart, nEnd) / a_strokeSize;
|
||||
|
||||
// Could be optimization some times
|
||||
repeat = (1.0 / a_strokeSize) * length(v) / focalSize;
|
||||
|
||||
gl_Position = projectionMatrix * viewMatrixRTE * vec4(highDiff * step(1.0, length(highDiff)) + vert, 1.0);
|
||||
//float repeat = (1.0 / a_strokeSize) * length(v) / focalSize;
|
||||
//repeat = min(repeat, 100.0);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user