Skip to content

malciin/wasm-webgl.net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wasm-webgl.NET

Live demo: https://malciin.github.io/wasm-webgl.net/

Proof of concept of .NET webassembly app (without blazor) that uses WebGL to draw 3d triangle (tetrahedron).

Details

.NET Wasm project was created using wasmbrowser template:

dotnet workload install wasm-tools
dotnet workload install wasm-experimental
dotnet new wasmbrowser

See: https://devblogs.microsoft.com/dotnet/use-net-7-from-any-javascript-app-in-net-7/

webgl bindings (JS + C#) are autogenerated using T4 based on webgl.spec.xml file thats written manually by me based on following resources:

Note

Its just a quick proof of concept, only some of webgl methods are binded, other things like textures would require adding proper definition to webgl.spec.xml.

About

Proof of concept of .NET + WebAssembly + WebGL app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published