Pages

Se afișează postările cu eticheta glsl. Afișați toate postările
Se afișează postările cu eticheta glsl. Afișați toate postările

luni, 15 ianuarie 2024

News : Shaderfrog online tool new updates.

This tool can help you edit online and you can see the differences of shader and glsl type source code and now it comes with news.
I also presented this tool last year in April, it is quite old as an online tool.
The author of this online tool tells us:
Hi, my name is Andy. Almost 8 years ago, I created a tool called Shaderfrog. Shaderfrog is a Three.js shader editor and ‟composer.” Shaderfrog lets you author shader GLSL in nodes, and then combine them together using a graph editor.
See this online screenshot:

joi, 12 octombrie 2023

joi, 28 august 2014

GLSL Sandbox

GLSL Sandbox come with news.
New examples about WebGL and GLSL can be found there.
See more at glsl.heroku.com.

vineri, 13 august 2010

OpenGL and Python - GLSL example

Today I played a bit with GLSL.
Here is the final result in the image below:

The source code used by me:

vertex shader
varying vec3 normal;
void main() {
  normal = gl_NormalMatrix * gl_Normal;
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
 }
fragment shader
varying vec3 normal;
void main() {
 float scale = 1.0 / 10.0;
 float frx = fract(gl_FragCoord.x * scale);
 float fry = fract(gl_FragCoord.y * scale);
 gl_FragColor = vec4(frx,fry,0.0,1.0);
 }