vujadin / BabylonHx

Port of Babylon.js 3D engine to Haxe.
http:/paradoxplay.com/babylonhx
Apache License 2.0
187 stars 43 forks source link

Error reporting from failed shader compilation not working #65

Open Aatu opened 9 years ago

Aatu commented 9 years ago

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:

ghost commented 8 years ago

me same problem :( How do i fix it?

vujadin commented 8 years ago

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