rename RenderPassStage.FORWARD to RenderPassStage.DEFAULT

This commit is contained in:
jerrywwl
2019-01-08 16:02:44 +08:00
parent c2e8b864cb
commit a7fdb4edf2
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ export class ForwardPipeline extends RenderPipeline {
return false;
}
this.addRenderPass(RenderPassStage.WINDOW, windowPass);
this.addRenderPass(RenderPassStage.DEFAULT, windowPass);
// create UBOs
this._globalUBO = this._root.device.createBuffer({
+1 -1
View File
@@ -166,7 +166,7 @@ export class Effect {
};
});
passInfo.shader = cc.game._programLib.getGFXShader(passInfo.program, defines || {});
passInfo.renderPass = cc.director.root.pipeline.getRenderPass(passInfo.stage || RenderPassStage.WINDOW);
passInfo.renderPass = cc.director.root.pipeline.getRenderPass(passInfo.stage || RenderPassStage.DEFAULT);
passInfo.blocks = programs[passInfo.program].blocks;
passInfo.samplers = programs[passInfo.program].samplers;
const pass = new Pass(cc.game._gfxDevice);
+1 -1
View File
@@ -70,7 +70,7 @@ export class Pass {
// internal data
protected _programName: string = '';
protected _primitive: GFXPrimitiveMode = GFXPrimitiveMode.TRIANGLE_LIST;
protected _stage: RenderPassStage = RenderPassStage.WINDOW;
protected _stage: RenderPassStage = RenderPassStage.DEFAULT;
protected _handleMap: Record<string, number> = {};
protected _typeMap: Record<number, GFXType> = {};
protected _blocks: Block[] = [];