20,741
edits
No edit summary |
|||
Line 175: | Line 175: | ||
|date = Feb 24th, 2017 | |date = Feb 24th, 2017 | ||
|added = Feb 24th, 2017 | |added = Feb 24th, 2017 | ||
|script_version = 0.40 | |||
}}</ref> | |||
== Testing the Shader == | |||
To see the traffic shader | |||
* in Roads/ there's roads.eff in each subfolder (for the Bergen demo, I had just one of them... in general you need to change this in your script) | |||
* this contains a line like <inherits-from>Effects/model-combined-deferred</inherits-from> -> change this to <inherits-from>Effects/road</inherits-from> (this itself inherits from model-combined-deferred and will not change the current behavior for classic or Rembrandt) | |||
* switch ALS on, you may have to switch the model shader quality a bit higher than minimal To use the lightmap switch, just delete lightmap-switch.xml which contains a Nasal snippet and make the effects use /environment/lightmap-factor in the parameter section instead the property that the Nasal script wrote, it does the same thing and is always present. <ref>{{cite web | |||
|url = https://sourceforge.net/p/flightgear/mailman/message/35717656/ | |||
|title = <nowiki> Re: [Flightgear-devel] OSM demo roads on TS? </nowiki> | |||
|author = <nowiki> Thorsten Renk </nowiki> | |||
|date = Mar 12th, 2017 | |||
|added = Mar 12th, 2017 | |||
|script_version = 0.40 | |script_version = 0.40 | ||
}}</ref> | }}</ref> |