Closed CrazyFlasher closed 4 months ago
BTW, works fine with Flash target.
Commenting out those lines in AGAL fragment shader resolved the issue:
"m33 ft1.xyz, ft1.xyz, v5" // move N into local coords
"nrm ft1.xyz, ft1.xyz" // normalize N
Visually result works as expected, though I have no idea what these lines used to do :)
Hi. Recently I've started porting Starling Flash extensions to Starling OpenFL. Some of them are complete and work as expected: GodRayPlane, PixelMaskDisplayObject and TextureMaskStyle.
But with LightStyle I have low level issue. I guess something is wrong when AGAL shaders are being converted to GLSL. I get following error in browser console:
These are AGAL vertex and fragment shaders that cause error:
Shaders after converted to GLSL:
Link to sample: https://github.com/CrazyFlasher/starling-extensions-hx/tree/master/samples/dynamicLight Just run
haxelib run openfl test html5 -debug
Thanks and please help :)