Open Aatu opened 9 years ago
me same problem :( How do i fix it?
BabylonHx uses https://github.com/vujadin/BabylonHx/blob/master/com/babylonhx/materials/ShadersStore.hx for storing shaders, and each material stores its shaders in local vars. Those in assets/shaders are not used and are probably outdated. You might get more detailed error description when using Snow/Luxe
I have shaders in asset/shaders, and babylonhx is reading them correctly from there. However, if I break something and the shaders do not compile, I get an useless error:
Engine.hx:168: BabylonHx - Cross-Platform 3D Engine | 2015 | www.babylonhx.com Effect.hx:220: Effect.hx:237: Unable to compile effect: terrainShader Effect.hx:238: Defines: #define DIFFUSE
define NORMAL
define UV1
define HEMILIGHT0
define LIGHT0
Effect.hx:239: Error: