gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix

Technically this is only the view matrix, not model view matrix.
And view layer was missing from the pydoc.
This commit is contained in:
Dalai Felinto
2018-11-09 13:46:09 -02:00
parent 6cb5340e01
commit 49a7bcafd9
2 changed files with 10 additions and 8 deletions

View File

@@ -97,7 +97,7 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
render = scene.render
camera = scene.camera
modelview_matrix = camera.matrix_world.inverted()
view_matrix = camera.matrix_world.inverted()
projection_matrix = camera.calc_matrix_camera(
context.depsgraph,
x=render.resolution_x,
@@ -112,7 +112,7 @@ class VIEW3D_OT_draw_offscreen(bpy.types.Operator):
context.space_data,
context.region,
projection_matrix,
modelview_matrix,
view_matrix,
)
def _opengl_draw(self, context, texture, aspect_ratio, scale):