mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +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:
|
||||
batch._glUniform3f(slot,
|
||||
valueArray[0].toDouble(),
|
||||
valueArray[0].toDouble(),
|
||||
valueArray[1].toDouble());
|
||||
valueArray[1].toDouble(),
|
||||
valueArray[2].toDouble());
|
||||
break;
|
||||
case 4:
|
||||
default:
|
||||
|
@ -234,4 +234,4 @@ glm::vec4 Procedural::getColor(const glm::vec4& entityColor) {
|
|||
return glm::vec4(1);
|
||||
}
|
||||
return entityColor;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue