diff options
Diffstat (limited to 'o3d/cg_to_glsl/convert.py')
-rwxr-xr-x | o3d/cg_to_glsl/convert.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/o3d/cg_to_glsl/convert.py b/o3d/cg_to_glsl/convert.py index 3efb3ea..2ec61912 100755 --- a/o3d/cg_to_glsl/convert.py +++ b/o3d/cg_to_glsl/convert.py @@ -100,7 +100,7 @@ def fix_glsl_body(body, input_mapping): r'_glPositionTemp.x + _glPositionTemp.w * dx_clipping.x, ' + r'dx_clipping.w * ' + r'(_glPositionTemp.y + _glPositionTemp.w * dx_clipping.y), ' + - r'_glPositionTemp.z * 2 - _glPositionTemp.w, ' + + r'_glPositionTemp.z * 2.0 - _glPositionTemp.w, ' + r'_glPositionTemp.w);', body) return '\n'.join(attributes) + '\n\n' + body |