Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.54 KB | None | 0 0
  1. public void AddLighting( string sName, float fX, float fY, float fZ, float fIntensity, Color LightColor )
  2.     {
  3.             mILPanel.Scene.Camera.Add(
  4.                 new ILPointLight( sName )
  5.                 {
  6.                     Position = new Vector3( fX, fY, fZ ),
  7.                     Color = LightColor,
  8.                     Intensity = fIntensity,
  9.                 }
  10.             );
  11.  
  12.             /* Code needed to update graphics, however Reset() doesn't do this. */
  13.             mILPanel.Scene.First<ILPlotCube>().Reset();
  14.  
  15.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement