20,741
edits
m (:-)) |
|||
| Line 308: | Line 308: | ||
== CanvasCamera == | == CanvasCamera == | ||
{{FGCquote | |||
|1= I've been working on improving the camera configuration system in FG. It is almost done, but needs some cleanup before I can put up a merge request. Here is the list of new features: | |||
* Support for setting the rendering order of cameras | |||
* Can set the clear mask (color, depth and stencil buffer separately) | |||
* Can set the texture format in render-to-texture (which already was there, but had almost no use before this update), rgb, rgba, depth or depth-stencil at the moment. | |||
* Can set the texture type (normalied 2d or rectangle) | |||
* Support for multiple render targets, via just specifying multiple texture targets. This needs modification to shaders though, but works. | |||
* Can set whether camera uses scene data or a custom model (e.g. screen aligned quad) | |||
* Can bind render target textures to texture units for rendering to screen. (In the future should allow using these in models by specifying the texture name...) | |||
|2= {{cite web | |||
| url = http://forum.flightgear.org/viewtopic.php?p=140299#p140299 | |||
| title = <nowiki>Improved camera configuration options</nowiki> | |||
| author = <nowiki>Zan</nowiki> | |||
| date = Oct 14th, 2011 | |||
| added = Oct 14th, 2011 | |||
| script_version = 0.23 | |||
}} | |||
}} | |||
{{Custom_Canvas_Element | {{Custom_Canvas_Element | ||