Преглед изворни кода

Editor: Support equirect background in pathtracer.

Mr.doob пре 1 година
родитељ
комит
70fb9cad20
1 измењених фајлова са 5 додато и 1 уклоњено
  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 );