You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current node specification, nodes cannot send sampler type values to the next node through sockets. This is because the glsl shader does not support sampler-type variables for local variables.
In more detail, In this library, all the node sends a value through a socket. Currently, each node has a shader function. And each socket corresponds to an argument of the function. each node sends or gets value by using the local variable. However, we cannot use the sampler-type variables as a local variable.
To support sampler type output socket, we will introduce the following special node:
The node does not have the shader function.
The node has only one sampler type uniform input socket and only one sampler output socket. The sampler output socket is a socket that can connect to only the sampler input socket.
The sampler input socket connected with this special node can get the data of uniform input socket in the connected special node.
In order to achieve this, we will do the following steps:
Creating abstract node class from current node class. The abstract node has only the socket information but does not have shader function information.
Creating a new node class for inputting and outputting sampler.
Supporting the import of the new node class from shaderity graph json
The text was updated successfully, but these errors were encountered:
In the current node specification, nodes cannot send sampler type values to the next node through sockets. This is because the glsl shader does not support sampler-type variables for local variables.
In more detail, In this library, all the node sends a value through a socket. Currently, each node has a shader function. And each socket corresponds to an argument of the function. each node sends or gets value by using the local variable. However, we cannot use the sampler-type variables as a local variable.
To support sampler type output socket, we will introduce the following special node:
In order to achieve this, we will do the following steps:
The text was updated successfully, but these errors were encountered: