Maven module :un.engine : engine-opengl :
Class :
un.engine.opengl.material.mapping.VolumetricScreenSpaceMapping
Extends/Implements :
un.engine.opengl.material.mapping.Mapping
Subclasses : -
Variables : -
Functions :
VolumetricScreenSpaceMapping,
VolumetricScreenSpaceMapping,
getTexture,
setTexture,
isDirty,
dispose
public void
VolumetricScreenSpaceMapping ()
public void
VolumetricScreenSpaceMapping (Texture2D depthtexture)
public Texture2D
getTexture ()
public void
setTexture (Texture2D texture)
public boolean
isDirty ()
public void
dispose (GLProcessContext context)
This is similar to a fog technique where the fragment position is compared to a depth texture.
the farther the fragment is from the depth, the greater alpha will be.
This mapping should be used with the layer multiply method.
author Johann Sorel