aframe-html-shader
aframe-html-shader copied to clipboard
Added fallback check to geometry width/height ratio calculation
This pull request would address #6 – geometry.parameters is undefined in A-Frame >= 0.3.2, so I added a check for geometry.metadata.parameters beforehand that resolves to whichever version of the property is available (to cover both versions).
@wosevision thank you for this PR. I just fixed conflicts. @ngokevin do you mind to review this?