Browse Source

reduce bits for default env (faster shader compilation)

Nicolas Cannasse 5 years ago
parent
commit
9fcb3eda68
1 changed files with 1 additions and 0 deletions
  1. 1 0
      h3d/mat/PbrMaterialSetup.hx

+ 1 - 0
h3d/mat/PbrMaterialSetup.hx

@@ -15,6 +15,7 @@ class PbrMaterialSetup extends MaterialSetup {
 			envMap.uploadPixels(pix,0,i);
 		}
 		var env = new h3d.scene.pbr.Environment(envMap);
+		env.sampleBits = 3; // faster shader compilation!
 		env.compute();
 		return env;
 	}