Code from the docs doesn't work

Added this code and inputs to the Custom node in the material editor. It complains about “undeclared identifier TexSampler”. Can you confirm? Am I missing something?

Hi aoakenfo,

For the Texture input, you have to use a Texture Object and not a Texture Sampler.

You can right-click on the node for the texture sampler and click “Convert to Texture Object” or simply right-click in the graph and type in Texture Object to add the node specifically.