Ahoi,
on cpp (win7) basic scene sample works fine, but for html5 there is something new in Lime for webgl.
It did not found Gl with ...getContext("webgl", options) here:
-> https://github.com/vujadin/BabylonHx/blob/master/com/babylonhx/Engine.hx#L260
so changing it to "webgl2" it goes a little bit forward:
"Engine.hx:450: BabylonHx - Cross-Platform 3D Engine | 2017 | www.babylonhx.com | GL version: WebGL 2.0 | GL vendor: Mozilla | GL renderer: Mozilla"
but then more Errors in loading shader Assets:
[lime.utils.Assets] There is no TEXT asset with an ID of "assets/shaders/legacydefault.vertex.fx"
[lime.utils.Assets] There is no TEXT asset with an ID of "assets/shaders/legacydefault.fragment.fx"
so i tryed to copy the missing shaders from com.babylonhx/shader to assets/shader but then:
Effect.hx:361: Unable to compile effect: legacydefault
Effect.hx:362: Defines:
#define SPECULARTERM
#define NORMAL
#define LIGHT0
#define HEMILIGHT0
#define BonesPerMesh 0
#define NUM_BONE_INFLUENCERS 0
Effect.hx:364: Error: ERROR: 0:? : '' : syntax error
i get stuck again :(
Ahoi,
on cpp (win7) basic scene sample works fine, but for html5 there is something new in Lime for webgl.
It did not found Gl with ...getContext("webgl", options) here:
-> https://github.com/vujadin/BabylonHx/blob/master/com/babylonhx/Engine.hx#L260
so changing it to "webgl2" it goes a little bit forward:
but then more Errors in loading shader Assets:
[lime.utils.Assets] There is no TEXT asset with an ID of "assets/shaders/legacydefault.vertex.fx"
[lime.utils.Assets] There is no TEXT asset with an ID of "assets/shaders/legacydefault.fragment.fx"
so i tryed to copy the missing shaders from com.babylonhx/shader to assets/shader but then:
Effect.hx:361: Unable to compile effect: legacydefault
Effect.hx:362: Defines:
#define SPECULARTERM
#define NORMAL
#define LIGHT0
#define HEMILIGHT0
#define BonesPerMesh 0
#define NUM_BONE_INFLUENCERS 0
Effect.hx:364: Error: ERROR: 0:? : '' : syntax error
i get stuck again :(