Beispiel #1
0
 public void Apply(GLTFMaterial.TextureInfo texInfo, Material material, string textureSamplerName)
 {
     material.SetTextureOffset(textureSamplerName, offset);
     // TODO rotation
     material.SetTextureScale(textureSamplerName, scale);
     // TODO texCoord
 }
Beispiel #2
0
                public void Apply(GLTFMaterial.TextureInfo texInfo, Material material, string textureSamplerName)
                {
                    // TODO: check if GLTFObject has extensionUsed/extensionRequired for these extensions

                    if (KHR_texture_transform != null)
                    {
                        KHR_texture_transform.Apply(texInfo, material, textureSamplerName);
                    }
                }