View Full Version : Heightmaps
06-16-2011, 05:27 AM
The heightmaps are using in the WebGl???
06-16-2011, 06:29 AM
As with OpenGL, there is no specific support for heightmaps - that's what you write shader code for.
The tricky part is that most heightmap implementations require either geometry shader support (which WebGL does not have) - or at the very least, the ability to use vertex textures.
Vertex textures are supported by WebGL - but the specification allows implementations to specify a maximum number of supported maps - which can legally be zero. Hence, at least a couple of drivers that I've seen do not support even vertex texturing.
Without that, you'll have to do your height mapping on the CPU side - or fall back to bump-mapping or normal-mapping on machines without vertex texture support.
06-16-2011, 02:27 PM
Ok, so I'll investigate this type of mapping.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.