| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A simple library for OOP encapsulation and abstraction of some of the different WebGL2 textures.
Note: If you wanna see examples of how to use the library check out https://github.com/RandomGamingDev/WebGL2Tex/tree/main/examples and if you want to learn about the more complex features you can search on Google and check out the WebGL documentation since this is basically just an OOP overlay over the WebGL API to make it easier to use and learn which means that u should be able to figure out how to use the library from the WebGL documentation and searches on WebGL.
There's the Texture.Base class which is the base for the other classes which currently are:
Texture.T2D: 2D WebGL textures
Texture.T3D: 3D WebGL textures
Check the code and the WebGL documentation for the parameters needed.
Pair this up with other code that uses WebGL in order to get access to a more types of textures without having to deal with WebGL being WebGL :D
To use this library you can simply include https://cdn.jsdelivr.net/gh/RandomGamingDev/WebGL2Tex/tex.js in your HTML file! If you want to you can also just download the file and include it in your HTML file that way.
btw stuff updates so remember to specify a version/commit for your library if you want to use a link and don't want your code to automatically update to the newest version of the library
Also, this library is based on the Wireframe game engine, which is another project that I made, and is more specifically a C++ game engine/framework for graphics and audio abstractions for ease of use (it's 0-cost too :D). You can check that out here: https://github.com/RandomGamingDev/Wireframe
In order to use this library with p5.js you're going to need to know a few things.
shad.samplers.length = 0;more specifically you'll want to do it after rendering something with the shader that you're using in case you're wondering when this data is generated so that you can replace it ofc you'll also want to make sure that you're writing to the correct location in cache
And that's all you need to know to get this library working alongside the p5.js library
| Back | FazBrowse Home | New Git URL |