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-07-30Cleanup: missing leading '*' from comment blocksCampbell Barton
2021-05-17Collada import: use black for Base Color when missing <diffuse>Gaia Clary
Treat a missing <diffuse> the same as a black diffuse color. The easiest way to see this bug is with a Collada shader like ``` <constant> <emission> <color sid="emission">1 0 0 1</color> </emission> </constant> ``` The Collada spec says this should be just ``` color = <emission> ``` ie. red everywhere. The importer slots the red into the Principled Emission socket, but since it leaves the Base Color as the default off-white, this is added to red, and the material looks white-pink in the light and red only in the shadows. Putting black in the Base Color makes it look red everywhere. D10939 will also eliminate the much-less-noticeable specular term for this case. Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10941
2021-05-17refactor: minor changes to previous commitGaia Clary
- rename boolean is_zero by more descriptive has_specularity - add some clarifying comments (and TODO)
2021-05-17Collada import: respect zero-specularityScurest
Collada shaders with black <specular> should import with Specular=0. (A missing <specular> is the same as black.) The general specular conversion is hard, but this case is common and easy. Fixes the specular for all <constant>/<lambert> shaders, and <blinn>/<phong> shaders with black/omitted <specular>. Before this they all looked too "shiny". Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10939
2021-05-14Cleanup: Clang formatHans Goudey
2021-05-14Collada import: connect Emission texture to Emission socketScurest
An emission texture is currently connected to the Base Color socket. It should connect to the Emission socket, like a constant does. Reviewed By: gaiaclary Differential Revision: https://developer.blender.org/D10990
2021-05-07Cleanup: make format (clang-format)Dalai Felinto
2021-05-06Fix T86314: materials not updated correctly after collada import (again)Philipp Oeser
While rB6b18678e34bf did the correct updates, it did it a bit early (not covering all possible node tree changes). Now do the ntreeUpdateTree() at the very end of the material import instead. Thx @scurest investigating. Maniphest Tasks: T86314 Differential Revision: https://developer.blender.org/D11159
2021-03-24Fix T86314: materials not updated correctly after collada importPhilipp Oeser
Make sure we have valid links and link pointers using 'ntreeUpdateTree()'. Maniphest Tasks: T86314 Differential Revision: https://developer.blender.org/D10793
2020-11-06Cleanup: Clang-Tidy modernize-use-nullptrSybren A. Stüvel
Replace `NULL` with `nullptr` in C++ code. No functional changes.
2020-10-10Cleanup: use C comments for descriptive textCampbell Barton
Follow our code style guide by using C-comments for text descriptions.
2020-09-22Fix COLLADA failing to export HDR emission strengthAlex Strand
HDR is not supported by COLLADA, so clamp to export the closest approximation. Differential Revision: https://developer.blender.org/D8955
2020-09-17Shaders: add emission strength input to Principled BSDF nodeAlex Strand
This impacts I/O add-ons. OBJ, FBX and Collada have been updated, glTF not yet. Differential Revision: https://developer.blender.org/D4971
2020-03-06Cleanup: move Alembic, AVI, Collada, and USD to `source/blender/io`Sybren A. Stüvel
This moves the `alembic`, `avi`, `collada`, and `usd` modules into a common `io` directory. This also cleans up some `#include "../../{somedir}/{somefile}.h"` by adding `../../io/{somedir}` to `CMakeLists.txt` and then just using `#include "{somefile}.h"`. No functional changes.