Browse Source

Remove glTF1.0 duck.

Don McCurdy 8 years ago
parent
commit
0aae8dce34

+ 0 - 7
examples/models/gltf/duck/README.txt

@@ -1,7 +0,0 @@
-Copyright 2006 Sony Computer Entertainment Inc.
-
-Licensed under the SCEA Shared Source License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at:
-
-http://research.scea.com/scea_shared_source_license.html
-
-Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

BIN
examples/models/gltf/duck/glTF-Binary/duck.glb


BIN
examples/models/gltf/duck/glTF-MaterialsCommon/duck.bin


+ 0 - 291
examples/models/gltf/duck/glTF-MaterialsCommon/duck.gltf

@@ -1,291 +0,0 @@
-{
-    "accessors": {
-        "accessor_21": {
-            "bufferView": "bufferView_29",
-            "byteOffset": 0,
-            "byteStride": 0,
-            "componentType": 5123,
-            "count": 12636,
-            "type": "SCALAR"
-        },
-        "accessor_23": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 0,
-            "byteStride": 12,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.961799,
-                1.6397,
-                0.539252
-            ],
-            "min": [
-                -0.692985,
-                0.0992937,
-                -0.613282
-            ],
-            "type": "VEC3"
-        },
-        "accessor_25": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 28788,
-            "byteStride": 12,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.999599,
-                0.999581,
-                0.998436
-            ],
-            "min": [
-                -0.999084,
-                -1,
-                -0.999832
-            ],
-            "type": "VEC3"
-        },
-        "accessor_27": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 57576,
-            "byteStride": 8,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.983346,
-                0.980037
-            ],
-            "min": [
-                0.026409,
-                0.019963
-            ],
-            "type": "VEC2"
-        }
-    },
-    "animations": {},
-    "asset": {
-        "generator": "collada2gltf@cf6371beb0bdc18ba603378d5e40c966da53d385",
-        "premultipliedAlpha": true,
-        "profile": {
-            "api": "WebGL",
-            "version": "1.0.2"
-        },
-        "version": "1.0"
-    },
-    "bufferViews": {
-        "bufferView_29": {
-            "buffer": "duck",
-            "byteLength": 25272,
-            "byteOffset": 0,
-            "target": 34963
-        },
-        "bufferView_30": {
-            "buffer": "duck",
-            "byteLength": 76768,
-            "byteOffset": 25272,
-            "target": 34962
-        }
-    },
-    "buffers": {
-        "duck": {
-            "byteLength": 102040,
-            "type": "arraybuffer",
-            "uri": "duck.bin"
-        }
-    },
-    "cameras": {
-        "cameraShape1": {
-            "name": "cameraShape1",
-            "perspective": {
-                "aspect_ratio": 1.5,
-                "yfov": 0.660593,
-                "zfar": 100,
-                "znear": 0.01
-            },
-            "type": "perspective"
-        }
-    },
-    "extensions": {
-        "KHR_materials_common": {
-            "lights": {
-                "directionalLightShape1-lib": {
-                    "directional": {
-                        "color": [
-                            1,
-                            1,
-                            1
-                        ]
-                    },
-                    "name": "directionalLightShape1",
-                    "type": "directional"
-                }
-            }
-        }
-    },
-    "extensionsUsed": [
-        "KHR_materials_common"
-    ],
-    "images": {
-        "file2": {
-            "name": "file2",
-            "uri": "duckCM.png"
-        }
-    },
-    "materials": {
-        "blinn3-fx": {
-            "extensions": {
-                "KHR_materials_common": {
-                    "doubleSided": false,
-                    "jointCount": 0,
-                    "technique": "BLINN",
-                    "transparent": false,
-                    "values": {
-                        "ambient": [
-                            0,
-                            0,
-                            0,
-                            1
-                        ],
-                        "diffuse": "texture_file2",
-                        "emission": [
-                            0,
-                            0,
-                            0,
-                            1
-                        ],
-                        "shininess": 38.4,
-                        "specular": [
-                            0,
-                            0,
-                            0,
-                            1
-                        ]
-                    }
-                }
-            },
-            "name": "blinn3"
-        }
-    },
-    "meshes": {
-        "LOD3spShape-lib": {
-            "name": "LOD3spShape",
-            "primitives": [
-                {
-                    "attributes": {
-                        "NORMAL": "accessor_25",
-                        "POSITION": "accessor_23",
-                        "TEXCOORD_0": "accessor_27"
-                    },
-                    "indices": "accessor_21",
-                    "material": "blinn3-fx",
-                    "mode": 4
-                }
-            ]
-        }
-    },
-    "nodes": {
-        "LOD3sp": {
-            "children": [],
-            "matrix": [
-                1,
-                0,
-                0,
-                0,
-                0,
-                1,
-                0,
-                0,
-                0,
-                0,
-                1,
-                0,
-                0,
-                0,
-                0,
-                1
-            ],
-            "meshes": [
-                "LOD3spShape-lib"
-            ],
-            "name": "LOD3sp"
-        },
-        "camera1": {
-            "camera": "cameraShape1",
-            "children": [],
-            "matrix": [
-                -0.728969,
-                0,
-                -0.684547,
-                0,
-                -0.425205,
-                0.783693,
-                0.452797,
-                0,
-                0.536475,
-                0.621148,
-                -0.571288,
-                0,
-                4.00113,
-                4.63264,
-                -4.31078,
-                1
-            ],
-            "name": "camera1"
-        },
-        "directionalLight1": {
-            "children": [],
-            "extensions": {
-                "KHR_materials_common": {
-                    "light": "directionalLightShape1-lib"
-                }
-            },
-            "matrix": [
-                -0.954692,
-                0.218143,
-                -0.202429,
-                0,
-                0.014672,
-                0.713885,
-                0.700109,
-                0,
-                0.297235,
-                0.665418,
-                -0.684741,
-                0,
-                1.48654,
-                1.83672,
-                -2.92179,
-                1
-            ],
-            "name": "directionalLight1"
-        }
-    },
-    "samplers": {
-        "sampler_0": {
-            "magFilter": 9729,
-            "minFilter": 9987,
-            "wrapS": 10497,
-            "wrapT": 10497
-        }
-    },
-    "scene": "defaultScene",
-    "scenes": {
-        "defaultScene": {
-            "nodes": [
-                "LOD3sp",
-                "camera1",
-                "directionalLight1"
-            ]
-        }
-    },
-    "skins": {},
-    "textures": {
-        "texture_file2": {
-            "format": 6408,
-            "internalFormat": 6408,
-            "sampler": "sampler_0",
-            "source": "file2",
-            "target": 3553,
-            "type": 5121
-        }
-    }
-}

BIN
examples/models/gltf/duck/glTF-MaterialsCommon/duckCM.png


BIN
examples/models/gltf/duck/glTF/duck.bin


+ 0 - 362
examples/models/gltf/duck/glTF/duck.gltf

@@ -1,362 +0,0 @@
-{
-    "accessors": {
-        "accessor_21": {
-            "bufferView": "bufferView_29",
-            "byteOffset": 0,
-            "byteStride": 0,
-            "componentType": 5123,
-            "count": 12636,
-            "type": "SCALAR"
-        },
-        "accessor_23": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 0,
-            "byteStride": 12,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.961799,
-                1.6397,
-                0.539252
-            ],
-            "min": [
-                -0.692985,
-                0.0992937,
-                -0.613282
-            ],
-            "type": "VEC3"
-        },
-        "accessor_25": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 28788,
-            "byteStride": 12,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.999599,
-                0.999581,
-                0.998436
-            ],
-            "min": [
-                -0.999084,
-                -1,
-                -0.999832
-            ],
-            "type": "VEC3"
-        },
-        "accessor_27": {
-            "bufferView": "bufferView_30",
-            "byteOffset": 57576,
-            "byteStride": 8,
-            "componentType": 5126,
-            "count": 2399,
-            "max": [
-                0.983346,
-                0.980037
-            ],
-            "min": [
-                0.026409,
-                0.019963
-            ],
-            "type": "VEC2"
-        }
-    },
-    "animations": {},
-    "asset": {
-        "generator": "collada2gltf@ceec062e3d5793f2f249f53cbd843aee382ad40b",
-        "premultipliedAlpha": true,
-        "profile": {
-            "api": "WebGL",
-            "version": "1.0.2"
-        },
-        "version": 1
-    },
-    "bufferViews": {
-        "bufferView_29": {
-            "buffer": "duck",
-            "byteLength": 25272,
-            "byteOffset": 0,
-            "target": 34963
-        },
-        "bufferView_30": {
-            "buffer": "duck",
-            "byteLength": 76768,
-            "byteOffset": 25272,
-            "target": 34962
-        }
-    },
-    "buffers": {
-        "duck": {
-            "byteLength": 102040,
-            "type": "arraybuffer",
-            "uri": "duck.bin"
-        }
-    },
-    "cameras": {
-        "cameraShape1": {
-            "name": "cameraShape1",
-            "perspective": {
-                "aspect_ratio": 1.5,
-                "yfov": 0.660593,
-                "zfar": 100,
-                "znear": 0.01
-            },
-            "type": "perspective"
-        }
-    },
-    "images": {
-        "file2": {
-            "name": "file2",
-            "uri": "duckCM.png"
-        }
-    },
-    "materials": {
-        "blinn3-fx": {
-            "name": "blinn3",
-            "technique": "technique0",
-            "values": {
-                "ambient": [
-                    0,
-                    0,
-                    0,
-                    1
-                ],
-                "diffuse": "texture_file2",
-                "emission": [
-                    0,
-                    0,
-                    0,
-                    1
-                ],
-                "shininess": 38.4,
-                "specular": [
-                    0,
-                    0,
-                    0,
-                    1
-                ]
-            }
-        }
-    },
-    "meshes": {
-        "LOD3spShape-lib": {
-            "name": "LOD3spShape",
-            "primitives": [
-                {
-                    "attributes": {
-                        "NORMAL": "accessor_25",
-                        "POSITION": "accessor_23",
-                        "TEXCOORD_0": "accessor_27"
-                    },
-                    "indices": "accessor_21",
-                    "material": "blinn3-fx",
-                    "mode": 4
-                }
-            ]
-        }
-    },
-    "nodes": {
-        "LOD3sp": {
-            "children": [],
-            "matrix": [
-                1,
-                0,
-                0,
-                0,
-                0,
-                1,
-                0,
-                0,
-                0,
-                0,
-                1,
-                0,
-                0,
-                0,
-                0,
-                1
-            ],
-            "meshes": [
-                "LOD3spShape-lib"
-            ],
-            "name": "LOD3sp"
-        },
-        "camera1": {
-            "camera": "cameraShape1",
-            "children": [],
-            "matrix": [
-                -0.728969,
-                0,
-                -0.684547,
-                0,
-                -0.425205,
-                0.783693,
-                0.452797,
-                0,
-                0.536475,
-                0.621148,
-                -0.571288,
-                0,
-                4.00113,
-                4.63264,
-                -4.31078,
-                1
-            ],
-            "name": "camera1"
-        },
-        "directionalLight1": {
-            "children": [],
-            "matrix": [
-                -0.954692,
-                0.218143,
-                -0.202429,
-                0,
-                0.014672,
-                0.713885,
-                0.700109,
-                0,
-                0.297235,
-                0.665418,
-                -0.684741,
-                0,
-                1.48654,
-                1.83672,
-                -2.92179,
-                1
-            ],
-            "name": "directionalLight1"
-        }
-    },
-    "programs": {
-        "program_0": {
-            "attributes": [
-                "a_normal",
-                "a_position",
-                "a_texcoord0"
-            ],
-            "fragmentShader": "duck0FS",
-            "vertexShader": "duck0VS"
-        }
-    },
-    "samplers": {
-        "sampler_0": {
-            "magFilter": 9729,
-            "minFilter": 9987,
-            "wrapS": 10497,
-            "wrapT": 10497
-        }
-    },
-    "scene": "defaultScene",
-    "scenes": {
-        "defaultScene": {
-            "nodes": [
-                "LOD3sp",
-                "camera1",
-                "directionalLight1"
-            ]
-        }
-    },
-    "shaders": {
-        "duck0FS": {
-            "type": 35632,
-            "uri": "duck0FS.glsl"
-        },
-        "duck0VS": {
-            "type": 35633,
-            "uri": "duck0VS.glsl"
-        }
-    },
-    "skins": {},
-    "techniques": {
-        "technique0": {
-            "attributes": {
-                "a_normal": "normal",
-                "a_position": "position",
-                "a_texcoord0": "texcoord0"
-            },
-            "parameters": {
-                "ambient": {
-                    "type": 35666
-                },
-                "diffuse": {
-                    "type": 35678
-                },
-                "emission": {
-                    "type": 35666
-                },
-                "light0Color": {
-                    "type": 35665,
-                    "value": [
-                        1,
-                        1,
-                        1
-                    ]
-                },
-                "light0Transform": {
-                    "node": "directionalLight1",
-                    "semantic": "MODELVIEW",
-                    "type": 35676
-                },
-                "modelViewMatrix": {
-                    "semantic": "MODELVIEW",
-                    "type": 35676
-                },
-                "normal": {
-                    "semantic": "NORMAL",
-                    "type": 35665
-                },
-                "normalMatrix": {
-                    "semantic": "MODELVIEWINVERSETRANSPOSE",
-                    "type": 35675
-                },
-                "position": {
-                    "semantic": "POSITION",
-                    "type": 35665
-                },
-                "projectionMatrix": {
-                    "semantic": "PROJECTION",
-                    "type": 35676
-                },
-                "shininess": {
-                    "type": 5126
-                },
-                "specular": {
-                    "type": 35666
-                },
-                "texcoord0": {
-                    "semantic": "TEXCOORD_0",
-                    "type": 35664
-                }
-            },
-            "program": "program_0",
-            "states": {
-                "enable": [
-                    2929,
-                    2884
-                ]
-            },
-            "uniforms": {
-                "u_ambient": "ambient",
-                "u_diffuse": "diffuse",
-                "u_emission": "emission",
-                "u_light0Color": "light0Color",
-                "u_light0Transform": "light0Transform",
-                "u_modelViewMatrix": "modelViewMatrix",
-                "u_normalMatrix": "normalMatrix",
-                "u_projectionMatrix": "projectionMatrix",
-                "u_shininess": "shininess",
-                "u_specular": "specular"
-            }
-        }
-    },
-    "textures": {
-        "texture_file2": {
-            "format": 6408,
-            "internalFormat": 6408,
-            "sampler": "sampler_0",
-            "source": "file2",
-            "target": 3553,
-            "type": 5121
-        }
-    }
-}

+ 0 - 42
examples/models/gltf/duck/glTF/duck0FS.glsl

@@ -1,42 +0,0 @@
-precision highp float;
-varying vec3 v_normal;
-uniform vec4 u_ambient;
-varying vec2 v_texcoord0;
-uniform sampler2D u_diffuse;
-uniform vec4 u_emission;
-uniform vec4 u_specular;
-uniform float u_shininess;
-varying vec3 v_light0Direction;
-varying vec3 v_position;
-uniform vec3 u_light0Color;
-void main(void) {
-vec3 normal = normalize(v_normal);
-vec4 color = vec4(0., 0., 0., 0.);
-vec4 diffuse = vec4(0., 0., 0., 1.);
-vec3 diffuseLight = vec3(0., 0., 0.);
-vec4 emission;
-vec4 ambient;
-vec4 specular;
-ambient = u_ambient;
-diffuse = texture2D(u_diffuse, v_texcoord0);
-emission = u_emission;
-specular = u_specular;
-vec3 specularLight = vec3(0., 0., 0.);
-{
-float specularIntensity = 0.;
-float attenuation = 1.0;
-vec3 l = normalize(v_light0Direction);
-vec3 viewDir = -normalize(v_position);
-vec3 h = normalize(l+viewDir);
-specularIntensity = max(0., pow(max(dot(normal,h), 0.) , u_shininess)) * attenuation;
-specularLight += u_light0Color * specularIntensity;
-diffuseLight += u_light0Color * max(dot(normal,l), 0.) * attenuation;
-}
-specular.xyz *= specularLight;
-color.xyz += specular.xyz;
-diffuse.xyz *= diffuseLight;
-color.xyz += diffuse.xyz;
-color.xyz += emission.xyz;
-color = vec4(color.rgb * diffuse.a, diffuse.a);
-gl_FragColor = color;
-}

+ 0 - 20
examples/models/gltf/duck/glTF/duck0VS.glsl

@@ -1,20 +0,0 @@
-precision highp float;
-attribute vec3 a_position;
-attribute vec3 a_normal;
-varying vec3 v_normal;
-uniform mat3 u_normalMatrix;
-uniform mat4 u_modelViewMatrix;
-uniform mat4 u_projectionMatrix;
-attribute vec2 a_texcoord0;
-varying vec2 v_texcoord0;
-varying vec3 v_light0Direction;
-varying vec3 v_position;
-uniform mat4 u_light0Transform;
-void main(void) {
-vec4 pos = u_modelViewMatrix * vec4(a_position,1.0);
-v_normal = u_normalMatrix * a_normal;
-v_texcoord0 = a_texcoord0;
-v_position = pos.xyz;
-v_light0Direction = mat3(u_light0Transform) * vec3(0.,0.,1.);
-gl_Position = u_projectionMatrix * pos;
-}

BIN
examples/models/gltf/duck/glTF/duckCM.png