cleanup water shader properties, interpolate sea-surface wind
This commit is contained in:
parent
fc09782f93
commit
22aeda4a04
4 changed files with 31 additions and 23 deletions
|
@ -9,10 +9,12 @@
|
||||||
<!-- DIFFUSE -->
|
<!-- DIFFUSE -->
|
||||||
</material>
|
</material>
|
||||||
<shade-model>smooth</shade-model>
|
<shade-model>smooth</shade-model>
|
||||||
|
<!-- unused ?
|
||||||
<wind-speed>
|
<wind-speed>
|
||||||
<!--<use>/environment/Vinson/rel-wind-speed-kts</use>-->
|
<!- -<use>/environment/Vinson/rel-wind-speed-kts</use>- ->
|
||||||
<use>/environment/config/boundary/entry[0]/wind-speed-kt</use>
|
<use>/environment/config/boundary/entry[0]/wind-speed-kt</use>
|
||||||
</wind-speed>
|
</wind-speed>
|
||||||
|
-->
|
||||||
<offset>0.0</offset>
|
<offset>0.0</offset>
|
||||||
<amplitude-factor>0.08</amplitude-factor>
|
<amplitude-factor>0.08</amplitude-factor>
|
||||||
<windE>
|
<windE>
|
||||||
|
@ -161,13 +163,13 @@
|
||||||
<use>material/color-mode-uniform</use>
|
<use>material/color-mode-uniform</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform>
|
||||||
<uniform>
|
<!-- uniform> unused?
|
||||||
<name>WindSpeed</name>
|
<name>WindSpeed</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
<value>
|
<value>
|
||||||
<use>wind-speed</use>
|
<use>wind-speed</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform-->
|
||||||
<uniform>
|
<uniform>
|
||||||
<name>Offset</name>
|
<name>Offset</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
|
|
|
@ -86,9 +86,9 @@
|
||||||
<windN>
|
<windN>
|
||||||
<use>/environment/sea/surface/wind-from-north-fps</use>
|
<use>/environment/sea/surface/wind-from-north-fps</use>
|
||||||
</windN>
|
</windN>
|
||||||
<wind-from>
|
<!--wind-from> unused?
|
||||||
<use>/environment/config/boundary/entry[0]/wind-from-heading-deg</use>
|
<use>/environment/config/boundary/entry[0]/wind-from-heading-deg</use>
|
||||||
</wind-from>
|
</wind-from-->
|
||||||
<WaveFreq>
|
<WaveFreq>
|
||||||
<use>/environment/wave/freq</use>
|
<use>/environment/wave/freq</use>
|
||||||
</WaveFreq>
|
</WaveFreq>
|
||||||
|
@ -398,13 +398,13 @@
|
||||||
<use>windN</use>
|
<use>windN</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform>
|
||||||
<uniform>
|
<!-- uniform> unused?
|
||||||
<name>WindFrom</name>
|
<name>WindFrom</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
<value>
|
<value>
|
||||||
<use>wind-from</use>
|
<use>wind-from</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform-->
|
||||||
<uniform>
|
<uniform>
|
||||||
<name>WaveFreq</name>
|
<name>WaveFreq</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
|
@ -765,13 +765,13 @@
|
||||||
<use>windN</use>
|
<use>windN</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform>
|
||||||
<uniform>
|
<!--uniform> unused?
|
||||||
<name>WindFrom</name>
|
<name>WindFrom</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
<value>
|
<value>
|
||||||
<use>wind-from</use>
|
<use>wind-from</use>
|
||||||
</value>
|
</value>
|
||||||
</uniform>
|
</uniform-->
|
||||||
<uniform>
|
<uniform>
|
||||||
<name>WaveFreq</name>
|
<name>WaveFreq</name>
|
||||||
<type>float</type>
|
<type>float</type>
|
||||||
|
|
|
@ -328,4 +328,10 @@
|
||||||
</area>
|
</area>
|
||||||
</terrain>
|
</terrain>
|
||||||
|
|
||||||
|
<sea>
|
||||||
|
<config>
|
||||||
|
<wind-filter-time type="double">60.0</wind-filter-time>
|
||||||
|
</config>
|
||||||
|
</sea>
|
||||||
|
|
||||||
</PropertyList>
|
</PropertyList>
|
||||||
|
|
|
@ -205,33 +205,33 @@
|
||||||
<name>EnvironmentInterpolator:wave:wind-from-east-fps</name>
|
<name>EnvironmentInterpolator:wave:wind-from-east-fps</name>
|
||||||
<input>/environment/config/boundary/entry[0]/wind-from-east-fps</input>
|
<input>/environment/config/boundary/entry[0]/wind-from-east-fps</input>
|
||||||
<output>/environment/sea/surface/wind-from-east-fps</output>
|
<output>/environment/sea/surface/wind-from-east-fps</output>
|
||||||
<type>gain</type>
|
<type>exponential</type>
|
||||||
<gain>1</gain>
|
<filter-time>/environment/sea/config/wind-filter-time</filter-time>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<filter>
|
<filter>
|
||||||
<name>EnvironmentInterpolator:wave:wind-from-north-fps</name>
|
<name>EnvironmentInterpolator:wave:wind-from-north-fps</name>
|
||||||
<input>/environment/config/boundary/entry[0]/wind-from-north-fps</input>
|
<input>/environment/config/boundary/entry[0]/wind-from-north-fps</input>
|
||||||
<output>/environment/sea/surface/wind-from-north-fps</output>
|
<output>/environment/sea/surface/wind-from-north-fps</output>
|
||||||
<type>gain</type>
|
<type>exponential</type>
|
||||||
<gain>1</gain>
|
<filter-time>/environment/sea/config/wind-filter-time</filter-time>
|
||||||
</filter>
|
</filter>
|
||||||
|
|
||||||
<filter>
|
<!--filter> unused?
|
||||||
<name>EnvironmentInterpolator:wave:wind-from-heading-deg</name>
|
<name>EnvironmentInterpolator:wave:wind-from-heading-deg</name>
|
||||||
<input>/environment/config/boundary/entry[0]/wind-from-heading-deg</input>
|
<input>/environment/config/boundary/entry[0]/wind-from-heading-deg</input>
|
||||||
<output>/environment/sea/surface/wind-from-deg</output>
|
<output>/environment/sea/surface/wind-from-deg</output>
|
||||||
<type>gain</type>
|
<type>gain</type>
|
||||||
<gain>1</gain>
|
<gain>1</gain>
|
||||||
</filter>
|
</filter-->
|
||||||
|
|
||||||
<filter>
|
<!--filter> unused?
|
||||||
<name>EnvironmentInterpolator:wave:wind-speed-kt</name>
|
<name>EnvironmentInterpolator:wave:wind-speed-kt</name>
|
||||||
<input>/environment/config/boundary/entry[0]/wind-speed-kt</input>
|
<input>/environment/config/boundary/entry[0]/wind-speed-kt</input>
|
||||||
<output>/environment/sea/surface/wind-speed-kt</output>
|
<output>/environment/sea/surface/wind-speed-kt</output>
|
||||||
<type>gain</type>
|
<type>gain</type>
|
||||||
<gain>1</gain>
|
<gain>1</gain>
|
||||||
</filter>
|
</filter-->
|
||||||
|
|
||||||
<logic>
|
<logic>
|
||||||
<name>EnvironmentInterpolator:wave:enabled</name>
|
<name>EnvironmentInterpolator:wave:enabled</name>
|
||||||
|
@ -273,7 +273,7 @@
|
||||||
<value>1.0</value>
|
<value>1.0</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.02</value>
|
<value>0.02</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</sum>
|
</sum>
|
||||||
</expression>
|
</expression>
|
||||||
|
@ -293,7 +293,7 @@
|
||||||
<value>35.0</value>
|
<value>35.0</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.2</value>
|
<value>0.2</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</sum>
|
</sum>
|
||||||
</expression>
|
</expression>
|
||||||
|
@ -311,7 +311,7 @@
|
||||||
<value>20.0</value>
|
<value>20.0</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.4</value>
|
<value>0.4</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</difference>
|
</difference>
|
||||||
</expression>
|
</expression>
|
||||||
|
@ -329,7 +329,7 @@
|
||||||
<value>0.01</value>
|
<value>0.01</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.0008</value>
|
<value>0.0008</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</sum>
|
</sum>
|
||||||
</expression>
|
</expression>
|
||||||
|
@ -349,7 +349,7 @@
|
||||||
<value>0.0004</value>
|
<value>0.0004</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.00001</value>
|
<value>0.00001</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</difference>
|
</difference>
|
||||||
</expression>
|
</expression>
|
||||||
|
@ -369,7 +369,7 @@
|
||||||
<value>1.0</value>
|
<value>1.0</value>
|
||||||
<product>
|
<product>
|
||||||
<value>0.02</value>
|
<value>0.02</value>
|
||||||
<property>/environment/sea/surface/wind-speed-kt</property>
|
<property>/environment/config/boundary/entry[0]/wind-speed-kt</property>
|
||||||
</product>
|
</product>
|
||||||
</sum>
|
</sum>
|
||||||
</expression>
|
</expression>
|
||||||
|
|
Loading…
Reference in a new issue