private void uploadInt()
{
switch (this.uniformType)
{
case 0:
OpenGlHelper.glUniform1(this.uniformLocation, this.uniformIntBuffer);
break;
case 1:
OpenGlHelper.glUniform2(this.uniformLocation, this.uniformIntBuffer);
break;
case 2:
OpenGlHelper.glUniform3(this.uniformLocation, this.uniformIntBuffer);
break;
case 3:
OpenGlHelper.glUniform4(this.uniformLocation, this.uniformIntBuffer);
break;
default:
logger.warn("Uniform.upload called, but count value (" + this.uniformCount + ") is " + " not in the range of 1 to 4. Ignoring.");
}
}
ShaderUniform.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:BaseClient
作者:
评论列表
文章目录