GLSL, is it possible to offsetting vertices based on height map colour?
- by Rob
I am attempting to generate some terrain based upon a heightmap.
I have generated a 32 x 32 grid and a corresponding height map -
In my vertex shader I am trying to offset the position of the Y axis based upon the colour of the heightmap, white vertices being higher than black ones.
//Vertex Shader Code
#version 330
uniform mat4…