예제 #1
0
        public static void ExportTextureTransform(ShadingShiftTextureInfo textureInfo, Vector2 unityScale, Vector2 unityOffset)
        {
            // Generate extension to empty holder.
            var gltfTextureInfo = new EmptyGltfTextureInfo();

            ExportTextureTransform(gltfTextureInfo, unityScale, unityOffset);

            // Copy extension from empty holder.
            textureInfo.Extensions = gltfTextureInfo.extensions;
        }
예제 #2
0
            public Vrm10TextureInfo(ShadingShiftTextureInfo info)
            {
                if (info == null)
                {
                    return;
                }

                index      = info.Index ?? -1;
                texCoord   = info.TexCoord ?? -1;
                extensions = info.Extensions as glTFExtension;
                extras     = info.Extras as glTFExtension;
            }