Hey Everyone,
Is there a way to have a front and back face on a quad , so that if I rotate the Quad, I can have a back texture on it that differentiates it from the front?
Hey Everyone,
Is there a way to have a front and back face on a quad , so that if I rotate the Quad, I can have a back texture on it that differentiates it from the front?
Or render 2 different quads at the same location, facing the opposite way to each other (you can even use the same vertices for each, and just wind the indices the opposite way).
I use the 2nd suggested method with a slight twist, I have different vertices (duplicates) used for the back so they can have unique uvs, so a texture atlas can be used (no swapping of textures or shader branches).
As always there are many way to sink a cat (or skin, both are mean if you ask me.. did I just invent a new saying by accident... I hope so).
Or render 2 different quads at the same location, facing the opposite way to each other (you can even use the same vertices for each, and just wind the indices the opposite way).
coudn't he just switch the culling direction?
coudn't he just switch the culling direction?
Yes, but I'd be hesitant to recommend a state change in order to avoid drawing 4 vertices. The cost/benefit is not in our favour :)
if you are using shader you could do this.
RasterizerState DisableCulling
{
CullMode = NONE;
};
technique10 DrawTech
{
SetRasterizerState( DisableCulling );
}