added logic to test relativity in webgl rendering