Ogone icon indicating copy to clipboard operation
Ogone copied to clipboard

[FEAT] WebGL1 and WebGL2 support

Open SRNV opened this issue 5 years ago • 6 comments

v1: https://webglfundamentals.org/ v2: https://webgl2fundamentals.org/webgl/lessons/

<canvas xyz>
  <scene name="world">
    <cube />
  </scene>
</canvas>

SRNV avatar Aug 05 '20 18:08 SRNV

v0.20.0

<template context="webgl2">
  <scene>
    <cube />
    <mesh load="foo.obj" />
  </scene>
</template>

SRNV avatar Aug 09 '20 17:08 SRNV

maybe adding a program section to let the dev type the vertex shaders and the fragment shader. Screenshot from 2020-08-10 15-13-59

SRNV avatar Aug 10 '20 13:08 SRNV

Screenshot from 2020-08-10 16-55-40

SRNV avatar Aug 10 '20 14:08 SRNV

I imagine implementing webxr would be possible too. Make me think of the aframe syntax.

Example of their helloworld :

    <a-scene background="color: #ECECEC">
      <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" shadow></a-box>
      <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E" shadow></a-sphere>
      <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow></a-cylinder>
      <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4" shadow></a-plane>
   </a-scene>

Webgl is not planned for v1.0.0 anymore ? It is the part I am the most interest, maybe I could help on this subject.

mseyne avatar Apr 13 '21 09:04 mseyne

I imagine implementing webxr would be possible too. Make me think of the aframe syntax.

Example of their helloworld :

    <a-scene background="color: #ECECEC">
      <a-box position="-1 0.5 -3" rotation="0 45 0" color="#4CC3D9" shadow></a-box>
      <a-sphere position="0 1.25 -5" radius="1.25" color="#EF2D5E" shadow></a-sphere>
      <a-cylinder position="1 0.75 -3" radius="0.5" height="1.5" color="#FFC65D" shadow></a-cylinder>
      <a-plane position="0 0 -4" rotation="-90 0 0" width="4" height="4" color="#7BC8A4" shadow></a-plane>
   </a-scene>

Webgl is not planned for v1.0.0 anymore ? It is the part I am the most interest, maybe I could help on this subject.

This is still planned for 1.0 and required We can discuss on it in discord

SRNV avatar Apr 16 '21 12:04 SRNV

And yeah WebXR would be neat also

SRNV avatar Apr 16 '21 14:04 SRNV