keep color as is at tonemap pass in LDR (#4663)

This commit is contained in:
Yun Hsiao Wu
2019-06-20 16:19:06 +08:00
committed by Weiliang Wang
parent 8eb45b5819
commit 59753e2d14
3 changed files with 78 additions and 73 deletions
File diff suppressed because one or more lines are too long
+1
View File
@@ -19,6 +19,7 @@ export class UIBatchModel extends Model {
}
public updateUBOs () {
return false;
}
public initialize (ia: GFXInputAssembler, batch: UIDrawBatch) {
+4 -2
View File
@@ -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!;