Temaran / UnrealEngineShaderPluginDemo

A tutorial project that shows how to implement HLSL Pixel and Compute shaders in UE4
MIT License
896 stars 236 forks source link

Updated the Plugin to UE4.20 #12

Closed Umax1004 closed 5 years ago

Umax1004 commented 5 years ago

I used hausfrau87's pull request as a based and then changed the macro calls for the uniform buffer and modified target and build files so that it can work with UE4.20. It runs the project and the compute shaders work.

Temaran commented 5 years ago

Oh wow, this is really cool!

Thanks :) I hope to return to this and improve everything when I can find some time, but in the meantime this is fanntastic!

/Temaran

freeplanet commented 5 years ago

Thanks guys, it works well on a Mac!

I had only one issue with the shader compilation, because of: "OutputSurface.GetDimensions(sizeX, sizeY);" in ComputeShaderExample.usf. The error was: "Failed to compile locally to bytecode ...use of undeclared identifier 'imageSize' v4.xy = imageSize( OutputSurface);" So I had just to comment this line, and give some hard coded values to sizeX & sizeY (for the moment).

Umax1004 commented 5 years ago

@freeplanet Sadly I don't have a mac so I can't test it :( Still will look at it if someone else found a solution.

freeplanet commented 5 years ago

Ok thanks @Umax1004 !