Browse Source

Improve comments

gam0022 7 years ago
parent
commit
8d5833b288
1 changed files with 2 additions and 1 deletions
  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;