20,741
edits
m (Johan G moved page Canvas Development to Canvas development: Sentence case title) |
m (→Effects / Shaders: https://sourceforge.net/p/flightgear/mailman/message/37608469/) |
||
Line 1,485: | Line 1,485: | ||
* using Canvas textures in effects (i.e. registered as materials via a corresponding new 'materials placement') | * using Canvas textures in effects (i.e. registered as materials via a corresponding new 'materials placement') | ||
}} | }} | ||
extending Canvas to allow effects (or at least shader) to be applied to a Window/Desktop, should be easy. <ref>https://sourceforge.net/p/flightgear/mailman/message/37608469/</ref> | |||
In mid 2016, a number of contributors discussed another workaround to use Canvas textures in conjunction with effects/shaders: simply, by allowing an arbitrary Canvas to be registered as a '''material''' via SGMaterialLib, e.g. using an API in the form of <code>myCanvas.registerMaterial(name: "myCanvasMaterial");</code> | In mid 2016, a number of contributors discussed another workaround to use Canvas textures in conjunction with effects/shaders: simply, by allowing an arbitrary Canvas to be registered as a '''material''' via SGMaterialLib, e.g. using an API in the form of <code>myCanvas.registerMaterial(name: "myCanvasMaterial");</code> |