Differential D16125 Diff 56366 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
| #pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_clipping_lib.glsl) | ||||
| #pragma BLENDER_REQUIRE(common_view_lib.glsl) | #pragma BLENDER_REQUIRE(common_view_lib.glsl) | ||||
| #define pointSize mpathPointSettings.x | #define pointSize mpathPointSettings.x | ||||
| #define frameCurrent mpathPointSettings.y | #define frameCurrent mpathPointSettings.y | ||||
| #define cacheStart mpathPointSettings.z | #define cacheStart mpathPointSettings.z | ||||
| #define stepSize mpathPointSettings.w | #define stepSize mpathPointSettings.w | ||||
| void main() | void main() | ||||
| { | { | ||||
| gl_Position = drw_view.persmat * vec4(pos, 1.0); | gl_Position = drw_view.winmat * (drw_view.viewmat * vec4(pos, 1.0)); | ||||
| gl_PointSize = float(pointSize + 2); | gl_PointSize = float(pointSize + 2); | ||||
| int frame = gl_VertexID + cacheStart; | int frame = gl_VertexID + cacheStart; | ||||
| bool use_custom_color = customColor.x >= 0.0; | bool use_custom_color = customColor.x >= 0.0; | ||||
| finalColor = (use_custom_color) ? vec4(customColor, 1.0) : vec4(1.0); | finalColor = (use_custom_color) ? vec4(customColor, 1.0) : vec4(1.0); | ||||
| /* 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; | ||||
| Show All 27 Lines | |||||