Slide 14
Slide 14 text
Various features
- Math functions
- sin(x), cos(x), tan(x)
- Standard library functions
- lerp(a, b, t)
- smoothstep(a, b, t)
- clamp(x, a, b)
- length(v)
- tex2D(texture, texCoord)
- http://developer.download.nvidia.com/CgTutorial/cg_tutorial_appendix_e.html
- Built-in shader variables
- _Time: Time since level load (t/20, t, t*2, t*3)
- https://docs.unity3d.com/Manual/SL-ShaderPrograms.html