Class MagoNormalBakeFragmentShader
java.lang.Object
com.gaia3d.basic.magogl.shader.resources.MagoNormalBakeFragmentShader
- All Implemented Interfaces:
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.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprocess(MagoFragmentInput input, MagoFragmentOutput output, MagoUniforms uniforms) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.gaia3d.basic.magogl.shader.MagoFragmentShader
requiresFaceCode
-
Constructor Details
-
MagoNormalBakeFragmentShader
public MagoNormalBakeFragmentShader()
-
-
Method Details
-
process
- Specified by:
processin interfaceMagoFragmentShader
-