shader-slang / slang

Making it easier to work with shaders
MIT License
2.07k stars 178 forks source link

How to import modules :) #4256

Closed evaspitslines closed 4 months ago

evaspitslines commented 4 months ago

How do I import modules that are in a parent directory?

When I'm inside my_project/utils/math.slang and I want to import my_project/test.slang, I cannot do import test.slang since it is inside the parent dir.

csyonghe commented 4 months ago

You can do import "../parent.slang";