|
@@ -1631,6 +1631,12 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( material.fog ) {
|
|
|
+
|
|
|
+ materialProperties.fog = fog;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( material.lights ) {
|
|
|
|
|
|
// store the light setup it was created for
|
|
@@ -1729,6 +1735,13 @@ function WebGLRenderer( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ if ( materialProperties.fog !== undefined &&
|
|
|
+ materialProperties.fog !== fog ) {
|
|
|
+
|
|
|
+ material.needsUpdate = true;
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
if ( materialProperties.lightsHash !== undefined &&
|
|
|
materialProperties.lightsHash !== _lights.hash ) {
|
|
|
|