Skip to content

Commit 70fb9ca

Browse files
committed
Editor: Support equirect background in pathtracer.
1 parent d8a929c commit 70fb9ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

editor/js/Viewport.Pathtracer.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,11 @@ function ViewportPathtracer( renderer ) {
6666

6767
if ( background ) {
6868

69-
if ( background.isColor ) {
69+
if ( background.isTexture ) {
70+
71+
ptMaterial.backgroundMap = background;
72+
73+
} else if ( background.isColor ) {
7074

7175
ptMaterial.backgroundMap = buildColorTexture( background );
7276

0 commit comments

Comments
 (0)