Assorted edits. Created new shaders.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
#ifdef GL_ES
|
||||
precision mediump float;
|
||||
#endif
|
||||
|
||||
// Light color.
|
||||
uniform vec3 u_lightColor;
|
||||
// Diffuse surface color.
|
||||
uniform vec3 u_diffColor;
|
||||
// Specular color.
|
||||
uniform vec3 u_specColor;
|
||||
// Ambient light color.
|
||||
uniform vec3 u_ambColor;
|
||||
|
||||
void main(){
|
||||
// TODO: Implement per pixel diffuse lighting.
|
||||
gl_FragColor = vec4(u_diffColor, 1.0);
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
// Model-view matrix.
|
||||
uniform mat4 u_projTrans;
|
||||
|
||||
// Vertex position in world coordinates.
|
||||
attribute vec4 a_position;
|
||||
|
||||
void main(){
|
||||
gl_Position = u_projTrans * a_position;
|
||||
}
|
@@ -143,4 +143,4 @@ JNIEXPORT jdouble JNICALL Java_ve_ucv_ciens_ccg_nxtar_MainActivity_calibrateCame
|
||||
return error;
|
||||
}
|
||||
|
||||
}
|
||||
} // extern "C"
|
||||
|
@@ -500,4 +500,4 @@ float perimeter(points_vector & p){
|
||||
Marker::~Marker(){
|
||||
points.clear();
|
||||
}
|
||||
}
|
||||
} // namespace nxtar
|
||||
|
@@ -51,6 +51,6 @@ bool findCalibrationPattern(points_vector &, cv::Mat &);
|
||||
*/
|
||||
double getCameraParameters(cv::Mat &, cv::Mat &, std::vector<points_vector> &, cv::Size);
|
||||
|
||||
}
|
||||
} // namespace nxtar
|
||||
|
||||
#endif
|
||||
#endif // MARKER_HPP
|
||||
|
Reference in New Issue
Block a user