Skip to content

tiansijie/hemisphere-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hemisphere-sample

Hemisphere Sampling(uniform and cosinus) using hammersley point set

Install

npm install hemisphere-sample

Usage

import {hemisphereSampleUniform, hemisphereSampleCos} from "hemisphere-sample";

for(let i = 0; i < 256; ++i) {
	const uniform = hemisphereSampleUniform(i, 256);
	const cos = hemisphereSampleCos(i, 256);
	// result is an array
	// [v1, v2, v3]
}

See also

http://holger.dammertz.org/stuff/notes_HammersleyOnHemisphere.html

License

MIT

About

Uniform and cosinus hemisphere sampling using hammersley point set

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published