Exemple #1
0
 public static void ApplyWorldViewProjection(EffectMatrixVariable variable, IViewProjectionSettings settings, ObjectLayerSettings obj)
 {
     variable.SetMatrix(obj.WorldTransform * settings.ViewProjection);
 }
Exemple #2
0
 public static void ApplyWorldInverseTranspose(EffectMatrixVariable variable, IViewProjectionSettings settings, ObjectLayerSettings obj)
 {
     variable.SetMatrix(Matrix.Transpose(Matrix.Invert(obj.WorldTransform)));
 }
 public static void ApplyViewProjection(EffectMatrixVariable variable, IViewProjectionSettings settings)
 {
     variable.SetMatrix(settings.ViewProjection);
 }
 public static void ApplyViewProjectionInverseTranspose(EffectMatrixVariable variable, IViewProjectionSettings settings)
 {
     variable.SetMatrix(Matrix.Transpose(Matrix.Invert(settings.ViewProjection)));
 }
 public static void ApplyProjectionTranspose(EffectMatrixVariable variable, IViewProjectionSettings settings)
 {
     variable.SetMatrix(Matrix.Transpose(settings.Projection));
 }