
Optimized tree shaders for HDRP, URP and built-in pipeline.
Shaders provide shading and lighting features and wind simulation without any additional mesh data requirements.This package features collection of four optimized tree shaders for all three render pipelines. Performance is only 3-10% below basic lit shaders both on CPU and GPU side.Shaders provide wind simulation without any additional vertex data requirements, and shading and lighting features, such as volume-based shading, high-fidelity imitation of self-shading when outside of range of cast shadows and light transmission.Asset uses textures and shader sources under MIT, Unity Companion License and CC0 licenses; see Third-Party Notices.txtTextures table_mountain_1_puresky_2k.exr, CliffAlbedoSpecular.psd, GrassHillAlbedo.psd, GrassRockyAlbedo.psd, Grass.png are third-party assets.Textures maskHDRP.png, mask.png, bark_apple_01b.png, bark_cherry_01b.png, leaves_apple_01.png, leaves_cherry_01.png are original work.perlin64_4c.png is computer-generated.Shading of tree top is simulated as attenuation of sun rays trough an ellipsoid with configurable flat density.Once outside range of cast shadow, LPEnviroment shaders will apply own self shading, that imitates result produced by cast shading.Built-in pipeline shaders are compatible with Unity 2019.2HDRP shader is implemented as a shader graph. Wind module is a separate subgraph, allowing usage in other shaders. Since URP and built-in shader do not support light transmission on cutout variants, remaining shaders are implemented in HLSL.Wind simulation and most of shading functions are separated into a separate module, which can also be included and used in other shaders.perlin64_4c.png is generated by the perlin noise algorithm.