I’m trying to send an array of positions (and other info) to a usf pixel shader.
I know I can send float, FMatrix, FVector stuff to the shader via the following macros:
uniform buffer may can help you,but i also don’t konw how to send uniform buffer corectly.this is my questionhttps://answers.unrealengine.com/questions/783475/%E5%A6%82%E4%BD%95%E7%BB%99shader%E4%B8%8A%E4%BC%A0uniformbuffer.html
AOS seems still not available for uniform buffer, I tried to create a SHADER_PARAMETER_STRUCT and reference it in a GLOBAL_SHADER_PARAMETER_STRUCT, but got crash on CreateHLSLUniformBufferStructMembersDeclaration
Hi.
I need to do something similar but I dont have much experience on coding usf files, I have coded on custom nodes(btw its a pain) and I am also starting with c++ but still not much.
I just have some doubts.
Firstly I supose that this uniform arrays/buffers can only be set up on usf files or can also be on the normal bluprint editor?
Do i need to do mayor changes to the unreal shaders to implement them, or is it just a normal usf file that can be called on a material?
(Not necesary but…) do you have some basic steps or small guide on how to set up this?(c++ or preferedly bluprint if it can be done)
Some forums say to set up a render target and loop on it in material but that doesnt feel right and more like a workaround for this uniform buffers, so I wanted to know more about them.
Thanks in advanced