<node 'Vectron Sphere'>:1: error: Signature mismatch, expecting a shader with 1 output (_sdf)
I'm getting this error in every single vectron example.
I'm not a coder so I don't know what exactly is the issue.
regards
Rohan
Vectron OSL problem
Forum rules
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Please add your OS and Hardware Configuration in your signature, it makes it easier for us to help you analyze problems. Example: Win 7 64 | Geforce GTX680 | i7 3770 | 16GB
Hi,
The shader should have an _sdf (signed distance function) output instead of a color.
Add this line at the top:
The output argument can be declared and initialized with this:
and in the code you need to assign the result to the .dist member:
Check the code of the default Vectron sphere for a simpler version.
The shader should have an _sdf (signed distance function) output instead of a color.
Add this line at the top:
Code: Select all
#include <octane-oslintrin.h>Code: Select all
output _sdf out = _SDFDEFand in the code you need to assign the result to the .dist member:
Code: Select all
out.dist = - sdSphere(P - position);

