Table of Contents

See Corona XML materials format for basic info on the format. Here we will only list specific map definitions, but they still need to be contained in the <mtlLib><mapDefinition>… structure as outlined in the main article.

Shared utilities

UV mapper

This object is no a standalone map in itself, but it modifies UVW mapping of other maps by for example switching between 2D and 3D mapping, or by stretching or offsetting the UVW coordinates.

Only some maps have UVW mapping. For example noise and bitmap have mapping and can be manipulated by providing a UV mapper, but Ambient occlusion map cannot be modifies, since its geometric effect does not depend on UVW coordinates. Any map can contain UV mapper definition: <map><uvMap>…</uvMap>…</map>. If a map has a custom UV mapper defined, then also all its child nodes have the same UV mapper (except for referenced maps).

Definition of UV mapper is:

    ?<rotateZ>[float - deg]</rotateZ>
    ?<enviroRotate>[float - deg]</enviroRotate>
mode3dlocal differs from 3dworld in that in the local mode the mapping “sticks” to the object even when it is rotated/moved, while in 3dworld the mapping “flows” on the object if it is moved. forceEnviro means that the map will be evaluated as environment-mapped (spherical or screen, see enviroMode option), even when it is applied on a geometry
rotateZrotation of the map in the UV-plane when using the UVW mode, in degrees
blurAmount of blurring applied to the map
wrapModeXControls what happens outside of the 0-1 UVW range. Clamp means that the border pixels will be returned outside of the interval. Repeat means that the entire map will be repeated. None means that black will be returned

Alpha-mixing map with constant value

If a slot has [RGB]|[map] or [float]|[map] content, it can also contain both. In that case the map's alpha channel will be evaluated (if there is any), and will be used for blending with the constant value. Example of red color mixing with bitmap:

1 0 0 
<map class="Texture">

Color mapping/transform maps


Transforms any input map to a normal map - meaning it will be interpreted as normal map instead of height map when in bump slot.

<map class="Normal">


Maps channels on the output to the channels on the input. Output channels are R,G,B,Alpha and Mono. Individual mapping options for each channel are:

  • R - Red channel of the input

  • G - Green channel of the input

  • B - Blue channel of the input

  • A - Alpha channel of the input

  • RgbIntensity - Average of Red, Green and Blue of the input

  • One - Output channel is set to the value of 1.0

By default an output channel is mapped to the corresponding input channel. Mono is mapped to the RgbIntensity.

<map class="Channel">

For example, you could swap green and blue channels of the input (child) map using the following snippet.

<map class="Channel">


Remaps each color component of the child map values according to a curve. Defined by multiple (2+) control points. Linearly interpolated between control points, constant outside of defined ranges.

<map class="Curve">
    +<point position="[float]">[float]</point>

Example: this example clamps all output to be at most 0.5:

<map class="Curve">
    <point position="0">0</point>
    <point position="0.5">0.5</point>
    <point position="1">0.5</point>


Similar to curve, but evaluates the child map as mono, and then uses the mono input to interpolate between RGB values, which can be also mapped.

<map class="Interpolation">
    +<point position="[float]">[RGB]|[map]</point>


Applies a fresnel curve on mono input provided by a child node.

<map class=”Fresnel”>


Applies some predefined tone mapping operations on child map.

<map class=”ToneMap”>


output = offset + input*multiplier
if(invert) {
    output = 1 - output
if(abs) {
    output = abs(output)
if(clamp) {
    output = clamp(output, 0, 1)
if(removeToneMapping) {
    output = inverseImageToneMapping(output)


Applies color correction operations on child map.

<map class=”ColorCorrectMap”>
removeToneMappingIf set to true, the texture will not be affected by VFB tone mapping controls
tonemappingShader > linearMultiplierLinear multiplier the image gets multiplied with as a first step of the mapping
tonemappingShader > contrastAmount of contrast. Must be a non-negative number, image is unaffected for 1
tonemappingShader > saturationAmount of color saturation. Must be in interval ←1, 1>, image is unaffected for 0
tonemappingShader > brightnessNonlinear brightness modification, in interval ←1, 1>
tonemappingShader > invertColorsIf true, colors are inverted (in sRGB space)
tonemappingShader > gammaGamma transformation (output = input^(1/gamma)), in interval <0.01, 10>. 1 is neutral (no change) value. Note that since texturing is done entirely in linear color space, the value 2.2 does not have any special meaning here, and is not the default/correct/required value. You do not need to set this to 2.2 to get “correct” result - use it purely as artistic control over texture midpoint brightness
lut > pathPath to the LUT file. Currently supported formats are .cube and .3dl. If not present, the image is unaffected by LUT
lut > convertToLogIf true, the input color is converted to Log colorspace before LUT is applied
lut > opacityStrength of the LUT. Must be in interval <0, 1>; 0 turns of LUT completely
lut > gammaExponent of gamma transform baked into LUT. Default value 2.2 corresponds to LUT being applied in sRGB space. Note that if convertToLog is true, gamma is applied before log transformation
colorCurve > red green blue masterDefines a tone mapping curve for a given RGB component (red, green, blue) or for all components (master)
colorCurve > * > interpolationDefines the type of curve interpolation: either smooth cubic (PiecewiseCubic) or linear (PiecewiseLinear)
colorCurve > * > controlPointControl points that define the curve shape. Each point is two dimensional and must fit in <{0,0},{2,2}>



Select one of the sub-maps as output based on randomization by selected feature. MixMin and MixMax, if used, enable partial blending between the randomly selected submap and all other maps in the same point.

<map class=”Multi”>
itemColor or map being selected
frequencyProbability of selection of this item; does not have to add up to 1
mixMinMinimum amount of blending
mixMaxMaximum amount of blending
seedRandom seed
hueRandomizationAdditional randomization of color hue of the resulting color, must be in [0, 1]
gammaRandomizationAdditional randomization of gamma exponent of the resulting color, must be in [0, 1]


Modifies UWV coordinates of the input map based on given randomization mode; works similarly to MultiMap. All randomization parameters have a minimal and maximal value and a step. If the step is 0, the selected value of the parameter can be any real number within the interval. For positive value of the step, the selected value is (from + k * step) for some integer k. The step cannot be negative.

<map class=”UvwRandomizer”>
       <from>[float - deg]</from>
       <to>[float - deg]</to>
       <step>[float - deg]</step>
inputInput map
seedRandom seed
uOffsetInterval of offset in U coordinate
vOffsetInterval of offset in V coordinate
wRotationInterval of rotation around W
uScaleInterval of scaling in U coordinate. Must be positive values
vScaleInterval of scaling in V coordinate. Must be positive values
lockScaleIf true, the scaling is uniform, i.e. the same in U and V (based on the value of U parameter). Otherwise, U and V are scaled independently.


Selects one of submaps during shading based on incident ray type. If one of the types is not defined, “base” slot will be used instead for that ray type.

<map class=”RaySwitcher”>


Mixes two maps with selected operation:

<map class=”Mix”>


if operation == mix: 
    output = eval(a)*(1-eval(amountB)) + eval(b)*eval(amountB)
else if operation == mult: 
    output = eval(a) * eval(b)
else if operation == add: 
    output = eval(a) + eval(b)
else if operation == sub: 
    output = eval(a) - eval(b)

Addition also works on bump maps.


Returns either “front” submap when ray hits the geometry from its front side, and “back” submap otherwise.

<map class=”FrontBack”>

Geometry maps


Returns some geometry data directly re-casted as color values.

<map class=”Data”>


Returns angle between a normal and specified axis - white for facing, black for grazing edges, negative for back-facing.

<map class=”Falloff”>
AxisWhich axis to use. This is usually 0 0 1 for camera rays
modeWhich geometry frame is the Axis defined in.
absValueIf true, absolute value of negative values will be used.

Example: Creates a dot product shading between shading normal and camera ray direction:

<map class=”Falloff”>
    <axis>0 0 1</axis>

Round Edges

Special map for use in bump slot, which simulates rounded edges/corners by perturbing shading normal.

<map class=”RoundEdges”>
maxRadiusRadius of the rounded corners effect
mappedRadiusIf used, then this map will modulate the MaxRadius parameter
samplesOptional number of samples to take. It influences the render noise and speed


Creates a smooth UVW-mapped gradient:

<map class=”Gradient”>
u/vCreates a gradient in the u/v axis by directly returning the u/v value as intensity
radialCreates a radial gradient in the 0-1 UVW square with center in 0.5, 0.5


Creates the ambient occlusion (darkening in corners) effect. Returns 0 for completely unoccluded and 1 for completely occluded geometry.

<map class=”Ao”>
mappedDistanceIf used, this map will modulate the maxDistance.
samplesNumber of ray tracing samples to make in each evaluation, influences the noise-speed ratio.
phongExponentHow concentrated should be the rays around normal.
mixExponentSets balance between occluded and unoccluded color (works similarly to gamma correction).
normalModeWhere to compute the effect - on the outside/inside of the object.
offsetConstant offset in world space added to all generated rays. This can be used to shift the distribution of rays in one constant direction (typically up or down to create for example water weathering.
excludeModeIf present this can be used to exclude some objects from consideration when computing occlusion. “Other” means that occlusion by other objects will be disregarded and only same object occlusion will be used. “Same” is the opposite, with occlusion by the same object as hit point ignored. “List” means that an include/exclude list will be used.


Wire shader, which mixes 3 colors or maps - base, color for geometry edges between triangles, and color for geometry vertices. If edge/vertex parameters are not included, then the edges/vertices will not be visible in the result.

<map class=”Wire”>
    <falloff>[float]</falloff> (1.6+)
worldSpaceIf true, then edgeWidth and VertexWidth are in world units. If false, they are in screen units (projected pixels).
allEdgesFalse by default and if that is the case then only the base mesh edges are visualized. By base mesh edges we mean those the user see in the content creation tool. All edges created by Corona (for example in displacement) remain hidden.



This special map always return constant value. It is optimized to have zero runtime overhead:

<map class=”Solid”>


Produces black and white checker based on mapping (default is UVW, but can be altered with a UV mapper).

<map class=”Checker”>
sizedetermines the size of tiles


Generates black and white noise. Can have uvmap:

<map class=”Noise”>
optional: <levels>[float]</levels>
optional:   <uvmap>...</uvmap>
optional:   <phase>[float]</phase>


Used for environments, evaluates the Hosek & Wilkie sky model to compute physically correct sky dome.

<map class=”Sky”>
        removed in 1.7: <sunBleed>[float]</sunBleed>
        removed in 1.7: <sunFalloff>[float]</sunFalloff>
multiplierOveral intensity multiplier.
turbidityAmount of haze in the atmosphere. Has to be between 1.7 and 10.
groundColorColor of the ground - used for rays looking downwards (with negative Z component). Additionally, if skyAffectGround is true, then this color is also used to influence the sky color on horizon.
horizonBlurSimulates aerial perspective by blurring the line between sky and horizon.
modeWhich sun/sky model to use (preetham - old physically-based model, very inaccurate near horizon; rawafake - ad-hoc model by Rawalanche, with customizable color; hosek - improved physically-based model by Hosek&Wilkie, very accurate, used by default).

Specific parameters for rawafake mode:

zenithSky color at zenith.
horizonSky color at the horizon.
sunGlowThe amount of glow of the sky very near the sun. Value between 0 and 1 is required.
sunSideGlowThe amount of glow of the sky in the general direction of the sun. Value between 0 and 1 is required.
sunBleedIntensity of the sun tint. Value between 0 and 1 is required.
sunFalloffSlope of change of suns color.


Regular image texture:

<map class=”Texture”>
gammaIf present, overrides default gamma handling (2.2 for LDR and 1.0 for HDR formats)