Thursday, 15 July 2010

glsl - Does anyone know how to draw dotted lines in openGL SE using fragment shader -


I tried to use this tutorial:

But I do not know: sourcePoint, Mv and a_position

If you have any other suggestions please help ...

SourcePoint is the starting point of the line in the world space, this is a uniform , which means that the same value is used for the whole value.

mv (also uniforms ) is modelView matrix, which changes a point from model space to world space, so that A_pose is using the same coordinate system as sourcePoint it is similar to u_modelViewProjectionMatrix but without launch changes

a_position is a variation , which means that the peak shader determines a value for each top, and then the piece shader for each pixel If an interpolated value is found then the piece which gets the piece will be the position of the pixel in the world space.

If you are still confused, then I suggest how the shaders will work. It may already be confusing.

No comments:

Post a Comment