When I try to project the video onto the model, I find that the video is also projected onto the bottom and invisible areas. What I want is for the video to only be projected within the valid range. What did I do wrong? Please let me know. Below is my pixel shader (PG)
A video texture is just like any other texture. if assigned to an object it will use the texture mapping to show the content. Take a look at this - Babylon.js Playground . If you want to control it with a customized shader you will need to do more than just filter the UV coordinates, because they are mapped all around the mesh.