Timeline for Directional light shader not behaving as expected
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jun 16, 2020 at 10:15 | history | edited | CommunityBot | Commonmark migration | |
| Jul 28, 2013 at 15:46 | comment | added | Seth Battin | @Marco Huh...so I got the problem right, but my solution didn't work? I'm surprised, but I'm glad your alternate method fixed it. | |
| Jul 28, 2013 at 10:38 | comment | added | Marco | This was the problem, great!! Thanks! However if I use light_specular_intensity = pow(light_specular_intensity, 9.0); the problem does not get solved. Is it possible that pow() does not remember the sign? If I rewrite the code like this if(light_specular_intensity > 0) light_specular_intensity = pow(light_specular_intensity,8); else light_specular_intensity = 0; it works perfectly. | |
| Jul 28, 2013 at 10:35 | vote | accept | Marco | ||
| Jul 27, 2013 at 23:52 | vote | accept | Marco | ||
| Jul 27, 2013 at 23:52 | |||||
| Jul 27, 2013 at 19:15 | history | answered | Seth Battin | CC BY-SA 3.0 |