diff options
author | Alfredo de Greef <eeshlo@yahoo.com> | 2004-12-07 08:31:17 +0300 |
---|---|---|
committer | Alfredo de Greef <eeshlo@yahoo.com> | 2004-12-07 08:31:17 +0300 |
commit | 198ce177a349dc12942a436a4c987e05a9b51636 (patch) | |
tree | 52dee54ae4a41380efc0180d8013d8b3484ca29a /source/blender/yafray/intern/export_File.cpp | |
parent | 23b14eccec0f71ddc15e65cf36948cb37451be7a (diff) |
Added support for normalmaps.
Diffstat (limited to 'source/blender/yafray/intern/export_File.cpp')
-rwxr-xr-x | source/blender/yafray/intern/export_File.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp index 18874a36355..6a3f9493b01 100755 --- a/source/blender/yafray/intern/export_File.cpp +++ b/source/blender/yafray/intern/export_File.cpp @@ -784,6 +784,9 @@ void yafrayFileRender_t::writeShader(const string &shader_name, Material* matr, ostr << "\t\t<alpha_flag value=\"" << ts << "\" />\n"; } + // image as normalmap flag + if (tex->imaflag & TEX_NORMALMAP) ostr << "\t\t<normalmap value=\"on\" />\n"; + ostr << "\t</modulator>\n"; xmlfile << ostr.str(); |