Capx:
dl.dropbox.com/u/88228205/NormalMapTest.capx
Steps to reproduce:
1. Move the mouse over the sprites to see the lighting effect slowly follow the mouse across it's surface. I've adjusted the events so the behave the same.
2. See events. I've added comments in the capx to further explain and point out what I'm seeing.
Observed result:
Both squares are the same other than the first one has the rotate behavior. In order for the lighting effect to behave the same I needed to modify the math to get the Y parameter under bumpmapping.
It seems like the math to adjust for the rotating sprite is off.
I also noticed that with the exact same Z and Intensity parameters the lighting is vastly different.
Expected result:
I expected to just copy and paste the small equation and get the same result: A reflection effect that slowly followed the mouse's movement.
Browsers affected:
Chrome: yes
Firefox: untested
Internet Explorer: untested
Operating system & service pack:
Windows 7 sp1
Construct 2 version:
r122 & r123