Canvas FAQs: Difference between revisions

Jump to navigation Jump to search
Line 32: Line 32:


== Canvas vs. Effects/Shaders ==
== Canvas vs. Effects/Shaders ==
Reflections are typically implemented using effects and shaders. For the time being, the Canvas system is not (yet) hooked up to the effects/shader system. However, we do have experimental code demonstrating that this is possible, i.e. proof-of-concept:
[[Canvas Development#Effects .2F Shaders]]
[[File:Canvas-Fragment-Shader-circles.png|250px]]<ref>{{cite web
  |url    =  https://forum.flightgear.org/viewtopic.php?p=270552#p270552
  |title  =  <nowiki> Re: Using  </nowiki>
  |author =  <nowiki> Hooray </nowiki>
  |date  =  Dec 29th, 2015
  |added  =  Dec 29th, 2015
  |script_version = 0.40
  }}</ref>


This would be a welcome addition to the effect framework, but currently it doesn't work like this (also the ability to use a canvas as functional texture, i.e. do runtime-writable normal or specular maps would be a 'cool to have' feature).<ref>{{cite web
This would be a welcome addition to the effect framework, but currently it doesn't work like this (also the ability to use a canvas as functional texture, i.e. do runtime-writable normal or specular maps would be a 'cool to have' feature).<ref>{{cite web

Navigation menu