Page 1 of 1

Projector Shader issue

PostPosted: Thu Nov 30, 2017 6:00 am
by DuvE
Hi, I want to make a simple darkening shader for unity built-in projector. But it works very weirdly, sometimes after compilation, everything is good. But now I made some changes and then reverted them back, hit "Compile button" and shader goes full black. Here is node tree and shot video:

Node tree - https://prnt.sc/hh3vpv
Video - https://youtu.be/tqr6Eek6Eyg

UPDATE:

For some reason, when I changed the blending mode from premultiplied to custom (without changing actual parameters) it started working properly. From this https://prnt.sc/hh80yr to this https://prnt.sc/hh816x

But now I need to make PBR version of this, and I have the same issue again http://prntscr.com/hh83yj and result https://prnt.sc/hh84fe

Re: Projector Shader issue

PostPosted: Thu Nov 30, 2017 3:58 pm
by Amplify_Borba
Hello, thank you for taking the time to report this issue!

Upon investigating the problem you're having with Unity's Built-in Projector, we noticed that we need to provide access to some matrices that are not yet available in ASE in order to use it correctly.

We'll be sure to get back in touch with you as soon as we have some new developments, apologies for the inconvenience!

Re: Projector Shader issue

PostPosted: Fri Dec 01, 2017 6:13 pm
by Amplify_Borba
Hey there!

I'm getting back in touch to inform that we have pushed a new ASE build that is available on our website's download page, v1.3.9.003 – 1st December 2017 – Stable, in which we've added two nodes that will provide you the means to work with Unity's Projector, the 'Projector Matrix' and 'Projector Clip Matrix' nodes.

Don't hesitate to get back in touch should you have any further questions or feedback, thanks!

Re: Projector Shader issue

PostPosted: Mon Dec 04, 2017 1:10 pm
by DuvE
That's great just checked it out, but I don't really know how to use these matrices :D
Apparently, Projector Matrix nodes have not yet appeared in the manual and nodes list.

For example, how can I turn this https://prnt.sc/hiweqv into a working shader for Unity's Projector?

Re: Projector Shader issue

PostPosted: Mon Dec 04, 2017 6:25 pm
by Amplify_Borba
DuvE wrote:That's great just checked it out, but I don't really know how to use these matrices


DuvE wrote:For example, how can I turn this https://prnt.sc/hiweqv into a working shader for Unity's Projector?


Would you be able to send us the shader so that we can take a look into it? We are a bit overburdened but we'll do our best to get back in touch as soon as possible and point you the right way!


DuvE wrote:Apparently, Projector Matrix nodes have not yet appeared in the manual and nodes list.


Apologies for this, even though most nodes are populated our wiki page is a work-in-progress and newly added nodes might take some time do be detailed in the wiki.


Looking forward to your reply!

Re: Projector Shader issue

PostPosted: Mon Dec 04, 2017 8:21 pm
by DuvE
Sure, here is the shader. I wanted to create a projector, that project PBR magma (for example) material with distance mask (Alpha Blender or Cutout Mask) to all meshes. But neither mask nor lighting works properly. Also added a simple darkening shader, which actually works properly.

_AuraSourcePosition - is just a projector position in world space

Re: Projector Shader issue

PostPosted: Tue Dec 05, 2017 4:55 pm
by Amplify_Borba
Thank you for sending us the shader, it will be extremely useful in order for us to best help you solve this situation!

We're going to take a look at it as soon as possible and see if there are any issues present, we'll get back in touch when we have any new developments, thanks!