Open TeamTallos opened 6 years ago
@TeamTallos Is this the error you have been getting?
"Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded. at Image.Renderer.terrainTexture.image.onload"
If so, you can fix the problem by using a server with the selected files. For instance, you could install the node package called http-server ( npm install -g http-server
) and then navigate to the WebCraft directory and type http-server -c-1
into your terminal. It will serve up all the files in the directory, click on one of the html files and your rendering issue should be gone.
WebCraft does not render right on chrome