Files
UnrealEngineUWP/Engine/Source/Editor/TextureEditor/Private/TextureEditorConstants.h
charles bloom 6c4975547b Texture Editor mouse wheel zoom should be a multiplicative factor not an additive factor
fixes zoom getting very slow as it gets larger

#rb alexander.suvorov
#preflight 636968d6d0174259ccea87f5

[CL 23062635 by charles bloom in ue5-main branch]
2022-11-09 16:07:26 -05:00

19 lines
569 B
C

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "CoreMinimal.h"
// MaxZoom and MinZoom should both be powers of two
const double MaxZoom = 16.0;
const double MinZoom = 1.0/64;
// ZoomFactor is multiplicative such that an integer number of steps will give a power of two zoom (50% or 200%)
const int ZoomFactorLogSteps = 8;
const double ZoomFactor = pow(2.0,1.0/ZoomFactorLogSteps);
// Specifies the maximum allowed exposure bias.
const int32 MaxExposure = 10;
// Specifies the minimum allowed exposure bias.
const int32 MinExposure = -10;