mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-26 06:45:36 +00:00
fix particle glow
This commit is contained in:
parent
5d260bc58f
commit
ab80a842aa
5 changed files with 20 additions and 3 deletions
|
|
@ -1122,15 +1122,19 @@ void GFXGLShader::setConstantsFromBuffer(U8* buffer)
|
|||
// Set sampler number on our program.
|
||||
glUniform1i(handle->mDesc.bindPoint, handle->mDesc.samplerReg);
|
||||
break;
|
||||
case GFXSCT_Bool:
|
||||
case GFXSCT_Int:
|
||||
glUniform1iv(handle->mDesc.bindPoint, handle->mDesc.arraySize, (GLint*)(mGlobalConstBuffer + handle->mDesc.offset));
|
||||
break;
|
||||
case GFXSCT_Bool2:
|
||||
case GFXSCT_Int2:
|
||||
glUniform2iv(handle->mDesc.bindPoint, handle->mDesc.arraySize, (GLint*)(mGlobalConstBuffer + handle->mDesc.offset));
|
||||
break;
|
||||
case GFXSCT_Bool3:
|
||||
case GFXSCT_Int3:
|
||||
glUniform3iv(handle->mDesc.bindPoint, handle->mDesc.arraySize, (GLint*)(mGlobalConstBuffer + handle->mDesc.offset));
|
||||
break;
|
||||
case GFXSCT_Bool4:
|
||||
case GFXSCT_Int4:
|
||||
glUniform4iv(handle->mDesc.bindPoint, handle->mDesc.arraySize, (GLint*)(mGlobalConstBuffer + handle->mDesc.offset));
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue