HeightArray
Last Revision: | Version 1.3, 2014-06-17 Updated with Core Profile and GLKit Math Utilities. Moved shader setup to -prepareOpenGL to ensure that the OpenGL framebuffer is valid at the time and thus avoid validation failure. Cleaned up code and removed Static Analyzer warnings. (Full Revision History) |
Build Requirements: | OS X v10.9 or later, Xcode 5.0 or later |
Runtime Requirements: | OS X v10.7 or later |
The EXT_TEXTURE_ARRAY extension introduces the notion of one and two-dimensional texture array, which is a collection of one and two-dimensional images of identical size and format, arranged in layers. This sample provides an example of two-dimensional texture array. It visualizes a terrain by using terrain's Z-coordinate to index into a texture array and applies the correct image for that point's elevation.
Usage: Move your mouse around to view the terrain from different camera angles.
Copyright © 2014 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2014-06-17