ambient.shader
上传用户:qccn516
上传日期:2013-05-02
资源大小:3382k
文件大小:0k
- /* ambient shader
- *
- * written by Alexander Zaprjagaev
- * frustum@frustum.org
- * http://frustum.org
- */
- <vertex>
- !!ARBvp1.0
- ATTRIB xyz = vertex.attrib[0];
- ATTRIB st = vertex.attrib[4];
- PARAM mvp[4] = { state.matrix.mvp };
- 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;
- MOV result.texcoord, st;
- MOV result.color, 0.2;
- END
- <fragment>
- !!ARBtec1.0
- modulate texture primary
- END