Skip to content

Commit

Permalink
Add AgX and neutral tone mapping to the list
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentfretin committed Jun 29, 2024
1 parent 230d4f7 commit 4cab178
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/components/renderer.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ It also configures presentation attributes when entering WebVR/WebXR.
| precision | Fragment shader [precision][precision] : low, medium or high. | high |
| alpha | Whether the canvas should contain an alpha buffer. | true |
| stencil | Whether the canvas should contain a stencil buffer. | false |
| toneMapping | Type of toneMapping to use, one of: 'no', 'ACESFilmic', 'linear', 'reinhard', 'cineon' | 'no' |
| toneMapping | Type of toneMapping to use, one of: 'no', 'ACESFilmic', 'linear', 'reinhard', 'cineon', 'AgX', 'neutral' | 'no' |
| exposure | When any toneMapping other than "no" is used this can be used to make the overall scene brighter or darker | 1 |
| anisotropy | Default anisotropic filtering sample rate to use for textures | 1 |

Expand Down
4 changes: 2 additions & 2 deletions src/systems/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module.exports.System = registerSystem('renderer', {
maxCanvasHeight: {default: -1},
multiviewStereo: {default: false},
physicallyCorrectLights: {default: false},
exposure: {default: 1, if: {toneMapping: ['ACESFilmic', 'linear', 'reinhard', 'cineon']}},
toneMapping: {default: 'no', oneOf: ['no', 'ACESFilmic', 'linear', 'reinhard', 'cineon']},
exposure: {default: 1, if: {toneMapping: ['ACESFilmic', 'linear', 'reinhard', 'cineon', 'AgX', 'neutral']}},
toneMapping: {default: 'no', oneOf: ['no', 'ACESFilmic', 'linear', 'reinhard', 'cineon', 'AgX', 'neutral']},
precision: {default: 'high', oneOf: ['high', 'medium', 'low']},
anisotropy: {default: 1},
sortTransparentObjects: {default: false},
Expand Down

0 comments on commit 4cab178

Please sign in to comment.