From 9510c97833fd1e2a9476e5cb2835da1c6c77fa16 Mon Sep 17 00:00:00 2001 From: Alejandro Conty Estevez Date: Wed, 14 Jul 2004 10:20:56 +0000 Subject: cache_size yafray parameter calculation changed to sync with current yafray cvs code. Now given in screen coords (-1,+1)x(-1,+1) --- source/blender/yafray/intern/export_File.cpp | 3 ++- source/blender/yafray/intern/export_Plugin.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'source/blender/yafray') diff --git a/source/blender/yafray/intern/export_File.cpp b/source/blender/yafray/intern/export_File.cpp index 08f2837c7e3..99fa0e25a8b 100755 --- a/source/blender/yafray/intern/export_File.cpp +++ b/source/blender/yafray/intern/export_File.cpp @@ -1257,7 +1257,8 @@ void yafrayFileRender_t::writePathlight() } float aspect = 1; if (R.r.xsch < R.r.ysch) aspect = float(R.r.xsch)/float(R.r.ysch); - float sbase = 2.0*atan(0.5/(mainCamLens/(aspect*32.0)))/float(R.r.xsch); + //float sbase = 2.0*atan(0.5/(mainCamLens/(aspect*32.0)))/float(R.r.xsch); + float sbase = 2.0/float(R.r.xsch); ostr << " cache=\"on\" use_QMC=\"on\" threshold=\"" <