public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
     VSEntityVars.Vars.CamRel      = new Vector4(rend.CamRel, 0.0f);
     VSEntityVars.Vars.Orientation = rend.Orientation;
     VSEntityVars.Update(context);
     VSEntityVars.SetVSCBuffer(context, 2);
 }
Exemple #2
0
 public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
     VSEntityVars.Vars.CamRel        = new Vector4(rend.CamRel, 0.0f);
     VSEntityVars.Vars.Orientation   = rend.Orientation;
     VSEntityVars.Vars.Scale         = rend.Scale;
     VSEntityVars.Vars.HasSkeleton   = rend.Renderable.HasSkeleton ? 1u : 0;
     VSEntityVars.Vars.HasTransforms = rend.Renderable.HasTransforms ? 1u : 0;
     VSEntityVars.Update(context);
     VSEntityVars.SetVSCBuffer(context, 1);
 }
Exemple #3
0
 public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
     //don't use this one
 }
Exemple #4
0
 public abstract void SetEntityVars(DeviceContext context, ref RenderableInst rend);
Exemple #5
0
 public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
 }