Skip to content

ryutorion/ray_tracing_in_webgl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebGLによるレイトレーシング

Peter ShirleyさんによるRay Tracing in One WeekendをWebGL向けに書き換えてみました.

000.html

gl_FragColorからUVを計算する処理までを書いています.

001.html

UVからレイを求める処理までを書いています.

002.html

球を描画する処理までを書いています.

003.html

球の法線を取得する処理までを書いています.

004.html

複数の球を描画する処理までを書いています.

005.html

アンチエイリアスの処理までを書いています. 原著では乱数を使っていましたが,ここでは決まった数の周りの色を見て平均を取る形にしています.

About

Ray Tracing in One WeekendのWebGL版

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages