public static glTFCubemapFaceTextureSet[] glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures(JsonNode parsed) { var value = new glTFCubemapFaceTextureSet[parsed.GetArrayCount()]; int i = 0; foreach (var x in parsed.ArrayItems()) { value[i++] = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures_ITEM(x); } return(value); }
private IEnumerator UpdateCubemapFace(glTFCubemapFaceTextureSet src, Cubemap dst, int mipmap, CoroutineSuccessResult result) { var positiveX = _textureGetter(src.cubemapPositiveX.index).Texture; var negativeX = _textureGetter(src.cubemapNegativeX.index).Texture; var positiveY = _textureGetter(src.cubemapPositiveY.index).Texture; var negativeY = _textureGetter(src.cubemapNegativeY.index).Texture; var positiveZ = _textureGetter(src.cubemapPositiveZ.index).Texture; var negativeZ = _textureGetter(src.cubemapNegativeZ.index).Texture; result.Result = false; var faceResult = new CoroutineSuccessResult(); yield return(RenderCubemapFaceTextureCoroutine(positiveX, dst, GltfCubemapFace.PositiveX.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } yield return(RenderCubemapFaceTextureCoroutine(negativeX, dst, GltfCubemapFace.NegativeX.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } yield return(RenderCubemapFaceTextureCoroutine(positiveY, dst, GltfCubemapFace.PositiveY.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } yield return(RenderCubemapFaceTextureCoroutine(negativeY, dst, GltfCubemapFace.NegativeY.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } yield return(RenderCubemapFaceTextureCoroutine(positiveZ, dst, GltfCubemapFace.PositiveZ.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } yield return(RenderCubemapFaceTextureCoroutine(negativeZ, dst, GltfCubemapFace.NegativeZ.ConvertToUnityCubemapFace(), mipmap, faceResult)); if (!faceResult.Result) { yield break; } result.Result = true; }
public static glTFCubemapFaceTextureSet glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures_ITEM(JsonNode parsed) { var value = new glTFCubemapFaceTextureSet(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "cubemapPositiveX") { value.cubemapPositiveX = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveX(kv.Value); continue; } if (key == "cubemapNegativeX") { value.cubemapNegativeX = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeX(kv.Value); continue; } if (key == "cubemapPositiveY") { value.cubemapPositiveY = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveY(kv.Value); continue; } if (key == "cubemapNegativeY") { value.cubemapNegativeY = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeY(kv.Value); continue; } if (key == "cubemapPositiveZ") { value.cubemapPositiveZ = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveZ(kv.Value); continue; } if (key == "cubemapNegativeZ") { value.cubemapNegativeZ = glTF_VCAST_vci_reflectionProbe_Deserializevci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeZ(kv.Value); continue; } } return(value); }
public static glTFCubemapFaceTextureSet glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture(JsonNode parsed) { var value = new glTFCubemapFaceTextureSet(); foreach (var kv in parsed.ObjectItems()) { var key = kv.Key.GetString(); if (key == "cubemapPositiveX") { value.cubemapPositiveX = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapPositiveX(kv.Value); continue; } if (key == "cubemapNegativeX") { value.cubemapNegativeX = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapNegativeX(kv.Value); continue; } if (key == "cubemapPositiveY") { value.cubemapPositiveY = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapPositiveY(kv.Value); continue; } if (key == "cubemapNegativeY") { value.cubemapNegativeY = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapNegativeY(kv.Value); continue; } if (key == "cubemapPositiveZ") { value.cubemapPositiveZ = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapPositiveZ(kv.Value); continue; } if (key == "cubemapNegativeZ") { value.cubemapNegativeZ = glTF_VCAST_vci_location_lighting_Deserializevci_locationLighting_skyboxCubemap_texture_cubemapNegativeZ(kv.Value); continue; } } return(value); }
public static void Serialize_vci_reflectionProbe_cubemap_mipmapTextures_ITEM(JsonFormatter f, glTFCubemapFaceTextureSet value) { f.BeginMap(); if (value.cubemapPositiveX != null) { f.Key("cubemapPositiveX"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveX(f, value.cubemapPositiveX); } if (value.cubemapNegativeX != null) { f.Key("cubemapNegativeX"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeX(f, value.cubemapNegativeX); } if (value.cubemapPositiveY != null) { f.Key("cubemapPositiveY"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveY(f, value.cubemapPositiveY); } if (value.cubemapNegativeY != null) { f.Key("cubemapNegativeY"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeY(f, value.cubemapNegativeY); } if (value.cubemapPositiveZ != null) { f.Key("cubemapPositiveZ"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapPositiveZ(f, value.cubemapPositiveZ); } if (value.cubemapNegativeZ != null) { f.Key("cubemapNegativeZ"); Serialize_vci_reflectionProbe_cubemap_mipmapTextures__cubemapNegativeZ(f, value.cubemapNegativeZ); } f.EndMap(); }
public static void Serialize_vci_locationLighting_skyboxCubemap_texture(JsonFormatter f, glTFCubemapFaceTextureSet value) { f.BeginMap(); if (value.cubemapPositiveX != null) { f.Key("cubemapPositiveX"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveX(f, value.cubemapPositiveX); } if (value.cubemapNegativeX != null) { f.Key("cubemapNegativeX"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeX(f, value.cubemapNegativeX); } if (value.cubemapPositiveY != null) { f.Key("cubemapPositiveY"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveY(f, value.cubemapPositiveY); } if (value.cubemapNegativeY != null) { f.Key("cubemapNegativeY"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeY(f, value.cubemapNegativeY); } if (value.cubemapPositiveZ != null) { f.Key("cubemapPositiveZ"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapPositiveZ(f, value.cubemapPositiveZ); } if (value.cubemapNegativeZ != null) { f.Key("cubemapNegativeZ"); Serialize_vci_locationLighting_skyboxCubemap_texture_cubemapNegativeZ(f, value.cubemapNegativeZ); } f.EndMap(); }