減衰なしの直線光を追加することができる。
詳細はこのページ。
前回のサンプルのワールドにまずライトを追加する。
//We create the Light coming from the left_up_front with a low intensity (50) var l:Light3D = new Light3D (new Vector (1, 3, -3), 50); // set the world light World3D.getInstance ().setLight (l);それから、ライトを適用するテクスチャーの方で、enableをtrueに設定する。
// NEW PART, we enable the light skin.setLightingEnable(true);
swfはこんな感じ。