mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-02 16:52:43 +08:00
keep color as is at tonemap pass in LDR (#4663)
This commit is contained in:
committed by
Weiliang Wang
parent
8eb45b5819
commit
59753e2d14
+73
-71
File diff suppressed because one or more lines are too long
@@ -19,6 +19,7 @@ export class UIBatchModel extends Model {
|
||||
}
|
||||
|
||||
public updateUBOs () {
|
||||
return false;
|
||||
}
|
||||
|
||||
public initialize (ia: GFXInputAssembler, batch: UIDrawBatch) {
|
||||
|
||||
@@ -12,6 +12,7 @@ import { GFXDevice } from '../../gfx/device';
|
||||
import { IGFXAttribute } from '../../gfx/input-assembler';
|
||||
import { GFXPipelineState } from '../../gfx/pipeline-state';
|
||||
import { GFXTextureView } from '../../gfx/texture-view';
|
||||
import { UniformBinding } from '../../pipeline/define';
|
||||
import { Node } from '../../scene-graph/node';
|
||||
import { Camera } from '../scene/camera';
|
||||
import { Model } from '../scene/model';
|
||||
@@ -71,7 +72,7 @@ export class UI {
|
||||
return this._currMeshBuffer;
|
||||
}
|
||||
|
||||
get debugScreen (){
|
||||
get debugScreen () {
|
||||
return this._debugScreen;
|
||||
}
|
||||
|
||||
@@ -288,7 +289,8 @@ export class UI {
|
||||
}
|
||||
} else {
|
||||
const bindingLayout = batch.bindingLayout!;
|
||||
bindingLayout.bindTextureView(0, batch.texView!);
|
||||
// assumes sprite materials has only one sampler
|
||||
bindingLayout.bindTextureView(UniformBinding.CUSTOM_SAMPLER_BINDING_START_POINT, batch.texView!);
|
||||
bindingLayout.update();
|
||||
|
||||
const ia = batch.bufferBatch!.ia!;
|
||||
|
||||
Reference in New Issue
Block a user