13,212
edits
m (+-cat: OSM2City → Osm2city) |
m (+-heading cleanup: Sentence case titles) |
||
Line 289: | Line 289: | ||
}}</ref> | }}</ref> | ||
== Canvas | == 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 | === 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 | === 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 | === Nasal console === | ||
{{WIP}} | {{WIP}} | ||