Commit 09eed6d1 by Nicolas Capens Committed by Gerrit Code Review

Merge "Optimize culling."

parents 557b14e5 c68df5f2
...@@ -89,11 +89,11 @@ namespace sw ...@@ -89,11 +89,11 @@ namespace sw
Return(false); Return(false);
} }
Float w0w1w2 = *Pointer<Float>(v0 + pos * 16 + 12) * Int w0w1w2 = *Pointer<Int>(v0 + pos * 16 + 12) ^
*Pointer<Float>(v1 + pos * 16 + 12) * *Pointer<Int>(v1 + pos * 16 + 12) ^
*Pointer<Float>(v2 + pos * 16 + 12); *Pointer<Int>(v2 + pos * 16 + 12);
A = IfThenElse(w0w1w2 < 0.0f, -A, A); A = IfThenElse(w0w1w2 < 0, -A, A);
if(state.cullMode == Context::CULL_CLOCKWISE) if(state.cullMode == Context::CULL_CLOCKWISE)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment