From 539a3ccb1571d5a3ec6f25b06961896fdae5c4f4 Mon Sep 17 00:00:00 2001 From: Trung Le Date: Sun, 14 Feb 2016 15:42:18 -0500 Subject: [PATCH 1/3] [vertex_format] - Initial commit --- samples/vertex_format.html | 368 +++++++++++++++++++++++++++++++++++++ 1 file changed, 368 insertions(+) create mode 100644 samples/vertex_format.html diff --git a/samples/vertex_format.html b/samples/vertex_format.html new file mode 100644 index 0000000..1e9e4d5 --- /dev/null +++ b/samples/vertex_format.html @@ -0,0 +1,368 @@ + + + + + WebGL 2 Samples - vertex_format + + + + + + + +
WebGL 2 Samples - vertex_format
+ + + + + + + + + + + + From a61c0e1ae28e3722d5301fe2b45a8880ea6989b8 Mon Sep 17 00:00:00 2001 From: Trung Le Date: Sun, 14 Feb 2016 19:19:50 -0500 Subject: [PATCH 2/3] [texture_format] - Final implementation --- README.md | 1 + index.html | 3 + samples/geo_vertex_format.html | 417 +++++++++++++++++++++++++++++++++ samples/vertex_format.html | 368 ----------------------------- 4 files changed, 421 insertions(+), 368 deletions(-) create mode 100644 samples/geo_vertex_format.html delete mode 100644 samples/vertex_format.html diff --git a/README.md b/README.md index 0f6efd5..468a9a6 100644 --- a/README.md +++ b/README.md @@ -45,6 +45,7 @@ Inspired by and ported from Christophe Riccio's ([@Groovounet](https://github.co |[fbo_multisample](http://webglsamples.org/WebGL2Samples/#fbo_multisample)|:white_check_mark:|:x: crashed|:x: WebGL: renderbufferStorageMultisample: Multisampling is still under development, and is currently disabled|:x: crashed| |[fbo_new_blend_equation](http://webglsamples.org/WebGL2Samples/#fbo_new_blend_equation)|:white_check_mark:|:grey_question:|:white_check_mark:|:grey_question:| |[buffer_copy](http://webglsamples.org/WebGL2Samples/#buffer_copy)|:white_check_mark:|:grey_question:|:white_check_mark:|:grey_question:| +|[geo_texture_format](http://webglsamples.org/WebGL2Samples/#geo_texture_format)|:grey_question:|:white_check_mark:|:grey_question:|:white_check_mark:| ## Running the Samples Locally diff --git a/index.html b/index.html index 0f3c69c..d1c2a22 100644 --- a/index.html +++ b/index.html @@ -253,6 +253,9 @@

WebGL 2.0 Samples

], "Buffer Objects":[ "buffer_copy" + ], + "Geometry": [ + "geo_vertex_format" ] }; diff --git a/samples/geo_vertex_format.html b/samples/geo_vertex_format.html new file mode 100644 index 0000000..8259211 --- /dev/null +++ b/samples/geo_vertex_format.html @@ -0,0 +1,417 @@ + + + + + WebGL 2 Samples - geo_vertex_format + + + + + + + +
WebGL 2 Samples - geo_vertex_format
+
This sample demonstrates the use of different vertex formats. gl.SHORT for normals attribute and gl.UNSIGNED_BYTE for colors attribute. + + + + + + + + + + + + diff --git a/samples/vertex_format.html b/samples/vertex_format.html deleted file mode 100644 index 1e9e4d5..0000000 --- a/samples/vertex_format.html +++ /dev/null @@ -1,368 +0,0 @@ - - - - - WebGL 2 Samples - vertex_format - - - - - - - -
WebGL 2 Samples - vertex_format
- - - - - - - - - - - - From e68396e5d5f5670a8f0d47ed59c6c82a9eee79fb Mon Sep 17 00:00:00 2001 From: Trung Le Date: Sun, 14 Feb 2016 19:25:48 -0500 Subject: [PATCH 3/3] [vertex_format] - Updated small comment detail --- samples/geo_vertex_format.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/geo_vertex_format.html b/samples/geo_vertex_format.html index 8259211..c47b797 100644 --- a/samples/geo_vertex_format.html +++ b/samples/geo_vertex_format.html @@ -398,7 +398,7 @@ // For long running process, resources will need to be deleted to avoid // the process from bogging down. // This code is included here to give a general idea of how to clean up - // resources in WebGL. Do not uncomment directly, you should only handle + // resources in WebGL for this sample. Do not uncomment directly, you should only handle // cleaning up resources outside of the animation loop. // // gl.deleteBuffer(vertexPosBuffer);