Graphics and Shape now use the new Multi Pipeline

This commit is contained in:
Richard Davey 2021-04-16 18:19:39 +01:00
parent 9879a1062e
commit 2712e87ca2
2 changed files with 2 additions and 4 deletions

View file

@ -20,7 +20,6 @@ var GameObject = require('../GameObject');
var GetFastValue = require('../../utils/object/GetFastValue');
var GetValue = require('../../utils/object/GetValue');
var MATH_CONST = require('../../math/const');
var PIPELINES_CONST = require('../../renderer/webgl/pipelines/const');
var Render = require('./GraphicsRender');
/**
@ -108,7 +107,7 @@ var Graphics = new Class({
GameObject.call(this, scene, 'Graphics');
this.setPosition(x, y);
this.initPipeline(PIPELINES_CONST.GRAPHICS_PIPELINE);
this.initPipeline();
/**
* The horizontal display origin of the Graphics.

View file

@ -8,7 +8,6 @@ var Class = require('../../utils/Class');
var Components = require('../components');
var GameObject = require('../GameObject');
var Line = require('../../geom/line/Line');
var PIPELINES_CONST = require('../../renderer/webgl/pipelines/const');
/**
* @classdesc
@ -204,7 +203,7 @@ var Shape = new Class({
*/
this.height = 0;
this.initPipeline(PIPELINES_CONST.GRAPHICS_PIPELINE);
this.initPipeline();
},
/**