added tonemapping
This commit is contained in:
parent
fbe045c50f
commit
8e657796e6
8 changed files with 13 additions and 1253138 deletions
1675
dist/xrfragment.aframe.all.js
vendored
1675
dist/xrfragment.aframe.all.js
vendored
File diff suppressed because one or more lines are too long
4
dist/xrfragment.aframe.js
vendored
4
dist/xrfragment.aframe.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* v0.5.1 generated at Tue Jan 30 09:55:47 AM UTC 2024
|
* v0.5.1 generated at Wed Jan 31 11:37:04 AM UTC 2024
|
||||||
* https://xrfragment.org
|
* https://xrfragment.org
|
||||||
* SPDX-License-Identifier: MPL-2.0
|
* SPDX-License-Identifier: MPL-2.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -2437,6 +2437,8 @@ window.AFRAME.registerComponent('xrf', {
|
||||||
obj: THREE.OBJLoader
|
obj: THREE.OBJLoader
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
aScene.renderer.toneMapping = THREE.ACESFilmicToneMapping;
|
||||||
|
aScene.renderer.toneMappingExposure = 1.5;
|
||||||
if( !XRF.camera ) throw 'xrfragment: no camera detected, please declare <a-entity camera..> ABOVE entities with xrf-attributes'
|
if( !XRF.camera ) throw 'xrfragment: no camera detected, please declare <a-entity camera..> ABOVE entities with xrf-attributes'
|
||||||
|
|
||||||
// this is just for convenience (not part of spec): hide/show stuff based on VR/AR tags in 3D model
|
// this is just for convenience (not part of spec): hide/show stuff based on VR/AR tags in 3D model
|
||||||
|
|
|
||||||
1671
dist/xrfragment.extras.js
vendored
1671
dist/xrfragment.extras.js
vendored
File diff suppressed because one or more lines are too long
1249795
dist/xrfragment.module.js
vendored
1249795
dist/xrfragment.module.js
vendored
File diff suppressed because it is too large
Load diff
2
dist/xrfragment.three.js
vendored
2
dist/xrfragment.three.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* v0.5.1 generated at Tue Jan 30 09:55:47 AM UTC 2024
|
* v0.5.1 generated at Wed Jan 31 11:37:04 AM UTC 2024
|
||||||
* https://xrfragment.org
|
* https://xrfragment.org
|
||||||
* SPDX-License-Identifier: MPL-2.0
|
* SPDX-License-Identifier: MPL-2.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
2
dist/xrfragment.three.module.js
vendored
2
dist/xrfragment.three.module.js
vendored
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* v0.5.1 generated at Tue Jan 30 09:55:47 AM UTC 2024
|
* v0.5.1 generated at Wed Jan 31 11:37:04 AM UTC 2024
|
||||||
* https://xrfragment.org
|
* https://xrfragment.org
|
||||||
* SPDX-License-Identifier: MPL-2.0
|
* SPDX-License-Identifier: MPL-2.0
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
Binary file not shown.
|
|
@ -36,6 +36,8 @@ window.AFRAME.registerComponent('xrf', {
|
||||||
obj: THREE.OBJLoader
|
obj: THREE.OBJLoader
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
aScene.renderer.toneMapping = THREE.ACESFilmicToneMapping;
|
||||||
|
aScene.renderer.toneMappingExposure = 1.5;
|
||||||
if( !XRF.camera ) throw 'xrfragment: no camera detected, please declare <a-entity camera..> ABOVE entities with xrf-attributes'
|
if( !XRF.camera ) throw 'xrfragment: no camera detected, please declare <a-entity camera..> ABOVE entities with xrf-attributes'
|
||||||
|
|
||||||
// this is just for convenience (not part of spec): hide/show stuff based on VR/AR tags in 3D model
|
// this is just for convenience (not part of spec): hide/show stuff based on VR/AR tags in 3D model
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue