Commit c68df5f2 by Nicolas Capens Committed by Nicolas Capens

Optimize culling.

BUG=14625629 Change-Id: Iafe3d2db66d4f7e1a0597ffdaf865a781a015216
parent 10219e72
......@@ -89,11 +89,11 @@ namespace sw
Return(false);
}
Float w0w1w2 = *Pointer<Float>(v0 + pos * 16 + 12) *
*Pointer<Float>(v1 + pos * 16 + 12) *
*Pointer<Float>(v2 + pos * 16 + 12);
Int w0w1w2 = *Pointer<Int>(v0 + pos * 16 + 12) ^
*Pointer<Int>(v1 + 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)
{
......
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