//----------------------------------------------------------------------------------------------
void Comp_MaterialBaseEffect::SetMatrixParam(const char *ParamName, const Matrix& Value)
{
	assert(pMaterialBaseEffect);
	pMaterialBaseEffect->SetMatrixParam(ParamName, Value.GetPtr());
}
Пример #2
0
void Material::SetMatrix(string name, bool transpose, Matrix &matrix)
{
	glUniformMatrix4fv(mpShader->GetUniform(name), 1, transpose, matrix.GetPtr());
}