Skip to content

Commit

Permalink
Merge pull request #1458 from actnwit/fix/forward-render-pipeline-ton…
Browse files Browse the repository at this point in the history
…emap

fix: forward render pipeline tonemap
  • Loading branch information
emadurandal authored Jul 6, 2024
2 parents e5423da + 92fc68c commit ea98d26
Show file tree
Hide file tree
Showing 54 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion config/test/jest-puppeteer.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ module.exports = {
command: 'node server.js',
port: 8082, // jest-puppeteer waits until this port respond before starting the tests. 5000 is the default port of serve
usedPortAction: 'error', // If the port is used, stop everything
launchTimeout: 10000, // Wait 5 secs max before timing out
launchTimeout: 10000,
},
launch: {
headless: 'new',
devtools: false,
protocolTimeout: 2000000,
// dumpio: true,
// executablePath: "/Applications/Chromium.app/Contents/MacOS/Chromium", // Try this if you got error in Mac
// executablePath: "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome", // Try this if you got error in Mac
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/foundation/helpers/MaterialHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ function createToneMappingMaterial({ additionalName = '', maxInstancesNumber = 1
});
materialNode.isSingleOperation = true;
const material = createMaterial(materialName, materialNode, maxInstancesNumber);
material.addShaderDefine('RN_USE_KHRONOS_PBR_NEUTRAL');
material.addShaderDefine('RN_USE_GT_TONEMAP');

return material;
}
Expand Down
2 changes: 1 addition & 1 deletion src/foundation/renderer/pipelines/ForwardRenderPipeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export class ForwardRenderPipeline extends RnObject {
private __oDiffuseCubeTexture: IOption<CubeTexture> = new None();
private __oSpecularCubeTexture: IOption<CubeTexture> = new None();
private __oSamplerForBackBuffer: IOption<Sampler> = new None();
private __toneMappingType = ToneMappingType.KhronosPbrNeutral;
private __toneMappingType = ToneMappingType.GT_ToneMap;

constructor() {
super();
Expand Down

0 comments on commit ea98d26

Please sign in to comment.