|
Post by scalion on Jan 22, 2024 10:47:18 GMT 1
Bonjour à tous, Voilà qui est fait ! On peut utiliser des shaders avec GFA-Basic 32, et comme l'a déjà bien dit (X) ca ouvre pas mal de portes. Voici une petite de démo avec de la 3D : Shaders.G32 (41.56 KB) Je ferais peut-être une librairie pour simplifier tout ça.
Si vous avez la chance d'avoir une bonne carte graphique vous devrier obtenir ceci :
US : Hello everyone,That's done ! You can use shaders with GFA-Basic 32, and as (X) already said, it opens a lot of doors. Here is a little demo with 3D: Shaders.G32 (41.56 KB)
I might make a library to simplify all that.
If you are lucky enough to have a good graphics card you should get this:
|
|
|
Post by (X) on Jan 22, 2024 14:52:52 GMT 1
This is definitely a date to be celebrated: 2024.01.22!
Bravo scalion!
|
|
|
Post by Roger Cabo on Jan 22, 2024 23:11:36 GMT 1
Yes this is really great!!!
How does the shader was written and compiled.. and what format it own to load into GB32? I wrote a lot shaderlap shaders unity. Mostly vertex and surf shaders.
perhaps anytime it possible to write a shader compiler.. like shadertoy.com editor does..
Anyway, amazing job!! Scalion!!!
|
|
|
Post by (X) on Jan 23, 2024 3:13:15 GMT 1
A lot of this is new to me. Until scalion showed us his demo, I didn't even think it was possible to write OpenGL Shaders from inside GB32. At the very least, it seems to be a way to speed up computations considerably. I imagine this is a "game changer" (pun intended) for GB32 coders that want to develop PC Games written entirely* in GFA-BASIC 32 for Windows.
* Except for the Shader code itself.
I asked BING: How is the OpenGL shader code compiled?
|
|