- attribute unsigned char a_x;
- attribute unsigned char a_z;
- uniform vec2 u_vOffset;
- uniform float u_fStepsize;
- void main(void)
- {
- vec3 vPos;
- vPos.x = u_vOffset.x + float(a_x) * u_fStepsize;
- vPos.z = u_vOffset.y + float(a_z) * u_fStepsize;
- // ...
- }
GLSL: (unsigned) char Datentyp?Moderator: DGL-Team
|