mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
fixing the shader for mac
This commit is contained in:
parent
65727dd613
commit
d2868bcafc
1 changed files with 2 additions and 2 deletions
|
@ -88,7 +88,7 @@ TransformCamera getTransformCamera() {
|
|||
<@endif@>
|
||||
<@endfunc@>
|
||||
|
||||
|
||||
|
||||
<@func transformModelToClipPos(cameraTransform, objectTransform, modelPos, clipPos)@>
|
||||
<@if GPU_TRANSFORM_PROFILE == GPU_CORE@>
|
||||
<!// Equivalent to the following but hoppefully a tad more accurate
|
||||
|
@ -98,7 +98,7 @@ TransformCamera getTransformCamera() {
|
|||
<$clipPos$> = <$cameraTransform$>._projectionViewUntranslated * _eyepos;
|
||||
}
|
||||
<@else@>
|
||||
<$clippos$> = gl_ModelViewProjectionMatrix * <$modelPos$>;
|
||||
<$clipPos$> = gl_ModelViewProjectionMatrix * <$modelPos$>;
|
||||
<@endif@>
|
||||
<@endfunc@>
|
||||
|
||||
|
|
Loading…
Reference in a new issue