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
2019-01-31Cleanup: add trailing commasCampbell Barton
Improve clang-format output.
2019-01-29Object Mode: Fix reading past buffer end when drawing cameraClément Foucault
2019-01-29DRW: support clipping for all lamp typesCampbell Barton
2019-01-29Cleanup: replace attrib w/ attrCampbell Barton
Also rename GPUVertexAttribs to GPUVertAttrLayers, avoids confusion with GPUVertAttr which isn't closely related.
2019-01-28DRW: support clipping for object & lamp centersCampbell Barton
2019-01-26Cleanup: remove redundant BKE/BLI/BIF headersCampbell Barton
2019-01-26Cleanup: draw manager headersCampbell Barton
2019-01-26Cleanup: redundant definesCampbell Barton
Comment or remove unused defines.
2019-01-26DRW: support clipping for empty objectCampbell Barton
2019-01-25Cleanup: remove duplicated shaders that only added clipping checksCampbell Barton
Originally I wanted to avoid adding draw manager specific ifdef's all over generic shaders however this isn't needed in so many places. Also there are shaders that are only used by the draw manager so duplicating them only to have the original unused doesn't make sense.
2019-01-24DRW: support clipping for camera objectsCampbell Barton
2019-01-24Cleanup: add missing braces to draw managerCampbell Barton
2019-01-24Fix GPU linking Error.mano-wii
"The geometry shader uses varying _I;gl_PerVertex;gl_ClipDistance, but previous shader does not write to it."
2019-01-24DRW: support clipping for object outlinesCampbell Barton
2019-01-24Cleanup: fix compiler warnings.Brecht Van Lommel
2019-01-24DRW: use clipping for depth bufferCampbell Barton
Object selection now supports clipping.
2019-01-24DRW: API for own versions of builtin GPU shadersCampbell Barton
DRW_shader_get_builtin_shader can replace GPU_shader_get_builtin_shader when we need to support clipping. Use this for loose point & wire drawing in object mode, clips edges in lattice edit mode.
2019-01-23Cleanup: comments above struct members, shader group assignmentsCampbell Barton
Avoid using pointer to pointer when building shader groups.
2019-01-23DRW: generalize selecting between regular/clipped shadersCampbell Barton
Each engine was doing this on its own. Move to DRWContextState, use an enum.
2019-01-23DRW: changes to object mode engine needed to support clippingCampbell Barton
Split out shader struct, no function changes.
2019-01-23Cleanup: add BEGIN/END to GPL headersCampbell Barton
2019-01-223D View: Support vert & weight paint mask clippingCampbell Barton
2019-01-223D View: Support edit-mesh clipping (only verts)Campbell Barton
We'll need to replace built-in shaders to add support for clipping.
2019-01-22Cleanp: use single global for draw managerCampbell Barton
Add 'G_draw' for all draw manager globals, avoids adding extern to each file. Connection between `ts` and `globals_ubo` wasn't obvious, now called `G_draw.block` & `G_draw.block_ubo`.
2019-01-22Fix error in last commitCampbell Barton
2019-01-22Cleanup: use DRW_shader_create_from_arraysCampbell Barton
Avoids messy conditional defines and inline lib allocation.
2019-01-22Cleanup: remove redundant '_sh' suffix, add '_shgrp'Campbell Barton
2019-01-22Cleanup: rename shader containersCampbell Barton
These only contain shaders, so name Shaders instead of ShaderData.
2019-01-21Fix clipping shaders with some AMD/Intel driversCampbell Barton
Caused: error: unsized array index must be constant Use hard coded number of clipping planes, copying the 4th to 5 & 6 when only 4 are used.
2019-01-21DRW: Support wire overlay clippingCampbell Barton
2019-01-21Correct freeing builtin shader from recent commitCampbell Barton
2019-01-21DRW: pass clipping to geom shader via 'gl_in'Campbell Barton
Removes need to pass the worldspace location.
2019-01-21Cleanup: remove '_sh' suffixCampbell Barton
Shaders are now stored in their own struct, no need for special names. Also free as an array.
2019-01-21DRW: Support edit-mesh clippingCampbell Barton
2019-01-21Cleanup: replace 'ct' w/ 'len'Campbell Barton
2019-01-18View 3D Grid: Improve precision and reduce code complexityClément Foucault
Instead of doing manual ray-plane intersection we use normalized positions of the grid mesh and apply scaling after interpolation so that we keep good precision even at really far distances. Precision is now two order of magnitude better and does not produce the same kind of artifact at lower clip start values. This commit also cleanup the implementation. Fixes T58918 Grid not appearing correctly at low clip start in 2.8
2019-01-15Cleanup: rename BASE_FROMDUPLI -> BASE_FROM_DUPLICampbell Barton
Matches `BASE_FROM_SET`.
2019-01-14Object Mode: Outlines: Add support for thicker outlineClément Foucault
Base outline is 2px wide (because of how we detect them). And since inflating this outline will only produce outlines that are 2*x thick we map the UI scalling and the outline width setting to the closest match. Do note that thicker outlines have a performance cost since they need more texture fetches and passes. This fixes T60252 3D View Outline Width not working
2019-01-14Cleanup: move comments above definitionsCampbell Barton
For clang-format not to wrap definitions.
2019-01-12Viewport: Stereoscopy drawing is backDalai Felinto
The viewport stereoscopy support helpers are finally ported to 2.80. We now can scale the camera and the "stereo cameras" will scale in the viewport as well (unlike 2.7x). At the moment I disabled the drawing of the camera frame when stereo is selected and you are looking through the camera. It is to be fixed later, but for now it draws the border wrong. In 2.79 this was not a problem because the camera frame was drawn afterwards as a hack. Viewport > Stereoscopy: * Cameras * Convergence plane * Convergence plane alpha * Stereoscopy volume * Stereoscopy volume alpha
2019-01-12Drawing API: shgroup_instance and shgroup_instance_alpha clarificationDalai Felinto
shgroup_instance_alpha was getting a color[4] but would only use the alpha defined upon creation of the shading group. This was very limiting since it wouldn't allow for different instances to have different alpha values. Patch made with Clément Foucault (he made the code of it, while I fixed all the parts of the code that were relying on shgroup_instance_alpha.
2019-01-11Texture Paint: Add filtering option for texture paint overlayClément Foucault
The overlay should now use the texture interpolation setting in material mode. In image mode, there is now a new button to let the user choose the texture filter. The option is located in the Texture Slots popover and only shows in Image mode.
2019-01-11DRW: Fix texture paint crashing if object has no material slotClément Foucault
2019-01-113D View: use faded wire for set-scene objectsCampbell Barton
Matches 2.7x behavior.
2019-01-113D View: use dupli wire color for shaded wire drawingCampbell Barton
Was only working for loose wire.
2019-01-103D View: use faded color for dupli instance outlinesCampbell Barton
Similar to 2.7x, so instanced geometry can be differentiated.
2019-01-103D View: use faded color for dupli instance wire & pointsCampbell Barton
Similar to 2.7x, so instanced geometry can be differentiated.
2019-01-09Fix swapped active/selected lattice vertex colorCampbell Barton
2019-01-08Vertex Paint: support vertex maskingPhilipp Oeser
Working in 2.7x, was just disabled in 2.8x. Fixes T60256
2019-01-04Cleanup: indentation (right shift)Campbell Barton