Lightweight FBX Importer
Search Results for

    Show / Hide Table of Contents

    Enum ufbx.ufbx_blend_mode

    Blend modes to combine layered textures with, compatible with common blend mode definitions in many art programs. Simpler blend modes have equations specified below where src is the layer to composite over dst. See eg. https://www.w3.org/TR/2013/WD-compositing-1-20131010/#blendingseparable

    Namespace: ufbxWrapper
    Assembly: ufbxWrapper.dll
    Syntax
    public enum ufbx.ufbx_blend_mode

    Fields

    Name Description
    UFBX_BLEND_ADDITIVE

    src + dst

    UFBX_BLEND_COLOR

    Replace hue and saturatio

    UFBX_BLEND_COLOR_BURN

    src 0 ? 1 - min(1, (1-dst) / src) : 0

    UFBX_BLEND_COLOR_DODGE

    src 1 ? dst / (1 - src) : (dst0?1:0)`

    UFBX_BLEND_DARKEN

    min(src, dst)

    UFBX_BLEND_DARKER_COLOR

    value(src) value(dst) ? src : dst

    UFBX_BLEND_DIFFERENCE

    abs(src - dst)

    UFBX_BLEND_DISSOLVE

    random() + src_alpha = 1.0 ? src : dst

    UFBX_BLEND_DIVIDE

    dst / src

    UFBX_BLEND_EXCLUSION

    dst + src - 2 * src * dst

    UFBX_BLEND_HARD_LIGHT

    https://www.w3.org/TR/2013/WD-compositing-1-20131010/#blendinghardlight

    UFBX_BLEND_HARD_MIX

    Produces primary colors depending on similarity

    UFBX_BLEND_HUE

    Replace hue

    UFBX_BLEND_LIGHTEN

    max(src, dst)

    UFBX_BLEND_LIGHTER_COLOR

    value(src) value(dst) ? src : dst

    UFBX_BLEND_LINEAR_BURN

    src + dst - 1

    UFBX_BLEND_LINEAR_DODGE

    src + dst

    UFBX_BLEND_LINEAR_LIGHT

    Combination of LINEAR_DODGE and LINEAR_BURN

    UFBX_BLEND_LUMINOSITY

    Replace value

    UFBX_BLEND_MODE_FORCE_32BIT
    UFBX_BLEND_MULTIPLY

    src * dst

    UFBX_BLEND_MULTIPLY_2X

    2 * src * dst

    UFBX_BLEND_OVER

    src * src_alpha + dst * (1-src_alpha)

    UFBX_BLEND_OVERLAY

    Same as HARD_LIGHT but with src and dst swapped

    UFBX_BLEND_PIN_LIGHT

    Combination of DARKEN and LIGHTEN

    UFBX_BLEND_REPLACE

    src Replace the contents

    UFBX_BLEND_SATURATION

    Replace saturation

    UFBX_BLEND_SCREEN

    1 - (1-src)*(1-dst)

    UFBX_BLEND_SOFT_LIGHT

    https://www.w3.org/TR/2013/WD-compositing-1-20131010/#blendingsoftlight

    UFBX_BLEND_SUBTRACT

    dst - src

    UFBX_BLEND_TRANSLUCENT

    src effects result alpha

    UFBX_BLEND_VIVID_LIGHT

    Combination of COLOR_DODGE and COLOR_BURN

    In this article
    Back to top Generated by DocFX