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 c755f08 commit 024da5bCopy full SHA for 024da5b
renderer/viewer/three/threeJsMedia.ts
@@ -16,6 +16,8 @@ interface MediaProperties {
16
loop?: boolean
17
volume?: number
18
autoPlay?: boolean
19
+
20
+ allowLighting?: boolean
21
}
22
23
export class ThreeJsMedia {
@@ -212,7 +214,8 @@ export class ThreeJsMedia {
212
214
const geometry = new THREE.PlaneGeometry(1, 1)
213
215
216
// Create material with initial properties using background texture
- const material = new THREE.MeshLambertMaterial({
217
+ const MaterialClass = props.allowLighting ? THREE.MeshLambertMaterial : THREE.MeshBasicMaterial
218
+ const material = new MaterialClass({
219
map: backgroundTexture,
220
transparent: true,
221
side: props.doubleSide ? THREE.DoubleSide : THREE.FrontSide,
0 commit comments