mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
rename RenderPassStage.FORWARD to RenderPassStage.DEFAULT
This commit is contained in:
@@ -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({
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user