Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
When I try to use shader codes, I always get errors from the vertext shader. error x3000: unrecognized identifier 'mat4' |
||||
|
What shading langauge is your shader in and what is your render target in coppercube? I think they both need to be the same. GLSL is opengl and does not work with directx target. Directx needs HLSL. |
||||
|
I'm actually trying to use the water vertex and fragment shaders from the CopperLicht source code (yes, I am prepared to deal with shader callbacks). |
||||
|
It sounds like you are using an OpenGL shader in something different, like D3D? That won't work. |
||||
|
I thought OpenGL shaders were .glsl where HLSL shaders were .vert and .frag and |
||||
|
Everything with "frag" is opengl, in D3D, this is called "pixel" |
||||
|
wrote: Everything with "frag" is opengl, in D3D, this is called "pixel" Thanks for clearing this up. |
|