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
diff options
context:
space:
mode:
authorGaia Clary <gaia.clary@machinimatrix.org>2019-06-04 15:31:22 +0300
committerGaia Clary <gaia.clary@machinimatrix.org>2019-06-05 13:42:54 +0300
commiteda377c223cfc0460e3294c95771313f8d4388c3 (patch)
treed8c7d5d74a74f19b993ad18f09d098f5ed039549 /source/blender/collada/BlenderTypes.h
parent98cea7edcefa58d5eb7e2350461b8efe33fe7d9e (diff)
update Collada Importer: reworked export and import of Materials
- added import of transparency and emission into principled BSDF Shader - added support for importing all default collada material parameters * diffuse * emission * index_of_refraction * shininess (mapped to BSDF Roughness) * reflectivity (mapped to BSDF Metallic) * transparency + transparent mapped to BSDF Alpha) * ambient (creates unconnected texture node) * specular (creates unconnected texture node) * reflective(creates unconnected texture node) - added support for exporting collada material parameters: * diffuse * emission * index_of_refraction * shininess (mapped to BSDF Roughness) * reflectivity (mapped to BSDF Metallic) * transparency + transparent mapped to BSDF Alpha) - prepared support for exporting the following parameters but currently commented out: * ambient (creates unconnected texture node) * specular (creates unconnected texture node) * reflective(creates unconnected texture node) Problem: For now we only allow export of principled BSDF based materials. I am not sure from where to get ambient, specular and reflective as those values are not included in the principled BSDF Shader (wip).
Diffstat (limited to 'source/blender/collada/BlenderTypes.h')
-rw-r--r--source/blender/collada/BlenderTypes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/collada/BlenderTypes.h b/source/blender/collada/BlenderTypes.h
index 22ad9b8c1e0..0e024be2374 100644
--- a/source/blender/collada/BlenderTypes.h
+++ b/source/blender/collada/BlenderTypes.h
@@ -23,6 +23,7 @@
typedef float(Vector)[3];
typedef float(Quat)[4];
+typedef float(Color)[4];
typedef float(Matrix)[4][4];
typedef double(DMatrix)[4][4];