Game Development Community

Spec Mask in a Material

by Mark Dynna · in Torque Game Engine Advanced · 05/12/2007 (11:50 am) · 1 replies

Ok, I know this can be done somehow but for some reason I'm just not getting it.

We have a model that has a Diffuse, Normal, and Spec Mask texture. I can get the first 2 going just fine, but I can't figure out how to set up the material for the Spec Mask to work properly. Everything I try either has the Spec Mask rendering over the Diffuse, or the other way around. What am I missing?

#1
05/13/2007 (7:13 am)
You need to place the Specular Mask into the Alpha Channel of the Diffuse Map (assuming you're using PNG's). If you use Photoshop for image editing, make sure to export using either the SuperPNG plugin or the 'Save for Web...' feature.