branchsbox/foliage-shadercancel
4 Commits over 0 Days - ∞cph!
Foliage shader: Add standard vertex color based procedural animation based on http://developer.nvidia.com/gpugems/GPUGems3/gpugems3_ch16.html
Some additional changes here to Material API so we don't need to double sample for opacity & removal of dead code.
Documentation: https://wiki.facepunch.com/sbox/Foliage_Shader
https://files.facepunch.com/matt/1b1111b1/sbox-dev_3qi13Ck52s.mp4
Undo hack inverting green channel, should be fixed on authored assets
Iterate, sort of done.. Need to derive wind params from game
Remove vr foliage animation from common vs code
Material API shouldn't need to double sample for opacity.. have a look at this @Sam
Update foliage to have basic artist defined animation based on vertex colors
Update tree materials with foliage animation params