Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
mirror_ambient.shader
Package: Engine_v0.2.tar.gz [view]
Upload User: qccn516
Upload Date: 2013-05-02
Package Size: 3382k
Code Size: 1k
Category:
Game Engine
Development Platform:
Visual C++
- /* mirror ambient shader
- *
- * written by Alexander Zaprjagaev
- * frustum@frustum.org
- * http://frustum.org
- */
- <vertex_local0> parameter0
- /*
- */
- <vertex>
- !!ARBvp1.0
- ATTRIB xyz = vertex.attrib[0];
- PARAM mvp[4] = { state.matrix.mvp };
- PARAM texture[4] = { state.matrix.texture };
- PARAM param = program.local[0];
- DP4 result.position.x, mvp[0], xyz;
- DP4 result.position.y, mvp[1], xyz;
- DP4 result.position.z, mvp[2], xyz;
- DP4 result.position.w, mvp[3], xyz;
- DP4 result.texcoord[0].x, texture[0], xyz;
- DP4 result.texcoord[0].y, texture[1], xyz;
- DP4 result.texcoord[0].z, texture[2], xyz;
- DP4 result.texcoord[0].w, texture[3], xyz;
- MOV result.color, param;
- END
- /*
- */
- <fragment>
- !!ARBfp1.0
- TEMP color;
- TXP color, fragment.texcoord[0], texture[0], 2D;
- MUL result.color, color, fragment.color;
- END