Example usage for javax.media.j3d TexCoordGeneration TexCoordGeneration

List of usage examples for javax.media.j3d TexCoordGeneration TexCoordGeneration

Introduction

In this page you can find the example usage for javax.media.j3d TexCoordGeneration TexCoordGeneration.

Prototype

public TexCoordGeneration(int genMode, int format, Vector4f planeS, Vector4f planeT) 

Source Link

Document

Constructs a TexCoordGeneration object with the specified genMode, format, and the S and T coordinate plane equations.

Usage

From source file:AppearanceExplorer.java

void setTexGen() {
    texGen = new TexCoordGeneration(mode, TexCoordGeneration.TEXTURE_COORDINATE_2, planeS, planeT);
    texGen.setCapability(TexCoordGeneration.ALLOW_ENABLE_WRITE);
    texGen.setEnable(enable);/*from w ww  .j  a v a  2 s .c o  m*/
    app.setTexCoordGeneration(texGen);
}