How do I do this conversion from float to uint?

with converting float to uint.

there is an example in shadertoy where a float number representing vertices has been converted to uint.

example of the first 4 vertices:
float → 1.220701, 1.541015, -0.435112, 1.115182
uint equivalent
uint → 315732U, 759517524U, 732299537U, 759517524U

how do I do this conversion from float to uint?

link shadertoy → https://www.shadertoy.com/view/tdsyR2

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.