Open Neill3d opened 10 years ago
For example, this code returns error
GLSLShader {
// // Prototypes // vec3 Blend(in vec3 base, in vec3 blend);
}
GLSLShader global BlendNormal { vec3 Blend(in vec3 base, in vec3 blend) { return blend; } }
This is one code works
// // Prototypes // void something(); // !! needs this function to make it work vec3 Blend(in vec3 base, in vec3 blend);
For example, this code returns error
GLSLShader {
// // Prototypes // vec3 Blend(in vec3 base, in vec3 blend);
}
GLSLShader global BlendNormal { vec3 Blend(in vec3 base, in vec3 blend) { return blend; } }
This is one code works
GLSLShader {
}
GLSLShader global BlendNormal { vec3 Blend(in vec3 base, in vec3 blend) { return blend; } }