vujadin / BabylonHx

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

Pointlight & Shadows #142

Open mightymarcus opened 7 years ago

mightymarcus commented 7 years ago

When I am using a pointlight for shadows, the fragment shader can not be compiled.

It happens both on Windows 10 native and Browser (Chrome).

Defines: #define DIFFUSE
#define BUMP
#define SPECULARTERM
#define NORMAL
#define UV1
#define SHADOWS
#define LIGHT0
#define LIGHT1
#define POINTLIGHT0
#define POINTLIGHT1
#define DIRLIGHT0
#define SHADOW0
#define SHADOW1
#define SHADOWPCF0
#define SHADOWPCF1
#define BonesPerMesh 0
#define NUM_BONE_INFLUENCERS 0

Error: WARNING: 0:21: '
' : extension directive should occur before any non-preprocessor tokens
ERROR: 0:764: 'computeShadowWithPCFCube' : no matching overloaded function found