OVRGLTFLoader
(
fileName
)
|
Signature
OVRGLTFLoader.OVRGLTFLoader(string fileName) Parameters fileName: string |
OVRGLTFLoader
(
data
)
|
Signature
OVRGLTFLoader.OVRGLTFLoader(byte[] data) Parameters data: byte[] |
OVRGLTFLoader
(
deferredStream
)
|
Signature
OVRGLTFLoader.OVRGLTFLoader(Func< Stream > deferredStream) Parameters deferredStream: Func< Stream > |
scene
: OVRGLTFScene |
Signature
OVRGLTFScene OVRGLTFLoader.scene |
textureUriHandler
: Func< string, Material, Texture2D > |
Signature
Func<string, Material, Texture2D> OVRGLTFLoader.textureUriHandler |
GLTFToUnitySpace
: readonly Vector3 |
Signature
readonly Vector3 OVRGLTFLoader.GLTFToUnitySpace |
GLTFToUnitySpace_Rotation
: readonly Vector4 |
Signature
readonly Vector4 OVRGLTFLoader.GLTFToUnitySpace_Rotation |
GLTFToUnityTangent
: readonly Vector3 |
Signature
readonly Vector3 OVRGLTFLoader.GLTFToUnityTangent |
LoadGLB
(
supportAnimation
, loadMips
)
|
Signature
OVRGLTFScene OVRGLTFLoader.LoadGLB(bool supportAnimation, bool loadMips=true) Parameters supportAnimation: boolloadMips: boolReturns OVRGLTFScene |
LoadGLBCoroutine
(
supportAnimation
, loadMips
)
|
Signature
IEnumerator OVRGLTFLoader.LoadGLBCoroutine(bool supportAnimation, bool loadMips=true) Parameters supportAnimation: boolloadMips: boolReturns IEnumerator |
SetMipMapBias
(
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"
Signature
void OVRGLTFLoader.SetMipMapBias(float loadedTexturesMipmapBiasing) Parameters loadedTexturesMipmapBiasing: float
The value for bias. Value is clamped between [-1,1]
Returns void |
SetModelAlphaBlendShader
(
shader
)
|
Signature
void OVRGLTFLoader.SetModelAlphaBlendShader(Shader shader) Parameters shader: ShaderReturns void |
SetModelShader
(
shader
)
|
Signature
void OVRGLTFLoader.SetModelShader(Shader shader) Parameters shader: ShaderReturns void |
SetTextureQualityFiltering
(
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.
Signature
void OVRGLTFLoader.SetTextureQualityFiltering(OVRTextureQualityFiltering loadedTexturesQuality) Parameters loadedTexturesQuality: OVRTextureQualityFiltering
The quality setting.
Returns void |
ApplyTextureQuality
(
qualityLevel
, destTexture
)
|
Applies the input Texture Quality setting into the ref Texture2D provided as input.
Texture2D must not be readonly.
Signature
static void OVRGLTFLoader.ApplyTextureQuality(OVRTextureQualityFiltering qualityLevel, ref Texture2D destTexture) Parameters qualityLevel: OVRTextureQualityFiltering
The quality level to apply
destTexture: ref Texture2D
The destination Texture2D to apply quality setting to
Returns void |
DetectTextureQuality
(
srcTexture
)
|
Decodes the Texture Quality setting from the input Texture2D properties' values.
Signature
static OVRTextureQualityFiltering OVRGLTFLoader.DetectTextureQuality(in Texture2D srcTexture) Parameters srcTexture: in Texture2D
The input Texture2D
Returns OVRTextureQualityFiltering
The enum TextureQualityFiltering representing the quality.
|
ReadChunk
(
glbStream
, type
)
|
Signature
static byte[] OVRGLTFLoader.ReadChunk(Stream glbStream, OVRChunkType type) Parameters glbStream: Streamtype: OVRChunkTypeReturns byte[] |
ValidateChunk
(
glbStream
, type
, chunkLength
)
|
Signature
static bool OVRGLTFLoader.ValidateChunk(Stream glbStream, OVRChunkType type, out uint chunkLength) Parameters glbStream: Streamtype: OVRChunkTypechunkLength: out uintReturns bool |
ValidateGLB
(
glbStream
)
|
Signature
static bool OVRGLTFLoader.ValidateGLB(Stream glbStream) Parameters glbStream: StreamReturns bool |