Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.27 KB

README.md

File metadata and controls

31 lines (19 loc) · 1.27 KB

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.