max123 Posted July 21, 2017 Share Posted July 21, 2017 Hi, I've switched from BJS 3-beta to BJS-3 final and now get this error:Error status: 404 - Unable to load src/Shaders/ShadersInclude/shadowsVertexDeclaration.fx What's causing it? Quote Link to comment Share on other sites More sharing options...
max123 Posted July 21, 2017 Author Share Posted July 21, 2017 To explain a bit further, I'm using water material (precompiled, just a js file, no .fx from https://github.com/BabylonJS/Babylon.js/blob/master/dist/preview release/materialsLibrary/babylon.waterMaterial.js). I load the js file using requirejs: requirejs(["pep", "babylon", this.settingsFile], (pep, lib, settings) => { this.water = document.createElement('script'); this.water.src = "res/js/libs/3d/babylon/shaders/babylon.waterMaterial.js"; document.head.appendChild(this.water); ..... It was working fine in BJS 3-beta, but breaks in BJS 3.0 release. Quote Link to comment Share on other sites More sharing options...
max123 Posted July 21, 2017 Author Share Posted July 21, 2017 Solved: I replaced (older) waterMaterial.js with the newer one and BAM! - it works now! GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted July 21, 2017 Share Posted July 21, 2017 Perfect! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.