mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-02 10:43:44 +01:00
softgpu: New try at specular lighting, still doesn't seem to work...
This commit is contained in:
1 parent
219b35317e
commit
fd65b7c9b8
2 files changed
+6
-3
No files matched your search
@@ -146,7 +146,7 @@ void TransformUnit::SubmitPrimitive(void* vertices, void* indices, u32 prim_type
|
||||
|
||||
if (vreader.hasNormal()) {
|
||||
data[i].worldnormal = TransformUnit::ModelToWorld(data[i].normal) - Vec3<float>(gstate.worldMatrix[9], gstate.worldMatrix[10], gstate.worldMatrix[11]);
|
||||
data[i].worldnormal /= data[i].worldnormal.Length();
|
||||
data[i].worldnormal /= data[i].worldnormal.Length(); // TODO: Shouldn't be necessary..
|
||||
}
|
||||
|
||||
Lighting::Process(data[i]);
|
||||
|
||||
Reference in new issue
Block a user