Version: Unity 6.6 Alpha (6000.6)
Language : English
PackageRequirements block in ShaderLab reference
ShaderLab: legacy fog

ShaderLab legacy functionality reference

ShaderLab includes a number of “fixed-function style” commands that allow you to write shadersA program that runs on the GPU. More info
See in Glossary
without using any HLSL code.

Note: These commands are legacy, and are documented for backwards compatibility only. If your Shader objectAn instance of the Shader class, a Shader object is container for shader programs and GPU instructions, and information that tells Unity how to use them. Use them with materials to determine the appearance of your scene. More info
See in Glossary
source file includes HLSL code, Unity ignores these commands completely. If your shader source file does not include HLSL code, Unity compiles these commands into regular shader programs on import.

Topic Description
ShaderLab: legacy fog Reference for enabling or disabling Unity’s built-in fog.
ShaderLab: legacy lighting Reference for controlling the built-in vertex lighting parameters.
ShaderLab: legacy alpha testing Reference for comparing the alpha value of a color to a fixed value before rendering a pixelThe smallest unit in a computer image. Pixel size depends on your screen resolution. Pixel lighting is calculated at every screen pixel. More info
See in Glossary
.
ShaderLab: legacy texture combining Reference for applying textures after calculating the basic vertex lighting.
ShaderLab: legacy vertex data channel mapping Reference for specifying how vertex data maps to the graphics hardware.

Additional resources

PackageRequirements block in ShaderLab reference
ShaderLab: legacy fog