Luxar Viewer API Documentation - v2026.10.22
    Preparing search index...

    Function applyBlendingStateToMaterial

    • Apply a CompleteBlendingState to a THREE material in-place. Returns true when any THREE.js side state actually changed. WebGL callers may need needsUpdate; WebGPU observes pipeline state separately, so TSL callers only invalidate when the node graph changes.

      Does NOT update userData.blendingMode or shader defines — material-specific applyBlendingMode() methods own those.

      Parameters

      Returns boolean

      true if any of blending / blendEquation / blendSrc / blendDst / depthTest / depthWrite / transparent actually changed on the material.