Differential D16819 Diff 58769 source/blender/draw/engines/overlay/shaders/overlay_motion_path_point_vert.glsl
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/shaders/overlay_motion_path_point_vert.glsl
| Show All 18 Lines | void main() | ||||
| /* Bias to reduce z fighting with the path */ | /* Bias to reduce z fighting with the path */ | ||||
| gl_Position.z -= 1e-4; | gl_Position.z -= 1e-4; | ||||
| if (gl_VertexID % stepSize == 0) { | if (gl_VertexID % stepSize == 0) { | ||||
| gl_PointSize = float(pointSize) + 4; | gl_PointSize = float(pointSize) + 4; | ||||
| } | } | ||||
| if (showKeyFrames) { | if (showKeyFrames) { | ||||
| if ((flag & MOTIONPATH_VERT_KEY) != 0) { | if ((flag & MOTIONPATH_VERT_KEY) != 0u) { | ||||
| gl_PointSize = float(pointSize + 5); | gl_PointSize = float(pointSize + 5); | ||||
| finalColor = colorVertexSelect; | finalColor = colorVertexSelect; | ||||
| /* Bias more to get these on top of regular points */ | /* Bias more to get these on top of regular points */ | ||||
| gl_Position.z -= 1e-4; | gl_Position.z -= 1e-4; | ||||
| } | } | ||||
| /* Draw big green dot where the current frame is. | /* Draw big green dot where the current frame is. | ||||
| * NOTE: this is only done when keyframes are shown, since this adds similar types of clutter | * NOTE: this is only done when keyframes are shown, since this adds similar types of clutter | ||||
| */ | */ | ||||
| Show All 12 Lines | |||||