+9
À l'étude

Directional Specular Lightmaps are broken compared to Unity Standard Shader

ACZv3 il y a 9 ans mis à jour par RyanHu il y a 8 ans 7
Hey! First off, excellent piece of software. Unity is so much better with Shader Forge! (also, pardon if this is a duplicate - I think my first attempt at posting this got eaten by the registration process).

Anyways, I'm trying to use ShaderForge on a scene with baked Directional Specular Lightmaps. Unity 5.2, Forward rendering.

The result is... strange. What looks fine with the Unity Standard shader is broken when I try to create an equivalent with Shader Forge.

Specifically:

a) The dynamic lighting is still applied, which is odd (but can be worked around). This is why its so much brighter in my first image.
b) The lightmap is blended strangely - the brightest areas are now darker, and the darker areas are slightly brighter. Some parts now go to solid black as well.
c) The specular / reflection does not match what the Standard Shader does for the same setup.

Some examples:

Image 420


Image 419

Any idea whats going on with this?

Thanks!
À l'étude

SF doesn't support directional specular LMs just yet I'm afraid

I'm surprised this glaring issue hasn't received more attention. I would really appreciate the ability to bake shader forge shaders. Thanks very much!!!

I was suspecting that there were something wrong with all my scenes and custom shaders. Is there any date plan to fix for that?


Bests o/

Not at the moment - currently a bit too busy with another project I'm afraid

No problem, I figured that if you put the directional light on Mixed it works, I guess the specs are not the baked one, but it is good for now.


Good luck on your projects.

+1

Hi, I don't want to nag you on the subject but: any new on the directional specular ? Or is there any kind of workaround?


Thanks in advance.

http://www.acegikmo.com/shaderforge/changelog/

New in Shader Forge 1.10:
• Fixes:
- Fixed a bug where some nodes broke shaders when using them in multiple places (If, Noise, NormalBlend & Rotator)
- Fixed a bug where lightmapping didn't work (Note that Directional Specular lightmaps aren't supported yet)