SRNV / Ogone

Advanced Web Composition for Future
MIT License
36 stars 4 forks source link

[FEAT] WebGL1 and WebGL2 support #26

Open SRNV opened 4 years ago

SRNV commented 4 years ago

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

<canvas xyz>
  <scene name="world">
    <cube />
  </scene>
</canvas>
SRNV commented 4 years ago

v0.20.0

<template context="webgl2">
  <scene>
    <cube />
    <mesh load="foo.obj" />
  </scene>
</template>
SRNV commented 4 years ago

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 commented 4 years ago

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

mseyne commented 3 years ago

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.

SRNV commented 3 years ago

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 commented 3 years ago

And yeah WebXR would be neat also