pezcode / Cluster

Clustered shading implementation with bgfx
MIT License
427 stars 28 forks source link

Added options to enable/disable shaders build #3

Closed alekseyt closed 4 years ago

alekseyt commented 4 years ago

I wasn't able to build DX11 shaders on Linux because HLSL compiler isn't available, so i've made a couple of options in CMake scripts to be able to manually enable/disable shaders build for a platform.

pezcode commented 4 years ago

Not really a fan of having build options for all of these, so I went with an easier fix that just checks if we're building on Windows (https://github.com/pezcode/Cluster/commit/5a8d80faacc65445d44d87558975d7dee54b8b5e). Or is there a scenario where you'd want to e.g. disable GLSL?

alekseyt commented 4 years ago

No, whatever you feel the best. I've merged changes and i can confirm that it builds and works on Linux. Thank you very much.

pezcode commented 4 years ago

Alright, I'll close this then