Home Technical Talk

Max/Maya - ShaderFX - Can't compile for older vesion of Software (+loss of sorting order)

polycounter lvl 12
Offline / Send Message
Ace-Angel polycounter lvl 12
Whenever I compile the shader, and no matter what I do, I am unable to load them in the older versions of the software.

For example; I compiled my Shader in Max 2016, standard GLSL/HLSL and it works fines for the current versions of the software as well 15 and 14.

Max 2013 is unable to load it however.
If I compile as CGFX (GL or GP) = error X3041: unsupported compiler target state
If I compile as HLSL5 (GL or GP) = ID3DXEffectCompiler error unable to compile
If I compile as HLSL3 (GL or GP) = (563,1): error X3000: unrecognized identifier 'samplerCube'

However, if remove my Cubemap portion of the code, and compile it under HLSL3, the Shader will work, but it will break my sorting order (so my Diffuse in UIOrder 1 is now 100, and I can't seem to be able to fix even manually editing the code).

EDIT: Nevermind, Max 2014 is compatible with Max 2013 plugins and the Shaders work in that by default.





Replies

Sign In or Register to comment.