Jump to content

Resources/Reflection/NeedleFxSceneData

From HEModdingWiki

NeedleFxSceneData is a reflection template used to edit many of Needle's graphics effects parameters inside of the FxParamManager on a per stage basis. It is used in all of Hedgehog Engine 2 games, as Needle is its graphics engine component. However, the template's contents may vary between each game and some parameters will not work if they are included in the game's graphics settings in the first place.

Additionally, it includes various parameters for heightmap rendering, stage's deathplane and camera draw distance and FOV within the "stageConfig" struct; however, those are not included in the FxParamManager.

FxParamManager parameters

sceneConfig

Also referred to as "config". Contains parameters that are common to the entirety of the stage and cannot be changed by time/weather cycles or FxCol.

rendertarget

  • dofRenderTargetScale (Boolean) : Depth of Field resolution quality. Can be set to the same as the display resolution, a half, or a quarter of it.
  • shadowMapWidth and shadowMapHeight (sint32) : Shadow maps resolution. Will not work since those are covered by the game's graphics settings, where the low setting is 2048x2048 and the high setting is 4028x4028.

antialiasing

  • aaType (Boolean) : Antialiasing type. Can select no antialiasing, TAA, FXAA or SMAA. However, it will not make a difference as this is included in the graphics settings. Additionally, you can debug your way into using SMAA with DevTools, but the effect will glitch the screen.
  • usType (Boolean) : Determines what FSR upscaling type to use or disables it altogether. Open Zone uses "Easu", while CyberSpace uses "Fast". The latter's sharpening can be edited by fsrSharpness
  • fsrSharpness (Float) : Edits FSR's sharpening when the Fast or RCAS types are selected. The lower it is, the greater the effect.

atmopshere

  • illuminanceScale (Float) : Lighting strength when atmospheric lighting is in use. Makes everything brighter or darker.

lod

  • enableDebugDrawLayerRange (Boolean) : Presumably renders debug information of all level of detail layers. Does not work.
  • layerRange[32] (Float) : A set of 32 float parameters to edit the distance at which the LOD layers load. This does not affect gedit objects draw distance, but only terrain, some density objects and pcmodels. In addition, some objects only seem to be affected by certain layers.

detail

  • detailDistance (Float) : "Distance at which the detail map stops being used". The referred detail maps are higher quality versions of the terrain's textures. Those are located in the stage's height pack.
  • detailFadeRange (Float) : "Blur strength when switching". Determines how long the transition between the detailed texture and the original texture is.

dynamicResolution

  • mode (Boolean) : Enables resolution scaling, with the option to choose whether to use it dynamically or not. Only the "Fixed resolution" option works.
  • fixedResolutionRatio (Float) : The current scale of the display's resolution. Controlled by the graphics settings to choose between 0.75 and 0.5.