Blender Git Commit Log

Git Commits -> Revision 621b8bd

Revision 621b8bd by Bastien Montagne (master)
April 26, 2017, 10:04 (GMT)
Tweak 2D line dashed shader to take a scale parameter.

Even though in some cases this does not seems useful, in others (like
zommed 2D views) we have to correct MVP matrix scaling to get fixed
dashes size.

Note that we could do that differently (commented about it in shader),
would also have been cleaner to extract that MVP scale from within the
shader, but there does not seem to be a way to initialize uniform values
from within a shader, and would rather avoid recomputing the scale for
every run (especially since 3DViewport does not need it e.g.).

Part of D2647.

Commit Details:

Full Hash: 621b8bdf86412786e561a5e25fb7583ed61e2b0d
Parent Commit: 80b49c1
Lines Changed: +15, -2

2 Modified Paths:

/source/blender/gpu/shaders/gpu_shader_2D_line_dashed_vert.glsl (+9, -1) (Diff)
/source/blender/windowmanager/intern/wm_gesture.c (+6, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021