To draw attention to a specific spot i’d like to dim the screen except in a certain part. An obvious hack is go into Photoshop and make a screen-sized black square with a hole over the part i care about it (repeat for every object to highlight). This works but is there a more programatic/less awful way to do this?
i know a few things and shaders is none of them. Is shaders the way to go here? If so, i’ll study up on them. i know you have an object of some kind (in my case, maybe a new Canvas layer?), add a material and add that script to it. That should be enough to get me started.
i believe you can get started by simply adding a colorRect and then applying a ShaderMaterial to it.
Inside of the ShaderMaterial, you can then add a Shader code and copy the contents into it.
Once you save it, you will see the colorRect change and then give you access to Shader Parameters.
Shaders are very convenient and nowadays you don’t really need to know how it works, it’s a kind of plug’n play solution.