Przeglądaj źródła

Fix PBR shader bug

David Catuhe 7 lat temu
rodzic
commit
aef746d866

Plik diff jest za duży
+ 18786 - 18786
dist/preview release/babylon.d.ts


Plik diff jest za duży
+ 43 - 43
dist/preview release/babylon.js


Plik diff jest za duży
+ 1 - 1
dist/preview release/babylon.max.js


Plik diff jest za duży
+ 44 - 44
dist/preview release/babylon.worker.js


Plik diff jest za duży
+ 1 - 1
dist/preview release/es6.js


+ 1 - 1
src/Shaders/pbr.fragment.fx

@@ -602,7 +602,7 @@ void main(void) {
 #endif
 
 #ifdef LIGHTMAP
-	vec3 lightmapColor = texture2D(lightmapSampler, vLightmapUV + uvOffset).rgb);
+	vec3 lightmapColor = texture2D(lightmapSampler, vLightmapUV + uvOffset).rgb;
 	#ifdef GAMMALIGHTMAP
 		lightmapColor = toLinearSpace(lightmapColor);
 	#endif