|
@@ -3,7 +3,7 @@ return {
|
|
|
description = [[
|
|
|
Sets this matrix to represent an orthographic projection, useful for 2D/isometric rendering.
|
|
|
|
|
|
- This can be used with `lovr.graphics.setProjection`, or it can be sent to a `Shader` for use in
|
|
|
+ This can be used with `Pass:setProjection`, or it can be sent to a `Shader` for use in
|
|
|
GLSL.
|
|
|
]],
|
|
|
arguments = {
|
|
@@ -15,13 +15,21 @@ return {
|
|
|
type = 'number',
|
|
|
description = 'The right edge of the projection.'
|
|
|
},
|
|
|
+ bottom = {
|
|
|
+ type = 'number',
|
|
|
+ description = 'The bottom edge of the projection.'
|
|
|
+ },
|
|
|
top = {
|
|
|
type = 'number',
|
|
|
description = 'The top edge of the projection.'
|
|
|
},
|
|
|
- bottom = {
|
|
|
+ width = {
|
|
|
type = 'number',
|
|
|
- description = 'The bottom edge of the projection.'
|
|
|
+ description = 'The width of the projection.'
|
|
|
+ },
|
|
|
+ height = {
|
|
|
+ type = 'number',
|
|
|
+ description = 'The height of the projection.'
|
|
|
},
|
|
|
near = {
|
|
|
type = 'number',
|
|
@@ -40,7 +48,11 @@ return {
|
|
|
},
|
|
|
variants = {
|
|
|
{
|
|
|
- arguments = { 'left', 'right', 'top', 'bottom', 'near', 'far' },
|
|
|
+ arguments = { 'left', 'right', 'bottom', 'top', 'near', 'far' },
|
|
|
+ returns = { 'm' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ arguments = { 'width', 'height', 'near', 'far' },
|
|
|
returns = { 'm' }
|
|
|
}
|
|
|
},
|