20,741
edits
No edit summary |
|||
| Line 5: | Line 5: | ||
== Background == | == Background == | ||
If you want to pass substantial amounts of data, it makes sense to use a texture (with filtering disabled, probably) to pass the info. Since we don’t have much chance of using the ‘correct’ solution (UBOs) in the near future.<ref>{{cite web | |||
|url = https://sourceforge.net/p/flightgear/mailman/message/32072598/ | |||
|title = <nowiki> Re: [Flightgear-devel] Passing arrays to a shader </nowiki> | |||
|author = <nowiki> James Turner </nowiki> | |||
|date = Mar 7th, 2014 | |||
|added = Mar 7th, 2014 | |||
|script_version = 0.40 | |||
}}</ref> | |||
This article documents how the [[Canvas]] system can be extended to provide support for experimenting with new scenery schemes. Specifically, by adding support for three new features: | This article documents how the [[Canvas]] system can be extended to provide support for experimenting with new scenery schemes. Specifically, by adding support for three new features: | ||
* registering Canvas textures as '''materials''' | * registering Canvas textures as '''materials''' | ||