Probably an easy question for the pros.
Studying concepts in this demo on the PG (…which works).
Blockquote
mapGroundMat.diffuseTexture = new BABYLON.Texture(“/textures/heightMap.png”, scene);
Blockquote
However when I transpose the source code from the PG into VS Code, the above statement throws a 404 Error.
However, if I change double quotes to single quotes as in below, the code in VS works.
Blockquote
mapGroundMat.diffuseTexture = new BABYLON.Texture(‘/textures/heightMap.png’, scene);
Blockquote
Google searches on double vs. single quote are always in the context of discussions about string literals - not file system paths. I use LiveServer in VS Code for testing. When I move code from the PG to VS Code, I have to make some tweaks to get it run (create vars for the canvas, engine and call the create scene function and I wrap it in a window resize listener) but that’s [not] related to this issue…right?
What am I missing?