A complete 3D game development suite written purely in Java.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
jmonkeyengine/jme3-effects/src/main/resources/Common/MatDefs/Post/DepthOfField.j3md

32 lines
815 B

MaterialDef Depth Of Field {
MaterialParameters {
Int NumSamples
Int NumSamplesDepth
Texture2D Texture
Texture2D DepthTexture
Float FocusRange;
Float FocusDistance;
Float XScale;
Float YScale;
Float BlurThreshold : 0.2;
Boolean DebugUnfocus : false;
}
Technique {
VertexShader GLSL150 GLSL100: Common/MatDefs/Post/Post.vert
FragmentShader GLSL150 GLSL100: Common/MatDefs/Post/DepthOfField.frag
WorldParameters {
FrustumNearFar
}
Defines {
RESOLVE_MS : NumSamples
RESOLVE_DEPTH_MS : NumSamplesDepth
BLUR_THRESHOLD : BlurThreshold
DEBUG_UNFOCUS : DebugUnfocus
}
}
}