com.jme3.post.filters
クラス LightScatteringFilter

java.lang.Object
  上位を拡張 com.jme3.post.Filter
      上位を拡張 com.jme3.post.filters.LightScatteringFilter
すべての実装されたインタフェース:
Savable

public class LightScatteringFilter
extends Filter

LightScattering filters creates rays comming from a light sources This is often reffered as god rays.


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
LightScatteringFilter()
          creates a lightScaterring filter
LightScatteringFilter(Vector3f lightPosition)
          Creates a lightScatteringFilter
 
メソッドの概要
 float getBlurStart()
          returns the blur start of the scattering see setBlurStart(float blurStart)
 float getBlurWidth()
          returns the blur width
see setBlurWidth(float blurWidth)
 float getLightDensity()
          retiurns the light density
see setLightDensity(float lightDensity)
 Vector3f getLightPosition()
          returns the light position
 int getNbSamples()
          returns the nmber of samples for the radial blur
 void read(JmeImporter im)
          Override this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);
 void setBlurStart(float blurStart)
          sets the blur start
at which distance from the light source the effect starts default is 0.02
 void setBlurWidth(float blurWidth)
          sets the blur width default is 0.9
 void setLightDensity(float lightDensity)
          sets how much the effect is visible over the rendered scene default is 1.4
 void setLightPosition(Vector3f lightPosition)
          sets the light position
 void setNbSamples(int nbSamples)
          sets the number of samples for the radial blur default is 50 the higher the value the higher the quality, but the slower the performances.
 void write(JmeExporter ex)
          Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(ex);
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, setEnabled, setName
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

LightScatteringFilter

public LightScatteringFilter()
creates a lightScaterring filter


LightScatteringFilter

public LightScatteringFilter(Vector3f lightPosition)
Creates a lightScatteringFilter

パラメータ:
lightPosition -
メソッドの詳細

getBlurStart

public float getBlurStart()
returns the blur start of the scattering see setBlurStart(float blurStart)

戻り値:

setBlurStart

public void setBlurStart(float blurStart)
sets the blur start
at which distance from the light source the effect starts default is 0.02

パラメータ:
blurStart -

getBlurWidth

public float getBlurWidth()
returns the blur width
see setBlurWidth(float blurWidth)

戻り値:

setBlurWidth

public void setBlurWidth(float blurWidth)
sets the blur width default is 0.9

パラメータ:
blurWidth -

getLightDensity

public float getLightDensity()
retiurns the light density
see setLightDensity(float lightDensity)

戻り値:

setLightDensity

public void setLightDensity(float lightDensity)
sets how much the effect is visible over the rendered scene default is 1.4

パラメータ:
lightDensity -

getLightPosition

public Vector3f getLightPosition()
returns the light position

戻り値:

setLightPosition

public void setLightPosition(Vector3f lightPosition)
sets the light position

パラメータ:
lightPosition -

getNbSamples

public int getNbSamples()
returns the nmber of samples for the radial blur

戻り値:

setNbSamples

public void setNbSamples(int nbSamples)
sets the number of samples for the radial blur default is 50 the higher the value the higher the quality, but the slower the performances.

パラメータ:
nbSamples -

write

public void write(JmeExporter ex)
           throws java.io.IOException
クラス Filter の記述:
Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(ex);

定義:
インタフェース Savable 内の write
オーバーライド:
クラス Filter 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
クラス Filter の記述:
Override this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);

定義:
インタフェース Savable 内の read
オーバーライド:
クラス Filter 内の read
例外:
java.io.IOException