https://bugs.winehq.org/show_bug.cgi?id=41827
Bug ID: 41827 Summary: Wrong specular rendering with some applications Product: Wine Version: 1.9.24 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: directx-d3d Assignee: wine-bugs@winehq.org Reporter: davyaxel@free.fr Distribution: ---
Created attachment 56242 --> https://bugs.winehq.org/attachment.cgi?id=56242 Handy test app
I was investigating this gallium nine bug: https://github.com/iXit/Mesa-3D/issues/253
And strangely with that game (School Mate), both wine ogl and gallium nine do render a blue wall (for traces taken on windows or taken with gallium nine, because on wine the game hits a fallback path since swvp is not supported). Windows doesn't have that blue wall.
My investigation shows that both wine ogl and gallium nine have an issue with specular. The problem is best shown when the material power is 0 (like in the game).
I include the following test app (which I couldn't find the original link) which enables to test the behaviour:
For example you can test with:
. Take the sphere . Set SPECULARENABLE to TRUE . Set 0 for the diffuse material colors and increase the specular material colors . Set the material power to 0 (or any low value) . play with the direction of the light. Compare on windows and observe output is different. . Play with LOCALVIEWER. On wine the outputs changes a bit, whereas on windows it doesn't.