How to affect Lightmap in Surface Shader ?

Node-based Shader Editor
Post Reply
User avatar
Strkl
Posts: 2
Joined: Thu Jun 21, 2018 12:51 am

How to affect Lightmap in Surface Shader ?

Post by Strkl »

Hello everyone, I have a simple shader question :

Let's say I have a Static, Lightmapped object in a scene. Is there a way for me to create a shader that will affect the lightmap ?
I tried searching but can't find any leads on this.

My question is not about modifying the lightmap itself ( I don't want to touch the Lightmap/Directional lightmap), but I want to do some shader processing on it (Ex : tinting, Masking, ...), on a surface shader if possible !

Thanks :D
User avatar
Amplify_Borba
Posts: 1239
Joined: Mon Jul 24, 2017 9:50 am

Re: How to affect Lightmap in Surface Shader ?

Post by Amplify_Borba »

Hey there, thank you for getting in touch!

Although we offer a specific Lightmap node that is meant to be used with templates / custom shaders, Lightmaps are automatically accessed/decoded under the hood by Surface Shaders.

We can give you access to the unity_Lightmap texture and its texture coordinates, but you wont be able to modify it, or change the way it is applied using only a shader. Remapping lightmap data may be possible but would require more work than only shader related control.

Please let me know if you have any further questions, I'll be happy to help!
Customer Relations at Amplify Creations
Learn more about our offering: Amplify Creations Products
Amplify Shader Editor won the Asset Store Best Tool Award - Thank you for your support!
Post Reply