softgpu: New try at specular lighting, still doesn't seem to work...

This commit is contained in:
Tony Wasserka authored and neobrain committed 2013-08-16 23:49:00 +02:00
1 parent 219b35317e
commit fd65b7c9b8
2 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -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]);