Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-04-13Fix T78803: Bad widget drawing with the R600g driverOmar Emara
The SB back-end optimizer for the mesa R600g driver corrupts the vertex shader for widget drawing. This will not be fixed upstream because SB is getting replaced as part of the new NIR path. This was thought to be an issue with instancing and an attempted fix was submitted in D8374, but it did not fix the issue. This patch reimplements the array look-up part of the code using switch case as a workaround and removes the old workaround implemented as part of D8374. Reviewed By: Clement Foucault Differential Revision: https://developer.blender.org/D10967
2021-02-06UI: Fix Typos in Comments and Docsluzpaz
Approximately 91 spelling corrections, almost all in comments. Differential Revision: https://developer.blender.org/D10288 Reviewed by Harley Acheson
2020-09-01UI: Widget: Add conservative raster to avoid cut widget bordersClément Foucault
This avoids incorrect AA when the widget is not perfectly alligned with the pixel grid.
2020-07-07Fix T78307 UI: Drawing artifacts in the Blender UI on macOSClément Foucault
This was due to a bad driver which was not respecting this bit of the specification: `If the current primitive does not originate from an instanced draw command, the value of gl_InstanceID is zero.`
2020-07-04UI: Attempt to fix OSX widget shader issueClément Foucault
Some OSX GL driver implementation needs a dummy vbo read. This fixed issues with the Hair shaders in the past. Related to T78307
2020-06-26Fix T78237 UI: NLA colors black and brokenClément Foucault
This was caused by missing GL blend. This patch also fix the broken strip appearance under timeline zoom.
2020-06-22UI: Widget: Replace geometry by fragment shader drawingClément Foucault
This means all the antiailasing is done inside the fragment shader. We use a Signed Distance Field to draw the 2D rounded boxes. This ensure the best quality for AA. This reduce the averge Batch for widget to 16 verts instead of ~600 and reduce overshading a lot. Theme Emboss alpha and tria alpha needs to be changed after this refactor. The shadow drawing is left unchanged and still use geometry. Reviewed By: Severin Differential Revision: https://developer.blender.org/D7833
2020-05-18UI: Widget: Make emboss offset dependent of line widthClément Foucault
2020-05-18UI: Widgets: Reduce constants count in shaderClément Foucault
2019-06-03Cleanup: style, use braces in GPUCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-02-28Wonky Menu Down ArrowPablo Vazquez
Almost every pulldown menu and popover has a little dropdown arrow shape. Unfortunately it is a bit wonky. The top of the right side of it is wider than the top of the left side. And both sides are narrower at the bottom than the top. It might be hard to see, but this image should help: {F6728281} The patch fixes the symmetry of the shape while keeping the weight as similar as possible. In the following image you can see the outline of the current version in red and this new version in green. {F6728298} With patch applied the arrow looks perfect: {F6728302} Reviewers: brecht, billreynish Reviewed By: billreynish Subscribers: pablovazquez Tags: #bf_blender, #bf_blender_2.8, #user_interface Differential Revision: https://developer.blender.org/D4424
2018-10-22Optimizadion: Fix performanse issue of UI on some old GPUs.mano-wii
Apparently the registry is not large enough and the compiler does something bad in indexing the array.
2018-09-07UI: move toolbar arrow closer to button edgeCampbell Barton
Could overlap icons.
2018-06-20UI: adjust menu triangleCampbell Barton
Was not centered for single icon buttons.
2018-06-20Cleanup: whitespaceCampbell Barton
2018-06-20UI: Use chevrons for number sliders, pulldowns and popoversPablo Vazquez
In the future popovers/pulldowns should have different indicators Patch by William Reynish and Clement Foucault
2018-04-28UI: Number slider uniform fillingDalai Felinto
Now we always fill the slider with a vertical boundary. A bit hard to explain, but very easy to see the difference. I split the widget in three parts and used fragment shader discard to remove the undesired bits. That means all the widget program is doing a bit extra calculation. Reviewers: fclem Subscribers: billreynish Differential Revision: https://developer.blender.org/D3186
2018-04-28UI: Remove hardcoded 11 uniform parametersDalai Felinto
Using a define makes it easy to increase this later.
2018-04-25UI: shrink operator menu hold triangle a littleCampbell Barton
2018-04-15Cleanup: Make access to widget triangle defines explicitJulian Eisel
E.g. the vertices created for each of the defines would require a certain offset. If you don't know what to look for, finding out about this is pretty difficult. Make them easily searchable instead.
2018-04-15Fix button triangle for "hold action" not workingJulian Eisel
There is quite some mess going on in that most of the old triangle drawing code is still there, but does almost nothing effectively. Instead values are hardcoded in the shader, however it doesn't support the drawing options the triangle functions expose. E.g. the 'where' variable to set triangle direction doesn't work.
2018-04-09UI: Fix widget shader on certain compiler.Germano
There was a crash with `Intel(R) HD Graphics 4000`. Thanks to @fclem for the help and review.
2018-04-07UI: Perf: Port color widgets to batch.Clément Foucault
This is more for completeness than perf. Shader is tiny bit more complex but we get less overdraw and drawcalls.
2018-04-06GPUShader: Add GPU_SHADER_2D_WIDGET_BASE_INST shader.Clément Foucault
This will let us draw multiple widget base at once.
2018-04-02UI: Perf: Batch Trias with widgets.Clément Foucault
This remove another portion of imm calls and reduce overall drawcall count.
2018-03-29UI: Perf: Group fill/border/emboss batches together.Clément Foucault
This roughly halves the number of drawcalls from widgetbase_draw.
2018-03-29GPUShader: Add specialized widget base shader.Clément Foucault
This vertex shader let us draw widgets with batches instead of imm calls.