Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-scene render settings #1693

Merged
merged 9 commits into from
Oct 30, 2021
Merged

Per-scene render settings #1693

merged 9 commits into from
Oct 30, 2021

Conversation

avaer
Copy link
Contributor

@avaer avaer commented Oct 30, 2021

This PR allows per-scene render settings using the metaversefile rendersettings type:

{
      "type": "application/rendersettings",
      "content": {
        "fog": {
          "fogType": "exp",
          "args": [[255, 255, 255], 0.01]
        },
        "ssao": {
          "kernelRadius": 16,
          "minDistance": 0.005,
          "maxDistance": 0.1
        },
        "dof": {
          "focus": 3.0,
          "aperture": 0.00002,
          "maxblur": 0.005
        },
        "hdr": {
          "adaptive": true,
          "resolution": 256,
          "adaptionRate": 100,
          "maxLuminance": 10,
          "minLuminance": 0,
          "middleGrey": 3
        },
        "bloom": {
          "strength": 0.2,
          "radius": 0.5,
          "threshold": 0.8
        }
      }
    },

Depends on webaverse/totum#20

@avaer avaer merged commit e18a503 into master Oct 30, 2021
@avaer
Copy link
Contributor Author

avaer commented Oct 30, 2021

We will support limiting the post processing per scene with user-overridable performance settings that guess the spec of the machine that the user is on and guess accordingly.

Something like...

  • Low: No effects, just render()
  • Medium: Adds shadows
  • High: Adds AA
  • Supernal: Adds postprocessing

@avaer
Copy link
Contributor Author

avaer commented Oct 30, 2021

In the future LODs will be changeable this way as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant