3 Gedanken zu „Shaders“

Hi, what is the main purpose of using Map image for ksPerPixelMultiMap?
And how to create it?
I took a diffuse image, and changed the red channel a bit with changing Curves and Contrast. What is it that you do? What should I be cautious about?

The basic idea: Dark tones represent lower values, whilst lighter tones are used for stronger values. Try the following steps for a basic road:

1. Copy the diffuse map into your red channel. It will be converted to a greyscale. Now raise the contrast and lower the brightness (almost to black with a few highlights).
2. Copy the diffuse map into your green channel. Invert it and use minimal contrast with strong brightness (almost white with a few darker structures (e.G. cracks).
3. Copy a black image into the blue channel.
4. The diffusemap (txDiffuse) got an alpha-channel for specular values, aswell. You can copy/paste the red channel of txMaps.

Don’t forget: Sometimes ksEditor doesn’t update all texturemaps. You will have to restart the editor to see all changes of your materials.