diff --git a/glTF/TextureTestPlane.bin b/glTF/TextureTestPlane.bin new file mode 100644 index 0000000..2397b87 Binary files /dev/null and b/glTF/TextureTestPlane.bin differ diff --git a/glTF/TextureTestPlane.gltf b/glTF/TextureTestPlane.gltf new file mode 100644 index 0000000..bbe3a23 --- /dev/null +++ b/glTF/TextureTestPlane.gltf @@ -0,0 +1,287 @@ +{ + "accessors" : [ + { + "bufferView" : 0, + "componentType" : 5121, + "count" : 6, + "max" : [ + 3 + ], + "min" : [ + 0 + ], + "type" : "SCALAR" + }, + { + "bufferView" : 1, + "componentType" : 5126, + "count" : 4, + "max" : [ + 5.0, + 0.0, + 5.0 + ], + "min" : [ + -5.0, + 0.0, + -5.0 + ], + "type" : "VEC3" + }, + { + "bufferView" : 2, + "componentType" : 5126, + "count" : 4, + "max" : [ + 0.0, + 1.0, + -0.0 + ], + "min" : [ + 0.0, + 1.0, + -0.0 + ], + "type" : "VEC3" + }, + { + "bufferView" : 3, + "componentType" : 5126, + "count" : 4, + "max" : [ + 1.0, + 0.0, + -0.0, + 1.0 + ], + "min" : [ + 1.0, + 0.0, + -0.0, + 1.0 + ], + "type" : "VEC4" + }, + { + "bufferView" : 4, + "componentType" : 5126, + "count" : 4, + "max" : [ + 1.0, + 1.0 + ], + "min" : [ + 0.0, + 0.0 + ], + "type" : "VEC2" + } + ], + "asset" : { + "generator" : "Khronos Blender glTF 2.0 exporter", + "version" : "2.0" + }, + "bufferViews" : [ + { + "buffer" : 0, + "byteLength" : 6, + "byteOffset" : 0, + "target" : 34963 + }, + { + "buffer" : 0, + "byteLength" : 48, + "byteOffset" : 8, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 48, + "byteOffset" : 56, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 64, + "byteOffset" : 104, + "target" : 34962 + }, + { + "buffer" : 0, + "byteLength" : 32, + "byteOffset" : 168, + "target" : 34962 + } + ], + "buffers" : [ + { + "byteLength" : 200, + "uri" : "TextureTestPlane.bin" + } + ], + "cameras" : [ + { + "name" : "Camera", + "perspective" : { + "aspectRatio" : 1.7777777777777777, + "yfov" : 0.5033799372418416, + "zfar" : 100.0, + "znear" : 0.10000000149011612 + }, + "type" : "perspective" + } + ], + "images" : [ + { + "uri" : "TextureTests_TexturePlane_BaseColor.png" + }, + { + "uri" : "TextureTests_TexturePlane_OcclusionRoughMetal.png" + }, + { + "uri" : "TextureTests_TexturePlane_Normal.png" + }, + { + "uri" : "TextureTests_TexturePlane_Emissive.png" + } + ], + "materials" : [ + { + "emissiveFactor" : [ + 1.0, + 1.0, + 1.0 + ], + "emissiveTexture" : { + "index" : 3 + }, + "name" : "Material.001", + "normalTexture" : { + "index" : 2 + }, + "occlusionTexture" : { + "index" : 1 + }, + "pbrMetallicRoughness" : { + "baseColorTexture" : { + "index" : 0 + }, + "metallicRoughnessTexture" : { + "index" : 1 + } + } + } + ], + "meshes" : [ + { + "name" : "Untitled", + "primitives" : [ + { + "attributes" : { + "NORMAL" : 2, + "POSITION" : 1, + "TANGENT" : 3, + "TEXCOORD_0" : 4 + }, + "indices" : 0, + "material" : 0 + } + ] + } + ], + "nodes" : [ + { + "camera" : 0, + "name" : "Correction_Camera", + "rotation" : [ + -0.7071067690849304, + -0.0, + 0.0, + 0.7071067690849304 + ] + }, + { + "children" : [ + 0 + ], + "name" : "Camera", + "rotation" : [ + 0.5896543860435486, + 0.1518314629793167, + -0.09754165261983871, + 0.7872361540794373 + ], + "scale" : [ + 0.9999999403953552, + 1.0, + 1.0 + ], + "translation" : [ + 3.1087565422058105, + 2.4374051094055176, + 7.50246524810791 + ] + }, + { + "name" : "Lamp", + "rotation" : [ + 0.3019924461841583, + 0.23406964540481567, + -0.10707198083400726, + 0.9179039001464844 + ], + "translation" : [ + 1.8232996463775635, + 3.7706217765808105, + 4.171635627746582 + ] + }, + { + "mesh" : 0, + "name" : "TexturePlane", + "rotation" : [ + 0.7071068286895752, + 0.0, + -0.0, + 0.7071067094802856 + ], + "scale" : [ + 0.36814817786216736, + 0.36814817786216736, + 0.36814817786216736 + ] + } + ], + "samplers" : [ + {} + ], + "scene" : 0, + "scenes" : [ + { + "name" : "Scene", + "nodes" : [ + 3, + 2, + 1 + ] + } + ], + "textures" : [ + { + "sampler" : 0, + "source" : 0 + }, + { + "sampler" : 0, + "source" : 1 + }, + { + "sampler" : 0, + "source" : 2 + }, + { + "sampler" : 0, + "source" : 3 + } + ] +} diff --git a/glTF/TextureTests_TexturePlane_BaseColor.png b/glTF/TextureTests_TexturePlane_BaseColor.png new file mode 100644 index 0000000..8b9cae8 Binary files /dev/null and b/glTF/TextureTests_TexturePlane_BaseColor.png differ diff --git a/glTF/TextureTests_TexturePlane_Emissive.png b/glTF/TextureTests_TexturePlane_Emissive.png new file mode 100644 index 0000000..7e138fb Binary files /dev/null and b/glTF/TextureTests_TexturePlane_Emissive.png differ diff --git a/glTF/TextureTests_TexturePlane_Normal.png b/glTF/TextureTests_TexturePlane_Normal.png new file mode 100644 index 0000000..d3f2277 Binary files /dev/null and b/glTF/TextureTests_TexturePlane_Normal.png differ diff --git a/glTF/TextureTests_TexturePlane_OcclusionRoughMetal.png b/glTF/TextureTests_TexturePlane_OcclusionRoughMetal.png new file mode 100644 index 0000000..6a64c06 Binary files /dev/null and b/glTF/TextureTests_TexturePlane_OcclusionRoughMetal.png differ