[SOLVED] pc vs pc.gfx for custom shaders?

I’m writing custom shader. When I try to assign attribute using pc.gfx.SEMANTIC_TANGENT I get undefined but when I use pc.SEMANTIC_TANGENT I don’t get any error. What is the difference between both? Do they pass different values?

Many years ago, the engine API used to be split into namespaces. So, for example, all graphics related API used to be found in pc.gfx, all input device API was in pc.input and so on. But we removed all of these namespaces and now everything is in the top level pc namespace.

If you find any instances of pc.gfx anywhere, let us know and we’ll update them.


Thanks for the clarification