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

Basic HDRP export support #826

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

krisrok
Copy link

@krisrok krisrok commented Mar 25, 2025

This adds basic export support for some of HDRP's standard shaders:

  • Normal map
  • Metallic/smoothness via scalars or mask map
  • Occlusion via mask map
  • Emission via HDR and LDR+intensity workflows and emission map

To support the remapping of the mask map values, the channel swap shaders now support min/max values per used channel.
smoothnessMultiplier is now smoothnessRangeMax and smoothnessRangeMin has a default value of 0. Newly introduced min/max ranges also default to 0/1. This way, it should work exactly like before for material exports not using the ranges.

There's much to be desired for full support, even in the added functionality: UV sets, multiplicative emission, emission exposure weight come to mind. But for my use cases it works just fine and produces good looking results.

@CLAassistant
Copy link

CLAassistant commented Mar 25, 2025

CLA assistant check
All committers have signed the CLA.

@hybridherbst
Copy link
Collaborator

Thanks for the PR! We'll take a look. Are you planning on adding the remaining changes that are needed to integrate it, e.g. into the animation system? (e.g. different treatment for emissive color animation and so on)

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

Successfully merging this pull request may close these issues.

3 participants