|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.light.Light
com.jme3.light.PointLight
public class PointLight
Represents a point light. A point light emits light from a given position into all directions in space. E.g a lamp or a bright effect. Point light positions are in world space.
In addition to a position, point lights also have a radius which can be used to attenuate the influence of the light depending on the distance between the light and the effected object.
入れ子のクラスの概要 |
---|
クラス com.jme3.light.Light から継承された入れ子のクラス/インタフェース |
---|
Light.Type |
コンストラクタの概要 | |
---|---|
PointLight()
|
メソッドの概要 | |
---|---|
void |
computeLastDistance(Spatial owner)
Used internally to compute the last distance value. |
float |
getInvRadius()
for internal use only |
Vector3f |
getPosition()
Returns the world space position of the light. |
float |
getRadius()
Returns the radius of the light influence. |
Light.Type |
getType()
Returns the light type |
void |
read(JmeImporter im)
|
void |
setPosition(Vector3f position)
Set the world space position of the light. |
void |
setRadius(float radius)
Set the radius of the light influence. |
void |
write(JmeExporter ex)
|
クラス com.jme3.light.Light から継承されたメソッド |
---|
clone, getColor, getName, setColor, setName |
クラス java.lang.Object から継承されたメソッド |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
コンストラクタの詳細 |
---|
public PointLight()
メソッドの詳細 |
---|
public void computeLastDistance(Spatial owner)
Light
の記述:
public Vector3f getPosition()
setPosition(com.jme3.math.Vector3f)
public void setPosition(Vector3f position)
position
- the world space position of the light.public float getRadius()
public void setRadius(float radius)
Setting a non-zero radius indicates the light should use attenuation. If a pixel's distance to this light's position is greater than the light's radius, then the pixel will not be effected by this light, if the distance is less than the radius, then the magnitude of the influence is equal to distance / radius.
radius
- the radius of the light influence.
java.lang.IllegalArgumentException
- If radius is negativepublic float getInvRadius()
public Light.Type getType()
Light
の記述:
Light
内の getType
Light.Type
public void write(JmeExporter ex) throws java.io.IOException
Savable
内の write
Light
内の write
java.io.IOException
public void read(JmeImporter im) throws java.io.IOException
Savable
内の read
Light
内の read
java.io.IOException
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |