Skip to content
Snippets Groups Projects
Commit 119291e2 authored by Pascal Engeler's avatar Pascal Engeler
Browse files

Fixed vertex shader to not scale explicitly

parent 65d4c8e1
No related branches found
No related tags found
No related merge requests found
......@@ -26,14 +26,6 @@ uniform float plotLineHalfThickness;
void main(){
vec3 position = aPos;
if(aPos.z != bad_z_value){
position.z -= minZ;
position.z *= scale;
position.z += minZ;
}
else{
position.z = minZ - 0.5 * scale * (maxZ - minZ);
}
gl_Position = projection * view * model * vec4(position, 1.0);
colorCoord = (aPos.z - minZ)/(maxZ-minZ);
vertexColor = vec4(position.z, 0.0, 0.0, 1.);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment