Closed trungtle closed 8 years ago
Where did heightmap.jpg
and plane.obj
come from? Did you create them?
What is WebGL 2 specific about this sample? Just that VTF is guaranteed compared to WebGL 1 where the number of texture units in the vertex shader can be zero?
I made the plane.obj from maya, and the heightmap.jpg was from an unclear source so I just pushed a new one I made from maya also (maybe I could just use the noise3d utility to make one).
This example isn't specific for WebGL2.
Thanks.
Implemented texture operation inside a vertex shader for displace mapping.