com.jme3.post.filters
クラス DepthOfFieldFilter

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

public class DepthOfFieldFilter
extends Filter

A post-processing filter that performs a depth range blur using a scaled convolution filter.


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
DepthOfFieldFilter()
          Creates a DepthOfField filter
 
メソッドの概要
 float getBlurScale()
          returns the blur scale
 float getFocusDistance()
          returns the focus distance
 float getFocusRange()
          returns the focus range
 void setBlurScale(float f)
          Sets the blur amount by scaling the convolution filter up or down.
 void setFocusDistance(float f)
          Sets the distance at which objects are purely in focus.
 void setFocusRange(float f)
          Sets the range to either side of focusDistance where the objects go gradually out of focus.
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, read, setEnabled, setName, write
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DepthOfFieldFilter

public DepthOfFieldFilter()
Creates a DepthOfField filter

メソッドの詳細

setFocusDistance

public void setFocusDistance(float f)
Sets the distance at which objects are purely in focus.


getFocusDistance

public float getFocusDistance()
returns the focus distance

戻り値:

setFocusRange

public void setFocusRange(float f)
Sets the range to either side of focusDistance where the objects go gradually out of focus. Less than focusDistance - focusRange and greater than focusDistance + focusRange, objects are maximally "blurred".


getFocusRange

public float getFocusRange()
returns the focus range

戻り値:

setBlurScale

public void setBlurScale(float f)
Sets the blur amount by scaling the convolution filter up or down. A value of 1 (the default) performs a sparse 5x5 evenly distribubted convolution at pixel level accuracy. Higher values skip more pixels, and so on until you are no longer blurring the image but simply hashing it. The sparse convolution is as follows: %MINIFYHTMLc3d0cd9fab65de6875a381fd3f83e1b338%* Where 'x' is the texel being modified. Setting blur scale higher than 1 spaces the samples out.


getBlurScale

public float getBlurScale()
returns the blur scale

戻り値: