コード例 #1
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.Update(context);
     VSEntityVars.SetVSCBuffer(context, 2);
 }
コード例 #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);
 }
コード例 #3
0
ファイル: BoundsShader.cs プロジェクト: thuskey/CodeWalker
 public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
     //don't use this one
 }
コード例 #4
0
 public abstract void SetEntityVars(DeviceContext context, ref RenderableInst rend);
コード例 #5
0
 public override void SetEntityVars(DeviceContext context, ref RenderableInst rend)
 {
 }