Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Blending #995

@Morozoov8

Description

@Morozoov8

Hello!
I have some question about blending in OSG.JS glTF loader.
I write osg loader and use this for base.
In OSG.JS blendFunction is uses:
this._defaultBlendFunc = new BlendFunc(); this._transparentBlendFunc = new BlendFunc('SRC_ALPHA', 'ONE_MINUS_SRC_ALPHA');
You can find it here (178-179):

made the same but nothing happened. I can't see windows or brakeLights in model ZIS-101-3. For blending I get alpha-channel from baseColor value, in model zis-101 alpha-channel is zero. Is it normal?
What blending in osg.js need except blendFunction?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions