@@ -54,6 +54,7 @@
- Fix the code generated for the NME gradient block ([Popov72](https://github.com/Popov72))
- Fix ssao2RenderingPipeline for orthographic cameras ([Kesshi](https://github.com/Kesshi))
- Fix mipmaps creation in the KTX2 decoder for non square textures ([Popov72](https://github.com/Popov72))
+- Fix detail map not working in WebGL1 ([Popov72](https://github.com/Popov72))
## Breaking changes
@@ -220,6 +220,7 @@ export class DetailMapConfiguration {
*/
public static AddUniforms(uniforms: string[]): void {
uniforms.push("vDetailInfos");
+ uniforms.push("detailMatrix");
}
/**
@@ -89,4 +89,8 @@ uniform vec2 vReflectionInfos;
uniform vec4 reflectionRightColor;
#endif
+#endif
+
+#ifdef DETAIL
+uniform vec4 vDetailInfos;
@@ -45,3 +45,8 @@ uniform mat4 reflectionMatrix;
#ifdef POINTSIZE
uniform float pointSize;
+uniform mat4 detailMatrix;
@@ -166,7 +166,6 @@ uniform mat4 view;
#ifdef DETAIL
uniform vec4 vDetailInfos;
- uniform mat4 detailMatrix;
#ifdef USESPHERICALFROMREFLECTIONMAP
@@ -147,3 +147,7 @@ uniform float pointSize;