From eda377c223cfc0460e3294c95771313f8d4388c3 Mon Sep 17 00:00:00 2001 From: Gaia Clary Date: Tue, 4 Jun 2019 14:31:22 +0200 Subject: 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). --- source/blender/collada/BlenderTypes.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/collada/BlenderTypes.h') 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]; -- cgit v1.2.3