fixing the shader for mac

This commit is contained in:
samcake 2015-03-19 16:00:47 -07:00
parent 65727dd613
commit d2868bcafc

View file

@ -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@>