Skip to content

Commit

Permalink
show grid in empty scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Licini committed Jul 2, 2024
1 parent 1c0358a commit 25dc00b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/compas_viewer/scene/gridobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ def make_buffer_from_data(self, data: ShaderDataType) -> dict[str, Any]:
}

def draw(self, shader: Shader):
shader.uniform1f("object_opacity", 1)
shader.enable_attribute("position")
shader.enable_attribute("color")
shader.bind_attribute("position", self._lines_buffer["positions"])
Expand Down

0 comments on commit 25dc00b

Please sign in to comment.