OSDN Git Service

Fix culling to match Vulkan convention
authorChris Forbes <chrisforbes@google.com>
Fri, 1 Mar 2019 23:10:25 +0000 (15:10 -0800)
committerChris Forbes <chrisforbes@google.com>
Mon, 4 Mar 2019 17:17:52 +0000 (17:17 +0000)
commitbb305299f4de4a87d45bb4197aded36749ebda46
treec8437c3f73d4dc9c80a4ca979228106f04ec14be
parent823ca85404fb67037c0ecc68481fb59aa232196c
Fix culling to match Vulkan convention

Correct the sign of the area calculation. The front facing determination
can then be written to exactly match the spec -- CCW means positive area
is front facing.

Change-Id: Ibed3e26b0cf77030325044c7dc9e818264a8750d
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26009
Tested-by: Chris Forbes <chrisforbes@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Pipeline/SetupRoutine.cpp