Skip to content

Commit 243d05b

Browse files
committed
update
1 parent fe7288e commit 243d05b

File tree

41 files changed

+29
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+29
-39
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<style>body{font-family:sans-serif}code{font-family:monospace}</style><h1>ksMultilayer_fresnel_nm4</h1><p>Shader which is very similar to <strong>ksMultilayer_fresnel_nm</strong>, but with four separate normal textures instead of single one, mapped same as detail textures, and masked with <em>txMask</em>. Good for landscapes.</p>
2+
<h3>Tiling fix</h3>
3+
<p>Unlike original multilayer shader, this one has proper options for tiling fix, separate for each channel: <em>tilingFixR</em>, <em>tilingFixG</em>, <em>tilingFixB</em> and <em>tilingFixA</em>. To enable tiling fix, change according option from <code>0</code> to <code>1</code>. Please keep in mind tiling fix requires an extra texture sample, do not use it for textures which are too high res.</p>

new/html/ksPerPixelMultiMap_NMDetail_emissive/ksPerPixelMultiMap_NMDetail_emissive.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
<li>White <em>txDiffuse</em>, red <em>txEmissive</em>, <em>ksEmissive</em> set to <code>(1, 1, 1)</code>: red glow.</li>
55
<li>Red <em>txDiffuse</em>, yellow <em>txEmissive</em>, <em>ksEmissive</em> set to <code>(1, 1, 1)</code>: red glow.</li>
66
</ul>
7+
<p>Set <em>emSkipDiffuseMap</em> to <code>1</code> to stop <em>txDiffuse</em> from affecting emissive color.</p>
8+
<h3>Multi-channel mode</h3>
9+
<p>To enable multi-channel mode, set <em>emChannelsMode</em> option to <code>1</code>. In that mode, shader will use red channel of <em>txEmissive</em> as a mask for <em>ksEmissive</em>, green channel is mask for <em>ksEmissive1</em>, blue is for <em>ksEmissive2</em> and alpha is for <em>ksEmissive3</em>. Later, in either car or track config, you can bind different emissive variables to different events, allowing you to use a single mesh for, for example, braking, parking and reverse lights without splitting.</p>
10+
<p>If you have a symmetrical mesh, you can use more than four channels: for example, if you set <em>emMirrorChannel3As4</em> to <code>1</code>, anything on one side of symmetry plane would use <em>ksEmissive4</em> instead of <em>ksEmissive3</em>. Use <em>emMirrorDir</em> and <em>emMirrorOffset</em> to setup symmetry plane (default value for mirror direction would be <code>1 0 0</code>, to mirror from left to right; also, keep in mind it uses local mesh coordinates). With this option, you can get all car’s rear lights from a single mesh: use three normal channels for brake, parking and reverse lights, and third+fourth for turning lights (so map for turning lights would be set in alpha channel of txEmissive).</p>

new/html/ksPerPixelMultiMap_emissive/ksPerPixelMultiMap_emissive.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,7 @@
44
<li>White <em>txDiffuse</em>, red <em>txEmissive</em>, <em>ksEmissive</em> set to <code>(1, 1, 1)</code>: red glow.</li>
55
<li>Red <em>txDiffuse</em>, yellow <em>txEmissive</em>, <em>ksEmissive</em> set to <code>(1, 1, 1)</code>: red glow.</li>
66
</ul>
7+
<p>Set <em>emSkipDiffuseMap</em> to <code>1</code> to stop <em>txDiffuse</em> from affecting emissive color.</p>
8+
<h3>Multi-channel mode</h3>
9+
<p>To enable multi-channel mode, set <em>emChannelsMode</em> option to <code>1</code>. In that mode, shader will use red channel of <em>txEmissive</em> as a mask for <em>ksEmissive</em>, green channel is mask for <em>ksEmissive1</em>, blue is for <em>ksEmissive2</em> and alpha is for <em>ksEmissive3</em>. Later, in either car or track config, you can bind different emissive variables to different events, allowing you to use a single mesh for, for example, braking, parking and reverse lights without splitting.</p>
10+
<p>If you have a symmetrical mesh, you can use more than four channels: for example, if you set <em>emMirrorChannel3As4</em> to <code>1</code>, anything on one side of symmetry plane would use <em>ksEmissive4</em> instead of <em>ksEmissive3</em>. Use <em>emMirrorDir</em> and <em>emMirrorOffset</em> to setup symmetry plane (default value for mirror direction would be <code>1 0 0</code>, to mirror from left to right; also, keep in mind it uses local mesh coordinates). With this option, you can get all car’s rear lights from a single mesh: use three normal channels for brake, parking and reverse lights, and third+fourth for turning lights (so map for turning lights would be set in alpha channel of txEmissive).</p>

new/html/smDigitalScreen/smDigitalScreen.html

Lines changed: 0 additions & 8 deletions
This file was deleted.

new/html/smWaterSurface/smWaterSurface.html

Lines changed: 0 additions & 11 deletions
This file was deleted.

new/ksMultilayer_fresnel_nm4.shader

21.3 KB
Binary file not shown.
700 Bytes
Binary file not shown.
-1.52 KB
Binary file not shown.

new/smDigitalScreen.shader

-19.7 KB
Binary file not shown.

new/smWaterSurface.shader

-14.5 KB
Binary file not shown.

0 commit comments

Comments
 (0)