WebGLSamples / WebGL2Samples

Short and easy to understand samples demonstrating WebGL 2 features
Other
1.01k stars 143 forks source link

Texture operations in vertex shader sample #78

Closed trungtle closed 8 years ago

trungtle commented 8 years ago

Implemented texture operation inside a vertex shader for displace mapping.

pjcozzi commented 8 years ago

Where did heightmap.jpg and plane.obj come from? Did you create them?

pjcozzi commented 8 years ago

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?

trungtle commented 8 years ago

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.

pjcozzi commented 8 years ago

Thanks.