Hi. I don’t really want to write my own shaders. But there are a lot of tools to create shaders by using node-based GUI. Unfortunately, I can’t use tools intended for Unity because they are using another shader language.
What do you think about BabylonJS Node Material Editor? It is exporting GLSL shaders, something like this:
// Vertex shader
precision highp float;
attribute vec3 position;
uniform mat4 u_World;
uniform mat4 u_ViewProjection;
uniform vec4 u_color;
void main(void) {
vec4 output1 = u_World * vec4(position, 1.0);
vec4 output0 = u_ViewProjection * output1;
gl_Position = output0;
}
// Fragment shader
precision highp float;
uniform mat4 u_World;
uniform mat4 u_ViewProjection;
uniform vec4 u_color;
void main(void) {
gl_FragColor = u_color;
}
Can I use it with Playcanvas? Does anyone try it? Do you know another node-based tool compatible with PlayCanvas?