Loving Coding & Visual Design

AGAL笔记

Each register is 128 bits wide, which means that it contains 4 floating point values. Each of these values is called a component of the register.

Register components can be accessed both through the coordinate accessors (xyzw), and through the color accessors (rgba).

Attribute registers: va only available in Vertex Shaders.
Constant registers: vc 128 available to Vertex Shaders, and 28 for Pixel Shaders.
Temporary registers: vt (Vertex Shaders) and ft (Pixel Shaders) 8 temporary registers available
Output registers: op for Vertex Shaders, and oc for Pixel Shaders. only one output register
Varying Registers: v 8 varying registers available.
Texture sampler registers: fs

 is a comma separated set of strings, that defines:

  • texture dimension. Options: 2d, cube

  • mip mapping. Options: nomip (or mipnone , they are the same) , mipnearest, miplinear

  • texture filtering. Options: nearest, linear

  • texture repeat. Options: repeat, wrap, clamp



下一页


最 近 文 章

  1. Unit Test - Mon, 30 Nov -0001 00:00:00 +0000
  2. PHPDoc - Mon, 30 Nov -0001 00:00:00 +0000
  3. yii框架快速入门 - Mon, 30 Nov -0001 00:00:00 +0000
  4. IE下前端开发之痛的根源 - Mon, 30 Nov -0001 00:00:00 +0000
  5. 一些PHP的错误解决办法 - Mon, 30 Nov -0001 00:00:00 +0000
  6. 我看PHP Frameworks - Mon, 30 Nov -0001 00:00:00 +0000
  7. 免费空间已死 - Mon, 30 Nov -0001 00:00:00 +0000
  8. AMD loader - Mon, 30 Nov -0001 00:00:00 +0000
  9. 关于RESTful API - Mon, 30 Nov -0001 00:00:00 +0000
  10. Backbone.js快速入门 - Mon, 30 Nov -0001 00:00:00 +0000