- Home /
Question by
gxc_8311 · Dec 04, 2017 at 12:16 PM ·
shaderslightmapbaked light
Baked Lightmaps appear different when I use different shader for a mesh
I have two shaders, they all look the same in editor. one is a surface shader, the other one is a CG shader.

but the weird thing is when I bake lightmap, I found the lightmap baked when using the CG shader is brighter than the one using the surface shader.
on the left is the result I get using the surface shader, on the right is when using the CG shader.

Is there any information about how a shader of a mesh will affect the baked lightmap?
Thanks !!
EDIT: after some tests, I found that after I add #pragma nolightmap to the surface shader. the baked lightmap looks like the one I get from my CG shader...... any thoughts?
c0180517-30db-470f-9fe2-fd0cd75bfd5f.png
(448.5 kB)
b2f9748c-9079-41e9-b22b-d3dcebb373d6.png
(243.2 kB)
Comment
Your answer