declare shader color "depth_fade" ( scalar "near", scalar "far" ) version 1 apply material end declare