From 52c87d9ec6586a0d997f9ef58155dae87b65c7f1 Mon Sep 17 00:00:00 2001 From: omigamedev Date: Mon, 24 Dec 2018 22:22:16 +0100 Subject: [PATCH] implement grid and heightmap with lambert shading --- data/layout.xml | 59 ++++++++------------- src/app_layout.cpp | 19 +++++-- src/app_shaders.cpp | 25 ++++++++- src/image.cpp | 2 +- src/image.h | 2 +- src/node.h | 12 +++++ src/node_canvas.cpp | 52 ++++++++++-------- src/node_panel_grid.cpp | 60 ++++++++++++++++----- src/node_panel_grid.h | 16 +++--- src/pch.h | 1 + src/shader.cpp | 14 +++++ src/shader.h | 4 ++ src/shape.cpp | 113 +++++++++++++++++++++++++++++++++++++--- src/shape.h | 1 + src/texture.cpp | 1 + src/util.h | 17 +++--- 16 files changed, 297 insertions(+), 101 deletions(-) diff --git a/data/layout.xml b/data/layout.xml index be43d13..b64c644 100644 --- a/data/layout.xml +++ b/data/layout.xml @@ -248,58 +248,49 @@ - - + - - + + - - - + + + - - - - + + - + + + - + + - + - - + + + + + + + @@ -1044,7 +1035,7 @@ Here's a list of what's available in this release. - +