Refactored logic for Attribute and Uniform render variables. Colored square test code now works!