I have a custom shader that uses a couple of extra maps, but I can’t find out how to use uv1 for some texture lookups (the main material is using uv0). Do I need to add a chunk? I tried switching some of the built in maps to use uv1 but although I have seen the $UV variable change what it gets converted to, I can’t make it work.
Also - is there a way to see the generated shader without triggering an error?
I’m having mixed results with that, but not enough to give up… Sometimes uv1 doesn’t get made, and it seems that touching the lightmap is switching lighting to the lightmapper, which I may not want.
But I do think I’m trying to use the wrong chunk…
I’m replacing diffuseTexPS and that is giving me control of UV sampling of the diffuse map, which is great, but I want to access the shaded (lit or shadowed) color and the names are tough. Any clue on which chunk @Leonidas?
My current goal is to use a diffusecolor and then apply shading as if by pencil on top, so I need to know what color the fragment is going to be after lighting etc. Maybe make a tonemapper?
From there you can find the right shader chunk to override. Usually I search with the name of the method the Playcanvas engine repo to quickly find the right shader file, to get the name of the shader chunk.