vaneenige / phenomenon Goto Github PK
View Code? Open in Web Editor NEW⚡️ A fast 2kB low-level WebGL API.
License: MIT License
⚡️ A fast 2kB low-level WebGL API.
License: MIT License
Hi Colin! - sorry if it's a trivial question - I didn't understand if the library also supports sampler2D uniforms
Hi @vaneenige , I have observed that Phenomenon has no logo yet. Lately, I have been making graphics design on open source projects and to a blockchain. I love making graphics design and if you want a logo of phenomenon, I am very free to make a logo for the said project. Just reply idea or suggestion for the logo and I will also make my own logo style. Thank you :)
Hey! Fantastic library, first of all, this is so useful - thank you for it!
I'm getting an unexpected token export
error when I use the library in Nuxt and wanted to see if there was any quick fix I was missing. To reproduce:
npm run dev
Expected: See a blank page with an h2 reading "export bug demo"
Actual: See Nuxt's "Unexpected token export" error page
If this is something Nuxt-specific, I can do more digging, but I wanted to mention it and see if you've come across it before. In any case, thanks again for the excellent work!
@vaneenige I'm using the cobe
library to render a globe on the screen. That library is built on top of phenomenon. What I've noticed is that the resize event listener is never removed when the destroy method is called.
When I scroll my globe out of view I remove it from the DOM as it's wasted resources when it's offscreen.
Looking at the dev tools though, I see multiple addEventListeners for resize as the component mounts / unmounts
Here is a PR #16 with the proposed change
What does phenomenon do to achieve such smoothness? Compared to other WebGL libraries?
https://github.com/vaneenige/phenomenon/blob/master/src/index.js#L363
instanceSettings.uniforms = Object.assign(settings.uniforms, clonedUniforms);
settings.uniforms
is not work, because It will be coverIs there an easy way to display 2D textures using phenomenon?
Firstly, big fan - thanks for making this. I noticed the "far" clip plane seems to be 100 which was too small for me, i've modified the projection matrix in my project to be 0.1 to 1000
Could this be made customizable or changed?
Hello! You can explain this section code? No have any comments, so for me, it's so difficult to understand, if you can, please? <3
Line 98 in 98923a7
Very nice effort for a KISS and low-level webgl fw ! Seems to have passed the 2kb limit though ( 4.5k from the npm install ) 😆
Anyway, do you have plans or ideas on how to chain shaders to create some kind of renderer pipeline ? Saw you can add several nodes to the renderer, but no way to chain/access them ?
ANyway, keep up the good work !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.