Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
In Tutorial 5, you mention that copperlicht has its own set of predefined shader constants. Is the full list of these predefined constants available anywhere besides the commercial source? I understand i can assign my own, but it would be good to know what constants copperlicht already has defined. Thanks |
||||
|
here are some uniforms and attributes used in copperlicht: for vertex shaders: uniform worldviewproj; // (mat4, matrix with the concatenated world view and projection matrices) attribute vec4 vPosition; // vertex position attribute vec4 vNormal; // vertex normal attribute vec2 vTexCoord1; // first texture coordinate of a vertex attribute vec2 vTexCoord2; // second texture coordinate of a vertex and for the fragment shaders, the two textures: uniform sampler2D texture1; uniform sampler2D texture2; |
||||
|
|