Skip to content

Commit

Permalink
Editor: Support equirect background in pathtracer.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Jan 30, 2024
1 parent d8a929c commit 70fb9ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion editor/js/Viewport.Pathtracer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 );

Expand Down

0 comments on commit 70fb9ca

Please sign in to comment.