3 ms·
> not sure how efficient texture sampling in vertex shaders is On a modern GPU, it's basically just as efficient as in pixel shaders, with two caveats: 1. If
by nhaehnle 9y ago
> not sure how efficient texture sampling in vertex shaders is
On a modern GPU, it's basically just as efficient as in pixel shaders, with two caveats:
1. If you want mip-mapping, you have to do LOD calculations yourself, which is likely a bit slower. (Not an issue in what you have in mind.)
2. There are questions around the locality of your memory accesses. As long as you lay out your vertices more or less along a space-filling curve (which is a good idea for grids anyway, due to vertex reuse) you should be mostly fine. Obviously the details will vary depending on the exact architecture.