Download SigMath User Guide
Transcript
7.7 Textures Remark: There are several other complex mapping techniques, which can be used if we choose other values for the arguments in gl.TexGen. If we want to generate texture coordinates we have to enable this procedure in addition to the general activation of texturing. Syntax: \gl.Enable(gl.TEXTURE_GEN_S); \gl.Enable(gl.TEXTURE_GEN_T); Finally, one should not forget to deactivate the texturing by using gl.Disable(...). Example 7.22 ANIMATED SPHERE WITH TREES (SIGMATH EXAMPLE) The mirror effect is produced by using the background wallpaper as texture, too. This and many other examples can also be found in the Example section of SigMath. 149