Shader sample from redbook_v8