Graphics
Intel® graphics drivers and software, compatibility, troubleshooting, performance, and optimization
20603 Discussions

GLSL pow method broken in 20.19.15.4300 driver?

CMust
Beginner
1,417 Views

Seems like the pow method in GLSL (version 400 core) is broken in this Intel HD Graphics driver release.

 

For instance we had to fix our point light attenuation code using the following expression:

clamp(NoL * pow((1.0 - (length(Delta) / (fRadius))), 3.0), 0.0, 1.0);

to:

float distAttenuation = (1.0 - (length(Delta) / (fRadius)));

float Att= clamp(NoL * distAttenuation*distAttenuation*distAttenuation, 0.f, 1.f);

 

Now everything works again as expected, but of course this workaround isn't applicable for situations with variable or higher exponents.

Just wanted to give everybody a heads up as this might affect a lot of OpenGL implementations!

0 Kudos
1 Reply
Allan_J_Intel1
Employee
560 Views

Thanks for the heads up. If you have an observation to report, please be sure to fill out this information as complete as possible.

Allan.

0 Kudos
Reply