bx-935-calc #1
|
@ -66,9 +66,9 @@ pmremGenerator.compileEquirectangularShader();
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
const loader = new GainMapLoader(renderer.value)
|
const loader = new GainMapLoader(renderer.value)
|
||||||
const result = await loader.loadAsync([
|
const result = await loader.loadAsync([
|
||||||
'/hdrmaps/kloppenheim_06_4k.webp',
|
'hdrmaps/alps_field_4k.webp',
|
||||||
'/hdrmaps/kloppenheim_06_4k-gainmap.webp',
|
'hdrmaps/alps_field_4k-gainmap.webp',
|
||||||
'/hdrmaps/kloppenheim_06_4k.json',
|
'hdrmaps/alps_field_4k.json',
|
||||||
])
|
])
|
||||||
const exrCubeRenderTarget = pmremGenerator.fromEquirectangular(result.renderTarget.texture);
|
const exrCubeRenderTarget = pmremGenerator.fromEquirectangular(result.renderTarget.texture);
|
||||||
const exrBackground = exrCubeRenderTarget.texture;
|
const exrBackground = exrCubeRenderTarget.texture;
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
Binary file not shown.
|
@ -0,0 +1,29 @@
|
||||||
|
{
|
||||||
|
"gainMapMax": [
|
||||||
|
15.999075124875333,
|
||||||
|
15.999075124875333,
|
||||||
|
15.999075124875333
|
||||||
|
],
|
||||||
|
"gainMapMin": [
|
||||||
|
0,
|
||||||
|
0,
|
||||||
|
0
|
||||||
|
],
|
||||||
|
"gamma": [
|
||||||
|
1,
|
||||||
|
1,
|
||||||
|
1
|
||||||
|
],
|
||||||
|
"hdrCapacityMax": 15.999075124875333,
|
||||||
|
"hdrCapacityMin": 0,
|
||||||
|
"offsetHdr": [
|
||||||
|
0.015625,
|
||||||
|
0.015625,
|
||||||
|
0.015625
|
||||||
|
],
|
||||||
|
"offsetSdr": [
|
||||||
|
0.015625,
|
||||||
|
0.015625,
|
||||||
|
0.015625
|
||||||
|
]
|
||||||
|
}
|
Binary file not shown.
After Width: | Height: | Size: 1.9 MiB |
Loading…
Reference in New Issue