Mental Ray shader for 3D Studio Max, Maya and XSI with mental ray 3.4 and 3.5
(Max 7,8, 9 - Maya 7, 8 , 8.5 - XSI 4.2, 5, 6)

(c) Copyright 2006-2007 David Lanier 3D, all rights reserved
http://www.dl3d.com

David Lanier 3D hereby grants to you a royalty-free, non-exclusive license to possess and to use the 
shader for both commercial and non-commercial purposes.  
NO WARRANTY:  THE SOFTWARE AND ANY OTHER MATERIALS PROVIDED BY DAVID LANIER 3D TO YOU HEREUNDER ARE PROVIDED "AS IS."  
DAVID LANIER 3D DISCLAIMS ALL WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES 
OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.

** Use it at your own risks **


How to install :
--------------

Use the .dll / .so from your OS type and version located in the lib subfolder.
Use the .mi file from the include subfolder if you use 3DSMax or Maya
Use the .spdl if you use XSI

3DSMax :

In the 3dsmax.exe folder, set the *.mi file in the subfolder : mentalray\shaders_autoload\include
And the DLL in the subfolder mentalray\shaders_autoload\shaders

Maya :

In the mayapath folder, set the mi file in the subfolder : 
  mayapath\mentalray\include
And the DLL in the subfolder 
  mayapath\mentalray\lib

If you use Maya 7 : (ignore this for more recent versions of Maya)
Then modify the maya.rayrc file located in :
  maya7path\mentalray\maya.rayrc
By adding 
	link	"{MAYABASE}/lib/DL3D_BlackSpotsRemover.{DSO}" 
and 
	mi 	"{MAYABASE}/include/DL3D_BlackSpotsRemover.mi"
	
	
XSI :
Set the .spdl and .dll/.so files in the same folder and load the .spdl file using the plugin manager, it will set the shader ready for XSI.




If you enjoy this shader, write to us at contact@dl3d.com and send us nice sreenshots !! :-)
David Lanier 3D
Plug-ins and shaders development

Doc :
---
This is a LENS shader that is used to remove the black squares due to a pixel that is not a number (floating point problems)

 *** Especially usefull when using final gathering ***

How to know if you are in that case : if you increase the filter size and your black squares increase too so you are in that case !
Thes pixels are replaced during rendering by the color in the parameters.