|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.jme3.light.Light
com.jme3.light.SpotLight
public class SpotLight
Represents a spot light. A spot light emmit a cone of light from a position and in a direction. It can be used to fake torch lights or car's lights.
In addition to a position and a direction, spot lights also have a range which can be used to attenuate the influence of the light depending on the distance between the light and the effected object. Also the angle of the cone can be tweaked by changing the spot inner angle and the spot outer angle. the spot inner angle determin the cone of light where light has full influence. the spot outer angle determin the cone global cone of light of the spot light. the light intensity slowly decrease between the inner cone and the outer cone.
入れ子のクラスの概要 |
---|
クラス com.jme3.light.Light から継承された入れ子のクラス/インタフェース |
---|
Light.Type |
コンストラクタの概要 | |
---|---|
SpotLight()
|
メソッドの概要 | |
---|---|
Vector3f |
getDirection()
|
float |
getInvSpotRange()
for internal use only |
float |
getPackedAngleCos()
for internal use only |
Vector3f |
getPosition()
|
float |
getSpotInnerAngle()
returns the spot inner angle |
float |
getSpotOuterAngle()
returns the spot outer angle |
float |
getSpotRange()
|
Light.Type |
getType()
Returns the light type |
void |
read(JmeImporter im)
|
void |
setDirection(Vector3f direction)
|
void |
setPosition(Vector3f position)
|
void |
setSpotInnerAngle(float spotInnerAngle)
Sets the inner angle of the cone of influence. |
void |
setSpotOuterAngle(float spotOuterAngle)
Sets the outer angle of the cone of influence. |
void |
setSpotRange(float spotRange)
Set the range 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 SpotLight()
メソッドの詳細 |
---|
public Light.Type getType()
Light
の記述:
Light
内の getType
Light.Type
public Vector3f getDirection()
public void setDirection(Vector3f direction)
public Vector3f getPosition()
public void setPosition(Vector3f position)
public float getSpotRange()
public void setSpotRange(float spotRange)
Setting a non-zero range indicates the light should use attenuation. If a pixel's distance to this light's position is greater than the light's range, then the pixel will not be effected by this light, if the distance is less than the range, then the magnitude of the influence is equal to distance / range.
spotRange
- the range of the light influence.
java.lang.IllegalArgumentException
- If spotRange is negativepublic float getInvSpotRange()
public float getSpotInnerAngle()
public void setSpotInnerAngle(float spotInnerAngle)
spotInnerAngle
- public float getSpotOuterAngle()
public void setSpotOuterAngle(float spotOuterAngle)
spotOuterAngle
- public float getPackedAngleCos()
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
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |