Skip to content

Commit

Permalink
feat(eyeAdaption): make eye adaption effect more noticeable (#77)
Browse files Browse the repository at this point in the history
* add new field to eye adaption, and changed values for better performance
* change field value to make it feel better
  • Loading branch information
Imitater967 authored Mar 31, 2024
1 parent eb5e106 commit b357ad3
Showing 1 changed file with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,23 @@
*/
public class UpdateExposureNode extends AbstractNode {
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 10.0f)
private float hdrExposureDefault = 5f;
@Range(min = 0.0f, max = 20.0f)
private float hdrExposureDefault = 8f;
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 10.0f)
private float hdrMaxExposure = 8.0f;
@Range(min = 0.0f, max = 80.0f)
private float hdrMaxExposure = 80.0f;
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 10.0f)
private float hdrMinExposure = 1.0f;
@Range(min = 0.0f, max = 20.0f)
private float hdrMinExposure = 10.0f;
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 4.0f)
private float hdrTargetLuminance = 1.0f;
@Range(min = 0.0f, max = 10.0f)
private float hdrTargetLuminance = 8.0f;
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 0.5f)
private float hdrExposureAdjustmentSpeed = 0.05f;

private float hdrExposureAdjustmentSpeed = 0.04f;
@SuppressWarnings("FieldCanBeLocal")
@Range(min = 0.0f, max = 40f)
private float hdrExposureOffset = 40;
private ScreenGrabber screenGrabber;

private RenderingConfig renderingConfig;
Expand Down Expand Up @@ -90,7 +92,7 @@ public void process() {
float targetExposure = hdrMaxExposure;

if (currentSceneLuminance > 0) {
targetExposure = hdrTargetLuminance / currentSceneLuminance;
targetExposure = hdrTargetLuminance / currentSceneLuminance - hdrExposureOffset;
}

float maxExposure = hdrMaxExposure;
Expand Down

0 comments on commit b357ad3

Please sign in to comment.