This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>WebVR on Hololens</title> | |
<script src="https://aframe.io/releases/0.8.0/aframe.min.js"></script> | |
<script type="javascript"> | |
</script> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void ConfigureServices(IServiceCollection services) | |
{ | |
services.Configure<CookiePolicyOptions>(options => | |
{ | |
// This lambda determines whether user consent for non-essential cookies is needed for a given request. | |
options.CheckConsentNeeded = context => true; | |
options.MinimumSameSitePolicy = SameSiteMode.None; | |
}); | |
services.AddAuthentication(AzureADDefaults.AuthenticationScheme) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
res.res = await app.AcquireTokenWithDeviceCodeAsync(scopes, string.Empty, | |
deviceCodeCallback => | |
{ | |
// This will print the message on the console which tells the user where to go sign-in using | |
// a separate browser and the code to enter once they sign in. | |
// The AcquireTokenWithDeviceCodeAsync() method will poll the server after firing this | |
// device code callback to look for the successful login of the user via that browser. | |
// This background polling (whose interval and timeout data is also provided as fields in the | |
// deviceCodeCallback class) will occur until: | |
// * The user has successfully logged in via browser and entered the proper code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<linker> | |
<assembly fullname="Microsoft.Identity.Client" preserve="all"/> | |
</linker> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<linker> | |
<assembly fullname="Microsoft.Identity.Client" preserve="all"/> | |
<assembly fullname="System.Runtime.Serialization" preserve="all"/> | |
</linker> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simplified SDF shader: | |
// - No Shading Option (bevel / bump / env map) | |
// - No Glow Option | |
// - Softness is applied on both side of the outline | |
Shader "TextMeshPro/Mobile/Distance Field Instanced" { | |
Properties { | |
_FaceColor ("Face Color", Color) = (1,1,1,1) | |
_FaceDilate ("Face Dilate", Range(-1,1)) = 0 |
OlderNewer