diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-22 18:28:56 +0300 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-03-22 18:28:56 +0300 |
commit | f78e11dc3888f6d0e3c4b3ea86ca29c9f142e3bf (patch) | |
tree | a438a2ecec9012bc8584afcb43fac9336bf4b2a9 /source/blender/collada/EffectExporter.h | |
parent | e5eed21a6bf9d8ab36f72d51c3d9f6fad02e795e (diff) |
[#26476] <specular> and <shininess> missing from Colada
reported by Juan Linietsky
Export <specular> for <phong> and <blinn> shaders, <shininess> was already being written for these.
<lambert> shader doesn't have <shininess>.
Right now we write <phong> when blender spec is phong, <blinn> when blender spec is blinn. When spec is
any other shader, and diffuse shader set to lambert, we export as <lambert>. Any other combination defaults
right now to <phong>. This will change when Blender specific profiles have been created for the shader
combinations in Blender.
Diffstat (limited to 'source/blender/collada/EffectExporter.h')
-rw-r--r-- | source/blender/collada/EffectExporter.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/collada/EffectExporter.h b/source/blender/collada/EffectExporter.h index 8fe7ef31da4..2b25d1b889f 100644 --- a/source/blender/collada/EffectExporter.h +++ b/source/blender/collada/EffectExporter.h @@ -61,6 +61,10 @@ private: /** Fills the array of mtex indices which have image. Used for exporting images. */ void createTextureIndices(Material *ma, std::vector<int> &indices); + void writeBlinn(COLLADASW::EffectProfile &ep, Material *ma); + void writeLambert(COLLADASW::EffectProfile &ep, Material *ma); + void writePhong(COLLADASW::EffectProfile &ep, Material *ma); + bool hasEffects(Scene *sce); }; |