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
2022-03-23EEVEE: Move Closure definitions to gpu_shader_codegen_lib.glsleevee-rewriteClément Foucault
This way they can be used as inputs to the closure eval functions.
2022-03-18Merge branch 'master' into eevee-rewriteClément Foucault
# Conflicts: # source/blender/draw/CMakeLists.txt # source/blender/draw/engines/eevee/eevee_depth_of_field.c # source/blender/draw/engines/eevee/eevee_lightprobes.c # source/blender/draw/engines/eevee/eevee_lookdev.c # source/blender/draw/engines/eevee/shaders/effect_dof_bokeh_frag.glsl # source/blender/draw/engines/eevee/shaders/effect_dof_gather_frag.glsl # source/blender/draw/engines/eevee/shaders/effect_minmaxz_frag.glsl # source/blender/draw/engines/eevee/shaders/effect_translucency_frag.glsl # source/blender/draw/engines/eevee/shaders/lookdev_world_frag.glsl # source/blender/gpu/shaders/material/gpu_shader_material_object_info.glsl # source/blender/gpu/shaders/material/gpu_shader_material_tex_environment.glsl # source/blender/gpu/shaders/material/gpu_shader_material_texture_coordinates.glsl
2022-03-18EEVEE: Add new experimental "EEVEE Next" optionClément Foucault
This is supposed to hold the latest improvement from the EEVEE rewrite branch. Note that a restart is necessary in order for the engine to appear. The registration code is a bit convoluted as it needs to be after the WM_init.
2022-03-18Fix UV's not aligning with image.Jeroen Bakker
This reverts a part of {rB33409f9f1cd42e899f2706fe7878e5e89b50d617}.
2022-03-18EEVEE: Raytracing: Add back denoising stepClément Foucault
Still work in progress.
2022-03-17EEVEE: Use compute shaders for lightprobe related filteringClément Foucault
This reduces the complexity and avoid framebuffer setup costs. This also "remove" the prefiltering of the glossy cubemaps in favor of a simple bilinear filtering of the mipchain.
2022-03-17EEVEE: Fix race condition in HiZ downsample shaderClément Foucault
2022-03-17Compositor: Support backdrop offset for the Viewer nodeHabib Gahbiche
This is only part of the experimental "Full Frame" mode (disabled by default). See T88150. Currently the viewer node uses buffer paddings to display image offset in the backdrop as a temporal solution implemented for {D12466}. This solution is inefficient memory and performance-wise. Another issue is that the paddings are part the image when saved. This patch instead sets the offset in the Viewer node image as variables and makes the backdrop take it into account when drawing the image or any related gizmo. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D12750
2022-03-16EEVEE: Material: Fix issue with DRWShadingGroup reuse.Clément Foucault
With the deferred pipeline, the materials needs different shading groups depending on their matflags. Note that this is potentially slower because execution order of shaders may now be random. This might be fixed in a later commit.
2022-03-16EEVEE: Refactor indirect lighting pipeline to use computeClément Foucault
This matches better what hardware raytracing will be doing. Performances are also more predictable.
2022-03-16Fix object centers & geometry selecting meta-elements in edit-modeCampbell Barton
2022-03-14Revert "Animation: Sensible frame range for motion paths"Sybren A. Stüvel
This reverts commit 1558b270e9fcbc2e23fa248b0e7e770dddae155c. An earlier commit (rB101fadcf6b93c) introduced some new functionality, which was overlooked in reviewing this commit & got broken. Will re-commit after the issue has been fixed. Ref: D13687
2022-03-14Fix T96378: B-Bone selection fails in pose-modeCampbell Barton
Regression in 3267c91b4d5caab7da8aef071a446dd2e86f86a9.
2022-03-11Cleanup: use M_PI_2 and M_PI_4 where possibleHallam Roberts
The constant M_PI_4 is added to GLSL to ensure it works there too. Differential Revision: https://developer.blender.org/D14288
2022-03-11Cleanup: fix source typos homogenous->homogeneousBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14306
2022-03-11Cleanup: fix source comment typosBrecht Van Lommel
Contributed by luzpaz. Differential Revision: https://developer.blender.org/D14307
2022-03-11Fix T96243: Workbench Curvature not rendering in background.Jeroen Bakker
When rendering using the command line the curvature wasn't rendered. The reason was that the ui_scale wasn't initialized and therefore the same pixels where sampled to detect the curvature. This is fixed by setting the ui_scale to 1 for any image render.
2022-03-10Cleanup: use SPDX license headerCampbell Barton
2022-03-07Merge branch 'blender-v3.1-release'Hans Goudey
2022-03-07Fix T93573: Curve evaluated mesh selected in edit modeHans Goudey
This fixes the second part of T93573 that 8506f3d9fe9359518e didn't properly address. Specifically, outlines of instances still had the selected color in edit mode in wireframe view. This change is the same as that commit, just in a different place. Differential Revision: https://developer.blender.org/D14229
2022-03-04Cleanup: spelling in comments, function nameCampbell Barton
2022-03-03EEVEE: Deferred: Large refactorClément Foucault
This changes drastically the implementation to leverage arbitrary writes in order to reduce complexity, memory usage and increase speed. Since we are no longer dependent on the framebuffer requirement, we can allocate bigger size texture that fits all views and avoid the extra. Transparency, holdout and emissions are no longer deferred and are now composited using dual source blending. The indirect lighting and raytracing is still not functional but will also gets a large refactor on its own
2022-03-03UV: Edge selection supportSiddhartha Jejurkar
This patch adds edge selection support for UV editing (refer T76545). Developed as a part of GSoC 2021 project - UV Editor Improvements. Previously, selections in the UV editor always flushed down to vertices and this caused multiple issues such as T76343, T78757 and T26676. This patch fixes that by adding edge selection support for all UV operators and adding support for flushing selections between vertices and edges. Updating UV select modes is now done using a separate operator, which also handles select mode flushing and undo for UV select modes. Drawing edges (in UV edge mode) is also updated to match the edit-mesh display in the 3D viewport. Notes on technical changes made with this patch: * MLOOPUV_EDGESEL flag is restored (was removed in rB9fa29fe7652a). * Support for flushing selection between vertices and edges. * Restored the BMLoopUV.select_edge boolean in the Python API. * New operator to update UV select modes and flushing. * UV select mode is now part of editmesh undo. TODOs added with this patch: * Edge support for shortest path operator (currently uses vertex path logic). * Change default theme color instead of reducing contrast with edge-select. * Proper UV element selections for Reveal Hidden operator. Reviewed By: campbellbarton Differential Revision: https://developer.blender.org/D12028
2022-03-02Merge branch 'blender-v3.1-release'Hans Goudey
2022-03-02Fix T93573: Remove outline from instances in edit modeHans Goudey
This commit removes the outline from instances generated from an object when in edit mode. This takes the change in aa13c4b386b1 a bit further, with the idea that instance outlines are more like regular outlines. Because evaluated object data that doesn't match the original object type is treated as an instance internally, this fixes the way evaluated meshes for curves objects have an outline, for example. See the differential revision for a visual comparison. Differential Revision: https://developer.blender.org/D14226
2022-03-01Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-03-01Fix T96097: Image editor tile drawing not working.Jeroen Bakker
The image engine is depth aware when using tile drawing the depth is only updated for the central image what lead to showing the background on top of other areas. Also makes sure that switching the tile drawing would lead to an update of the texture slots.
2022-03-01Merge branch 'blender-v3.1-release'Jacques Lucke
2022-03-01Fix painting on none 256 aligned images.Jeroen Bakker
Internally the update tiles are 256x256. Due to some miscalculations tiles were not generated correctly if the dimension of the image wasn't a multifold of 256.
2022-03-01Fix building error in previous commit.Jeroen Bakker
2022-03-01Image Engine: Performance 8 byte images.Jeroen Bakker
Previously we used to cache a float image representation of the image in rect_float. This adds some incorrect behavior as many areas only expect one of these buffers to be used. This patch stores float buffers inside the image engine. This is done per instance. In the future we should consider making a global cache.
2022-02-28Animation: Sensible frame range for motion pathsColin Marmont
Motion paths can now be initialised to more sensible frame ranges, rather than simply 1-250: - Scene Frame Range - Selected Keyframes - All Keyframes The Motion Paths operators are now also added to the Object context menu and the Dopesheet context menu. The scene range operator was removed, because the operators now automatically find the range when baking the motion paths. The clear operator now appears separated in "Selected Only" and "All", because it was not clear for the user what the button was doing. Reviewed By: sybren, looch Maniphest Tasks: T93047 Differential Revision: https://developer.blender.org/D13687
2022-02-28Merge branch 'blender-v3.1-release'Sergey Sharybin
2022-02-28Fix T95298: Multiview images not displaying correctly.Jeroen Bakker
Image users have a multi_index that wasn't updated in case it is a normal image.
2022-02-28Fix T95981: Remove implicit conversion in texture paint shader.Jeroen Bakker
This fixes a crash on selected platforms.
2022-02-25EEVEE: Simplify Hi-Z pass by porting it to a single pass compute shaderClément Foucault
2022-02-25Merge branch 'master' into eevee-rewriteClément Foucault
# Conflicts: # source/blender/draw/engines/eevee/eevee_data.c # source/blender/draw/engines/eevee/eevee_depth_of_field.c # source/blender/draw/engines/eevee/eevee_motion_blur.c # source/blender/draw/engines/eevee/eevee_private.h # source/blender/draw/engines/eevee/eevee_shadows.c # source/blender/gpu/CMakeLists.txt
2022-02-25GPUTexture: Use immutable storageClément Foucault
This means textures need to have the number of mipmap levels specified upfront. It does not mean the data is immutable. There is fallback code for OpenGL < 4.2. Immutable storage will enables texture views in the future.
2022-02-24Merge branch 'blender-v3.1-release'Clément Foucault
2022-02-24EEVEE: Fix crash when shadow caster count is reduced to 0.Clément Foucault
The crash was catched by ASAN. It was caused by the buffer shrinking logic being faulty.
2022-02-22EEVEE: Fix no shadow optionClément Foucault
2022-02-22EEVEE: Shadow: Improve the case of directional shadowmaps in ortho viewClément Foucault
This is still far from perfect but it is better than not working correctly. The view/casters intersection bounds are too big and rough to compute a decent tilemap level that is near the desire shadow pixels density. The algorithm works relatively ok if the sun direction is almost parallel to the ortho view direction.
2022-02-22Merge branch 'blender-v3.1-release'Jacques Lucke
2022-02-22Fix T93784: text and curve objects have no motion blurJacques Lucke
Previously, objects and geometries were mapped between frames using different hash tables in a way that is incompatible with geometry instances. That is because the geometry mapping happened without looking at the `persistent_id` of instances, which is not possible anymore. Now, there is just one mapping that identifies the same object at multiple points in time. There are also two new caches for duplicated vbos and textures used for motion blur. This data has to be duplicated, otherwise it would be freed when another time step is evaluated. This caching existed before, but is now a bit more explicit and works for geometry instances as well. Differential Revision: https://developer.blender.org/D13497
2022-02-21Merge branch 'blender-v3.1-release'Alexander Gavrilov
2022-02-21Workbench: Fix missing world_data ubo during opaque prepassClément Foucault
2022-02-21Merge remote-tracking branch 'origin/blender-v3.1-release'Sybren A. Stüvel
2022-02-21EEVEE: Fix build on MSVCClément Foucault
2022-02-21Fix T95871: Non-float textures report as float.Jeroen Bakker
Althought the float buffers are only used as cache, current code paths don't look at the flags to identify which kind of image it is. Actual fix would be to check flags, but that wouldn't be something to add one week before release. This commit fixes it by removing the buffers after use in the image engine.
2022-02-21EEVEE: Shadow: Fix out of bound access in page_list stageClément Foucault