/webgl

some experiments with GLSL in WebGL

Primary LanguageHTMLCreative Commons Zero v1.0 UniversalCC0-1.0

webgl - some GLSL experiments in WebGL
Written in 2013 by <Ahmet Inan> <xdsopl@googlemail.com>
To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.
You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see <http://creativecommons.org/publicdomain/zero/1.0/>.

just open the *.html files in your WebGL capable Browser!

for the loading of images to work, you must put the images and html files on a webserver, as opening file:// from javascript is prohibited.

examples:
https://rawgithub.com/xdsopl/webgl/master/mandelbrot.html
https://rawgithub.com/xdsopl/webgl/master/srgb.html
https://rawgithub.com/xdsopl/webgl/master/raytracing.html
https://rawgithub.com/xdsopl/webgl/master/isosurface.html
https://rawgithub.com/xdsopl/webgl/master/panorama.html
https://rawgithub.com/xdsopl/webgl/master/cubemap.html

panorama.jpg is downsampled using my "panorama" tool.
got original panorama image (Creative Commons Attribution 3.0 Unported License) from here:
http://www.hdri-hub.com/hdrishop/freesamples/freehdri/item/116-hdr-040-field-free

cubemap/{pos,neg}{x,y,z}.jpg are downscaled via "convert -scale 128x128".
got original cubemap image (Creative Commons Attribution 3.0 Unported License) from here:
http://www.humus.name/index.php?page=Textures&ID=112