Пример #1
0
 public virtual void Execute(GameObjectReference objRef)
 {
 }
Пример #2
0
 public override Matrix GetLightVolumeWVP(Cell c, GameObjectReference objRef)
 {
     return(GetLightVolumeWorldMatrix(c, objRef) * Camera.ViewMatrix * Camera.ProjectionMatrix);
 }
Пример #3
0
 public virtual void UnAssignScript(GameObjectReference objRef)
 {
 }
Пример #4
0
 public Matrix GetLightVolumeMatrix(Cell c, GameObjectReference objRef)
 {
     return(Matrix.Scaling(objRef.BoxDepth, objRef.BoxHeight, objRef.BoxWidth) * Matrix.Translation(WorldSpace.GetRealWorldPos(objRef.Position, c)));
 }
Пример #5
0
 public override Matrix GetLightVolumeWVP(Cell c, GameObjectReference objRef)
 {
     return(GetLightVolumeMatrix(c, objRef.Position, objRef.EndPoint, objRef.MaxRange * 1.5f) * Camera.ViewMatrix * Camera.ProjectionMatrix);
 }
Пример #6
0
 public abstract Matrix GetLightVolumeWVP(Cell c, GameObjectReference objRef);
Пример #7
0
 public abstract void RenderDebugLightVolume(GameObjectReference objRef, Cell c, Vector4 GridColor);