Quantcast
Channel: Questions in topic: "compute shader"
Viewing all articles
Browse latest Browse all 287

Pass Matrix4x4 to ComputeShader?

$
0
0
How can I pass a Matrix4x4 parameter to a ComputeShader? Materials have the SetMatrix method but ComputeShaders lack this. I thought maybe SetFloats to pass the Matrix4x4 as a float array like I would do with OpenGL but there doesn't seem to be any straightforward way to get an array from a Matrix4x4. Using version 5.4b.

Viewing all articles
Browse latest Browse all 287

Trending Articles



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