Open posxposy opened 10 years ago
Can you post more of the code demonstrating the crash and which platform. Several of the examples use shadow mapping. iOS doesn't currently work with shadow mapping.
Here is: directionalLight = new DirectionalLight(); directionalLight.castsShadows = false; directionalLight.direction = new Vector3D(1, -1, 0.5); directionalLight.color = 0xFFFFFF; directionalLight.diffuse = .8; directionalLight.ambient = .5; directionalLight.ambientColor = 0xFFD8B5; view.scene.addChild(directionalLight);
And when I set castsShadows parameter to true it is going crash. I test it on windows target and flash target. On the flash I got blank white screen. On windows - crash
When I set: directionalLight.castsShadows = true; the game is crushed on cpp target without errors. And got a blank screen on the flash target.