浏览代码

Improve comments

gam0022 7 年之前
父节点
当前提交
8d5833b288
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      examples/webgl_raymarching_reflect.html

+ 2 - 1
examples/webgl_raymarching_reflect.html

@@ -201,7 +201,7 @@
 
 			void main(void) {
 
-				// fragment position
+				// screen position
 				vec2 screenPos = ( gl_FragCoord.xy * 2.0 - resolution ) / min( resolution.x, resolution.y );
 
 				// convert ray direction from screen coordinate to world coordinate
@@ -211,6 +211,7 @@
 				// camera position
 				vec3 cPos = cameraPosition;
 
+				// cast ray
 				vec3 color = vec3( 0.0 );
 				vec3 pos, normal;
 				bool hit;