Canvas-Toolkit / CanvasKit

A comprehensive library for working with the Canvas API.
MIT License
20 stars 12 forks source link

🐞 Issue: Implement WebGL Rendering for methods avoid error throw #34

Open mselodie opened 1 year ago

mselodie commented 1 year ago

Description

We currently have methods for drawing basic shapes (drawRect, drawCircle, and drawLine) in our project, but they are limited to 2D rendering. We want to enhance these methods to utilize WebGL for 3D rendering, providing a more immersive experience.

Proposed Solution 💫

To achieve this, we propose the following changes:

  1. Implement the WebGL rendering logic for methods present.
  2. Utilize predefined vertexShaderSource and fragmentShaderSource for the WebGL shaders. These shaders will enable 3D rendering. 🎨
  3. If necessary, incorporate the gl-matrix library for matrix operations and transformations to simplify the rendering process.

Steps to Reproduce

Expected Behavior

The shapes should be rendered in 3D space, giving a more immersive experience compared to their current 2D counterparts. 🌟