Use custom varyings for building parameters.

Use custom varyings for building parameters. Fix integer attribute definitions.