We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
uniform vec4 u_preCtrlPoints;//pre控制点 uniform vec4 u_curCtrlPoints;//cur控制点 uniform float u_reshapeRadius;//影响半径 uniform float u_reshapeRatio;//强度
The text was updated successfully, but these errors were encountered:
在FaceSlenderSample.cpp里面不是写了吗?
就是把两个点的坐标 变成一个坐标 的 xy 和 zw
GLUtils::setVec4(m_ProgramObj, "u_preCtrlPoints", LeftSlenderCtlPoint[0] / (float) m_RenderImage.width, LeftSlenderCtlPoint[1] / (float) m_RenderImage.height, RightSlenderCtlPoint[0] / (float) m_RenderImage.width, RightSlenderCtlPoint[1] / (float) m_RenderImage.height); // ... 其他代码 GLUtils::setVec4(m_ProgramObj, "u_curCtrlPoints", leftCurPoint.x / (float) m_RenderImage.width, leftCurPoint.y / (float) m_RenderImage.height, rightCurPoint.x / (float) m_RenderImage.width, rightCurPoint.y / (float) m_RenderImage.height);
Sorry, something went wrong.
No branches or pull requests
uniform vec4 u_preCtrlPoints;//pre控制点
uniform vec4 u_curCtrlPoints;//cur控制点
uniform float u_reshapeRadius;//影响半径
uniform float u_reshapeRatio;//强度
The text was updated successfully, but these errors were encountered: