I have a Procedural Texture generation algorithm which generates a texture.The texture is simply a BufferedImage
.
This texture is basically mapped to an object in Java3D. Now since the texture is not going to change during the execution of the program, I want to precompute the texture during compilation itself so that during execution it uses the precomputed texture.
If the texture instead was generated during runtime it lead to delay in startup of the program.
My Question is,
Is it possible to precompute the texture during the compilation phase itself ?