Skip to content

Can't open include file "NPR_Pipeline.glsl" #533

Answered by pragma37
Floreum asked this question in Q&A
Discussion options

You must be logged in to vote

That tutorial is quite old.
It's from the time when Malt didn't have nodes and I still thought I could convince artists to use code-based shaders.😅
Sorry for the confusion.

Now the intended workflow is to code your own custom nodes if you want to use GLSL.
See https://malt3d.com/documentation/plugins/

You can drop functions at PluginExample.glsl and they will be available automatically as a node.

So the first examples would become something like this:

#include "Common.glsl"

void starting_point()
{

}

void flat_color(vec3 color, out vec3 result)
{
    result = color;
}

void textures(int uv_channel, sampler2D color_texture, out vec4 result)
{
    vec2 texture_coordinates = UV[uv_channel]…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Floreum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants