I tried to modify the sky box programmatically, but failed to modify it using the following code:
Visible environment Node
pBRRender.RenderTarget.VisibleSkyboxTexture = tex; is failure
Backplate Set to true
Then I tried to modify it by modifying the node
Node node = new Node();
node.InitInRoot(NodeType.NT_ENV_DAYLIGHT);
node.SetPinBool(PinId.P_VISIBLE_ENVIRONMENT_BACKPLATE, true);
Octane.Texture skyTexture = new Octane.Texture();
skyTexture.Init(@"G:\OctaneDnG\Assets\Sandbox\2.jpg", TextureType.Color);
skyTexture.InitInRoot(NodeType.NT_TEX_IMAGE);
node.ConnectToIx(12, skyTexture);
pBRRender.RenderTarget.ConnectToIx(2, node);
But the nodes cannot be textured correctly.The texture node created is empty!
How to programmatically modify the sky background?