For shader model 3 there's also the VFACE semantic, automatically available in the pixel shader (just define a float face : VFACE parameter in your shader function).
Or are you using the fixed function pipeline ?
@Gavin: Hmmm, does this really work ? E.g. normals don't need to coincide with the face normals.
Show differencesHistory of post edits
#1unbird
Posted 19 December 2012 - 12:52 PM
For shader model 3 there's also the VFACE semantic, automatically available in the pixel shader (just define a float face : VFACE parameter in your shader function).
Or are you using the fixed function pipeline ?
@Gavin: Hmmm, does this really work ? E.g. normals don't need to coincide with the face normals.
Or are you using the fixed function pipeline ?
@Gavin: Hmmm, does this really work ? E.g. normals don't need to coincide with the face normals.