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/SSAO/ssao.j3md

37 lines
938 B

MaterialDef SSAO {
MaterialParameters {
Int NumSamples
Int NumSamplesDepth
Texture2D Texture
Texture2D RandomMap -LINEAR
Texture2D Normals
Texture2D DepthTexture
Vector3 FrustumCorner
Float SampleRadius
Float Intensity
Float Scale
Float Bias
Vector2 FrustumNearFar
Vector2Array Samples
Boolean ApproximateNormals
}
Technique {
VertexShader GLSL300 GLSL150 GLSL120: Common/MatDefs/Post/Post.vert
FragmentShader GLSL300 GLSL150 GLSL120: Common/MatDefs/SSAO/ssao.frag
WorldParameters {
WorldViewMatrix
Resolution
ResolutionInverse
}
Defines {
RESOLVE_MS : NumSamples
RESOLVE_DEPTH_MS : NumSamplesDepth
APPROXIMATE_NORMALS : ApproximateNormals
}
}
}