Class MagoNormalBakeFragmentShader

java.lang.Object
com.gaia3d.basic.magogl.shader.resources.MagoNormalBakeFragmentShader
All Implemented Interfaces:
MagoFragmentShader

public final class MagoNormalBakeFragmentShader extends Object implements MagoFragmentShader
Bakes an interpolated normal into an RGB texture. The incoming tangent, bitangent, and normal are expected to already be expressed in the target billboard tangent basis.

When a diffuse texture is bound it is sampled only for its alpha, so cut-out regions (e.g. foliage) are discarded instead of writing background normals.