mirror of
https://github.com/overte-org/overte.git
synced 2025-06-21 01:00:36 +02:00
fix shader issue on mac
This commit is contained in:
parent
61ea59d63b
commit
1b69b38835
3 changed files with 23 additions and 23 deletions
|
@ -129,7 +129,7 @@ uniform mat4 transformCamera_viewInverse;
|
||||||
<$worldPos$> = (<$objectTransform$>._model * <$modelPos$>);
|
<$worldPos$> = (<$objectTransform$>._model * <$modelPos$>);
|
||||||
}
|
}
|
||||||
<@else@>
|
<@else@>
|
||||||
<$worldPos$> = vec3(transformObject_model * <$modelPos$>);
|
<$worldPos$> = (transformObject_model * <$modelPos$>);
|
||||||
<@endif@>
|
<@endif@>
|
||||||
<@endfunc@>
|
<@endfunc@>
|
||||||
|
|
||||||
|
|
|
@ -649,7 +649,7 @@ void DeferredLightingEffect::render(RenderArgs* args) {
|
||||||
model.postScale(glm::vec3(base, base, height));
|
model.postScale(glm::vec3(base, base, height));
|
||||||
|
|
||||||
batch.setModelTransform(model);
|
batch.setModelTransform(model);
|
||||||
auto& mesh = getSpotLightMesh();
|
auto mesh = getSpotLightMesh();
|
||||||
|
|
||||||
|
|
||||||
batch.setIndexBuffer(mesh->getIndexBuffer());
|
batch.setIndexBuffer(mesh->getIndexBuffer());
|
||||||
|
|
Loading…
Reference in a new issue