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-05-14Fix T64455 Texture extension mode 'clip' defaults to 'extend'Clément Foucault
2019-05-14GPU: Move Material index to nodetree evaluationClément Foucault
This removes the need to pass the Material* all over the place in the draw manager. Cleanup comming right after.
2019-05-13Cycles/Eevee: add Emission and Alpha inputs to Principled BSDFBrecht Van Lommel
This makes it easier to set up materials with emission and transparency. Importers/exporters and add-ons are recommended to now use these rather than creating separate transparent BSDF and emission nodes.
2019-05-13Cycles/Eevee: unified and improved texture image color space handlingBrecht Van Lommel
Cycles now uses the color space on the image datablock, and uses OpenColorIO to convert to scene linear as needed. Byte images do not take extra memory, they are compressed in scene linear + sRGB transfer function which in common cases is a no-op. Eevee and workbench were changed to work similar. Float images are stored as scene linear. Byte images are compressed as scene linear + sRGB and stored in a GL_SRGB8_ALPHA8 texture. From the GLSL shader side this means they are read as scene linear, simplifying the code and taking advantage of hardware support. Further, OpenGL image textures are now all stored with premultiplied alpha. Eevee texture sampling looks a little different now because interpolation happens premultiplied and in scene linear space. Overlays and grease pencil work in sRGB space so those now have an extra conversion to sRGB after reading from image textures. This is not particularly elegant but as long as engines use different conventions, one or the other needs to do conversion. This change breaks compatibility for cases where multiple image texture nodes were using the same image with different color space node settings. However it gives more predictable behavior for baking and texture painting if save, load and image editing operations have a single color space to handle. Differential Revision: https://developer.blender.org/D4807
2019-05-10Cleanup: DRW: Renaming of glsl utility macrosClément Foucault
2019-05-09Fix T64363 Eevee: Texture coordinates node turns material color to pinkClément Foucault
Sorry for that :(
2019-05-09Eevee: Fix Tangent vectors using NormalMatrix and make them world spaceClément Foucault
Making them world space by default remove a lot of legacy conversion from viewspace.
2019-05-08GPU: Remove GPU_INVERSE_NORMAL_MATRIXClément Foucault
The end goal for this is to lower the number of needed matrices. This also cleanup some uneeded transformation.
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-29Cleanup: comments (long lines) in nodesCampbell Barton
2019-04-26Cleanup: Node shader texture imageClément Foucault
2019-04-24Nodes: avoid slow and unecessary node group updates on file readBrecht Van Lommel
On file read we need to update group nodes in case the group they refer to has changed its inputs and outputs. This had O(n^2) time complexity and was updating all datablocks even if they did not change.
2019-04-24Cleanup: sort CMake include pathsCampbell Barton
2019-04-22Cleanup: style, use braces for nodesCampbell Barton
2019-04-21Cleanup: comments (mainly long lines)Campbell Barton
Comments after code can cause awkward line breaks.
2019-04-19Cleanup: Remove image preview codeSergey Sharybin
Was commented out for literally 10 years.
2019-04-19Cleanup: Remove unneeded compositor update functionSergey Sharybin
Similar to previous commit. Compositing with animation on socket values and image sequences still works fine.
2019-04-19Cleanup: Remove unneeded texture nodes update functionSergey Sharybin
The function was calling update() on the time curve, but there is no update callback on that node. So, effectively the function was doing nothing.
2019-04-18Cleanup: deduplicate image user initialization, make consistent.Brecht Van Lommel
2019-04-18Cleanup: add trailing commas to avoid right shiftCampbell Barton
2019-04-18Cleanup: comment blocksCampbell Barton
2019-04-17Cleanup: line wrapping caused by commentsCampbell Barton
2019-04-17ClangFormat: format '#if 0' code in source/Campbell 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-04-16ClangFormat: add comments to ignore formattingCampbell Barton
2019-04-16Cleanup: trailing commasCampbell Barton
2019-04-14CMake: prepare for BLENDER_SORTED_LIBS removalCampbell Barton
No functional change, this adds LIB definition and args to cmake files. Without this it's difficult to migrate away from 'BLENDER_SORTED_LIBS' since there are many platforms/configurations that could break when changing linking order. Manually add and enable WITHOUT_SORTED_LIBS to try building without sorted libs (currently fails since all variables are empty). This check will eventually be removed. See T46725.
2019-04-12Cleanup: add back semicolons to DefNodeCampbell Barton
Causes extra-semicolon warning, we'll need to disable clang-format for this file since it won't format properly. Reverts b389bb5ef8a
2019-04-10Cleanup: use STR_ELEM macroCampbell Barton
2019-04-02Fix T62434: EEVEE not using correct World Output nodePhilipp Oeser
We were already getting the designated output node in 'ntreeGPUMaterialNodes()' but this wasnt used in 'ntreeExecGPUNodes()', instead whatever node was tagged NODE_DO_OUTPUT was executed. note: this is just the bare minimum to fix the bug, other improvements previously done in D4482 might follow as a separate commit. Reviewers: brecht, fclem Maniphest Tasks: T62434 Differential Revision: https://developer.blender.org/D4630
2019-03-30Fix T63115 crash upon switching to textured/rendered modeClément Foucault
2019-03-29Cleanup: styleCampbell Barton
2019-03-29Eevee: Implement Texture coordinate from objectClément Foucault
First try to implement T57489. But unfortunately, there is a missing dependency in the depsgraph that does not trigger the shader update.
2019-03-29Fix T62178 Eevee: Texture Box mapping not matching Cycles if object is scaledClément Foucault
The wrong transformation was used. Add a new matrix specially for this case. This also fix the Node texture coordinate that was suffering the same issue.
2019-03-27Fix T62680 Mirrored objects have flipped binormal vectors in LookDevClément Foucault
Pass binormal sign via object info.
2019-03-25Fix T62856 Toon BSDF and viewport/UI odditiesClément Foucault
This was caused by the material not tagged to use Diffuse lighting data.
2019-03-22UI: Rename editor "Compositing" to "Compositor"Adrian Newton
Reviewers: brecht, billreynish Differential Revision: https://developer.blender.org/D4480
2019-03-22Eevee: Add small optimisation for Curve Mapping nodesClément Foucault
This remove the RGB texture lookups if the curve is only used for "Luma" correction and does not affect individual RGB channels.
2019-03-18Fix T62670: insert_link() method not working for ShaderNodeCustomGroup.Miguel Porces
Allow Python to override this method. Differential Revision: https://developer.blender.org/D4537
2019-03-16Python API: add Python-defined node groups for shaders and compositing.Miguel Porces
This was already supported for Cycles shader nodes, but now also works for Eevee and compositing nodes. Instead of a generic NodeCustomGroup, now there is ShaderNodeCustomGroup and CompositorNodeCustomGroup that can be subclassed and registered. Differential Revision: https://developer.blender.org/D4370
2019-03-16Fix ID user counting issues with NodeCustomGroup.Miguel Porces
User counting now happens before init() and after free() methods, so that the ID users are in a valid state when Python might modify them. ID user counting was moved into node.c and simplified. Patch by Miguel with further refactoring by Brecht. Ref D4370.
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-13Fix T59501: Eevee doesn't use integer node socketsClément Foucault
This is a hacky fix. We just convert the int as a float and use it as such. This works ok for small int but will not be correct for numbers greater than 4194303. Correct support would require deeper change for UBO creation and socket conversion.
2019-03-08Cleanup: remove debug prints.Brecht Van Lommel
2019-03-08Cleanup: use plural names for Main listsCampbell Barton
Convention was not to but after discussion on 918941483f7e we agree its best to change the convention. Names now mostly follow RNA. Some exceptions: - Use 'nodetrees' instead of 'nodegroups' since the struct is called NodeTree. - Use 'gpencils' instead of 'grease_pencil' since 'gpencil' is a common abbreviation in the C code. Other exceptions: - Leave 'wm' as it's a list of one. - Leave 'ipo' as is for versioning.
2019-03-07Fix T62305: Unconnected group vector inputs are mapped incorrectlyJacques Lucke
The issue was that `bNodeSocketValueVector` and `bNodeSocketValueRGBA` don't store the value at the same location in the struct. I kept the cases for `SOCK_VECTOR` and `SOCK_RGBA` completely separate for now, because they only share code by coincidence and not because they are actually the same. Eventually there could be a "Vector Input" node similar to the "RGB" node. Reviewers: fclem Differential Revision: https://developer.blender.org/D4472
2019-03-07Fix T62259: RGB Curves behave differently in Cycles and EeveeClément Foucault
This was due to curve being not extrapolated correctly. Also curvemap range was not taken into account.
2019-03-06Cleanup: styleCampbell Barton
2019-03-05GPUMaterial: Make Shader Output nodes inside nodegroups workClément Foucault
Works as expected and mimics Cycles behavior. The patch is a bit hacky: In order to not touch the lower level function, we search for the active output inside groups (recursively) and the first valid one is then copied (or extracted if you want) in the previous parent nodetree. So we recursively extract the output node back to the main nodetree while preserving the links through the nodegroups interfaces. This way everything works as expected in gpu tree evaluation and bsdf tagging. Fix T61869 Material Output Node Inside Node Group Renders Pink in Eevee
2019-03-01Fix T62090 : Eevee shader compilation: undefined variable "att1_is_srgb"Clément Foucault
The geom shader check was not needed and this uncovered an error in the GPU_BARYCENTRIC_TEXCO optimization recently commited.