Lightmapping again

I can lightmap the level in Blender and then export this level with Chicken. After editing egg files Panda will recognize two UV sets, and apply two textures (the actual texture and the lightmap). But I still don’t understand how to make this lightmap appear as lightmap, not as usual texture. So, how to enable lightmapping? :confused:

lightmaps usualy mathematically multiplied ontop of the texture.
in panda you can do this either with a hand-written simple shader… or with the texture-mode
MModulate . see here http://panda3d.org/manual/index.php/Texture_Modes

a peek of lightmapped object’s .egg :

<Texture> lambert3SG.tref9 {
  Roof3.jpg
  <Scalar> format { rgb }
  <Scalar> wrapu { repeat }
  <Scalar> wrapv { repeat }
  <Scalar> minfilter { linear_mipmap_linear }
  <Scalar> magfilter { linear }
  <Scalar> envtype { modulate }
}

    <Vertex> 0 {
      1.06112 -1.03252 0.875364
      <UV> { 0.169 0.101 }
      <UV> lightmap { 0.277 0.657 }
      <Normal> { -4.60854e-008 1 0 }
      <RGBA> { 1 1 1 1 }
    }

  <Polygon> {
    <Normal> { -4.60854e-008 1 0 }
    <TRef> { lambert3SG }
    <TRef> { lambert3SG.tref9 }
    <VertexRef> { 0 1 2 <Ref> { XXXXX } }
  }