- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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!
Enlace copiado
1 Responder
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Informe de contenido inapropiado
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.
Responder
Opciones de temas
- Suscribirse a un feed RSS
- Marcar tema como nuevo
- Marcar tema como leído
- Flotar este Tema para el usuario actual
- Favorito
- Suscribir
- Página de impresión sencilla