Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

Can I convert numeric types in a Shader?

$
0
0
I have two textures I need to process in a shader (depth maps). One is float, the other is short (integer). Can I do some kind of type conversion? Or are shaders able to compare floats and ints?

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>