Search Issue Tracker
[HDRP] Shader Graph shader does not expose the Exposure weight property
Steps to reproduce:
1. Open attached project "ShaderGraph.zip" and Scene "OutdoorsScene"
2. In Project window, select Assets -> ShaderGraph -> Experiment.mat
3. In Inspector window, adjust the "DissolveAmount" scale
4. Observe changes in Project window's "Experiment.mat" asset's preview, Inspector's preview
5. Compare to changes in Scene, Game view on the "Lamp_4" GameObject
Note: this is a shader authored with Shader Graph, using HDRP as the Active Target. The same applies to a shader created via RMB>Create>Shader Graph>HDRP>Lit Shader Graph. Since the Emission Weight property is not exposed, it is impossible to prevent Exposure from affecting the shader graph's emission.
Expected result: Both the material asset's previews, and the "Lamp_4" GameObject display a glow effect as the DissolveAmount scale is increased
Actual result: The material asset's previews display the effect correctly.
Reproducible with: 10.10.1 (2020.3.47f1), 12.1.10 (2021.3.22f1), 14.0.6 (2022.2.13f1), 15.0.4 (2023.1.0b11), 16.0.1 (2023.2.0a9)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- Reflection Probe doesn't load until it's selected in the Hierarchy window when the project has been opened
- "ArgumentNullException" error in the Console when selecting certain ScriptableObjects and entering Play Mode
- Configurable joints become bouncier when setting "Bounciness" below 1
- Prefabs get corrupted when editing Particle System curves
- Colors on images become darker when enabling "Vertex Color Always in Gamma Color Space"
The exposure weight must be controlled inside the graph using the Emission node in HDRP: https://docs.unity3d.com/Packagesfirstname.lastname@example.org/manual/Emission-Node.html
This node allows you to control the exposure weight and exposure intensity, you can use this node as an input of the emission color in the ShaderGraph.