Simon.Anderson Posted January 16, 2015 Share Posted January 16, 2015 Hi there, I'm tying to make sure all my GLSL shader scripts are compatible with Opengl 4.4 but the Unigine preprocessor doesn't seem to recognise the following line of code: #version 440 compatibility Is this something I need to worry about? My shader seems to be crashing my graphics driver. Also, is there a way to force Unigine to compile to either GLSL or HLSL and log shader warnings some how? Any help would be much appreciated. Thanks, Simon Link to comment
silent Posted January 16, 2015 Share Posted January 16, 2015 Hi Simon, OpenGL 4.4 support should be working in Unigine 2.0 alpha (2014-11-20). What version of engine are you currently using? Also, you can generate HLSL shaders cache that present in *.mat files via fxc tool: https://developer.unigine.com/en/docs/1.0/code/shaders_cache Thanks! How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Simon.Anderson Posted January 19, 2015 Author Share Posted January 19, 2015 Hi silent, I'm using the unigine release from around April, 2013 (not sure of the exact version). But even if it's not compatible it should show compile errors right? Cheers, Simon Link to comment
unclebob Posted January 20, 2015 Share Posted January 20, 2015 Simon, Our preprocessor will skip defines he doesn't know. In order to avoid that, use sharp ('#') character twice, like that: ##version 440 compatibility Link to comment
Recommended Posts