Hi guys,
ich have a Problem regading the implementation of a Darkness System, i’m looking for help all over the net and after days of searching im now writing a Thread.
What i need:
A black Background (that can scale in alpha) to be used as “Night”
The “Lights” would be simple Quads with a Texture that has RGB and Alpha.
Those RGBA.pngs would lay over the black Background and turn it off, tintet by color, where there is Alpha.
Here is a Screenshot of it:
How to go about it?
My First Idea:
Find/Change or Implement a Shader. But for the love of god i was not able to do it. Searching did not help either. By this point i think its not even possible to do with a Shader in Unity because the Queue does not allow it?
Also, i dont know the correct name for this:
Its like there is so much but nothing like this “simple” thing…
Is this called Alpha Blending or Buffered Blending or Transparency Overlay Multiplication Shader?
My Second Idea:
2 Cameras, 1 Only sees those white Dot.png’s and a Black background. The other one (the Main Camera) uses this and somhow multiplies both Images together.
I dont like this because alot of Posts say its 2* your Meshes for Rendering.
My Questions:
How is this shader/technice called properly? What is the official name for it? (Then i could possibly google better)
What to look for in a Shader when i would try again to implement it ?
Is it even possible to do it all in a Shader?
If non of this does work iwould also be very thankful for hint towards how to get it working with 2 Cameras.