Problem binding Shader Parameter to VertexFactory
So i was playing around with VertexFactory and SceneProxy to simply draw a Quad or Triangle. It works. Now i wanted to set an Array of Integers or Floats that is present for each vertex so i can pick the number i need from the Array. But i can't bind the Array to the Shader.
Somehow Bind(...) never gets called. But SetMesh(...) does... I checked Implementations in the Engine Code and couldn't find a Solution
asked May 20 '19 at 02:34 PM in C++ Programming
Let's discuss :
Yes, in the landscape module , FLandscapeVertexFactoryVertexShaderParameters::Bind is nerver called, you can ue_log to check that .but GetElementShaderBindings is called every frame and in that member method, you can see it's member parameters are actually bound.
I wonder why, maybe bind will be called only once and after being Serialized it will never be called?
answered Jun 17 '19 at 01:12 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here