Skip to content

Render Effects Profile

Render Effects Profiles store a variety of settings that affect how a scene is rendered. The main advantage of render effects profiles is that they make it easy to load presets into a camera. Use FxCamera to load and save profiles.

Properties

NameTypeDefaultAccessDescription
aaEnable1btrue🟩🟥Enable anti-aliasing
aoEnable1btrue🟩🟥Enable ambient occlusion
aoIntensity1f5.0🟩🟥Ambient occlusion intensity
aoRadius1f2.0🟩🟥Ambient occlusion radius
bloomEnable1bfalse🟩🟥Enable bloom
bloomIntensity1f1.0🟩🟥Bloom intensity
bloomThreshold1f1.0🟩🟥Bloom threshold
caEnable1bfalse🟩🟥Enable chromatic abberation
caIntensity1f0.5🟩🟥Chromatic abberation intensity
caShift2f(2.5, -0.5)🟩🟥Chromatic abberation shift
ccEnable1bfalse🟩🟥Enable color correction
ccBrightness1f0.0🟩🟥Color correction brightness shift
ccContrast1f0.0🟩🟥Color correction contrast shift
ccHue1f0.0🟩🟥Color correction hue shift
ccSaturation1f0.0🟩🟥Color correction saturation shift
ccTintColor1c0xFFFF0000🟩🟥Color correction tint color
ccTintIntensity1f0.0🟩🟥Color correction tint i
cgEnable1bfalse🟩🟥Enable color grading
cgLutContribution1f1.0🟩🟥Color grading lookup table contribution
cgLutFile1s"default"🟩🟥Color grading lookup table LUT FileID (no list, wildcard or filter)
distortEnable1bfalse🟩🟥Enable distortion
distortX1f0.5🟩🟥Horizontal distortion
distortY1f0.5🟩🟥Vertical distortion
dofEnable1bfalse🟩🟥Enable depth of field
dofFocalLength1f12.0🟩🟥Depth of field focal length
dofFocusDistance1f50.0🟩🟥Depth of field docus distance
dofFStop1f5.6🟩🟥Depth of field F-stop
exposure1f1.0🟩🟥Color correction exposure multiplier
fisheyeEnable1bfalse🟩🟥Enable fisheye lens
fisheyeIntensity1f0.2🟩🟥Fisheye intensity
fogColor1c0xffffffff🟩🟥Fog color
fogDensity1f0.5🟩🟥Fog density
fogEnable1bfalse🟩🟥Enable fog
gamma1f2.2🟩🟥Gamma correction
grainIntensity1f12.0🟩🟥Grain intensity
grainEnable1bfalse🟩🟥Enable grain
grainStatic1bfalse🟩🟥Whether grain changes every frame
lensFlareEnable1bfalse🟩🟥Enable lens flare
lensTextureEnable1bfalse🟩🟥Enable lens texture
lensTextureFile1s"default"🟩🟥Lens Texture FileID (no list, wildcard or filter)
lensTextureFilter1i1🟩🟥TextureFilter
letterBoxEnable1bfalse🟩🟥Enable letter box
letterBoxSize1f0.1🟩🟥Letter box size
overlayAlign1i0🟩🟥Overlay texture alignment RectAlign
overlayEnable1bfalse🟩🟥Enable overlay
overlayFile1s"default"🟩🟥Overlay Texture FileID (no list, wildcard or filter)
overlayOffset2i(0, 0)🟩🟥Overlay texture offset
overlayOpacity1f1.0🟩🟥Overlay texture opacity
sharpenEnable1bfalse🟩🟥Enable sharpen
sharpenIntensity1f0.4🟩🟥Sharpen intensity
toneMapping1i0🟩🟥ToneMapping algorithm
vignetteEnable1bfalse🟩🟥Enable vignette
vignetteIntensity1f1.0🟩🟥Vignette intensity
vignetteSize1f0.5🟩🟥Vignette size
Details

Type
1b: boolean
1c: color (integer)
1i: integer
1f: float
1s: string
2b: 2-component boolean vector
2i: 2-component integer vector
2f: 2-component float vector
3b: 3-component boolean vector
3i: 3-component integer vector
3f: 3-component float vector

Access
🟩 : Property value can be read with FxFile.Get
🟥 : Property value can be changed with FxFile.Set
❌ : Property value is read-only and can't be changed

Create

To create a new render effects profile use FxFile.Create with FileType 556.

lua
profileID = FxFile.Create(556);
profileID = FxFile.Rename(556, profileID, "MyProfile"); -- rename new profile
FxFile.Open(556, profileID); -- open new profile

Files

The global render effects profile is located at documents\Foxel\default.fxlrfx. It saves the settings of the main editing viewport. Other custom profiles are saved as shared files in Shared\Profile\RenderEffects\ with the extension .fxlrfx.