Canvas scenery overlays: Difference between revisions

Jump to navigation Jump to search
m
+-heading cleanup: Sentence case titles
m (+-cat: OSM2City → Osm2city)
m (+-heading cleanup: Sentence case titles)
Line 289: Line 289:
   }}</ref>
   }}</ref>


== Canvas Integration ==
== Canvas integration ==
{{WIP}}
{{WIP}}


Line 365: Line 365:
In its current form it will just look for <tilename>.dds files and drape them over the tile using 2 modified effects/shaders, and a patched obj.cxx that exposes the corresponding lat/lon tuples to shader space.
In its current form it will just look for <tilename>.dds files and drape them over the tile using 2 modified effects/shaders, and a patched obj.cxx that exposes the corresponding lat/lon tuples to shader space.


=== Canvas Materials ===
=== Canvas materials ===
For the existing noise texture generation, take a look at make3DNoiseImage in scene/material/TextureBuilder.cxx in the simgear tree. This particular texture is filled CPU-side, but if you're more comfortable expressing things in a shader, you/someone could rig up some FBO wiring to quickly render a shader-defined function into a texture.<ref>{{cite web
For the existing noise texture generation, take a look at make3DNoiseImage in scene/material/TextureBuilder.cxx in the simgear tree. This particular texture is filled CPU-side, but if you're more comfortable expressing things in a shader, you/someone could rig up some FBO wiring to quickly render a shader-defined function into a texture.<ref>{{cite web
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/29586157/  
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/29586157/  
Line 406: Line 406:
   }}</ref>
   }}</ref>


=== Base Package ===
=== Base package ===
<syntaxhighlight lang="diff">diff --git a/Shaders/default.frag b/Shaders/default.frag
<syntaxhighlight lang="diff">diff --git a/Shaders/default.frag b/Shaders/default.frag
index 1c3fbaf..e9ede17 100644
index 1c3fbaf..e9ede17 100644
Line 479: Line 479:
</syntaxhighlight>
</syntaxhighlight>


=== Nasal Console ===
=== Nasal console ===
{{WIP}}
{{WIP}}


Navigation menu