├── README.md ├── basic ├── basic.c ├── basic_a64.png ├── basic_b64.png ├── basic_c64.png ├── basic_final.png ├── basic_varyingn.png ├── basic_varyingsampling.png ├── beerlambert.c ├── beerlambert.png ├── beerlambert_color.c ├── beerlambert_color.png ├── beerlambert_montage.png ├── box.png ├── box.tex ├── capsule.png ├── capsule.tex ├── csg.c ├── csg.png ├── csg_final.png ├── csg_intersect.png ├── csg_ops.png ├── csg_scene.png ├── csg_subtract1.png ├── csg_subtract2.png ├── csg_union.png ├── fresnel.c ├── fresnel_box.png ├── fresnel_concavelens.png ├── fresnel_convexlens.png ├── fresnel_montage.png ├── fresnel_semicircular.png ├── heart.c ├── heart.png ├── linesegmentpointdistance.png ├── linesegmentpointdistance.tex ├── m.c ├── m.png ├── m2.c ├── m2.png ├── makefile ├── reflection.c ├── reflection_box.png ├── reflection_boxgradient.png ├── reflection_boxscene.png ├── reflection_concavemirror.png ├── refraction.c ├── refraction_box.png ├── refraction_concavelens.png ├── refraction_convexlens.png ├── refraction_montage.png ├── refraction_semicircular.png ├── shapes.c ├── shapes.png ├── shapes_box.png ├── shapes_capsule.png ├── shapes_circle.png ├── shapes_plane.png ├── shapes_roundedbox.png ├── shapes_roundedtriangle.png ├── shapes_semicircle.png ├── shapes_triangle.png ├── snellslaw.png ├── snellslaw.tex ├── svpng.inc ├── vector_fresnel.png ├── vector_fresnel.tex ├── vector_reflect.png ├── vector_reflect.tex ├── vector_refract.png └── vector_refract.tex /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/README.md -------------------------------------------------------------------------------- /basic: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic -------------------------------------------------------------------------------- /basic.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic.c -------------------------------------------------------------------------------- /basic_a64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_a64.png -------------------------------------------------------------------------------- /basic_b64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_b64.png -------------------------------------------------------------------------------- /basic_c64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_c64.png -------------------------------------------------------------------------------- /basic_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_final.png -------------------------------------------------------------------------------- /basic_varyingn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_varyingn.png -------------------------------------------------------------------------------- /basic_varyingsampling.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/basic_varyingsampling.png -------------------------------------------------------------------------------- /beerlambert.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/beerlambert.c -------------------------------------------------------------------------------- /beerlambert.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/beerlambert.png -------------------------------------------------------------------------------- /beerlambert_color.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/beerlambert_color.c -------------------------------------------------------------------------------- /beerlambert_color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/beerlambert_color.png -------------------------------------------------------------------------------- /beerlambert_montage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/beerlambert_montage.png -------------------------------------------------------------------------------- /box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/box.png -------------------------------------------------------------------------------- /box.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/box.tex -------------------------------------------------------------------------------- /capsule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/capsule.png -------------------------------------------------------------------------------- /capsule.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/capsule.tex -------------------------------------------------------------------------------- /csg.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg.c -------------------------------------------------------------------------------- /csg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg.png -------------------------------------------------------------------------------- /csg_final.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_final.png -------------------------------------------------------------------------------- /csg_intersect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_intersect.png -------------------------------------------------------------------------------- /csg_ops.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_ops.png -------------------------------------------------------------------------------- /csg_scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_scene.png -------------------------------------------------------------------------------- /csg_subtract1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_subtract1.png -------------------------------------------------------------------------------- /csg_subtract2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_subtract2.png -------------------------------------------------------------------------------- /csg_union.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/csg_union.png -------------------------------------------------------------------------------- /fresnel.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel.c -------------------------------------------------------------------------------- /fresnel_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel_box.png -------------------------------------------------------------------------------- /fresnel_concavelens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel_concavelens.png -------------------------------------------------------------------------------- /fresnel_convexlens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel_convexlens.png -------------------------------------------------------------------------------- /fresnel_montage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel_montage.png -------------------------------------------------------------------------------- /fresnel_semicircular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/fresnel_semicircular.png -------------------------------------------------------------------------------- /heart.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/heart.c -------------------------------------------------------------------------------- /heart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/heart.png -------------------------------------------------------------------------------- /linesegmentpointdistance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/linesegmentpointdistance.png -------------------------------------------------------------------------------- /linesegmentpointdistance.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/linesegmentpointdistance.tex -------------------------------------------------------------------------------- /m.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/m.c -------------------------------------------------------------------------------- /m.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/m.png -------------------------------------------------------------------------------- /m2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/m2.c -------------------------------------------------------------------------------- /m2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/m2.png -------------------------------------------------------------------------------- /makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/makefile -------------------------------------------------------------------------------- /reflection.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/reflection.c -------------------------------------------------------------------------------- /reflection_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/reflection_box.png -------------------------------------------------------------------------------- /reflection_boxgradient.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/reflection_boxgradient.png -------------------------------------------------------------------------------- /reflection_boxscene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/reflection_boxscene.png -------------------------------------------------------------------------------- /reflection_concavemirror.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/reflection_concavemirror.png -------------------------------------------------------------------------------- /refraction.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction.c -------------------------------------------------------------------------------- /refraction_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction_box.png -------------------------------------------------------------------------------- /refraction_concavelens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction_concavelens.png -------------------------------------------------------------------------------- /refraction_convexlens.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction_convexlens.png -------------------------------------------------------------------------------- /refraction_montage.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction_montage.png -------------------------------------------------------------------------------- /refraction_semicircular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/refraction_semicircular.png -------------------------------------------------------------------------------- /shapes.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes.c -------------------------------------------------------------------------------- /shapes.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes.png -------------------------------------------------------------------------------- /shapes_box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_box.png -------------------------------------------------------------------------------- /shapes_capsule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_capsule.png -------------------------------------------------------------------------------- /shapes_circle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_circle.png -------------------------------------------------------------------------------- /shapes_plane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_plane.png -------------------------------------------------------------------------------- /shapes_roundedbox.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_roundedbox.png -------------------------------------------------------------------------------- /shapes_roundedtriangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_roundedtriangle.png -------------------------------------------------------------------------------- /shapes_semicircle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_semicircle.png -------------------------------------------------------------------------------- /shapes_triangle.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/shapes_triangle.png -------------------------------------------------------------------------------- /snellslaw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/snellslaw.png -------------------------------------------------------------------------------- /snellslaw.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/snellslaw.tex -------------------------------------------------------------------------------- /svpng.inc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/svpng.inc -------------------------------------------------------------------------------- /vector_fresnel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_fresnel.png -------------------------------------------------------------------------------- /vector_fresnel.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_fresnel.tex -------------------------------------------------------------------------------- /vector_reflect.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_reflect.png -------------------------------------------------------------------------------- /vector_reflect.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_reflect.tex -------------------------------------------------------------------------------- /vector_refract.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_refract.png -------------------------------------------------------------------------------- /vector_refract.tex: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/miloyip/light2d/HEAD/vector_refract.tex --------------------------------------------------------------------------------