diff options
Diffstat (limited to 'chickadee/graphics/mesh.scm')
-rw-r--r-- | chickadee/graphics/mesh.scm | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/chickadee/graphics/mesh.scm b/chickadee/graphics/mesh.scm index b0db1b4..14cd82a 100644 --- a/chickadee/graphics/mesh.scm +++ b/chickadee/graphics/mesh.scm @@ -274,22 +274,22 @@ (loop (+ i 1) rest)))) (let* ((vertex-buffer (make-buffer verts #:stride stride)) (index-buffer (make-buffer indices #:target 'index)) - (positions (make-buffer-view #:buffer vertex-buffer - #:type 'vec3 - #:component-type 'float)) - (uvs (make-buffer-view #:buffer vertex-buffer - #:offset 12 - #:type 'vec2 - #:component-type 'float)) - (normals (make-buffer-view #:buffer vertex-buffer - #:offset 20 - #:type 'vec3 - #:component-type 'float)) + (positions (make-vertex-attribute #:buffer vertex-buffer + #:type 'vec3 + #:component-type 'float)) + (uvs (make-vertex-attribute #:buffer vertex-buffer + #:offset 12 + #:type 'vec2 + #:component-type 'float)) + (normals (make-vertex-attribute #:buffer vertex-buffer + #:offset 20 + #:type 'vec3 + #:component-type 'float)) (vertex-array (make-vertex-array #:indices - (make-buffer-view #:buffer index-buffer - #:type 'scalar - #:component-type 'unsigned-int) + (make-vertex-attribute #:buffer index-buffer + #:type 'scalar + #:component-type 'unsigned-int) #:attributes `((0 . ,positions) (1 . ,uvs) (2 . ,normals))))) |