Shader in C++ with 4.19
I try to make VERY SIMPLE sample project on using HLSL files with C++. I follow this link: https://www.unrealengine.com/en-US/blog/how-to-add-global-shaders-to-ue4
and make everything sorted, but got compiler issue:
Please if you can fix this, please help ….
I made an empty project in editor, then copy HlSL file as tut said in folders, and here is my class:
....not sure how to fix this ... please help if you can ...
You paste it wrong
-First of all you don't need actor class for this.
-You declered FMyTestVS inside AShader01 which is probably main cause of a error, move it outside of that class
-You need to place IMPLEMENT_SHADER_TYPE outside of the constructor or any other function
answered Jul 13 '18 at 08:39 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here