0
Completed

Deferred Pre-Pass & Lightmap support

BecomingAt. 10 years ago updated by Fabio Ilacqua 10 years ago 17
Hey,
was very happy about the new deferred feature as i was hoping to finally be able to use dual lightmaps but the shader wont compile as soon as i check lightmap support :(

Any plans to fix this?

Thx

Answer

Answer
Completed
This should now be fixed in Beta 0.37 / 1.0 :)
Under review
This should work - how does your node tree and settings look?
oh, comnpletely empty, tried it with just a single diffuse texture... but i migrated the shader from an old version and therefor ther are still nodes in the graph... but unconnected for finding the issue. As the shader is quite complex i dont want to redo it from scratch. Any ideas what to do?

I ll try to test it with a new shader and report back in a minute...
here with a completely new shader... the problem persists
Does enabling probes and/or ambient light help?
If not, does plugging in something into spec help?
tried through all kind of setting combinations but it did not help at all... i noticed the instruction count seems strangely high though:

also restarting unity / switching to deferred in the player settings did not help, anything else to try while i still have unity open on the testproject?
I'll have a look at it tomorrow, thanks for the feedback
any news on this? we are coming closer to a release and lightmaps would benefit performance a lot.
Answer
Completed
This should now be fixed in Beta 0.37 / 1.0 :)
Deferred lightmapping breaks when I have a Texture2D in the Specular nodes.

Currently 4 but we will be switching to 5 at some point.
Strange, it should work in Unity 4
More specifically it is 4.6.0b20
Hi,
I'm having the same issue with deferred lighting and trying to use lightmaps. The shader doesn't compile and  get an error (undefined varialbe) on the Specular map slot and also on a Fresnel node.
I'm using unity 4.6 as well.

Any idea what the issue could be?

Thanks in advance for the help
Not at the moment, and right now I'm unfortunately quite swamped in other work already as it is :(
I'll see if I can get it fixed, but it'll most likely be in about a month and a half
Thanks for the quick reply Joachim.
I understand you're busy and I'll be checking out for new updates when the become available.

Oh and thanks for the awesome tool that Shader Forge is :)