We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e771e1 commit e06a8b3Copy full SHA for e06a8b3
editor/js/Viewport.Pathtracer.js
@@ -60,6 +60,26 @@ function ViewportPathtracer( renderer ) {
60
ptMaterial.materials.updateFrom( materials, textures );
61
ptMaterial.lights.updateFrom( lights );
62
63
+ //
64
+
65
+ const background = scene.background;
66
67
+ if ( background ) {
68
69
+ if ( background.isColor ) {
70
71
+ ptMaterial.backgroundMap = buildColorTexture( background );
72
73
+ }
74
75
+ } else {
76
77
+ ptMaterial.backgroundMap = buildColorTexture( new THREE.Color( 0x000000 ) );
78
79
80
81
82
83
const environment = scene.environment;
84
85
if ( environment && environment.isTexture === true ) {
0 commit comments