I am trying to manipulate a renderpaths command shader parameter with anglescript.
Based on the docs, it looks like I should be able to access the value and change it.
However, based on how I succesfully am able to manipulate a materials shader parameters, I am not able to do wo with the renderpaths.
as an example:
Quaternion rot = cameraNode.rotation;
float pitch = rot.pitch;
renderer.viewports[0].renderPath.commands[2].shaderParameters["CameraPitch"]=Variant(pitch);
the error i get is:
Non-const method call on read-only object reference
void RenderPathCommand::set_shaderParameters(const String&in, const Variant&in)
It looks like it is trying, but I must be doing something off.