LensFlareEffectDesc
LensFlareEffectDescクラスは、レンズフレアエフェクトを生成するDescriptorです。太陽や月からの光がカメラレンズで反射する効果を表現します。
Properties
Section titled “Properties”visible
Section titled “visible”Type: boolean | undefined
Description: エフェクトの表示/非表示を制御します。
Default: true
intensity
Section titled “intensity”Type: number | undefined
Description: レンズフレアエフェクトの強度を指定します。
Default: 0.005
Example:
{ lensFlare: { intensity: 1.5, }}Usage Examples
Section titled “Usage Examples”デフォルトエフェクトでレンズフレアを有効化
Section titled “デフォルトエフェクトでレンズフレアを有効化”import ThreeView from "@navaramap/three";import { DefaultPlugin } from "@navaramap/three-default-plugin";
const view = new ThreeView();const plugin = new DefaultPlugin();view.addPlugin(plugin);await view.init();
// デフォルトのフォトリアルオブジェクトを追加(LensFlareEffectDescを含む)const defaultLayers = plugin.addDefaultPhotorealScene();
// レンズフレアを有効にして強度を設定defaultLayers.lensFlare.update({ visible: true, lensFlare: { intensity: 0.005, },});