SMaterial.Lighting stands for enable dynamic lights vs ignore dynamic lights.
Highlighting can actually be a bit tricky without writing your own shaders, thought there are some options which may work for you:
1. The simplest - replace the texture with a lighter one.
2. Modify the vertex-colors of your selected mesh. Note that by default it's full brighness so you can only go darker (so start with darker vertex colors and use a brighter textures as default, then you can increase brightness by going back to full brighness). You can modify those colors directly in your node or use a tool function like IMeshManipulator::setVertexColors.
3. Use EMT_LIGHTMAP_ADD or one of the EMT_LIGHTMAP_* as MaterialType instead of EMT_SOLID. Then second texture can be dark or light and be replaced for highlighting
4. Write your own shaders (check shader tutorial for how to do that).
Note you can experiment with example 22 to see what the default materials do when you enable/disable light and set the material or mesh-vertex colors or different textures.
Ray casting and tiles
Re: Ray casting and tiles
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Ray casting and tiles
Thank you for your help
I used MaterialType::EMT_TRANSPARENT_ADD_COLOR
I used MaterialType::EMT_TRANSPARENT_ADD_COLOR