API reference
API reference
Select your platform
No SDKs available
No versions available

OVRGLTFLoader Class

Overview

Data Fields

scene[Get]
Func< string, Material, Texture2D >

Static Fields

static readonly Vector3
static readonly Vector3
static readonly Vector4

Public Member Functions

OVRGLTFLoader
( string fileName )
OVRGLTFLoader
( byte[] data )
OVRGLTFLoader
( Func< Stream > deferredStream )
LoadGLB
( bool supportAnimation,
bool loadMips )
IEnumerator
LoadGLBCoroutine
( bool supportAnimation,
bool loadMips )
void
SetModelShader
( Shader shader )
void
SetModelAlphaBlendShader
( Shader shader )
void
SetTextureQualityFiltering
( OVRTextureQualityFiltering loadedTexturesQuality )
All textures in the glb will be loaded with the following setting.
void
SetMipMapBias
( float loadedTexturesMipmapBiasing )
All textures in the glb will be preset with this MipMap value.

Static Public Member Functions

static OVRTextureQualityFiltering
DetectTextureQuality
( in Texture2D srcTexture )
Decodes the Texture Quality setting from the input Texture2D properties' values.
static void
ApplyTextureQuality
( OVRTextureQualityFiltering qualityLevel,
ref Texture2D destTexture )
Applies the input Texture Quality setting into the ref Texture2D provided as input.
static bool
ValidateGLB
( Stream glbStream )
static byte[]
ReadChunk
( Stream glbStream,
OVRChunkType type )
static bool
ValidateChunk
( Stream glbStream,
OVRChunkType type,
out uint chunkLength )

Details

Fields

OVRGLTFScene OVRGLTFLoader.scene
No description available.
Func<string, Material, Texture2D> OVRGLTFLoader.textureUriHandler
No description available.

Public Statics

readonly Vector3 OVRGLTFLoader.GLTFToUnitySpace
No description available.
readonly Vector3 OVRGLTFLoader.GLTFToUnityTangent
No description available.
readonly Vector4 OVRGLTFLoader.GLTFToUnitySpace_Rotation
No description available.

Member Functions

OVRGLTFLoader.OVRGLTFLoader
( string fileName )
No description available.
OVRGLTFLoader.OVRGLTFLoader
( byte[] data )
No description available.
OVRGLTFLoader.OVRGLTFLoader
( Func< Stream > deferredStream )
No description available.
OVRGLTFScene OVRGLTFLoader.LoadGLB
( bool supportAnimation,
bool loadMips )
No description available.
IEnumerator OVRGLTFLoader.LoadGLBCoroutine
( bool supportAnimation,
bool loadMips )
No description available.
void OVRGLTFLoader.SetModelShader
( Shader shader )
No description available.
void OVRGLTFLoader.SetModelAlphaBlendShader
( Shader shader )
No description available.
void OVRGLTFLoader.SetTextureQualityFiltering
( OVRTextureQualityFiltering loadedTexturesQuality )
All textures in the glb will be loaded with the following setting.
The default is Bilinear. Once loaded, textures will be read-only on GPU memory.
Parameters
loadedTexturesQuality
The quality setting.
void OVRGLTFLoader.SetMipMapBias
( float loadedTexturesMipmapBiasing )
All textures in the glb will be preset with this MipMap value.
The default is 0. Only supported when MipMaps are loaded and the provided shader has a property named "_MainTexMMBias"
Parameters
loadedTexturesMipmapBiasing
The value for bias. Value is clamped between [-1,1]

Static Member Functions

static OVRTextureQualityFiltering OVRGLTFLoader.DetectTextureQuality
( in Texture2D srcTexture )
Decodes the Texture Quality setting from the input Texture2D properties' values.
Parameters
srcTexture
The input Texture2D
Returns
The enum TextureQualityFiltering representing the quality.
static void OVRGLTFLoader.ApplyTextureQuality
( OVRTextureQualityFiltering qualityLevel,
ref Texture2D destTexture )
Applies the input Texture Quality setting into the ref Texture2D provided as input.
Texture2D must not be readonly.
Parameters
qualityLevel
The quality level to apply
destTexture
The destination Texture2D to apply quality setting to
static bool OVRGLTFLoader.ValidateGLB
( Stream glbStream )
No description available.
static byte[] OVRGLTFLoader.ReadChunk
( Stream glbStream,
OVRChunkType type )
No description available.
static bool OVRGLTFLoader.ValidateChunk
( Stream glbStream,
OVRChunkType type,
out uint chunkLength )
No description available.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon