Page 1 of 1
Vertex Lighting with Lightmaps in ASE
Posted:
Fri Dec 21, 2018 9:53 am
by mambosa
I have been seeking to produce vertex lighting on the top of lightmapped environments and I am struggling to find any information on how to approach this using ASE. I have searched the forum and this topic has not cropped up before and google returns a lot of results but these are all based on older shader code that does not seem to work in Unity 2017 or 2018. I am working on a VR title and we really need to have a single vertex light(not pixel) to be able to cast light on top of a lightmapped environment. Is this no longer possible to achieve in Unity due to the render pipeline?
I did find this on the Asset Store and tried to recreate it in ASE but I did not get very far
https://www.assetstore.unity3d.com/en/? ... tent/75977Does anyone have any ideas or seen a solution for this any where?
Thanks ASE community.
Dan
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Thu Dec 27, 2018 2:51 pm
by Ricardo Teixeira
mambosa wrote:I have been seeking to produce vertex lighting on the top of lightmapped environments and I am struggling to find any information on how to approach this using ASE. I have searched the forum and this topic has not cropped up before and google returns a lot of results but these are all based on older shader code that does not seem to work in Unity 2017 or 2018. I am working on a VR title and we really need to have a single vertex light(not pixel) to be able to cast light on top of a lightmapped environment. Is this no longer possible to achieve in Unity due to the render pipeline?
I did find this on the Asset Store and tried to recreate it in ASE but I did not get very far
https://www.assetstore.unity3d.com/en/? ... tent/75977Does anyone have any ideas or seen a solution for this any where?
Thanks ASE community.
Dan
Greetings,
Thank you for getting in touch, we really appreciate it. Unfortunately, this forum is mostly aimed at technical support, I don't think you'll get much information from other users.
This is not something that I've personally tested yet, what have you built so far?
Thanks!
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Wed Jan 02, 2019 9:44 am
by mambosa
Hi Ricardo,
Thank you for your response. I have not got very far becuase I am not sure where to start as I have not found any basic vertex lighting ASE shader graphs to use as a guide and there does not appear to be a sample Vertex Lighting shader included in ASE for me to work with either. I actually don't even know if it is even possible to do this and if I am wasting my time!? Do I need to set my shader to Legacey Vertex lIt and if so how do I do that in ASE?
If this is not the best forum to ask if this is technically possible do you know where I should go to ask this question as I am desperate to just just appreciate if this is even possible?
Thank you ASE.
D
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Wed Jan 02, 2019 9:46 am
by mambosa
I forgot to mention that I am using 2017 and not 2018 and the new render pipeline which might be the answer but again I don't really know.
Thanks
D
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Fri Jan 04, 2019 4:03 pm
by Amplify_Borba
Hello, we're going to run some test on our side and will get back to you with more information regarding this as soon as possible, thank you for understanding!
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Tue Jan 08, 2019 4:53 pm
by Amplify_Borba
Hey there, I'm getting back in touch to let you know that our developer has been preparing a template for the purpose you've requested that will be released on the next build, which should be available towards the end of this week.
We'll get back in touch when it releases, for your convenience.
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Sun Feb 03, 2019 2:33 pm
by mambosa
That sounds Awesome! Thank you very much. I can' wait to see it.
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Mon Feb 04, 2019 2:05 pm
by Amplify_Borba
Hello, this template is already available, together with a sample located in the following folder:
AmplifyShaderEditor \ Examples \ Official \ UnlitWithLightmap
Please let us know if you come across any issues, thanks!
Re: Vertex Lighting with Lightmaps in ASE
Posted:
Thu Feb 07, 2019 11:08 am
by mambosa
Hi Amplify_Borba,
Are you saying that if I use the Unlit/Lightmap shader template it will support vertex lights added to my scene? I assumed that being unlit it would not support realtime vertex lights but if that is what you are saying I should use then I will give it a go. I assume that I will create a ASE graph that deals with the lighting and then bring in the template for the lightmap and then combine and plug into the custom lighting output?
Edit: I realised that my original post failed to identify a very important fact about the vertex light and that we need a realtime vertex light over a lightmap and not a baked vertex/pixel light over a lightmap.
I appologise for misleading you and wasting your time, it was an honest mistake.
Thank you Amplify for the unlit shader template which is still very useful I will keep looking for an ASE solution to realtime vertex lighting and lightmaps.
Dan