I've been trying to get heightmapping lighting to work with the mouse position, and the coordinates when the screen is at the top left are about mousex*0.00155 and mousey*0.002. It works until I scroll the screen, then the lighting gets misaligned again.
Is there anything that can be done about this?
You could probably add the amount of X/Y scrolling to the X/Y coordinates of the light. It should probably work.
Try (MouseX - ScrollXLeft) * 0.00155 and (MouseY - ScrollYTop) * 0.002.
Develop games in your browser. Powerful, performant & highly capable.
Thanks, it works great!
Another question - where's the way to set the attributes to effects applied to a layer via an action at runtime?
Sorry if it's obvious and I can't find it...
Sorry, it's not yet implemented... on the todo list!