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