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); }
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); }
public override void SetEntityVars(DeviceContext context, ref RenderableInst rend) { //don't use this one }
public abstract void SetEntityVars(DeviceContext context, ref RenderableInst rend);
public override void SetEntityVars(DeviceContext context, ref RenderableInst rend) { }