# Shaders

## Shader: SF Energy Flow

This shader creates an energy flow effect, but it's basically a simple noisy fog scrolling effect.\
This is used for the energy sphere and the portal cable to simulate the energy flow, but you can also use it on bigger objects to create some fog effects. (Make sure to change the Surface Type of the material to transparent to have more realistic fog effects)

<table data-header-hidden><thead><tr><th width="126.79998779296875"></th><th></th></tr></thead><tbody><tr><td>Scroll Speed</td><td>The “flow” speed of the energy</td></tr><tr><td>Noise Scale</td><td><p>The shader uses a simple combination of 2 Gradient noise nodes to create the flow effect. With this property you can define the “noisiness” of the material. A value of 0 means there is no noise at all, which results in just a glowing in the defined color.</p><p>1 is maximum noise.</p><p>The left example has a noise of 0.15 and the right a noise of 1</p><p><br><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXfQ7hrzhQMZ4sgfrYGalguGI13lGd1YVcyGES0sV8zXZJUe9pkNqAPUcHfXuHXEodvstz94hFjNsr4qLXtNmlmRDFQuLQbtu2S0PfstfMiWp4aW2d0YM0gzw63BvbO-U4BDzvQQ_WNb0AHzqDDf0deadDfH?key=usi2H2xKHRHHROBafeGPKw" alt=""><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc5QvImoA7oDOmM6KtB_aU-PUYvf-HPasibOUkq16WycCnRFqEoQPHjoUC6s3CxHKXMGoTdfwYOIBD3OR53mH08g9rnFyvnShg4YGTwjbq-XPLI9GNuGMAq3VijJZdOh9hO1-cRjfjIXa-bQP5fWfUexFgO?key=usi2H2xKHRHHROBafeGPKw" alt=""><br></p></td></tr><tr><td>Color</td><td>HDR Glow color </td></tr><tr><td>Strength</td><td><p>Value between 0 and 1. 0 means there is no energy flow and 1 that energy flow is on its maximum.</p><p>Note: For the Portal with the energy cube this values are controlled by the energy flow controller</p></td></tr></tbody></table>



## Shader: Portal Distortion

Creates a twirly portal view effect

<table data-header-hidden><thead><tr><th width="118.79998779296875"></th><th></th></tr></thead><tbody><tr><td>Twirl Strength</td><td><p>Defines how strong the twirl effect is</p><p>Left image has a strength of 1 and the right one a strength of 20</p><p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXf4VVX983lg9ut-ZqZN5xp283gv48oj_MmOo_fuzuCh2Rsp7VMzrTKBGAjf4SC48g8N0659eMq6fKeE6iCWjZBIZNxPTBLH7dBDSt1n2nhpXKjs2k53eTZy-lgjRwSnnangNVU3dlQ6s58ItBOpb6FhrKk?key=usi2H2xKHRHHROBafeGPKw" alt="" data-size="original"><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdixW902FvgyTRVgpgC1Jv2VxKPZTjZgeIgxQ_F1AEHa_AKUcj_s5jbahD3fupDuHwHKWaOlbgkZEErjO_i4Oz4vxJjtQ4pS_eSGlAE00NuypVpwHOjSc1lrloHy8oV2D_FK8V4sDQUG8wzubVvr3zZd5fD?key=usi2H2xKHRHHROBafeGPKw" alt="" data-size="original"></p></td></tr><tr><td>Voronoi Cell Density</td><td><p>Density of the voronoi noise</p><p>The previous images for the twirl strength example had a voronoi density of 4. Here is an example of a twirl strength of 20 and a density of 30:</p><p><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXejyD3vC_dq73yCDi8ZdQHKx-c9QabFXQ0-yKAhd7eaR3fHwSfJKqAwt-Z4yBaNRUbO-ACqC0IWtG4dz5bemmf9xQllSaLM3RWeM_sG4GLmEpXGZzu16uOSDY2x7r_ReU82-ICXhvBiArhttnita_XEvRHE?key=usi2H2xKHRHHROBafeGPKw" alt=""></p></td></tr><tr><td>Speed</td><td>Rotation speed of the effect</td></tr><tr><td>Mask</td><td>Simple mask to reduce the visibility of the effect. All black areas of the mask will be invisible</td></tr><tr><td>Color</td><td>Defines a HDR color of the effect</td></tr><tr><td>Dissolve Strength</td><td>Dissolves the effect. Value 0 shows the full effect and value 1 nearly dissolves the whole effect</td></tr></tbody></table>
