1. A computer-readable storage medium comprising computer-executable instructions for performing a method of preshading, the computer-readable instructions comprising instructions for: analyzing a shader program for constant expressions; generating a first executable file by replacing at least one constant expression in the shader program with a unique reference; and generating a second executable file comprising the replaced constant expressions in the shader program.