mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
Merge pull request #5791 from jherico/homer
Fix procedural vec3 uniforms
This commit is contained in:
commit
4d6d882f52
1 changed files with 3 additions and 3 deletions
|
@ -203,8 +203,8 @@ void Procedural::prepare(gpu::Batch& batch, const glm::vec3& size) {
|
||||||
case 3:
|
case 3:
|
||||||
batch._glUniform3f(slot,
|
batch._glUniform3f(slot,
|
||||||
valueArray[0].toDouble(),
|
valueArray[0].toDouble(),
|
||||||
valueArray[0].toDouble(),
|
valueArray[1].toDouble(),
|
||||||
valueArray[1].toDouble());
|
valueArray[2].toDouble());
|
||||||
break;
|
break;
|
||||||
case 4:
|
case 4:
|
||||||
default:
|
default:
|
||||||
|
@ -234,4 +234,4 @@ glm::vec4 Procedural::getColor(const glm::vec4& entityColor) {
|
||||||
return glm::vec4(1);
|
return glm::vec4(1);
|
||||||
}
|
}
|
||||||
return entityColor;
|
return entityColor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue