RedGPU API - v3.0.0-Alpha
    Preparing search index...

    Class LensDistortion

    렌즈 왜곡(Lens Distortion) 후처리 이펙트입니다. 배럴/핀쿠션 왜곡, 중심 위치를 조절할 수 있습니다.

    const effect = new RedGPU.PostEffect.LensDistortion(redGPUContext);
    effect.barrelStrength = 0.2; // 배럴 왜곡 강도
    effect.pincushionStrength = 0.1; // 핀쿠션 왜곡 강도
    effect.centerX = 0.5; // 왜곡 중심 X
    effect.centerY = 0.5; // 왜곡 중심 Y
    view.postEffectManager.addEffect(effect);

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    Methods