mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-11 05:26:24 +02:00
softgpu: Respect negate normal flag without norm.
Per tests, Z is still negated even when using the previous normal value.
This commit is contained in:
1 parent
7db6467af9
commit
d6a59be012
1 file changed
+5
-10
@@ -337,17 +337,12 @@ ClipVertexData TransformUnit::ReadVertex(VertexReader &vreader, const TransformS
|
||||
vertex.v.texturecoords = lastTC;
|
||||
}
|
||||
|
||||
Vec3f normal;
|
||||
static Vec3f lastnormal;
|
||||
if (vreader.hasNormal()) {
|
||||
vreader.ReadNrm(normal.AsArray());
|
||||
lastnormal = normal;
|
||||
|
||||
if (state.negateNormals)
|
||||
normal = -normal;
|
||||
} else {
|
||||
normal = lastnormal;
|
||||
}
|
||||
if (vreader.hasNormal())
|
||||
vreader.ReadNrm(lastnormal.AsArray());
|
||||
Vec3f normal = lastnormal;
|
||||
if (state.negateNormals)
|
||||
normal = -normal;
|
||||
|
||||
if (state.readWeights) {
|
||||
float W[8] = { 1.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f };
|
||||
|
||||
Reference in new issue
Block a user