Implementing a 32-bit heightmap vertex shader in threejs

后端 未结 2 1764
心在旅途
心在旅途 2021-01-26 09:42

I am attempting to repurpose the heightmap shader example found here into one that will work with 32-bits of precision instead of 8. The work-in-progress code is on github: htt

2条回答
  •  半阙折子戏
    2021-01-26 09:57

    If you encode a wide integer into the components of a RGBA vector it's essential that you turn off filtering so that no interpolation happens between the values. Also OpenGL may internally convert to a different format, but that should only reduce your sample depth.

提交回复
热议问题