espresso3d.engine.world.sector.light
Class E3DTriangleLighter

java.lang.Object
  extended byespresso3d.engine.world.sector.light.E3DTriangleLighter

public class E3DTriangleLighter
extends java.lang.Object

Author:
Curt This provides the lighting calculatinos used on geometry in the engine. This is normally only used by the engine.

Constructor Summary
E3DTriangleLighter()
           
 
Method Summary
static void lightTriangles(E3DSector sector, java.util.ArrayList triangleList, E3DOrientation orientation)
          Will recalculate all the triangle's vertexColor's to simulate vertex lighting.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

E3DTriangleLighter

public E3DTriangleLighter()
Method Detail

lightTriangles

public static void lightTriangles(E3DSector sector,
                                  java.util.ArrayList triangleList,
                                  E3DOrientation orientation)
Will recalculate all the triangle's vertexColor's to simulate vertex lighting. All previous triangle vertexColor information is lost This will use lights in the current sector and all sectors that are directly linked to this sector via a portal. This doesn't depend on visibility since even if a portal isn't visible, the light from the linked sector would affect this sector

Parameters:
sector - Sector to light
triangleList -