How to load HDR files using ReactJS and Webpack
up vote
0
down vote
favorite
I would like to load some HDR files for creating my Babylone canvas into ReactJS, but it looks like the files aren't found.
I'm using a file loader with this configuration in webpack (doesn't seem to work tho)
{
test: /.(hdr)$/,
use: [
{
loader: 'file-loader',
options: {}
}
]
}
And then I do the following
var envMap = new BABYLON.HDRCubeTexture("./textures/HDR/HDR24.hdr", scene, 512);
But I got the following error into my browser.
Thanks for your help.
reactjs webpack hdr
add a comment |
up vote
0
down vote
favorite
I would like to load some HDR files for creating my Babylone canvas into ReactJS, but it looks like the files aren't found.
I'm using a file loader with this configuration in webpack (doesn't seem to work tho)
{
test: /.(hdr)$/,
use: [
{
loader: 'file-loader',
options: {}
}
]
}
And then I do the following
var envMap = new BABYLON.HDRCubeTexture("./textures/HDR/HDR24.hdr", scene, 512);
But I got the following error into my browser.
Thanks for your help.
reactjs webpack hdr
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I would like to load some HDR files for creating my Babylone canvas into ReactJS, but it looks like the files aren't found.
I'm using a file loader with this configuration in webpack (doesn't seem to work tho)
{
test: /.(hdr)$/,
use: [
{
loader: 'file-loader',
options: {}
}
]
}
And then I do the following
var envMap = new BABYLON.HDRCubeTexture("./textures/HDR/HDR24.hdr", scene, 512);
But I got the following error into my browser.
Thanks for your help.
reactjs webpack hdr
I would like to load some HDR files for creating my Babylone canvas into ReactJS, but it looks like the files aren't found.
I'm using a file loader with this configuration in webpack (doesn't seem to work tho)
{
test: /.(hdr)$/,
use: [
{
loader: 'file-loader',
options: {}
}
]
}
And then I do the following
var envMap = new BABYLON.HDRCubeTexture("./textures/HDR/HDR24.hdr", scene, 512);
But I got the following error into my browser.
Thanks for your help.
reactjs webpack hdr
reactjs webpack hdr
asked 5 hours ago
Justin Legoff
438
438
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53266038%2fhow-to-load-hdr-files-using-reactjs-and-webpack%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password