#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8)



STC8 Toon is an advanced, very fast toon shader for SpeedTree 8.
Toon shading is a rendering style designed to make 3D surfaces emulate 2D, flat surfaces.
The STC8 Toon shader support Instanced Indirect from Vegetation Studio Pro.
If you intend to use STC8 Toon with Vegetation Studio Pro, read carefully - Installation on Vegetation Studio Pro.
This is a shader for SpeedTree version 8.x for Unity. The shader has advanced settings compared to the standard Unity shader for SpeedTree. The shader fully functions in Forward Rendering and Deferred Rendering.
STC8 Toon shader is very fast, it is much faster than the standard Unity shader for SpeedTree 8, so this shader is well suited for mobile platforms and Nintendo Switch.
Using this shader, you can adjust the wind (speed, amplitude, swaying branches, etc.). The wind settings in the shader, allow you to fix incorrectly configured wind settings in SpeedTree, as well as synchronize and adjust the wind for all vegetation separately. You can adjust the wind parameters for each vegetation individually.
Do not buy this asset, if you do not know why you need it, use the version of STC8 (free).

Features:

- Toon shading.
- Full wind setting.
- Very high performance.
- Advanced settings for visualization (Rim light, Ambient light, Glossiness, Normal Mapping, Color and Light Tuning).
- Support for all functions in Forward Rendering and Deferred Rendering.
- Works with Vegetation Studio Pro.

Only Built-in Render Pipeline.
For Unity version of at least 2019.1.8 (64-bit)
Current version 1.3

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.
Buy on Gumroad ($19.90) Buy on ITCH.io ($19.90) Instructions (First Start) Web Demo Report a Problem / Issue Tracker / FAQ

Information

Attention! This shader does not work with SRP (HDRP, URP)!
I recommend importing this asset into a new project. Study the operation of the asset and copy the components you need to your project.

Shaders Settings (#NVJOB / STC8 Toon)

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset

Geometry
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Billboard - billboard geometry type
Backface Culling - culling is an optimization that does not render polygons facing away from the viewer. All polygons have a front and a back side. Back - Don’t render polygons that are facing away from the viewer i.e. back-facing polygons are culled. Front - Don’t render polygons that are facing towards the viewer. Used for turning objects inside-out. Off - Disables culling - all faces are drawn. Used for special effects.
Alpha Cutoff - determine the cutoff point for the which areas will be shown. For "Billboard" and frond, leaf.
Real Shadow - toon shadows are used by default, but if you need real shadows, you need to enable this option.
Texture and Color Settings
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Main Texture (Transparency) - main texture, depending on the type of geometry, with or without transparency.
Hue Variation - enable hue variation, the hue depends on the set hue color, and the intensity of the hue depends on the position of the object in world space. In this way you can get many shades for the forest with one material.
Hue Color - color of the hue, HDR. Alpha channel also affects the intensity of the hue.
Main Color - main color, HDR. Final color hue depends on "Hue Color" and "Color and Light Tuning".
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Ambient Color - color Ambient light. Ambient light, is light that is present all around the Scene and doesn’t come from any specific source object.
Specular Color - color of Specular reflection. Specular in this shader is rendered as cartoony.
Glossiness - this is the amount of gloss.
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Rim Color - color rim lighting. Emissive light based on the angle between surface normal and view direction.
Rim Amount - amount of the rim lighting.
Rim Threshold - threshold of the rim lighting.
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Normal Map - enable normal map, disabled by default.
Normal Map Texture - normal map texture.
Strength Normal - intensity of the normal map texture.

Color and Light Tuning
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Enable Tuning - enable color and light tuning, disabled by default.
Brightness - final color brightness, HDR.
Saturation - final color saturation, HDR.
Contrast - final color contrast, HDR.
Wind Settings
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Wind Quality. None - disabled Wind. Fastest - highest performance, only basic parameters. Fast - high performance, basic parameters and leaf ripple. Better - quality and performance, basic parameters, leaf and branch ripple, branch twitch. Best - high quality, basic parameters, leaf and branch ripple, leaf tumble, branch twitch. Palm - high quality, basic parameters and palm settings.
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Wind Speed - general wind speed.
Wind Amplitude - general amplitude of wind.
Wind Degree Slope - general amount of slope due to wind power.
Wind Constant Tilt - constant slope due to wind power.
Leaf Ripple - effect of leaf ripples using offset.
Leaf Ripple Speed - speed of leaf ripples.
Leaf Tumble - tumbling effect of the leaves, relative to the attachment point.
Leaf Tumble Speed - leaf tumbling speed.
Leaf Twitch - leaf Twitch.
Leaf Twitch Speed - leaf Twitch Speed.
Branch Ripple - effect of branch ripples using offset.
Branch Ripple Speed - speed of branch ripples.
Branch Twitch - twitch branches.
#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8) Unity Asset
Branch Ripple - effect of branch ripples using offset.
Branch Ripple Speed - speed of branch ripples.
Branch Twitch - twitch branches.
Elasticity - elasticity of branches and leaves.
Turbulences - degree of turbulence effect.
Frond Ripple - frond (palm) ripple.
Frond Ripple Speed - speed of frond (palm) ripples.
Branch Force Wind - wind force acting on branches (along the X axis).
Branch Heaviness - wind force acting on branches from top to bottom (along the Y axis).

Deferred and Forward rendering path

The STC8 shader supports Deferred and Forward rendering paths. But due to the difference in rendering in the rendering paths of Deferred and Forward, the shader (material) settings for different rendering paths will be different.

Installation on Vegetation Studio Pro

STC8 Toon support Vegetation Studio Pro, but to work, you will need to prepare the Vegetation Studio Pro itself in your project.
Instructions for installing and configuring Vegetation Studio Pro can be found on the official website of Vegetation Studio.
Attention! STC8 Toon only works with Vegetation Studio Pro. Vegetation Studio without Pro is not supported.

Installation
• Open the file:
Speedtree8ShaderController.cs
located in the directory:
Assets\AwesomeTechnologies\VegetationStudioPro\Runtime\ShaderSystem\Speedtree
• Find the code (located at the top):
public bool MatchShader(string shaderName) { return (shaderName == "Nature/SpeedTree8"); } • Replace "Nature/SpeedTree8" with "#NVJOB/STC8 Toon VS":
public bool MatchShader(string shaderName) { return (shaderName == "#NVJOB/STC8 Toon VS"); } • Import the STC8 Toon VS shaders (the entire STC8 Toon asset, or only the STC8 Toon VS shaders).

Setting up Materials
To see visual changes in material settings in real time, create a tree prefab in the scene. After a restart, you will see a change on all the trees that were instantiate Vegetation Studio.

Screenshots

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

#NVJOB STC8 Toon (Advanced Toon Shader for Unity SpeedTree 8). Unity Pro Asset.

(C) Copyright 2016-2020 #NVJOB
Nicholas Veselov Unity Game Developer
Николай Веселов Unity Разработчик Санкт-Петербург