Added in the form factor, fixed the artifacts with writing to the buffer... but it's still weird. Going to try making sure that hemisphere sampling actually works.