Game Development Stack Exchange is a question and answer site for professional and independent game developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

i am reading the cryengine documentation, but i don't understand the following hint. Is there any reference to know the logic behind it?

"Create proper specular maps for the objects, and then store in diffuse alpha and enable the material to use gloss in the diffuse alpha. A good specular map can fake a lot of detail. Sometimes, you don't even need a normal map for the object. Do not just increase the contrast/levels on the diffuse map. This is a waste of memory."

share|improve this question

Often times textures are broken down int many different "maps", which provide different information about the object and how it should look. At the bare minimum, three colors are passed in, and the 4th component alpha may or may not be used. In addition to that, color maps that represent normals to be used when calculating specular highlights and/or bump mapping is often provided in a separate texture. Rather than generate a totally separate map, this hint is simply providing a less detailed, but more efficient way to pass specular highlight information to the shading pipeline.

This hint is indicating that you can save memory by integrating your specular map information into the 4th component of your diffuse color. When your vertex data gets to the pixel shader, without any additional computations performed you will have a 4 component color vector available to you. The 4th component (typically used for alpha) can be used for other information, and in this situation is recommended to be used for specular highlights instead of alpha.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.