treeform / shady

Nim to GPU shader language compiler and supporting utilities.
MIT License
152 stars 12 forks source link

Missing opengl dependency #9

Closed arkanoid87 closed 1 year ago

arkanoid87 commented 1 year ago

just installed shady in a clean environment, got this error with nimble build

shady-0.1.3/shady/demo.nim(3, 8) Error: cannot open file: opengl

please mind that I've not been running nimble build in shady install directory, but in a new clean project with just src/my_test_shady_proj.nim

arkanoid87 commented 1 year ago

temporarily fixed adding

requires "opengl"
requires "windy"

to shady-0.1.3/shady.nimble

arkanoid87 commented 1 year ago

nevermind, are just the provided examples that requires packages outside shady deps I'm considering this a deliberate choice, closing.

treeform commented 1 year ago

Yes, shady is just nim code to GLSL macro, in theory it needs nothing but Nim and vmath.

But the examples would be pretty boring if they just printed text output.