Explorar el Código

Editor: Support equirect background in pathtracer.

Mr.doob hace 1 año
padre
commit
70fb9cad20
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      editor/js/Viewport.Pathtracer.js

+ 5 - 1
editor/js/Viewport.Pathtracer.js

@@ -66,7 +66,11 @@ function ViewportPathtracer( renderer ) {
 
 		if ( background ) {
 
-			if ( background.isColor ) {
+			if ( background.isTexture ) {
+
+				ptMaterial.backgroundMap = background;
+
+			} else if ( background.isColor ) {
 
 				ptMaterial.backgroundMap = buildColorTexture( background );