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:
authorAlfredo de Greef <eeshlo@yahoo.com>2004-12-07 08:31:17 +0300
committerAlfredo de Greef <eeshlo@yahoo.com>2004-12-07 08:31:17 +0300
commit198ce177a349dc12942a436a4c987e05a9b51636 (patch)
tree52dee54ae4a41380efc0180d8013d8b3484ca29a /source/blender/yafray/intern/export_File.cpp
parent23b14eccec0f71ddc15e65cf36948cb37451be7a (diff)
Added support for normalmaps.
Diffstat (limited to 'source/blender/yafray/intern/export_File.cpp')
-rwxr-xr-xsource/blender/yafray/intern/export_File.cpp3
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();