예제 #1
0
 public static void SetBlendMode(this MaterialPropertyBlock pb, DRenderMode rm)
 {
     var(src, dst, op) = rm.ToBlendVars();
     pb.SetFloat(PropConsts.blendSrcMethod, src);
     pb.SetFloat(PropConsts.blendDstMethod, dst);
     pb.SetFloat(PropConsts.blendOp, (int)op);
 }
예제 #2
0
 public static void SetBlendMode(Material mat, DRenderMode rm)
 {
     var(src, dst, op) = rm.ToBlendVars();
     mat.SetFloat(PropConsts.blendSrcMethod, src);
     mat.SetFloat(PropConsts.blendDstMethod, dst);
     mat.SetFloat(PropConsts.blendOp, (int)op);
 }