openfl / lime

A foundational Haxe framework for cross-platform development
https://lime.openfl.org/
MIT License
761 stars 376 forks source link

Support user-programmable shaders for managed surfaces (OpenFL) #47

Closed jgranick closed 10 years ago

jgranick commented 10 years ago

Recent changes have changed the way that shaders are generated, instead of being hard-coded based on a few factors, there is now dynamic shader generation, based upon what is needed for a specific surface.

In addition to the internal behavior of the managed surfaces within Lime (which OpenFL uses), we would like to add support for user-programmable shaders, for custom rendering.

TheSHEEEP commented 10 years ago

Can't wait to see this happening :)

TheSHEEEP commented 10 years ago

Any news on the planning front here? :)

jon914 commented 10 years ago

I'm also curious to hear if any progress has been made on this front. I've succeeded in getting full screen shaders working thanks to @MattTuttle, but the ultimate goal is bringing it to the granularity of DisplayObjects.

https://github.com/HaxePunk/post-process/issues/4

jgranick commented 10 years ago

Lime "next" supports access to GL shaders, so making them user-programmable will be up to the library on top. In OpenFL "next", there is already hardware blend mode support in place, using multiple programmable shaders. Adding new custom shaders has not been tested, but should be mostly there, we can create or follow a new issue on the OpenFL side now if we need to :)

TheSHEEEP commented 10 years ago

New issue opened on OpenFL! :)