AmbientLightクラス

広告

次はAmbientLightクラスです。AmbientLightクラスは環境光です。環境光については環境光色の設定を参照して下さい。

クラス定義は下記のようになっています。

  • java.lang.Object
  • javax.media.j3d.SceneGraphObject
  • javax.media.j3d.Node
  • javax.media.j3d.Leaf
  • javax.media.j3d.Light
  • javax.media.j3d.AmbientLight
  • public class AmbientLight extends Light

コンストラクタは3つ用意されています。

コンストラクタ
AmbientLight()
Constructs and initializes an ambient light using default parameters.
AmbientLight(boolean lightOn, Color3f color)
Constructs and initializes an ambient light using the specified parameters.
AmbientLight(Color3f color)
Constructs and initializes an ambient light using the specified parameters.

3番目のコンストラクタを見てみます。

AmbientLight
public AmbientLight(Color3f color)
Constructs and initializes an ambient light using the specified parameters. 

Parameters:
  color - the color of the light source.

環境光で指定するのは光の色だけです。

サンプルについては「環境光色の設定」を参照しておいて下さい。

( Written by Tatsuo Ikura+ )

Facebook Page